Structs§
- Assistant
Action Group - A grouped assistant-action slice of message history.
- Compaction
Capabilities - Capability descriptor used to decide whether a provider-specific compaction optimization may be attempted.
- Compaction
Result - Result of a successful compaction.
- Prepared
Compaction - Output of the deterministic pre-summary compaction-prep pipeline.
Enums§
- Compaction
Strategy - Strategy selection for compaction execution.
Constants§
- COMPACTION_
SUMMARY_ PREFIX - Prefix prepended to the summary in the compaction entry so that later context assembly can mark it clearly for the model.
- DEFAULT_
KEEP_ RECENT_ GROUPS - Default number of recent assistant-action groups to preserve verbatim.
Functions§
- assistant_
action_ groups - Partition a message list into assistant-action groups.
- execute_
compaction_ with_ retry - Execute manual compaction with overflow retry.
- execute_
manual_ compaction - Execute a manual compaction on the current branch of a session.
- prepare_
messages_ for_ compaction - Deterministically prepare history for a later summary-generation step.
- select_
compaction_ strategy - Select the preferred compaction strategy for a provider/model pair.
- shrink_
messages_ for_ summary - Replace tool-result bodies with lightweight placeholders while keeping tool name, truncated arguments, and byte counts for debugging continuity.