Skip to content

Bedrock Runtime  >  Unions  >  DocumentContentBlock

DocumentContentBlock

Union Type

DocumentContentBlock module-attribute

DocumentContentBlock = Union[DocumentContentBlockText | DocumentContentBlockUnknown]

Contains the actual content of a document that can be processed by the model and potentially cited in the response.

Union Member Types

DocumentContentBlockText dataclass

The text content of the document.

Attributes

value instance-attribute
value: str

DocumentContentBlockUnknown 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