Class SequentialPlanner
java.lang.Object
com.google.adk.planner.SequentialPlanner
- All Implemented Interfaces:
Planner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<PlannerAction> firstAction(PlanningContext context) Select the first action to execute.voidinit(PlanningContext context) Initialize the planner with context and available agents.io.reactivex.rxjava3.core.Single<PlannerAction> nextAction(PlanningContext context) Select the next action based on updated state and events.
-
Constructor Details
-
SequentialPlanner
public SequentialPlanner()
-
-
Method Details
-
init
Description copied from interface:PlannerInitialize the planner with context and available agents. Called once before the planning loop starts.Default implementation is a no-op. Override to perform setup like building dependency graphs.
-
firstAction
Description copied from interface:PlannerSelect the first action to execute.- Specified by:
firstActionin interfacePlanner
-
nextAction
Description copied from interface:PlannerSelect the next action based on updated state and events.- Specified by:
nextActionin interfacePlanner
-