Skip to main content

Overview

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