Skip to content

Bedrock Agent Runtime  >  Unions  >  ContentBlock

ContentBlock

Union Type

ContentBlock module-attribute

ContentBlock = Union[ContentBlockText | ContentBlockUnknown]

A content block.

Union Member Types

ContentBlockText dataclass

The block's text.

Attributes

value instance-attribute
value: str

ContentBlockUnknown 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