Expand description
Pure helpers for time-based microcompact (#2699).
The Agent-level integration (reading self.*, mutating message history)
lives in zeph-core. This module contains only the stateless helpers.
Enums§
- Compact
Target - Index into a message’s parts list identifying which part to compact.
Constants§
- CLEARED_
SENTINEL_ PREFIX - Sentinel content placed in cleared tool outputs.
- LOW_
VALUE_ TOOLS - Tool names whose output is considered low-value after a session gap.
Functions§
- find_
preceding_ tool_ use_ name - Returns the tool name from the closest preceding
ToolUsepart, if any. - is_
low_ value_ tool - Returns
trueiftool_name(case-insensitive) is in the low-value set. - sweep_
stale_ tool_ outputs - Sweep stale low-value tool outputs from the message list.