Skip to main content

Module history

Module history 

Source
Expand description

History + HistoryBuilder + the report type compact_if_needed returns.

Structsยง

CompactionReport
Reports what History::compact_if_needed did when it ran. Returned wrapped in Option: None means compaction was not needed (history fits within max_tokens).
History
Owns the message vector backing a single conversation, plus the budget and pin mask that govern how compaction reduces it.
HistoryBuilder
Configuration for a History.