Validate data already generated
JSON/object → checked contract or field errors
AGENTIC SYSTEMS GUIDE
Typed schemas and validation tools turn generated content into application data with an explicit contract.
JSON/object → checked contract or field errors
Source facts + schema → structured candidate output
A valid schema still needs evidence and operation authorization
Treat incoming fields as untrusted until validated.
Reject malformed serialization before evaluating the data contract.
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.
Check allowed values, cross-field constraints, and resource scope.
Handle validation failure explicitly rather than coercing an unsafe action.
Keep malformed, extra-field, and boundary-value examples in the test suite.
Result or stopping pointTyped 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.
Validate structure, then validate meaning. A well-formed response can still contain the wrong fact or an unauthorized action.
Validates structured data against typed Python models.
Python validation libraryOUTPUT & VALIDATIONDefines schemas and validates application data in TypeScript.
TypeScript schema libraryOUTPUT & VALIDATIONUses typed schemas to work with structured model outputs.
Structured-output libraryOUTPUT & VALIDATIONProvides constrained-generation tools for structured model outputs.
Structured-generation library