UNPKG

adk-typescript

Version:

TypeScript port of Google's Agent Development Kit (ADK)

37 lines (36 loc) 1.38 kB
import { Part, ThinkingConfig } from '../models/types'; import { ReadonlyContext } from '../agents/ReadonlyContext'; import { CallbackContext } from '../agents/CallbackContext'; import { LlmRequest } from '../models/LlmRequest'; import { BasePlanner } from './BasePlanner'; /** * The built-in planner that uses model's built-in thinking features. */ export declare class BuiltInPlanner extends BasePlanner { /** * Config for model built-in thinking features. An error will be returned if this * field is set for models that don't support thinking. */ thinkingConfig: ThinkingConfig; /** * Initializes the built-in planner. * * @param 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. */ constructor(thinkingConfig: ThinkingConfig); /** * Applies the thinking config to the LLM request. * * @param llmRequest The LLM request to apply the thinking config to. */ applyThinkingConfig(llmRequest: LlmRequest): void; /** * @inheritdoc */ buildPlanningInstruction(readonlyContext: ReadonlyContext, llmRequest: LlmRequest): string | undefined; /** * @inheritdoc */ processPlanningResponse(callbackContext: CallbackContext, responseParts: Part[]): Part[] | undefined; }