Skip to content

OutputValidator

OutputValidator = (response, ctx) => Promise<OutputValidationResult> | OutputValidationResult

Output validator function signature. Receives the model response and context.

ModelResponse

ModelContext

Promise<OutputValidationResult> | OutputValidationResult