Get a Pydantic model that can be used to validate output to the Runnable.
Runnable objects that leverage the configurable_fields and
configurable_alternatives methods will have a dynamic output schema that
depends on which configuration the Runnable is invoked with.
This method allows to get an output schema for a specific configuration.
get_output_schema(
self,
config: RunnableConfig | None = None,
) -> type[BaseModel]| Name | Type | Description |
|---|---|---|
config | RunnableConfig | None | Default: NoneA config to use when generating the schema. |