plan method

  1. @override
Future<List<BaseAgentAction>> plan(
  1. AgentPlanInput input
)
override

Given the input and previous steps, returns the next action to take.

Returns either AgentAction specifying what tool to use or AgentFinish specifying the agent's final return value. The list should always have length 1.

Implementation

@override
Future<List<BaseAgentAction>> plan(final AgentPlanInput input) {
  return runnable.invoke(input);
}