HumanChatMessage class

Type of message that is spoken by the human.

Inheritance
Annotations
  • @immutable

Constructors

HumanChatMessage({required ChatMessageContent content})
Type of message that is spoken by the human.
const

Properties

content ChatMessageContent
The content of the message.
final
contentAsString String
Returns to content of the message as a string.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

concat(ChatMessage other) HumanChatMessage
Merges this message with another by concatenating the content.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(covariant HumanChatMessage other) bool
The equality operator.
override

Constants

defaultPrefix → const String
Default prefix for HumanChatMessage.