Message class final

The base unit of structured text.

A Message includes an author and the content of the Message.

The author is used to tag messages when they are fed to the model as text.

Constructors

Message({String author = '', required String content, CitationMetadata? citationMetadata})
Message.fromJson(Object? j)
factory

Properties

author → String
Optional. The author of this Message.
final
citationMetadata → CitationMetadata?
Output only. Citation information for model-generated content in this Message.
final
content → String
Required. The text content of the structured Message.
final
hashCode → int
The hash code for this object.
no setterinherited
qualifiedName → String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Object
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String