Home / Function/ _type() — langchain Function Reference

_type() — langchain Function Reference

Architecture documentation for the _type() function in json.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  70a868c9_96d3_eb15_ada0_730fd03e2f41["_type()"]
  e8fcdf66_eb2a_8e8f_0f9a_ab9103e6b8c9["JSONAgentOutputParser"]
  70a868c9_96d3_eb15_ada0_730fd03e2f41 -->|defined in| e8fcdf66_eb2a_8e8f_0f9a_ab9103e6b8c9
  ab62e2c3_dc16_6f20_797f_22b34498eb08["_type()"]
  ab62e2c3_dc16_6f20_797f_22b34498eb08 -->|calls| 70a868c9_96d3_eb15_ada0_730fd03e2f41
  b9d0bae1_e992_b07e_498f_e80eb6e1a6a4["_type()"]
  b9d0bae1_e992_b07e_498f_e80eb6e1a6a4 -->|calls| 70a868c9_96d3_eb15_ada0_730fd03e2f41
  f8552938_9887_245b_bf15_58580d53b3e2["_type()"]
  f8552938_9887_245b_bf15_58580d53b3e2 -->|calls| 70a868c9_96d3_eb15_ada0_730fd03e2f41
  style 70a868c9_96d3_eb15_ada0_730fd03e2f41 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/output_parsers/json.py lines 56–57

    def _type(self) -> str:
        return "json-agent"

Subdomains

Frequently Asked Questions

What does _type() do?
_type() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/output_parsers/json.py.
Where is _type() defined?
_type() is defined in libs/langchain/langchain_classic/agents/output_parsers/json.py at line 56.
What calls _type()?
_type() is called by 3 function(s): _type, _type, _type.

Analyze Your Own Codebase

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

Try Supermodel Free