plan method
Produces an execution plan for the current run context.
Use context.goal for the submitted task and context.metadata for
request-level data. Return tool steps when the agent needs controlled side
effects.
Implementation
@override
Future<AiPlan> plan(AiRunContext context) async {
return AiPlan(
steps: [
AiPlanStep(
id: 'capture_goal',
type: 'state',
description: 'Capture the incoming goal as run state.',
arguments: {
'task': context.goal.task,
'input': context.goal.input,
},
),
],
);
}