Skip to content

GuardrailContentFilter

Structure Class

GuardrailContentFilter dataclass

Bases: _SerdeShape

The content filter for a guardrail.

Attributes

action instance-attribute
action: str

The guardrail action.

confidence instance-attribute
confidence: str

The guardrail confidence.

detected class-attribute instance-attribute
detected: bool | None = ...

Indicates whether content that breaches the guardrail configuration is detected.

filter_strength class-attribute instance-attribute
filter_strength: str | None = ...

The filter strength setting for the guardrail content filter.

type instance-attribute
type: str

The guardrail type.