(
toolCallId: string,
toolCallName: string,
toolCallArgs: Record<string, unknown>,
)
| 124 | }; |
| 125 | |
| 126 | const captureToolCall = ( |
| 127 | toolCallId: string, |
| 128 | toolCallName: string, |
| 129 | toolCallArgs: Record<string, unknown>, |
| 130 | ) => { |
| 131 | const existing = capturedToolCalls.find((c) => c.toolCallId === toolCallId); |
| 132 | if (existing) { |
| 133 | existing.toolCallName = toolCallName; |
| 134 | existing.toolCallArgs = toolCallArgs; |
| 135 | } else { |
| 136 | capturedToolCalls.push({ toolCallId, toolCallName, toolCallArgs }); |
| 137 | } |
| 138 | }; |
| 139 | |
| 140 | const subscriber: AgentSubscriber = { |
| 141 | // ── 1. Text streaming ────────────────────────────────────────────── |
no test coverage detected
searching dependent graphs…