Lessons from structured outputs

Structured outputs are great — until they fail silently in interesting ways.

What works

Schema-constrained outputs eliminate most parsing headaches. Define the schema tightly and validate every response anyway.

Frequently asked questions

What bites

['Models sometimes satisfy the schema while violating intent — plausible-looking junk fields. Schema validation is necessary but not sufficient: add semantic checks for critical fields.']