AgentGoal class
The top-level objective the agent is working toward.
A goal has an id, a plain-text description, an optional successCriteria list used by the loop to decide when the goal is complete, and a priority (0.0 = lowest, 1.0 = most urgent).
Constructors
Properties
- completionReason ↔ String?
-
Optional human-readable reason the goal was considered done.
getter/setter pair
- createdAt → DateTime
-
When this goal was created.
final
- description → String
-
Natural-language description of what the agent should accomplish.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier.
final
- isComplete ↔ bool
-
Whether this goal was explicitly marked complete.
getter/setter pair
- maxIterations → int
-
Hard cap on the number of agent-loop iterations for this goal.
final
-
metadata
→ Map<
String, dynamic> -
Arbitrary metadata (caller context, tags, etc.).
final
- priority → double
-
How urgent this goal is (0.0 – 1.0).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
successCriteria
→ List<
String> -
Declarative list of conditions that signal the goal is complete.
final
Methods
-
copyWith(
{double? priority, bool? isComplete, String? completionReason}) → AgentGoal -
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