Module history

Module history 

Source
Expand description

Conversation history management with forge-style compaction support

This module provides conversation history storage with intelligent compaction inspired by forge’s context management approach:

  • Configurable thresholds (tokens, turns, messages)
  • Smart eviction strategy (protects tool-call/result adjacency)
  • Droppable message support for ephemeral content
  • Summary frame generation for compressed history

Structs§

ConversationHistory
Conversation history manager with forge-style compaction support
ConversationTurn
A conversation turn containing user input and assistant response
ToolCallRecord
Record of a tool call for history tracking