Home / Function/ dict() — langchain Function Reference

dict() — langchain Function Reference

Architecture documentation for the dict() function in agent.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f53d8b5e_d30a_de4d_2e3d_9cc35a4960ef["dict()"]
  0d209def_9564_c52d_db1c_fc156804d62d["LLMSingleActionAgent"]
  f53d8b5e_d30a_de4d_2e3d_9cc35a4960ef -->|defined in| 0d209def_9564_c52d_db1c_fc156804d62d
  4c9c9d79_8072_45ff_5de8_57ab9fd0b1c1["dict()"]
  4c9c9d79_8072_45ff_5de8_57ab9fd0b1c1 -->|calls| f53d8b5e_d30a_de4d_2e3d_9cc35a4960ef
  7e22a32a_d4cd_934d_79bf_5d7579310aae["dict()"]
  f53d8b5e_d30a_de4d_2e3d_9cc35a4960ef -->|calls| 7e22a32a_d4cd_934d_79bf_5d7579310aae
  style f53d8b5e_d30a_de4d_2e3d_9cc35a4960ef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/agent.py lines 635–639

    def dict(self, **kwargs: Any) -> builtins.dict:
        """Return dictionary representation of agent."""
        _dict = super().dict()
        del _dict["output_parser"]
        return _dict

Subdomains

Calls

Called By

Frequently Asked Questions

What does dict() do?
dict() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent.py.
Where is dict() defined?
dict() is defined in libs/langchain/langchain_classic/agents/agent.py at line 635.
What does dict() call?
dict() calls 1 function(s): dict.
What calls dict()?
dict() is called by 1 function(s): dict.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free