Structured output and validation
medium 6 minA structured response passes through several gates.
Trace the example
Follow the evidence through each stage, then test a change in the case.
A valid refund object can still be wrong
Generator
amount = 42 · USD
The model returns an object in the requested shape. Syntax is only the first boundary.