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({required ResourceContents resource, Annotations? annotations, Meta? meta})
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
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?
no setter
resource → ResourceContents
Either TextResourceContents or BlobResourceContents.
no setter
type → String
The type of content.
no setter

Constants

expectedType → const String