LanguageModelDataPart

A language model response part containing arbitrary data. Can be used in responses, chat messages, 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
external var data: Uint8Array<*>

The byte data for this part.

Link copied to clipboard
external var mimeType: String

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