AgentAtom class

Inheritance

Constructors

AgentAtom(KernelApp _app, {BundleSessionBridge? bridge, DispatchSession? session})

Properties

bridge → BundleSessionBridge?
Optional bridge. When present (with a non-null session) every agent dispatch runs inside bridge.runScoped(session, ...) so the agent id scope follows the active bundle's namespace.
final
hashCode int
The hash code for this object.
no setterinherited
key String
Atom key — the namespace under host.*. Stable identifier the manifest uses in requires.builtinAtoms.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session → DispatchSession?
final
verbs List<AtomVerb>
Verbs exposed to JS. The bridge installs one JS function per verb on host.<key>. Empty list = no methods (the atom registers but JS calls always fail).
no setteroverride

Methods

dispatch(String verb, List<Object?> args) Future<Object?>
Dispatch a verb invocation. Returns any JSON-serialisable value (or a Future thereof) — the bridge JSON-encodes and hands back to the JS Promise. Throw to reject the promise.
override
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