update: Consolidationの不要なToken上限の削除

This commit is contained in:
2026-05-02 23:48:33 +09:00
parent 9d0b9e9d90
commit 689a988e83
6 changed files with 66 additions and 54 deletions
-3
View File
@@ -218,9 +218,6 @@ impl MemoryConfig {
.extract_worker_max_input_tokens
.or(self.extract_worker_max_input_tokens),
consolidation_model: upper.consolidation_model.or(self.consolidation_model),
consolidation_worker_max_input_tokens: upper
.consolidation_worker_max_input_tokens
.or(self.consolidation_worker_max_input_tokens),
consolidation_threshold_files: upper
.consolidation_threshold_files
.or(self.consolidation_threshold_files),
-5
View File
@@ -50,8 +50,3 @@ pub const COMPACT_DEFAULT_REFERENCE_COUNT: usize = 5;
/// own LLM calls. Exceeding this aborts the extract run.
/// See [`crate::MemoryConfig::extract_worker_max_input_tokens`].
pub const MEMORY_EXTRACT_WORKER_MAX_INPUT_TOKENS: u64 = 30_000;
/// Cumulative input-token cap for the memory Phase 2 (consolidation)
/// worker's own LLM calls. Exceeding this aborts the consolidation run.
/// See [`crate::MemoryConfig::consolidation_worker_max_input_tokens`].
pub const MEMORY_CONSOLIDATION_WORKER_MAX_INPUT_TOKENS: u64 = 80_000;
-5
View File
@@ -90,11 +90,6 @@ pub struct MemoryConfig {
/// Reasoning-class models are recommended.
#[serde(default)]
pub consolidation_model: Option<ModelManifest>,
/// Cumulative input-token cap for the consolidation worker's own
/// LLM calls. Exceeding this aborts the consolidation run. `None` ⇒
/// [`defaults::MEMORY_CONSOLIDATION_WORKER_MAX_INPUT_TOKENS`].
#[serde(default)]
pub consolidation_worker_max_input_tokens: Option<u64>,
/// Phase 2 trigger: file-count threshold of `_staging/`. Phase 2
/// fires when the staging directory has at least this many entries.
/// Either threshold reaching its limit fires Phase 2 (logical OR).