DocumentSource

Represents a sealed interface for different types of document sources. It defines a contract for how documents can be represented or accessed.

This API is internal and subject to change without notice.

Inheritors

Types

Link copied to clipboard
@SerialName(value = "base64")
data class Base64(val data: String, val mediaType: String) : DocumentSource

Represents a document source that encodes data using Base64 format.

Link copied to clipboard
@SerialName(value = "text")
data class PlainText(val data: String, val mediaType: String) : DocumentSource

Represents a plain text document source, containing the text data and its associated media type.

Link copied to clipboard
@SerialName(value = "url")
data class Url(val url: String) : DocumentSource

Represents a URL source for a document.