Skip to main content

Module transforms

Module transforms 

Source
Expand description

Transforms applied to the event stream before step results are accumulated.

A transform receives the whole event stream and returns a new one. It must preserve the event structure (start/delta/end pairs, step boundaries) so that the event processor can still build step results.

Structs§

SmoothStream
The smoothing transform; see smooth_stream.
SmoothStreamConfig
Configuration of smooth_stream.
TransformContext
Information handed to a transform when it is applied.

Enums§

Chunking
How buffered text is split into chunks.

Traits§

StreamTransform
A stream transform.

Functions§

smooth_stream
Creates the smoothing transform.

Type Aliases§

ChunkDetector
A function returning the byte length of the next chunk in a buffer, or None when the buffer holds no complete chunk yet.