import { Agent } from '../agent'; import { ToolManager } from '../tool-manager'; import { AgentEventStream, Tool, ToolCallResult, ChatCompletionMessageToolCall } from '@multimodal/agent-interface'; /** * ToolProcessor - Responsible for tool calls and processing * * This class handles the execution of tools, processing of tool results, * and managing tool-related state. */ export declare class ToolProcessor { private agent; private toolManager; private eventStream; private logger; constructor(agent: Agent, toolManager: ToolManager, eventStream: AgentEventStream.Processor); /** * Get all available tools */ getTools(): Tool[]; /** * Process a collection of tool calls * * @param toolCalls Array of tool calls to execute * @param sessionId Session identifier * @param abortSignal Optional signal to abort the execution * @returns Array of tool call results */ processToolCalls(toolCalls: ChatCompletionMessageToolCall[], sessionId: string, abortSignal?: AbortSignal): Promise; /** * Create aborted tool call results for all tool calls * Helper method to handle the abort case */ private createAbortedToolCallResults; /** * Get JSON schema for a tool * @param tool The tool definition * @returns JSON schema representation of the tool */ private getToolSchema; } //# sourceMappingURL=tool-processor.d.ts.map