refactor: Updated to the most recent Rust version with 2024 syntax

This commit is contained in:
2025-11-07 15:50:55 -07:00
parent ed6c3ae431
commit dbf7329e87
44 changed files with 377 additions and 371 deletions
+4 -4
View File
@@ -119,10 +119,10 @@ impl MessageContent {
}
for tool_result in tool_results {
let mut parts = vec!["Call".to_string()];
if let Some((agent_name, functions)) = agent_info {
if functions.contains(&tool_result.call.name) {
parts.push(agent_name.clone())
}
if let Some((agent_name, functions)) = agent_info
&& functions.contains(&tool_result.call.name)
{
parts.push(agent_name.clone())
}
parts.push(tool_result.call.name.clone());
parts.push(tool_result.call.arguments.to_string());