GuardrailContentFilter¶
Structure Class¶
GuardrailContentFilter
dataclass
¶
The content filter for a guardrail.
Attributes¶
confidence
instance-attribute
¶
confidence: GuardrailContentFilterConfidence
The guardrail confidence.
detected
class-attribute
instance-attribute
¶
detected: bool | None = None
Indicates whether content that breaches the guardrail configuration is detected.
filter_strength
class-attribute
instance-attribute
¶
filter_strength: GuardrailContentFilterStrength | None = None
The filter strength setting for the guardrail content filter.