NmAgentController class abstract

Contract between NmAgentPanel and the app's agent backend.

Apps implement it against their own runtime (or wrap an existing controller). All state is read from here; the panel only renders it.

Inheritance

Constructors

NmAgentController()

Properties

autonomy ↔ NmAgentAutonomy
How much the agent may do without asking.
getter/setter pair
busy → bool
Whether the agent is working.
no setter
error → Object?
Last error, if any.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
messages → List<NmAgentMessage>
Conversation so far (oldest first).
no setter
pendingApprovals → List<NmAgentApproval>
Actions waiting for approval.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
steps → List<NmAgentJobStep>
Steps of the current job.
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
approve(String approvalId) → Future<void>
Runs the pending action approvalId.
dispose() → void
Discards any resources used by the object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
reject(String approvalId) → Future<void>
Drops the pending action approvalId.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
send(String prompt) → Future<void>
Sends a user prompt.
toString() → String
A string representation of this object.
inherited

Operators

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