Skip to content

GuardrailTextBlock

Structure Class

GuardrailTextBlock dataclass

Bases: _SerdeShape

The text block to be evaluated by the guardrail.

Attributes

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

The qualifiers describing the text block.

text instance-attribute
text: str

The input text details to be evaluated by the guardrail.