Module history

Module history 

Source
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§

ConversationHistory
Conversation history manager with compaction support
ConversationTurn
A conversation turn containing user input and assistant response
ToolCallRecord
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%)