feat(compaction): add proactive context budget and checkpointing
This commit is contained in:
@@ -218,6 +218,14 @@ export function createMessageRouter(deps: {
|
||||
keepTurns: deps.config.compaction.keep_turns,
|
||||
summaryMaxTokens: deps.config.compaction.summary_max_tokens,
|
||||
importanceThreshold: deps.config.compaction.importance_threshold,
|
||||
proactive: {
|
||||
enabled: deps.config.compaction.proactive.enabled,
|
||||
warnPct: deps.config.compaction.proactive.warn_pct,
|
||||
checkpointPct: deps.config.compaction.proactive.checkpoint_pct,
|
||||
autoCompactPct: deps.config.compaction.proactive.auto_compact_pct,
|
||||
checkpointCooldownMs: deps.config.compaction.proactive.checkpoint_cooldown_ms,
|
||||
memoryNamespace: deps.config.compaction.proactive.memory_namespace,
|
||||
},
|
||||
} : undefined,
|
||||
modelName: effectiveModelName,
|
||||
contextWindow: effectiveContextWindow,
|
||||
|
||||
Reference in New Issue
Block a user