( taskId: string, agentId: string, setAppState: SetAppState, )
| 480 | } |
| 481 | |
| 482 | export async function skipWorkflowAgent( |
| 483 | taskId: string, |
| 484 | agentId: string, |
| 485 | setAppState: SetAppState, |
| 486 | ): Promise<void> { |
| 487 | let controller: AbortController | undefined |
| 488 | updateWorkflowTask(taskId, setAppState, task => { |
| 489 | controller = task.agentControllers?.[agentId] |
| 490 | return task |
| 491 | }) |
| 492 | controller?.abort() |
| 493 | stopWorkflowAgent(taskId, agentId, setAppState, 'Skipped') |
| 494 | } |
| 495 | |
| 496 | export async function retryWorkflowAgent( |
| 497 | _taskId: string, |
no test coverage detected