StreamingConfig
Defined in: packages/ai.matey.types/src/streaming.ts:33
Streaming configuration options.
Properties
Section titled “Properties”bufferStrategy?
Section titled “bufferStrategy?”
optionalbufferStrategy:BufferStrategy
Defined in: packages/ai.matey.types/src/streaming.ts:61
Buffer strategy for accumulated mode.
- ‘memory’: Keep full buffer in memory (default, works with any provider)
- ‘none’: Don’t buffer (only works if provider natively gives accumulated)
Default
Section titled “Default”'memory'includeBoth?
Section titled “includeBoth?”
optionalincludeBoth:boolean
Defined in: packages/ai.matey.types/src/streaming.ts:51
Whether to include both delta and accumulated in chunks. Only applicable when mode=‘accumulated’ at backend level. When true, chunks will contain both formats for maximum flexibility.
Default
Section titled “Default”false
optionalmode:StreamMode
Defined in: packages/ai.matey.types/src/streaming.ts:42
How to deliver streaming chunks.
delta: Only new content (default, most efficient)accumulated: Full content accumulated so far (Chrome AI style)
Default
Section titled “Default”'delta'