/** * @toolplex/ai-engine - Tool Builder * * Builds AI SDK tools from MCP tools, handling: * - Schema cleaning and sanitization * - Tool confirmation flows * - Tool execution with cancellation support */ import type { EngineAdapter } from "../adapters/types.js"; export interface BuildToolsOptions { sessionId: string; streamId: string; modelId: string; abortSignal: AbortSignal; adapter: EngineAdapter; /** Tools to hide from AI agents (e.g., 'initialize_toolplex') */ hiddenTools?: string[]; /** Callback for when tool args are edited during confirmation */ onArgsEdited?: (toolName: string, editedArgs: any, configEdited: boolean) => void; /** Tools that require HITL confirmation before execution. Format: { "server_id": ["tool1", "tool2"] } */ requireToolConfirmation?: Record | null; } /** * Build AI SDK tools from MCP tools */ export declare function buildMCPTools(options: BuildToolsOptions): Promise>; //# sourceMappingURL=ToolBuilder.d.ts.map