Expand description
§Output Validation
Validates LLM responses against a JSON Schema for structured output support.
When a request specifies an output_schema, the scheduler validates the
final LLM response against this schema. On failure, it re-prompts the LLM
with the validation error, up to max_output_retries times.
Functions§
- validate_
output - Validate a JSON value against a JSON Schema.
- validate_
output_ str - Validate a JSON string against a JSON Schema.
- validation_
error_ prompt - Build a re-prompt message for a validation failure.