Skip to content

Bedrock Agent Runtime  >  Structures  >  ByteContentDoc

ByteContentDoc

Structure Class

ByteContentDoc dataclass

This property contains the document to chat with, along with its attributes.

Attributes

content_type instance-attribute
content_type: str

The MIME type of the document contained in the wrapper object.

data class-attribute instance-attribute
data: bytes = field(repr=False)

The byte value of the file to upload, encoded as a Base-64 string.

identifier class-attribute instance-attribute
identifier: str = field(repr=False)

The file name of the document contained in the wrapper object.