_import_python_tool_python_ast_repl_tool() — langchain Function Reference
Architecture documentation for the _import_python_tool_python_ast_repl_tool() function in __init__.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 00ec255b_380b_5f24_c759_90bab4b450cc["_import_python_tool_python_ast_repl_tool()"] e6fb3243_0be2_18e8_1940_6ba98918b322["__init__.py"] 00ec255b_380b_5f24_c759_90bab4b450cc -->|defined in| e6fb3243_0be2_18e8_1940_6ba98918b322 73c496e4_20e9_8b20_0d00_6df4ab5e4713["__getattr__()"] 73c496e4_20e9_8b20_0d00_6df4ab5e4713 -->|calls| 00ec255b_380b_5f24_c759_90bab4b450cc style 00ec255b_380b_5f24_c759_90bab4b450cc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/tools/__init__.py lines 28–37
def _import_python_tool_python_ast_repl_tool() -> Any:
msg = (
"This tool has been moved to langchain_experimental. "
"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'"
)
raise ImportError(msg)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _import_python_tool_python_ast_repl_tool() do?
_import_python_tool_python_ast_repl_tool() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/tools/__init__.py.
Where is _import_python_tool_python_ast_repl_tool() defined?
_import_python_tool_python_ast_repl_tool() is defined in libs/langchain/langchain_classic/tools/__init__.py at line 28.
What calls _import_python_tool_python_ast_repl_tool()?
_import_python_tool_python_ast_repl_tool() is called by 1 function(s): __getattr__.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free