AgentTask class
A single concrete step produced by the PlanningEngine.
Tasks form a DAG: each task may depend on zero or more previous tasks (identified by dependsOnIds). The PlanningEngine ensures tasks are only started when all their dependencies have TaskStatus.succeeded.
Constructors
Properties
- createdAt → DateTime
-
When this task was created.
final
-
dependsOnIds
→ List<
String> -
IDs of tasks that must succeed before this one can start.
final
- description → String
-
What needs to be done in plain English.
final
- duration → Duration?
-
Wall-clock duration of the last execution attempt.
no setter
- estimatedComplexity → double
-
0.0 = trivial, 1.0 = highly complex.
final
- finishedAt ↔ DateTime?
-
When execution finished (success or failure).
getter/setter pair
- goalId → String
-
The parent goal this task belongs to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier (stable across re-plans).
final
-
inputContext
→ Map<
String, dynamic> -
Input data provided to the task executor (merged into LLM context).
final
- result ↔ TaskResult?
-
The result produced by executing this task (may be null if not yet run).
getter/setter pair
- retryCount ↔ int
-
How many times this task has been retried.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startedAt ↔ DateTime?
-
When execution started.
getter/setter pair
- status ↔ TaskStatus
-
Current execution status.
getter/setter pair
- toolHint → String?
-
Optional hint to the tool router about which tool to use.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited