Set up structured output
1
Open the agent
Open the agent in the Agent Builder.
2
Pick a specific model
In the Instructions section, open the model picker and click More models to choose a specific model that supports structured output. Auto models donβt support it.
3
Add the schema
Click JSON response. In Structured response format, paste a valid JSON schema and click Save, then save the agent.
Schema format
The schema must follow this structure:JSON format
Example
A schema to extract city information:structured output format example
Supported models
Not all models support structured output. The JSON response button is only enabled when the agent uses a specific model that supports it. Auto models (Basic, Standard, and Premium) donβt support structured output, so pick a specific model to use it.Related
Auto models and the model picker
Choose the model your agent uses.
Create your first agent
Build an agent step by step in the Agent Builder.