(messageId: string, toolName: string, args: any)
| 111 | * 添加审批步骤 |
| 112 | */ |
| 113 | const addApprovalStep = (messageId: string, toolName: string, args: any) => { |
| 114 | addStep(messageId, { |
| 115 | type: "approval", |
| 116 | tool: { name: toolName, args }, |
| 117 | timestamp: Date.now(), |
| 118 | }); |
| 119 | }; |
| 120 | |
| 121 | /** |
| 122 | * 添加会话摘要步骤 |