Skip to content

RetrievalContent

Structure Class

RetrievalContent dataclass

Bases: _SerdeShape

The content retrieved from a knowledge source.

Attributes

byte_content class-attribute instance-attribute
byte_content: bytes | None = ...

The binary content of the retrieved item.

mime_type instance-attribute
mime_type: str

The MIME type of the retrieved content.

text class-attribute instance-attribute
text: str | None = ...

The text content of the retrieved item.