AudioContent extension type

Audio provided to or from an LLM.

Only supported since version ProtocolVersion.v2025_03_26.

on
Implemented types

Constructors

AudioContent.new({required String data, required String mimeType, Annotations? annotations})
factory
AudioContent.fromMap(Map<String, Object?> _value)

Properties

annotations Annotations?
Annotations for this object.
no setterinherited
data String
The base64 encoded audio data.
no setter
isAudio bool
Whether or not this is an AudioContent.
no setterinherited
isEmbeddedResource bool
Whether or not this is an EmbeddedResource.
no setterinherited
isImage bool
Whether or not this is an ImageContent.
no setterinherited
isText bool
Whether or not this is a TextContent.
no setterinherited
mimeType String
The MIME type of the audio.
no setter
type String
The type of content.
no setteroverride

Constants

expectedType → const String