MCPcopy
hub / github.com/FlowiseAI/Flowise / streamToolEvent

Method streamToolEvent

packages/server/src/utils/SSEStreamer.ts:217–223  ·  view source on GitHub ↗
(chatId: string, data: any)

Source from the content-addressed store, hash-verified

215 this.safeWrite(chatId, 'message:\ndata:' + JSON.stringify(clientResponse) + '\n\n')
216 }
217 streamToolEvent(chatId: string, data: any): void {
218 const clientResponse = {
219 event: 'tool',
220 data: data
221 }
222 this.safeWrite(chatId, 'message:\ndata:' + JSON.stringify(clientResponse) + '\n\n')
223 }
224 streamAgentReasoningEvent(chatId: string, data: any): void {
225 const clientResponse = {
226 event: 'agentReasoning',

Callers

nothing calls this directly

Calls 2

safeWriteMethod · 0.95
stringifyMethod · 0.80

Tested by

no test coverage detected