Structured outputs
Get data back in a shape your code can trust.
- Why free text breaks your app
- Describe the shape with Zod
- Make the model fill your shape
- When it's still wrong: retry with the error
- Other tools, briefly
Get data back in a shape your code can trust.