feat: 默认 max_tool_iterations 调整为 1000
This commit is contained in:
parent
0aa9050b12
commit
389e222b11
@ -556,7 +556,7 @@ impl InitWizard {
|
||||
let agent = AgentConfig {
|
||||
provider: selected_provider.clone(),
|
||||
model: selected_model.clone(),
|
||||
max_tool_iterations: 100,
|
||||
max_tool_iterations: 1000,
|
||||
tool_result_max_chars: 100_000,
|
||||
context_tool_result_trim_chars: 2000,
|
||||
};
|
||||
|
||||
@ -479,7 +479,7 @@ pub struct AgentConfig {
|
||||
}
|
||||
|
||||
fn default_max_tool_iterations() -> usize {
|
||||
100
|
||||
1000
|
||||
}
|
||||
|
||||
fn default_tool_result_max_chars() -> usize {
|
||||
@ -1456,7 +1456,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_agent_config_defaults_max_tool_iterations_to_100() {
|
||||
fn test_agent_config_defaults_max_tool_iterations_to_1000() {
|
||||
let file = tempfile::NamedTempFile::new().unwrap();
|
||||
std::fs::write(
|
||||
file.path(),
|
||||
@ -1485,7 +1485,7 @@ mod tests {
|
||||
.unwrap();
|
||||
|
||||
let config = Config::load(file.path().to_str().unwrap()).unwrap();
|
||||
assert_eq!(config.agents["default"].max_tool_iterations, 100);
|
||||
assert_eq!(config.agents["default"].max_tool_iterations, 1000);
|
||||
assert_eq!(config.agents["default"].tool_result_max_chars, 100_000);
|
||||
assert_eq!(
|
||||
config.agents["default"].context_tool_result_trim_chars,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user