AudioContent extension type

Audio provided to or from an LLM.

Only supported since version ProtocolVersion.v2025_03_26.

on
Implemented types

Constructors

AudioContent({required String data, required String mimeType, Annotations? annotations, Meta? meta})
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
meta → Meta?
The _meta property/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions.
no setterinherited
mimeType → String
The MIME type of the audio.
no setter
type → String
The type of content.
no setter

Constants

expectedType → const String