Base64

@SerialName(value = "base64")
data class Base64(val data: String, val mediaType: String) : DocumentSource(source)

Represents a document source that encodes data using Base64 format.

This class provides a way to specify document content as a Base64-encoded string along with its associated media type for describing the content type.

Constructors

Link copied to clipboard
constructor(data: String, mediaType: String)

Properties

Link copied to clipboard

The Base64-encoded string representing the document content.

Link copied to clipboard

A string indicating the media type (MIME type) of the encoded document.