What does “Structured Output” mean?
Model output constrained to a defined schema such as JSON, tool arguments, or typed fields.
How Structured Output Works
Structured Output comparing Free text ('The total is about 42 dollars, due Friday') with Structured ({ total: 42, currency: USD, due: Friday }).
Practical Example
An expense app asks the model to return a fixed set of fields: vendor, date, and amount. Because the reply follows a schema, the app can store it directly without guessing how to read a sentence.
Why It Matters
Reliable structure lets AI plug into software. It reduces parsing errors, though the values inside can still be wrong.
Common Questions About Structured Output
Q: How is it enforced?
By providing a schema and using model features or decoding constraints that limit output to it.
Q: Does it make values accurate?
No. It guarantees shape, not truth, so values still need validation.
Q: Structured output vs function calling?
Function calling is a way to return structured arguments to trigger actions. Both rely on schemas.