Skip to main content

How to configure

  1. Open the agent in Agent Builder.
  2. In the Instructions section, use the model picker to choose a specific model that supports structured output.
  3. Click JSON response.
  4. Paste a valid JSON schema, then save.

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. All specific models currently offered in the model picker support structured output, except:
  • Mistral Small
  • Mistral Codestral
Auto models (Basic, Standard, and Premium) don’t support structured output. Pick a specific model to use it.