Basic Usage
JSON Schema
We use standard JSON Schema:Registering Agent Schemas
Schema from Example
Generate schema from example data:Handling Validation Errors
Partial Validation
Sometimes you want to validate incrementally:Best Practices
Define schemas upfront
Define schemas upfront
Before building agents, define what they should output.
Use required fields
Use required fields
Don’t assume optional fields will be present.
Validate early
Validate early
Check outputs immediately after agent runs, not later.
Include error context
Include error context
When validation fails, include what was expected vs received.