GuardrailErrorPolicy
What to do when a guardrail throws or exceeds its timeout.
type GuardrailErrorPolicy = "passthrough" | "block";
Defined in: src/core/types/guardrails.ts:198
What to do when a guardrail throws or exceeds its timeout.
Remarks
'passthrough'— fail open: log, skip the guardrail, keep the text.'block'— fail closed: suppress the text. Choose this when speaking unfiltered output is worse than speaking nothing.