GeezerVison is showing adk.dev — BuiltInPlanner | ADK for TypeScript: API Reference - v2.5.0
The built-in planner that uses model's built-in thinking features.
Constructors
constructor
-
new BuiltInPlanner(options: { thinkingConfig: ThinkingConfig }): BuiltInPlanner
Initializes the built-in planner.
Parameters
- options: { thinkingConfig: ThinkingConfig }
-
thinkingConfig: ThinkingConfig
Config for model built-in thinking features.
An error will be returned if this field is set for models that don't
support thinking.
Returns BuiltInPlanner
Properties
Readonly[BASE_PLANNER_SIGNATURE_SYMBOL]
"[BASE_PLANNER_SIGNATURE_SYMBOL]": true
A unique symbol to identify ADK base planner class.
Readonly[BUILT_IN_PLANNER_SIGNATURE_SYMBOL]
"[BUILT_IN_PLANNER_SIGNATURE_SYMBOL]": true
A unique symbol to identify ADK built-in planner class.
thinkingConfig
thinkingConfig: ThinkingConfig
Config for model built-in thinking features. An error will be returned if
this field is set for models that don't support thinking.
Methods
applyThinkingConfig
-
Applies the thinking config to the LLM request.
Parameters
- llmRequest: LlmRequest
The LLM request to apply the thinking config to.
Returns void
buildPlanningInstruction
-
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.
processPlanningResponse
-
processPlanningResponse( _callbackContext: Context, _responseParts: Part[],): Part[] | undefined
Processes the LLM response for planning.
Parameters
- _callbackContext: Context
- _responseParts: Part[]
Returns Part[] | undefined
The processed response parts, or undefined if no processing is
needed.
Constructors
Properties
Methods