MCPcopy Create free account
hub / github.com/experdot/pointer / emitChunk

Method emitChunk

src/main/aiHandler.ts:47–59  ·  view source on GitHub ↗
(requestId: string, content: string)

Source from the content-addressed store, hash-verified

45 }
46
47 private emitChunk(requestId: string, content: string): void {
48 const state = this.requestStates.get(requestId)
49 if (!state || state.status !== 'running') {
50 return
51 }
52
53 state.fullResponse += content
54 state.event.sender.send(state.eventChannel, {
55 requestId,
56 type: 'chunk',
57 content
58 } as AIStreamChunk)
59 }
60
61 private emitReasoning(requestId: string, reasoning: string): void {
62 const state = this.requestStates.get(requestId)

Callers 1

createStreamParserMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected