AI Dojo Open on the typewriterThe typewriter

Explainer

Choose the answer shape

2 min read
Assumes: nothing.
First published 21 November 2026. Last edited 21 November 2026.

Decide the parts of the answer you will use, the values each may take and what a part says when the source has none.

Try it first: for a question you ask often, list the parts a useful answer needs. Illustration: a reply to a repair club visitor might have four parts (hours, item limit, entry and part price). The club's notices never give a part price, so that part needs an allowed value such as “not in the notices”. A form where every part must be filled invites an invented price; a filled-in part is not a supported one.

This plan is the output format, also called the response format or output contract. OpenAI's reasoning guide (checked 21 November 2026) says its reasoning-capable GPT-5 models work best with “an explicit output contract without prescribing every intermediate step”.

Structured output goes further: a feature of some apps and developer tools forces the reply into named fields, often JSON, a text format programs read. Google's Gemini guide lets you request simple JSON in the prompt but recommends its structured output “feature when specifying a more complex JSON Schema for the response”. Enforcement fixes the shape, not the truth: a valid field can still hold an invented value (see shape and correctness).

Going deeper

Whether asking for a format costs accuracy depends on model and date. In 2024, on GPT-3.5-turbo, Claude 3 Haiku, Gemini 1.5 Flash and Llama 3 8B, Tam et al. found “a significant decline in LLMs reasoning abilities under format restrictions”. In April 2026, testing ten models, Lee et al. found that recent models used only online showed “little to no format tax”, while downloadable ones lost accuracy, and that you can recover most of it if you “decouple reasoning from formatting”: free text first, then reformat.

In the long read: Can the answer say “unknown”?. Then try Would you ship this prompt?.