Home / Function/ _get_default_output_parser() — langchain Function Reference

_get_default_output_parser() — langchain Function Reference

Architecture documentation for the _get_default_output_parser() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  143eedef_b811_5bf1_add4_e6850394fc76["_get_default_output_parser()"]
  5a1abcb7_8fb7_225b_061e_00eff67795db["StructuredChatAgent"]
  143eedef_b811_5bf1_add4_e6850394fc76 -->|defined in| 5a1abcb7_8fb7_225b_061e_00eff67795db
  8bb74a99_0c88_ed39_398b_2f6f455b302d["from_llm_and_tools()"]
  8bb74a99_0c88_ed39_398b_2f6f455b302d -->|calls| 143eedef_b811_5bf1_add4_e6850394fc76
  style 143eedef_b811_5bf1_add4_e6850394fc76 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/structured_chat/base.py lines 79–84

    def _get_default_output_parser(
        cls,
        llm: BaseLanguageModel | None = None,
        **kwargs: Any,
    ) -> AgentOutputParser:
        return StructuredChatOutputParserWithRetries.from_llm(llm=llm)

Subdomains

Frequently Asked Questions

What does _get_default_output_parser() do?
_get_default_output_parser() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/structured_chat/base.py.
Where is _get_default_output_parser() defined?
_get_default_output_parser() is defined in libs/langchain/langchain_classic/agents/structured_chat/base.py at line 79.
What calls _get_default_output_parser()?
_get_default_output_parser() is called by 1 function(s): from_llm_and_tools.

Analyze Your Own Codebase

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

Try Supermodel Free