| Name | Type | Description |
|---|---|---|
schema | dict | type[BaseModel] | None | Default: NoneThe output schema as a Pydantic class, TypedDict, JSON Schema, or OpenAI function schema. |
method | Literal['function_calling', 'json_schema'] | Default: 'function_calling'The method for steering model generation. |
include_raw | bool | Default: False |
strict | bool | None | Default: None |
**kwargs | Any | Default: {} |
Model wrapper that returns outputs formatted to match the given schema.
If True then both the raw model response and the
parsed model response will be returned.
If True, model output is guaranteed to exactly match the
JSON Schema provided in the schema definition.
If None, the strict argument will not be passed to
the model.
Any additional parameters.