BlockSuite API Documentation / @blocksuite/presets / toTextStream
Function: toTextStream()
toTextStream(
eventSource
,options
):BlockSuitePresets.TextStream
Parameters
• eventSource: EventSource
• options= {}
• options.timeout?: number
• options.type?: "message"
| "attachment"
Returns
BlockSuitePresets.TextStream
Source
packages/presets/src/ai/utils/event-source.ts:8