GeezerVison is showing adk.dev — BasePlanner | ADK for TypeScript: API Reference - v2.5.0
Class BasePlannerAbstract
Abstract base class for all planners.
The planner allows the agent to generate plans for the queries to guide its
action.
Constructors
constructor
-
new BasePlanner(): BasePlanner
Returns BasePlanner
Properties
Readonly[BASE_PLANNER_SIGNATURE_SYMBOL]
"[BASE_PLANNER_SIGNATURE_SYMBOL]": true
A unique symbol to identify ADK base planner class.
Methods
AbstractbuildPlanningInstruction
-
Builds the system instruction to be appended to the LLM request for
planning.
Returns string | undefined
The planning system instruction, or undefined if no instruction is
needed.
AbstractprocessPlanningResponse
-
processPlanningResponse( callbackContext: Context, responseParts: Part[],): Part[] | undefined
Processes the LLM response for planning.
Parameters
- callbackContext: Context
The callback context of the invocation.
- responseParts: Part[]
The LLM response parts. Readonly.
Returns Part[] | undefined
The processed response parts, or undefined if no processing is
needed.
Constructors
Properties
Methods