AiAgent class abstract

Contract implemented by runnable agents.

An agent is responsible for two things:

  1. Turning the current AiGoal into an AiPlan in plan.
  2. Turning accumulated run state into the final output in synthesize.

Agents should keep side effects in tools. That keeps tool authorization, tracing, and production safety checks centralized in the executor.

Constructors

AiAgent()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
Stable agent name used in runs and logs.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
plan(AiRunContext context) Future<AiPlan>
Produces an execution plan for the current run context.
synthesize(AiRunContext context) Future<Map<String, dynamic>>
Produces the final structured output after plan execution.
toString() String
A string representation of this object.
inherited

Operators

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