Skip to content

StreamingConfig

Defined in: packages/ai.matey.types/src/streaming.ts:33

Streaming configuration options.

optional bufferStrategy: 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)
'memory'

optional includeBoth: 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.

false

optional mode: 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)
'delta'