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
  8921be96_9d38_54f4_d572_0bc8f4e4559d["dict()"]
  da24d66e_6dad_d8e1_dddc_7885d3e6576f["BaseMultiActionAgent"]
  8921be96_9d38_54f4_d572_0bc8f4e4559d -->|defined in| da24d66e_6dad_d8e1_dddc_7885d3e6576f
  257c3f1d_0639_2e4e_fd2a_a566e69f1c1d["save()"]
  257c3f1d_0639_2e4e_fd2a_a566e69f1c1d -->|calls| 8921be96_9d38_54f4_d572_0bc8f4e4559d
  7e22a32a_d4cd_934d_79bf_5d7579310aae["dict()"]
  7e22a32a_d4cd_934d_79bf_5d7579310aae -->|calls| 8921be96_9d38_54f4_d572_0bc8f4e4559d
  7e22a32a_d4cd_934d_79bf_5d7579310aae["dict()"]
  8921be96_9d38_54f4_d572_0bc8f4e4559d -->|calls| 7e22a32a_d4cd_934d_79bf_5d7579310aae
  style 8921be96_9d38_54f4_d572_0bc8f4e4559d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/agent.py lines 311–316

    def dict(self, **kwargs: Any) -> builtins.dict:
        """Return dictionary representation of agent."""
        _dict = super().model_dump()
        with contextlib.suppress(NotImplementedError):
            _dict["_type"] = str(self._agent_type)
        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 311.
What does dict() call?
dict() calls 1 function(s): dict.
What calls dict()?
dict() is called by 2 function(s): dict, save.

Analyze Your Own Codebase

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

Try Supermodel Free