AGENTIC SYSTEMS GUIDE
Output & validation for AI agents
Typed schemas and validation tools turn generated content into application data with an explicit contract.
Validate structure, then validate meaning. A well-formed response can still contain the wrong fact or an unauthorized action.
OUTPUT & VALIDATION
Explore all tool categoriesPydantic
Validates structured data against typed Python models.
Python validation libraryOUTPUT & VALIDATIONZod
Defines schemas and validates application data in TypeScript.
TypeScript schema libraryOUTPUT & VALIDATIONInstructor
Uses typed schemas to work with structured model outputs.
Structured-output libraryOUTPUT & VALIDATIONOutlines
Provides constrained-generation tools for structured model outputs.
Structured-generation library