Expand description
Context compaction for managing conversation history within token limits
This module provides automatic history trimming and summarization when context approaches the token limit. Based on Block Goose architecture patterns.
Structs§
- Compaction
Config - Configuration for context compaction
- Compaction
Event - Event emitted during compaction for user notification
- Compaction
Result - Result of a compaction operation
- Context
Compactor - Manages context compaction for conversation history
Enums§
- Compaction
Event Type - Types of compaction events
- Compaction
Strategy - Strategy for compacting context
Functions§
- estimate_
tokens - Estimate token count for a string (same as in context/manager.rs)