LanguageModelDataPart

A language model response part containing arbitrary data. Can be used in responses, chat messages}, {@link LanguageModelToolResult tool results, and other language model interactions.

Online Documentation

Constructors

Link copied to clipboard
constructor(data: Uint8Array<*>, mimeType: String)

Construct a generic data part with the given content.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The byte data for this part.

Link copied to clipboard

The mime type which determines how the data property is interpreted.