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 — BasePlanner | ADK for TypeScript: API Reference - v2.5.0

  • BasePlanner

Class BasePlannerAbstract

Abstract base class for all planners.

The planner allows the agent to generate plans for the queries to guide its action.

Hierarchy (View Summary)

  • BasePlanner
    • BuiltInPlanner
    • PlanReActPlanner
  • Defined in core/src/planners/base_planner.ts:39

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.

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

Methods

AbstractbuildPlanningInstruction

  • buildPlanningInstruction(
        readonlyContext: ReadonlyContext,
        llmRequest: LlmRequest,
    ): string | undefined

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

    Parameters

    • readonlyContext: ReadonlyContext

      The readonly context of the invocation.

    • llmRequest: LlmRequest

      The LLM request. Readonly.

    Returns string | undefined

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

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

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.

    • Defined in core/src/planners/base_planner.ts:65
Constructors
constructor
Properties
[BASE_PLANNER_SIGNATURE_SYMBOL]
Methods
buildPlanningInstructionprocessPlanningResponse
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.