A message in a conversation context.
Ported from pi's Message union (UserMessage | AssistantMessage | ToolResultMessage). An abstract interface rather than a sealed class
because AssistantMessage predates this interface in this library and
sealed subtypes must share a library.
- Implementers
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes to a JSON map with a
rolediscriminator (pi shape). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited