Every agent pipeline dies at the same place: the model returns something that looks like JSON and is not quite JSON. A trailing comma, a field renamed between runs, an enum value that came back in title case, or an object that quietly omitted the one key your code dereferences. The fix used to be a stern prompt and a retry loop. In 2026 all three major vendors ship constrained decoding instead: you hand over a JSON Schema, and the sampler is not allowed to emit tokens that break it. OpenAI calls it Structured Outputs and gates it behind strict: true . Claude takes the schema in output_config.format . Gemini takes it in response_format next to mime_type: application/json . Those three sentences hide different contracts: optional fields, enforced versus dropped constraints, what a refusal looks like, and the size at which the API stops accepting your schema. Everything below comes from each vendor's own documentation, read on November 28, 2026. Three contracts for the same promi...
Practical reviews, comparisons, and step-by-step guides on AI tools and productivity workflows.