(toolCalls: ToolCallDescriptor[])
| 48 | } |
| 49 | |
| 50 | export function partitionToolBatch(toolCalls: ToolCallDescriptor[]): PartitionedBatch { |
| 51 | const result: PartitionedBatch = { sim: [], go: [], subagent: [], client: [], unknown: [] } |
| 52 | |
| 53 | for (const tc of toolCalls) { |
| 54 | const route = routeToolCall(tc.toolId) |
| 55 | if (!route) { |
| 56 | result.unknown.push(tc) |
| 57 | continue |
| 58 | } |
| 59 | result[route.route].push(tc) |
| 60 | } |
| 61 | |
| 62 | return result |
| 63 | } |
nothing calls this directly
no test coverage detected