( blocks: ContentBlock[], startIndex: number, )
| 165 | } |
| 166 | |
| 167 | export function groupConsecutiveToolBlocks( |
| 168 | blocks: ContentBlock[], |
| 169 | startIndex: number, |
| 170 | ): { group: ToolContentBlock[]; nextIndex: number } { |
| 171 | return groupConsecutiveBlocks( |
| 172 | blocks, |
| 173 | startIndex, |
| 174 | (block): block is ToolContentBlock => block.type === 'tool', |
| 175 | ) |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Extract a value for a key from tool output (key: value format). |
no test coverage detected