import { Tool } from '@multimodal/agent-interface'; import { ConsoleLogger } from '@agent-infra/logger'; /** * Manages tools for the Agent, handling registration, lookup, and execution */ export declare class ToolManager { private logger; private tools; constructor(logger: ConsoleLogger); /** * Registers a new tool that the agent can use during execution */ registerTool(tool: Tool): void; /** * Returns all registered tools as an array */ getTools(): Tool[]; /** * Gets a specific tool by name * @param name Tool name to retrieve * @returns The tool definition or undefined if not found */ getTool(name: string): Tool | undefined; /** * Checks if a tool exists * @param name Tool name to check * @returns True if the tool exists */ hasTool(name: string): boolean; /** * Execute a tool with the given arguments * @param toolName Name of the tool to execute * @param toolCallId ID of the tool call * @param args Arguments to pass to the tool * @returns Result of execution and execution time */ executeTool(toolName: string, toolCallId: string, args: unknown): Promise<{ result: unknown; executionTime: number; error?: string; }>; } //# sourceMappingURL=tool-manager.d.ts.map