/** * 工具执行包装器 - DRY 错误处理 */ import { z } from 'zod'; export interface ToolResult { type: string; text: string; } /** * 包装工具执行函数,统一处理错误 */ export declare function wrapToolExecution(schema: T, args: unknown, handler: (parsed: z.infer) => Promise): Promise; //# sourceMappingURL=toolWrapper.d.ts.map