Skip to content

DocumentSourceDict

Union Type

DocumentSourceDict module-attribute

Dictionary form of DocumentSource, setting exactly one variant.

Union Member Types

DocumentSourceBytesDict

Bases: TypedDict

Attributes

bytes_ instance-attribute
bytes_: bytes

The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.

DocumentSourceS3LocationDict

Bases: TypedDict

Attributes

s3_location instance-attribute
s3_location: S3Location | S3LocationDict

The location of a document object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.

DocumentSourceTextDict

Bases: TypedDict

Attributes

text instance-attribute
text: str

The text content of the document source.

DocumentSourceContentDict

Bases: TypedDict

Attributes

content instance-attribute

The structured content of the document source, which may include various content blocks such as text, images, or other document elements.