StreamConversionOptions
Defined in: packages/ai.matey.types/src/streaming.ts:67
Options for stream conversion/transformation.
Properties
Section titled “Properties”
optionalmode:StreamMode
Defined in: packages/ai.matey.types/src/streaming.ts:72
Target streaming mode for conversion. If specified, stream will be converted to this mode.
preserveIfMatch?
Section titled “preserveIfMatch?”
optionalpreserveIfMatch:boolean
Defined in: packages/ai.matey.types/src/streaming.ts:80
Whether to preserve original format if already in target mode. When true, avoids unnecessary conversion overhead.
Default
Section titled “Default”truetransform()?
Section titled “transform()?”
optionaltransform: (text) =>string
Defined in: packages/ai.matey.types/src/streaming.ts:87
Custom buffer transform function. Applied to accumulated text before yielding. Useful for sanitization, formatting, etc.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
validateSequence?
Section titled “validateSequence?”
optionalvalidateSequence:boolean
Defined in: packages/ai.matey.types/src/streaming.ts:95
Whether to validate chunk sequence numbers. When true, throws error if chunks arrive out of order.
Default
Section titled “Default”false