( blocks: ContentBlock[], toolCallId: string, results: any[], )
| 424 | } |
| 425 | |
| 426 | const updateSpawnAgentBlocks = ( |
| 427 | blocks: ContentBlock[], |
| 428 | toolCallId: string, |
| 429 | results: any[], |
| 430 | ): ContentBlock[] => { |
| 431 | return blocks |
| 432 | .map((block) => updateSpawnAgentBlock(block, toolCallId, results)) |
| 433 | .filter((block): block is ContentBlock => block !== null) |
| 434 | } |
| 435 | |
| 436 | const handleSpawnAgentsResult = ( |
| 437 | state: EventHandlerState, |
no test coverage detected