Abstract base class for all planners.

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

Hierarchy (view full)

Constructors

Methods

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

    Parameters

    Returns string

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

  • Processes the LLM response for planning.

    Parameters

    • callbackContext: CallbackContext

      The callback context of the invocation

    • responseParts: Part[]

      The LLM response parts. Readonly.

    Returns Part[]

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