Home / Function/ get_output_schema() — langchain Function Reference

get_output_schema() — langchain Function Reference

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

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  38e57780_7b6f_748a_55bd_bddc272457df["get_output_schema()"]
  17599172_8889_afc6_2237_4429f3439071["RunnableParallel"]
  38e57780_7b6f_748a_55bd_bddc272457df -->|defined in| 17599172_8889_afc6_2237_4429f3439071
  dd68934b_b24b_922a_dfc2_d96ad2d88349["get_graph()"]
  dd68934b_b24b_922a_dfc2_d96ad2d88349 -->|calls| 38e57780_7b6f_748a_55bd_bddc272457df
  432a5d2e_5b75_7d42_3ab9_d76375f00ff9["get_name()"]
  38e57780_7b6f_748a_55bd_bddc272457df -->|calls| 432a5d2e_5b75_7d42_3ab9_d76375f00ff9
  255c479b_b9fa_44d8_4de5_2562051e06b5["get_name()"]
  38e57780_7b6f_748a_55bd_bddc272457df -->|calls| 255c479b_b9fa_44d8_4de5_2562051e06b5
  style 38e57780_7b6f_748a_55bd_bddc272457df fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/runnables/base.py lines 3758–3771

    def get_output_schema(
        self, config: RunnableConfig | None = None
    ) -> type[BaseModel]:
        """Get the output schema of the `Runnable`.

        Args:
            config: The config to use.

        Returns:
            The output schema of the `Runnable`.

        """
        fields = {k: (v.OutputType, ...) for k, v in self.steps__.items()}
        return create_model_v2(self.get_name("Output"), field_definitions=fields)

Domain

Subdomains

Called By

Frequently Asked Questions

What does get_output_schema() do?
get_output_schema() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/base.py.
Where is get_output_schema() defined?
get_output_schema() is defined in libs/core/langchain_core/runnables/base.py at line 3758.
What does get_output_schema() call?
get_output_schema() calls 2 function(s): get_name, get_name.
What calls get_output_schema()?
get_output_schema() is called by 1 function(s): get_graph.

Analyze Your Own Codebase

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

Try Supermodel Free