Structured Outputs for Agents

Free-form text is ideal for human communication but fragile for software control flow. Use typed outputs whenever the next step is code.

Good uses

Validate before acting

A successful model response still needs schema validation and domain checks. A syntactically valid amount of -500 may still be invalid business input.