ADK for TypeScript: API Reference
    Preparing search index...

    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)

    Constructors

    Properties

    "[BASE_PLANNER_SIGNATURE_SYMBOL]": true

    A unique symbol to identify ADK base planner class.

    Methods

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

      Parameters

      Returns string | undefined

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

    • 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.