Overview
Structured outputs allow you to write deterministic code based on the agent’s output. To activate structured outputs, set theresponse_model
field by passing either a Pydantic Model or a JSON schema.
Learn how to use structured outputs
response_model
field by passing either a Pydantic Model or a JSON schema.