Skip to content

Bedrock Runtime  >  Structures  >  GuardrailTextBlock

GuardrailTextBlock

Structure Class

GuardrailTextBlock dataclass

The text block to be evaluated by the guardrail.

Attributes

qualifiers class-attribute instance-attribute
qualifiers: list[GuardrailContentQualifier] | None = None

The qualifiers describing the text block.

text instance-attribute
text: str

The input text details to be evaluated by the guardrail.