* Count the number of tool uses in a message (handles grouped tool uses).
(msg: RenderableMessage)
| 540 | * Count the number of tool uses in a message (handles grouped tool uses). |
| 541 | */ |
| 542 | function countToolUses(msg: RenderableMessage): number { |
| 543 | if (msg.type === 'grouped_tool_use') { |
| 544 | return msg.messages.length |
| 545 | } |
| 546 | return 1 |
| 547 | } |
| 548 | |
| 549 | /** |
| 550 | * Extract file paths from read tool inputs in a message. |
no outgoing calls
no test coverage detected