Message class

Implementers

Constructors

Message({String? id, required MessageType type, required String content})
const
Message.assistant(String content)
factory
Message.toolCall(String content)
factory
Message.toolResult(String? id, String content)
factory
Message.user(String content)
factory

Properties

content → String
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → MessageType
final

Methods

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 ==(Object other) → bool
The equality operator.
inherited