EmbeddedResource extension type

The contents of a resource, embedded into a prompt or tool call result.

It is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.

on
Implemented types

Constructors

EmbeddedResource.new({required Content resource, Annotations? annotations})
factory
EmbeddedResource.fromMap(Map<String, Object?> _value)

Properties

annotations Annotations?
Annotations for this object.
no setterinherited
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?
no setter
resource ResourceContents
Either TextResourceContents or BlobResourceContents.
no setter
type String
The type of content.
no setteroverride

Constants

expectedType → const String