Skip to content

Bedrock Agent Runtime  >  Structures  >  ByteContentFile

ByteContentFile

Structure Class

ByteContentFile dataclass

The property contains the file to chat with, along with its attributes.

Attributes

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

The raw bytes of the file to attach. The maximum size of all files that is attached is 10MB. You can attach a maximum of 5 files.

media_type instance-attribute
media_type: str

The MIME type of data contained in the file used for chat.