Skip to content

Bedrock Runtime  >  Structures  >  GuardrailCustomWord

GuardrailCustomWord

Structure Class

GuardrailCustomWord dataclass

A custom word configured in a guardrail.

Attributes

action instance-attribute

The action for the custom word.

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

Indicates whether custom word content that breaches the guardrail configuration is detected.

match instance-attribute
match: str

The match for the custom word.