Skip to main content

Module compaction

Module compaction 

Source

Structs§

CompactionConfig
Professional Compaction Configuration.
CompactionResult
SessionCheckpoint
Layer 6: Structured Session Memory. Preserves the “Mission Context” across compactions.
SessionCompactionLedger
SessionMemory
SessionVerification
SummaryCompressionBudget
SummaryCompressionResult

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.