allow more iterations per turn
This commit is contained in:
@@ -324,7 +324,8 @@ impl Agent {
|
|||||||
databricks_config.model.clone(),
|
databricks_config.model.clone(),
|
||||||
databricks_config.max_tokens,
|
databricks_config.max_tokens,
|
||||||
databricks_config.temperature,
|
databricks_config.temperature,
|
||||||
).await?
|
)
|
||||||
|
.await?
|
||||||
};
|
};
|
||||||
|
|
||||||
providers.register(databricks_provider);
|
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 stream_start = Instant::now();
|
||||||
let mut total_execution_time = Duration::new(0, 0);
|
let mut total_execution_time = Duration::new(0, 0);
|
||||||
let mut iteration_count = 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;
|
let mut response_started = false;
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
|||||||
Reference in New Issue
Block a user