compact on tool call if > 90%

This commit is contained in:
Dhanji Prasanna
2025-11-04 14:35:11 +11:00
parent 1f9fef5f18
commit 631f3c16ca
3 changed files with 48 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ pub struct AgentConfig {
pub max_context_length: usize,
pub enable_streaming: bool,
pub timeout_seconds: u64,
pub auto_compact: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -135,6 +136,7 @@ impl Default for Config {
max_context_length: 8192,
enable_streaming: true,
timeout_seconds: 60,
auto_compact: true,
},
computer_control: ComputerControlConfig::default(),
webdriver: WebDriverConfig::default(),
@@ -250,6 +252,7 @@ impl Config {
max_context_length: 8192,
enable_streaming: true,
timeout_seconds: 60,
auto_compact: true,
},
computer_control: ComputerControlConfig::default(),
webdriver: WebDriverConfig::default(),