Skip to content

Bedrock Runtime  >  Unions  >  GuardrailConverseContentBlock

GuardrailConverseContentBlock

Union Type

GuardrailConverseContentBlock module-attribute

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

Union Member Types

GuardrailConverseContentBlockText dataclass

The text to guard.

Attributes

value instance-attribute

GuardrailConverseContentBlockImage dataclass

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

Attributes

value instance-attribute

GuardrailConverseContentBlockUnknown dataclass

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