Remove unused `_get_python_repl` (#15389)

This part of the code can also be safely cleaned up.
pull/15434/head
Bob Lin 6 months ago committed by GitHub
parent 15b6c049d4
commit e57e50b213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,17 +94,6 @@ from langchain.utilities.dataforseo_api_search import DataForSeoAPIWrapper
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:
return RequestsGetTool(requests_wrapper=TextRequestsWrapper())

Loading…
Cancel
Save