| Name | Type | Description |
|---|---|---|
schema* | Union[Dict, type] | The schema to use for the output. If a pydantic model is provided, it will be used as the output type. If a dict is provided, it will be used as the schema for the output. |
method | Literal['function_calling', 'json_mode', 'json_schema'] | Default: 'function_calling'The method to use for structured output. Can be "function_calling", "json_mode", or "json_schema". |
strict | Optional[bool] | Default: None |
include_raw | bool | Default: False |
kwargs | Any | Default: {} |
Model wrapper that returns outputs formatted to match the given schema.
Whether to enforce strict mode for "json_schema".
Whether to include the raw response from the model in the output.
Any additional parameters are passed directly to
self.with_structured_output(**kwargs).