Home / Function/ from_response_schemas() — langchain Function Reference

from_response_schemas() — langchain Function Reference

Architecture documentation for the from_response_schemas() function in structured.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  aa3597db_802e_6a26_3f4c_43a29d1c41c7["from_response_schemas()"]
  978d47b2_462d_e3f1_a915_43e804fd6b61["StructuredOutputParser"]
  aa3597db_802e_6a26_3f4c_43a29d1c41c7 -->|defined in| 978d47b2_462d_e3f1_a915_43e804fd6b61
  fdc0557a_7650_ed36_a9a7_54a74bd977a2["get_format_instructions()"]
  fdc0557a_7650_ed36_a9a7_54a74bd977a2 -->|calls| aa3597db_802e_6a26_3f4c_43a29d1c41c7
  style aa3597db_802e_6a26_3f4c_43a29d1c41c7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/output_parsers/structured.py lines 44–56

    def from_response_schemas(
        cls,
        response_schemas: list[ResponseSchema],
    ) -> StructuredOutputParser:
        """Create a StructuredOutputParser from a list of ResponseSchema.

        Args:
            response_schemas: The schemas for the response.

        Returns:
            An instance of StructuredOutputParser.
        """
        return cls(response_schemas=response_schemas)

Domain

Frequently Asked Questions

What does from_response_schemas() do?
from_response_schemas() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/output_parsers/structured.py.
Where is from_response_schemas() defined?
from_response_schemas() is defined in libs/langchain/langchain_classic/output_parsers/structured.py at line 44.
What calls from_response_schemas()?
from_response_schemas() is called by 1 function(s): get_format_instructions.

Analyze Your Own Codebase

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

Try Supermodel Free