OutputGuardConfig
Configuration for guard.output().
Properties
Section titled “Properties”onBlock?
Section titled “onBlock?”
optionalonBlock?:"error"|"replace"
What to do when the validator blocks a response (ok: false).
"replace"(default): strip tool calls, return reason as text"error": throwOutputGuardrailError
validate
Section titled “validate”validate:
OutputValidator
Validation function.