Ask a question to get started
Enter to send•Shift+Enter new line
Use the model provider's native structured output method.
ProviderStrategy( self, schema: type[SchemaT] | dict[str, Any], *, strict: bool | None = None )
Generic[SchemaT]
schema
type[SchemaT] | dict[str, Any]
Schema to enforce via the provider's native structured output.
strict
bool | None
None
Whether to request strict provider-side schema enforcement.
Schema for native mode.
Schema spec for native mode.
Convert to kwargs to bind to a model to force structured output.