NmAgentConversationController class abstract

Contract between NmAgentConversationPanel and the app's agent backend: a conversation of turns.

All state is read from here; the panel only renders it and calls back.

Inheritance

Properties

autonomy ↔ NmAgentAutonomy
Autonomy mode.
getter/setter pair
busy → bool
Whether a turn is queued or running.
no setter
canSend → bool
When false the composer is read-only (e.g. a guest after the free messages); lockedHint replaces the hint.
no setter
error → Object?
Last error to show above the composer, if any.
no setter
hasEarlier → bool
Whether earlier turns can be loaded (loadEarlier).
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
lockedHint → String?
Composer hint while canSend is false.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
turns → List<NmAgentTurn>
Turns, oldest first.
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
cancel() → Future<void>
Stops the running turn.
dispose() → void
Discards any resources used by the object.
inherited
loadEarlier() → Future<void>
Loads earlier turns.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
respond(String decisionId, {required bool accept}) → Future<void>
Answers a decision card.
runAction(String actionId) → Future<void>
Runs a follow-up button.
send(String text, {bool fromChip = false}) → Future<void>
Sends a task / message; fromChip when it came from a suggestion.
toString() → String
A string representation of this object.
inherited

Operators

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