mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-19 15:14:21 +01:00
fix: format the agent code (#2188)
This commit is contained in:
@@ -467,17 +467,10 @@ impl Agent {
|
|||||||
|
|
||||||
// Wait for all tool calls to complete
|
// Wait for all tool calls to complete
|
||||||
let results = futures::future::join_all(tool_futures).await;
|
let results = futures::future::join_all(tool_futures).await;
|
||||||
for (request_id, output) in results {
|
|
||||||
let mut response = message_tool_response.lock().await;
|
|
||||||
*response = response.clone().with_tool_response(
|
|
||||||
request_id,
|
|
||||||
output,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if any install results had errors before processing them
|
// Check if any install results had errors before processing them
|
||||||
let all_install_successful = !install_results.iter().any(|(_, result)| result.is_err());
|
let all_install_successful = !install_results.iter().any(|(_, result)| result.is_err());
|
||||||
for (request_id, output) in install_results {
|
for (request_id, output) in results.into_iter().chain(install_results.into_iter()) {
|
||||||
let mut response = message_tool_response.lock().await;
|
let mut response = message_tool_response.lock().await;
|
||||||
*response = response.clone().with_tool_response(
|
*response = response.clone().with_tool_response(
|
||||||
request_id,
|
request_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user