Method
streamTokenEvent
(chatId: string, data: string)
Source from the content-addressed store, hash-verified
| 163 | } |
| 164 | |
| 165 | streamTokenEvent(chatId: string, data: string) { |
| 166 | const clientResponse = { |
| 167 | event: 'token', |
| 168 | data: data |
| 169 | } |
| 170 | this.safeWrite(chatId, 'message:\ndata:' + JSON.stringify(clientResponse) + '\n\n') |
| 171 | } |
| 172 | |
| 173 | streamThinkingEvent(chatId: string, data: string, duration?: number) { |
| 174 | const clientResponse = { |
Callers
nothing calls this directly
Tested by
no test coverage detected