A2aMailGateway class
Delivers fabric mail across machines through the configured A2A servers.
Constructors
- A2aMailGateway({required A2aManager manager, String? machineName})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- machineName → String?
-
This host's machine name; when known, outbound envelopes stamp it onto
the sender address so the recipient can reply across the boundary.
final
- manager → A2aManager
-
The session-scoped A2A manager (the
a2a:config section).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deliver(
AgentMessage message) → Future< void> -
Delivers
message(addressedname@machine) to the remote machine. Throws StateError for a malformed address, an unconfigured machine (with the config hint), or a failed remote task (A2aException with the remote error text) — never a silent dead drop. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
accept(
A2aMailEnvelope envelope, {required MessagingRepository fabric}) → Future< String> -
Deposits
envelopeinto the local fabric: resolves the addressed mailbox (exact id, session display name, orname/main) and sends. Returns the ack for the A2A task artifact; throws StateError when no local mailbox matches.