AiAgent class abstract
Contract implemented by runnable agents.
An agent is responsible for two things:
- Turning the current AiGoal into an AiPlan in plan.
- 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
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