/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { FunctionDeclaration } from '@google/genai'; import type { AnyDeclarativeTool } from './tools.js'; /** * Tool registry for managing available tools */ export declare class ToolRegistry { private tools; /** * Registers a tool definition */ registerTool(tool: AnyDeclarativeTool): void; /** * Removes all tools (for cleanup or reset) */ removeAllTools(): void; /** * Retrieves the list of tool schemas (FunctionDeclaration array) */ getFunctionDeclarations(): FunctionDeclaration[]; /** * Retrieves a filtered list of tool schemas based on tool names */ getFunctionDeclarationsFiltered(toolNames: string[]): FunctionDeclaration[]; /** * Returns an array of all registered tool names */ getAllToolNames(): string[]; /** * Returns an array of all registered tool instances */ getAllTools(): AnyDeclarativeTool[]; /** * Get the definition of a specific tool */ getTool(name: string): AnyDeclarativeTool | undefined; /** * Check if a tool exists */ hasTool(name: string): boolean; /** * Get tools by kind */ getToolsByKind(kind: string): AnyDeclarativeTool[]; } //# sourceMappingURL=tool-registry.d.ts.map