Skip to content

GuardrailConverseContentBlock

Union Type

GuardrailConverseContentBlock module-attribute

A content block for selective guarding with the Converse or ConverseStream API operations.

Union Member Types

GuardrailConverseContentBlockText dataclass

Bases: _SerdeShape

The text to guard.

Attributes

value instance-attribute

GuardrailConverseContentBlockImage dataclass

Bases: _SerdeShape

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

Attributes

value instance-attribute

GuardrailConverseContentBlockUnknown 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