Skip to main content

Module live_zone

Module live_zone 

Source
Expand description

Live-zone-aware request compression preserves provider-cached prefixes.

The detector deliberately works on message values rather than serialized request bytes: frozen messages are moved through the pipeline unchanged, while only the live suffix may be rewritten.

Structs§

LiveZoneSplit
A conversation split at the first message safe to rewrite.
LiveZoneStats
Compression accounting for a single live-zone pass.

Functions§

add_cache_markers
Add one Anthropic cache breakpoint at the frozen/live boundary.
compress_live_only
Compress only the non-cached suffix in place.
detect_live_zone
Locate the prefix already eligible for provider cache reuse.