mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 09:11:45 +00:00
Agents: summarize dropped messages during compaction safeguard pruning (#2418)
This commit is contained in:
@@ -244,6 +244,8 @@ export type AgentCompactionConfig = {
|
||||
mode?: AgentCompactionMode;
|
||||
/** Minimum reserve tokens enforced for Pi compaction (0 disables the floor). */
|
||||
reserveTokensFloor?: number;
|
||||
/** Max share of context window for history during safeguard pruning (0.1–0.9, default 0.5). */
|
||||
maxHistoryShare?: number;
|
||||
/** Pre-compaction memory flush (agentic turn). Default: enabled. */
|
||||
memoryFlush?: AgentCompactionMemoryFlushConfig;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user