* 执行工具(同步) * @param toolId 工具 ID * @param input 参数 * @returns 执行结果
(toolId: string, input: Record<string, any>)
| 92 | * @returns 执行结果 |
| 93 | */ |
| 94 | async execute(toolId: string, input: Record<string, any>): Promise<any> { |
| 95 | return this.request(`/v1/tools/${toolId}/execute`, { |
| 96 | method: "POST", |
| 97 | body: { input }, |
| 98 | }); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * 执行工具(异步,用于长时运行工具) |
no test coverage detected