Structs§
- Compaction
Config - Professional Compaction Configuration.
- Compaction
Result - Session
Checkpoint - Layer 6: Structured Session Memory. Preserves the “Mission Context” across compactions.
- Session
Compaction Ledger - Session
Memory - Session
Verification - Summary
Compression Budget - Summary
Compression Result
Functions§
- compact_
history - compress_
summary - compress_
summary_ text - estimate_
compactable_ tokens - estimate_
tokens - extract_
memory - Heuristic extraction of “The Mission” from a set of messages.
- should_
compact - Returns true when history is large enough to warrant compaction. Pass the model’s context_length and current vram_ratio for adaptive thresholds.