Structured output specifies how an AI response should be arranged and represented. A prompt can request bullet points, code snippets, or a defined data structure instead of leaving the response shape ambiguous. section 9.3.1
Use format specifications to make generated responses easier to direct:
- Name the required structure, such as bullet points, snippets, or a data structure. section 9.3.1
- Combine the format with clear instructions, relevant context, and concrete examples. section 9.3.1
- Apply the technique to generated code, documents, and technical documentation while recognizing that results are not guaranteed. section 9.3.1 section 9.0









