Skip to content

GuardrailContentFilter

Structure Class

GuardrailContentFilter dataclass

Bases: _SerdeShape

Details of the content filter used in the Guardrail.

Attributes

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

The action placed on the content by the Guardrail filter.

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

The confidence level regarding the content detected in the filter by the Guardrail.

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

The type of content detected in the filter by the Guardrail.