Home / Function/ __getattr__() — langchain Function Reference

__getattr__() — langchain Function Reference

Architecture documentation for the __getattr__() function in __init__.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  5265833f_f6a3_187d_e7dd_5c662d159686["__getattr__()"]
  8423da33_d3de_5825_6f81_4ba05f7817ca["__init__.py"]
  5265833f_f6a3_187d_e7dd_5c662d159686 -->|defined in| 8423da33_d3de_5825_6f81_4ba05f7817ca
  style 5265833f_f6a3_187d_e7dd_5c662d159686 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/llm_symbolic_math/__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_symbolic_math.base "
        "import LLMSymbolicMathChain`"
    )
    raise AttributeError(msg)

Subdomains

Frequently Asked Questions

What does __getattr__() do?
__getattr__() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/llm_symbolic_math/__init__.py.
Where is __getattr__() defined?
__getattr__() is defined in libs/langchain/langchain_classic/chains/llm_symbolic_math/__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