Expand description
JSON Schema validation for structured agent outputs.
Constants§
- STRUCTURED_
OUTPUT_ MAX_ RETRIES - Max corrective re-samples when structured output fails validation.
Functions§
- compile_
schema - Compile a JSON Schema once per turn (or once per agent definition).
- schema_
retry_ reminder - Build a corrective user reminder after a schema failure.
- validate_
structured_ output - Parse model text as JSON and validate against a compiled schema.