Skip to content
AgenticAIWiki

← Chapter 14. Structured output

Validate, retry with the error, pass

JSONMessy email"invoice of 3rd April, 410 total"JSON schemainvoice_date: YYYY-MM-DDModelextracts fieldsValidatorschema + business rulesjson

Swipe to change step

Step 1 of 7. A messy email and a JSON schema go to the model. The schema is the contract: field names, types, and the date format YYYY-MM-DD. Messy email ("invoice of 3rd April, 410 total"). JSON schema (invoice_date: YYYY-MM-DD), highlighted. Model (extracts fields). Validator (schema + business rules). arrow from Messy email to Model. arrow from JSON schema to Model. arrow from Model to Validator, labelled JSON. a email moving along e1.

Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.