* Clear all tracking state. * Call this when starting a new task.
()
| 200 | * Call this when starting a new task. |
| 201 | */ |
| 202 | clear(): void { |
| 203 | this.displayedMessages.clear() |
| 204 | this.streamedContent.clear() |
| 205 | this.currentlyStreamingTs = null |
| 206 | this.completionResultStreamed = false |
| 207 | this.loggedFirstPartial.clear() |
| 208 | this.streamingState.next({ ts: null, isStreaming: false }) |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * Get debugging info about first partial logging. |