TextContent extension type
Text provided to or from an LLM.
Constructors
- TextContent.new({required String text, Annotations? annotations, Meta? meta})
-
factory
-
TextContent.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 - text → String
-
The text content.
no setter
- type → String
-
The type of content.
no setteroverride
Constants
- expectedType → const String