/

/

Structured Output

Structured Output

Structured Output

Structured output is a model response forced into a fixed format, such as JSON with named fields, so other software can read it without parsing free text.

Updated

Category

AI

Also known as

JSON mode; schema-constrained output; structured generation

Most agent plumbing depends on it: a tool call, a segment definition, or a product tag has to come back as data, not prose. Model providers can enforce the format at generation time, which removes a class of parsing failures but not wrong values inside a valid shape.

In practice

Validate the values as well as the shape. A valid JSON object with a discount of 90 percent passes the schema check and fails the business.

Something out of date?