GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — BuiltInPlanner | ADK for TypeScript: API Reference - v2.5.0

  • BuiltInPlanner

Class BuiltInPlanner

The built-in planner that uses model's built-in thinking features.

Hierarchy (View Summary)

  • BasePlanner
    • BuiltInPlanner
  • Defined in core/src/planners/built_in_planner.ts:41

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

    Overrides BasePlanner.constructor

    • Defined in core/src/planners/built_in_planner.ts:58

Properties

Readonly[BASE_PLANNER_SIGNATURE_SYMBOL]

"[BASE_PLANNER_SIGNATURE_SYMBOL]": true

A unique symbol to identify ADK base planner class.

Inherited from BasePlanner.[BASE_PLANNER_SIGNATURE_SYMBOL]

  • Defined in core/src/planners/base_planner.ts:41

Readonly[BUILT_IN_PLANNER_SIGNATURE_SYMBOL]

"[BUILT_IN_PLANNER_SIGNATURE_SYMBOL]": true

A unique symbol to identify ADK built-in planner class.

  • Defined in core/src/planners/built_in_planner.ts:43

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.

  • Defined in core/src/planners/built_in_planner.ts:49

Methods

applyThinkingConfig

  • applyThinkingConfig(llmRequest: LlmRequest): void

    Applies the thinking config to the LLM request.

    Parameters

    • llmRequest: LlmRequest

      The LLM request to apply the thinking config to.

    Returns void

    • Defined in core/src/planners/built_in_planner.ts:68

buildPlanningInstruction

  • buildPlanningInstruction(
        _readonlyContext: ReadonlyContext,
        _llmRequest: LlmRequest,
    ): string | undefined

    Builds the system instruction to be appended to the LLM request for planning.

    Parameters

    • _readonlyContext: ReadonlyContext
    • _llmRequest: LlmRequest

    Returns string | undefined

    The planning system instruction, or undefined if no instruction is needed.

    Overrides BasePlanner.buildPlanningInstruction

    • Defined in core/src/planners/built_in_planner.ts:75

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.

    Overrides BasePlanner.processPlanningResponse

    • Defined in core/src/planners/built_in_planner.ts:82
Constructors
constructor
Properties
[BASE_PLANNER_SIGNATURE_SYMBOL][BUILT_IN_PLANNER_SIGNATURE_SYMBOL]thinkingConfig
Methods
applyThinkingConfigbuildPlanningInstructionprocessPlanningResponse
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.