Expand description
Context compression — LLM-generated session summaries (LobeHub port).
When a session exceeds a message threshold, older exchanges are summarized
by an LLM and stored in session.metadata["compression"]. The summary
streams via KernelEvent::CompressionDelta for real-time UI rendering.
Structs§
- Compression
Service - LLM-generated session summary service.
Functions§
- session_
needs_ compression - Pure predicate: does this session need compression? Extracted as a free function so it can be unit-tested without constructing a full service.