(toolCallId: string)
| 576 | } |
| 577 | |
| 578 | private findMessageIdForToolCall(toolCallId: string): string | undefined { |
| 579 | const messages = this.processor.getMessages() |
| 580 | for (const message of messages) { |
| 581 | const match = message.parts.find( |
| 582 | (part: MessagePart): part is ToolCallPart => |
| 583 | part.type === 'tool-call' && part.id === toolCallId, |
| 584 | ) |
| 585 | if (match) return message.id |
| 586 | } |
| 587 | return undefined |
| 588 | } |
| 589 | |
| 590 | private abortSubscriptionLoop(): void { |
| 591 | this.subscriptionAbortController?.abort() |
no test coverage detected