Output format and structured answers
A section of the "Prompting and context" topic. The questions check an understanding of practice, not memory of specific library APIs. After each answer comes a review: why the correct option is right, what is wrong with each incorrect one and which chapter to read.
Quiz difficulty Formats: several correct options, one correct option, pairs
Quiz 1.7Output format and structured answersStart practice Practice has no timer and a review after every answer.
01
What we check
- Ways to get structured output
- Early stopping and JSON
- The output format in the prompt
- YAML instead of JSON
- The harness enforces the contract
- Model confidence from logprobs
02
Where to read
- Huyen, AI Engineeringch. 2 · ch. 4 · ch. 5
- Agents and Vibe Codingch. 24