Interface PlannerAction
- All Known Implementing Classes:
PlannerAction.Done, PlannerAction.DoneWithResult, PlannerAction.NoOp, PlannerAction.RunAgents
public sealed interface PlannerAction
permits PlannerAction.RunAgents, PlannerAction.Done, PlannerAction.DoneWithResult, PlannerAction.NoOp
Represents the next action a
Planner wants the PlannerAgent to take.
This is a sealed interface with four variants:
PlannerAction.RunAgents— execute one or more sub-agents (multiple agents run in parallel)PlannerAction.Done— planning is complete, no result to emitPlannerAction.DoneWithResult— planning is complete with a final text resultPlannerAction.NoOp— skip this iteration (no-op), then ask the planner for the next action
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordPlan is complete, no result to emit.static final recordPlan is complete with a final text result.static final recordSkip this iteration (no-op).static final recordRun the specified sub-agent(s).