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

Method emitReasoning

src/main/aiHandler.ts:61–73  ·  view source on GitHub ↗
(requestId: string, reasoning: string)

Source from the content-addressed store, hash-verified

59 }
60
61 private emitReasoning(requestId: string, reasoning: string): void {
62 const state = this.requestStates.get(requestId)
63 if (!state || state.status !== 'running') {
64 return
65 }
66
67 state.fullReasoning += reasoning
68 state.event.sender.send(state.eventChannel, {
69 requestId,
70 type: 'reasoning_content',
71 reasoning_content: reasoning
72 } as AIStreamChunk)
73 }
74
75 private finalizeComplete(requestId: string): void {
76 const state = this.requestStates.get(requestId)

Callers 1

createStreamParserMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected