allow more iterations per turn

This commit is contained in:
Dhanji Prasanna
2025-09-27 20:34:39 +10:00
parent c490228824
commit e2354b0679

View File

@@ -324,7 +324,8 @@ impl Agent {
databricks_config.model.clone(),
databricks_config.max_tokens,
databricks_config.temperature,
).await?
)
.await?
};
providers.register(databricks_provider);
@@ -851,7 +852,7 @@ The tool will execute immediately and you'll receive the result (success or erro
let stream_start = Instant::now();
let mut total_execution_time = Duration::new(0, 0);
let mut iteration_count = 0;
const MAX_ITERATIONS: usize = 10; // Prevent infinite loops
const MAX_ITERATIONS: usize = 30; // Prevent infinite loops
let mut response_started = false;
loop {