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

  • PlanReActPlanner

Class PlanReActPlanner

Plan-Re-Act planner that constrains the LLM response to generate a plan before any action/observation.

Note: this planner does not require the model to support built-in thinking features or setting the thinking config.

Hierarchy (View Summary)

  • BasePlanner
    • PlanReActPlanner
  • Defined in core/src/planners/plan_re_act_planner.ts:35

Constructors

constructor

  • new PlanReActPlanner(): PlanReActPlanner

    Returns PlanReActPlanner

    Inherited from BasePlanner.constructor

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

Methods

buildPlanningInstruction

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

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

    Parameters

    • _readonlyContext: ReadonlyContext
    • _llmRequest: LlmRequest

    Returns string

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

    Overrides BasePlanner.buildPlanningInstruction

    • Defined in core/src/planners/plan_re_act_planner.ts:36

processPlanningResponse

  • processPlanningResponse(
        _callbackContext: Context,
        responseParts: Part[],
    ): Part[] | undefined

    Processes the LLM response for planning.

    Parameters

    • _callbackContext: Context
    • responseParts: Part[]

      The LLM response parts. Readonly.

    Returns Part[] | undefined

    The processed response parts, or undefined if no processing is needed.

    Overrides BasePlanner.processPlanningResponse

    • Defined in core/src/planners/plan_re_act_planner.ts:43
Constructors
constructor
Properties
[BASE_PLANNER_SIGNATURE_SYMBOL]
Methods
buildPlanningInstructionprocessPlanningResponse
You are visitor 01402792 — 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.