Skip to main content

Module serializer

Module serializer 

Source
Expand description

Serialization formats for context output. Token-efficient serialization formats for context output.

Structs§

CompactFormat
Compressed notation using ~3x fewer tokens than JSON. Format: M|<type>|<salience>|<content>|tags:<comma-separated>
DeltaFormat
Delta format: only changes since last turn.
StructuredFormat
Markdown-like structured format with headers and bullet points.

Traits§

ContextSerializer
Trait for serializing context blocks into a string.