/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { BaseDeclarativeTool, type ToolInvocation } from './tools.js'; import type { MessageBus } from '../confirmation-bus/message-bus.js'; import { Config } from '../config/config.js'; import { type WebSearchToolParams, type WebSearchToolResult } from './google-web-search-invocation.js'; export type { WebSearchToolParams, WebSearchToolResult, } from './google-web-search-invocation.js'; /** * A tool to perform web searches using Google Search via the Gemini API. */ export declare class GoogleWebSearchTool extends BaseDeclarativeTool { private readonly config; static readonly Name: string; constructor(config: Config, messageBus?: MessageBus); /** * Validates the parameters for the GoogleWebSearchTool. * @param params The parameters to validate * @returns An error message string if validation fails, null if valid */ protected validateToolParamValues(params: WebSearchToolParams): string | null; protected createInvocation(params: WebSearchToolParams, messageBus?: MessageBus): ToolInvocation; }