__getattr__() — langchain Function Reference
Architecture documentation for the __getattr__() function in __init__.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e4aa3147_33f1_d1a9_71fb_b8b10737c821["__getattr__()"] 45c2c0a2_d209_0996_a60b_9c625984aea0["__init__.py"] e4aa3147_33f1_d1a9_71fb_b8b10737c821 -->|defined in| 45c2c0a2_d209_0996_a60b_9c625984aea0 style e4aa3147_33f1_d1a9_71fb_b8b10737c821 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/llm_bash/__init__.py lines 1–10
def __getattr__(_: str = "") -> None:
"""Raise an error on import since is deprecated."""
msg = (
"This module has been moved to langchain-experimental. "
"For more details: https://github.com/langchain-ai/langchain/discussions/11352."
"To access this code, install it with `pip install langchain-experimental`."
"`from langchain_experimental.llm_bash.base "
"import LLMBashChain`"
)
raise AttributeError(msg)
Domain
Subdomains
Source
Frequently Asked Questions
What does __getattr__() do?
__getattr__() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/llm_bash/__init__.py.
Where is __getattr__() defined?
__getattr__() is defined in libs/langchain/langchain_classic/chains/llm_bash/__init__.py at line 1.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free