PlainText

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

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

Constructors

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

Properties

Link copied to clipboard

The plain text content of the document.

Link copied to clipboard

The media type of the document, typically indicating the format or type of text content.