convertChunkMode
convertChunkMode(
chunk,targetMode,state,transform?):StreamContentChunk
Defined in: streaming-modes.ts:198
Convert a single content chunk to target mode.
Parameters
Section titled “Parameters”Source content chunk
targetMode
Section titled “targetMode”Target streaming mode
Accumulator state (updated in place)
transform?
Section titled “transform?”(text) => string
Optional transform function
Returns
Section titled “Returns”Converted content chunk