(messageId: string, toolName: string, args: any)
| 78 | * 添加工具调用步骤 |
| 79 | */ |
| 80 | const addToolCallStep = (messageId: string, toolName: string, args: any) => { |
| 81 | addStep(messageId, { |
| 82 | type: "tool_call", |
| 83 | tool: { name: toolName, args }, |
| 84 | timestamp: Date.now(), |
| 85 | }); |
| 86 | }; |
| 87 | |
| 88 | /** |
| 89 | * 添加工具结果步骤 |