mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 15:46:47 +00:00
Remove unused _get_python_repl
(#15389)
This part of the code can also be safely cleaned up.
This commit is contained in:
parent
15b6c049d4
commit
e57e50b213
@ -94,17 +94,6 @@ from langchain.utilities.dataforseo_api_search import DataForSeoAPIWrapper
|
|||||||
from langchain.utilities.reddit_search import RedditSearchAPIWrapper
|
from langchain.utilities.reddit_search import RedditSearchAPIWrapper
|
||||||
|
|
||||||
|
|
||||||
def _get_python_repl() -> BaseTool:
|
|
||||||
raise ImportError(
|
|
||||||
"This tool has been moved to langchain experiment. "
|
|
||||||
"This tool has access to a python REPL. "
|
|
||||||
"For best practices make sure to sandbox this tool. "
|
|
||||||
"Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md "
|
|
||||||
"To keep using this code as is, install langchain experimental and "
|
|
||||||
"update relevant imports replacing 'langchain' with 'langchain_experimental'"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def _get_tools_requests_get() -> BaseTool:
|
def _get_tools_requests_get() -> BaseTool:
|
||||||
return RequestsGetTool(requests_wrapper=TextRequestsWrapper())
|
return RequestsGetTool(requests_wrapper=TextRequestsWrapper())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user