The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Remove unused `_get_python_repl` (#15389)
Bob Line57e50b2132f
diff --git a/libs/langchain/langchain/agents/load_tools.py b/libs/langchain/langchain/agents/load_tools.pyindex b9709903e8..f1131cd758 100644--- a/libs/langchain/langchain/agents/load_tools.py+++ b/libs/langchain/langchain/agents/load_tools.py@@ -94,17 +94,6 @@ from langchain.utilities.dataforseo_api_search import DataForSeoAPIWrapperfrom 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:return RequestsGetTool(requests_wrapper=TextRequestsWrapper())