UNPKG

adk-typescript

Version:

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

35 lines (34 loc) 1.07 kB
import { BaseTool } from './BaseTool'; import { ToolContext } from './ToolContext'; /** * Tool that preloads memory based on the user's current query */ export declare class PreloadMemoryTool extends BaseTool { /** * Creates a new preload memory tool */ constructor(); /** * Process the LLM request to preload relevant memory * * @param params Parameters for processing * @param params.toolContext The tool context * @param params.llmRequest The LLM request to process */ processLlmRequest({ toolContext, llmRequest }: { toolContext: ToolContext; llmRequest: any; }): Promise<void>; /** * Execute the tool - this tool is not meant to be executed directly * * @param params Parameters for execution * @param context The tool context * @returns Error message */ execute(params: Record<string, any>, context: ToolContext): Promise<any>; } /** * Singleton instance of the Preload Memory tool */ export declare const preloadMemoryTool: PreloadMemoryTool;