NmAgentTurn class
One turn of a conversation: the user's message and everything the agent did for it.
- Annotations
Constructors
-
NmAgentTurn({required String id, required String userText, required NmTurnStatus status, String? opening, List<
NmTurnStep> steps = const [], List<NmDecision> decisions = const [], String? finalText, List<NmTurnAction> actions = const [], String? failure}) -
Creates an NmAgentTurn.
const
Properties
-
actions
→ List<
NmTurnAction> -
Follow-up buttons.
final
-
decisions
→ List<
NmDecision> -
Offer / approval cards.
final
- failure → String?
-
Shown when status is failed.
final
- finalText → String?
-
The answer; replaces opening when present.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable id.
final
- opening → String?
-
The agent's first line («Разбираю. …» / «Принял. План:»).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → NmTurnStatus
-
Lifecycle state.
final
-
steps
→ List<
NmTurnStep> -
The step card.
final
- userText → String
-
What the user asked.
final
Methods
-
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