( state: EventHandlerState, toolCallId: string, results: any[], )
| 434 | } |
| 435 | |
| 436 | const handleSpawnAgentsResult = ( |
| 437 | state: EventHandlerState, |
| 438 | toolCallId: string, |
| 439 | results: any[], |
| 440 | ) => { |
| 441 | // Replace placeholder spawn agent blocks with their final text/status output. |
| 442 | state.message.updater.updateAiMessageBlocks((blocks) => |
| 443 | updateSpawnAgentBlocks(blocks, toolCallId, results), |
| 444 | ) |
| 445 | |
| 446 | results.forEach((_, index: number) => { |
| 447 | const agentId = `${toolCallId}-${index}` |
| 448 | updateStreamingAgents(state, { remove: agentId }) |
| 449 | }) |
| 450 | } |
| 451 | |
| 452 | const handleToolResult = ( |
| 453 | state: EventHandlerState, |
no test coverage detected