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