adk-typescript
Version:
TypeScript port of Google's Agent Development Kit (ADK)
40 lines (39 loc) • 1.32 kB
TypeScript
import { BaseTool } from './BaseTool';
import { ToolContext } from './ToolContext';
/**
* A built-in tool that is automatically invoked by Gemini models to retrieve search results from Google Search.
*
* This tool operates internally within the model and does not require or perform
* local code execution.
*/
export declare class GoogleSearchTool extends BaseTool {
/**
* Creates a new Google Search tool
*/
constructor();
/**
* Process the LLM request to configure Google Search capability
*
* @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 Google Search tool
*
* This is a placeholder as the actual execution happens internally in the model.
*
* @param params The parameters for tool execution
* @param context The context for tool execution
* @returns A placeholder response
*/
execute(params: Record<string, any>, context: ToolContext): Promise<any>;
}
/**
* Singleton instance of the Google Search tool
*/
export declare const googleSearch: GoogleSearchTool;