AI.Completion.Compaction (fnord v0.8.72)
View SourceCompaction utilities for AI.Completion.
- Partial compaction: summarize only older history while preserving the last K assistant completion rounds (including their tool-call messages).
- Full compaction: summarize the entire message list.
Notes:
- Helpers are private and documented with inline comments to avoid warnings for private @doc under warnings-as-errors.
- No aliasing; callers should use full module names.
Summary
Functions
Full compaction of the entire message list via the summarizer agent.
Summarize only the older portion of the message list while preserving the last K assistant completion rounds and their tool-call messages.
Functions
Full compaction of the entire message list via the summarizer agent.
Summarize only the older portion of the message list while preserving the last K assistant completion rounds and their tool-call messages.
Returns an updated state map with messages compacted and usage recomputed.