Skip to content

Bedrock Runtime  >  Structures  >  GuardrailContentFilter

GuardrailContentFilter

Structure Class

GuardrailContentFilter dataclass

The content filter for a guardrail.

Attributes

action instance-attribute

The guardrail action.

confidence instance-attribute

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.

type instance-attribute

The guardrail type.