({ event, toolCallName, toolCallArgs })
| 209 | }, |
| 210 | |
| 211 | async onToolCallEndEvent({ event, toolCallName, toolCallArgs }) { |
| 212 | if (aborted) return; |
| 213 | captureToolCall( |
| 214 | event.toolCallId, |
| 215 | toolCallName, |
| 216 | (toolCallArgs ?? {}) as Record<string, unknown>, |
| 217 | ); |
| 218 | if (!showToolStatus) return; |
| 219 | const id = toolStatusIds.get(event.toolCallId); |
| 220 | if (id === undefined) return; |
| 221 | try { |
| 222 | await args.editAt(id, telegramHtml(`✅ ${toolCallName}`)); |
| 223 | } catch (err) { |
| 224 | console.error("[telegram-renderer] tool-end edit failed:", err); |
| 225 | } |
| 226 | toolStatusIds.delete(event.toolCallId); |
| 227 | }, |
| 228 | |
| 229 | // ── 3. Interrupts (LangGraph `interrupt()` → AG-UI custom event) ─ |
| 230 | onCustomEvent({ event }) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…