Skip to content

GuardrailContentBlock

Union Type

GuardrailContentBlock module-attribute

The content block to be evaluated by the guardrail.

Union Member Types

GuardrailContentBlockText dataclass

Bases: _SerdeShape

Text within content block to be evaluated by the guardrail.

Attributes

value instance-attribute

GuardrailContentBlockImage dataclass

Bases: _SerdeShape

Image within guardrail content block to be evaluated by the guardrail.

Attributes

value instance-attribute

GuardrailContentBlockUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str