Expand description
Conversation history management with compaction support
This module provides conversation history storage and automatic compaction when the token count exceeds a configurable threshold, similar to gemini-cli.
Structs§
- Conversation
History - Conversation history manager with compaction support
- Conversation
Turn - A conversation turn containing user input and assistant response
- Tool
Call Record - Record of a tool call for history tracking
Constants§
- COMPRESSION_
PRESERVE_ FRACTION - Fraction of history to preserve after compression (keep last 30%)
- DEFAULT_
COMPRESSION_ THRESHOLD - Default threshold for compression as a fraction of context window (85%)