Skip to content

GuardrailError

Data carried by a GuardrailError — raised when an input or output guardrail denies content. The reason field explains the denial for logging, UI display, or programmatic handling.

---
title: GuardrailError
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class GuardrailError {
        +string reason
    }
reason: Content contains personally identifiable information
NameTypeDescription
reasonstringExplanation of why the guardrail denied the content