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.
Class Diagram
Section titled “Class Diagram”---
title: GuardrailError
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class GuardrailError {
+string reason
}
Yaml Example
Section titled “Yaml Example”reason: Content contains personally identifiable informationProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| reason | string | Explanation of why the guardrail denied the content |