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.
- Inheritance
-
- Object
- ProtoMessage
- Message
Constructors
- Message({String author = '', required String content, CitationMetadata? citationMetadata})
- Message.fromJson(Object? j)
-
factory
Properties
-
Optional. The author of this Message.
final
- citationMetadata → CitationMetadata?
-
Output only. Citation information for model-generated
contentin thisMessage.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.Durationorgoogle.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 -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String