AgentMessage class final

One message between two agents.

Constructors

AgentMessage({required String id, required String fromId, required String toId, required String text, required String sentAt, int hops = 0, AgentMessageKind kind = AgentMessageKind.agent})
const
AgentMessage.fromJson(Map<String, dynamic> json)
factory

Properties

fromId → String
Sender agent id (main, a subagent handle id, …).
final
hashCode → int
The hash code for this object.
no setterinherited
hops → int
Remaining relay budget (0 refuses further relaying).
final
id → String
Unique message id (assigned by the repository at send time).
final
kind → AgentMessageKind
What the recipient should do with it: agent-to-agent chat, or user input handed over by an attached client (the Fa app's attach view).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sentAt → String
ISO 8601 send timestamp (UTC).
final
text → String
Message body.
final
toId → String
Recipient agent id.
final

Methods

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

Operators

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