Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(tools): pass def by reference to collect_orchestrator_tools

Steven Enamakel133b0d5b5a2a
diff --git a/crates/openhuman-core/src/agent/harness/session/turn/tools.rs b/crates/openhuman-core/src/agent/harness/session/turn/tools.rs
index 686513620a..b51ee9342d 100644
--- a/crates/openhuman-core/src/agent/harness/session/turn/tools.rs
+++ b/crates/openhuman-core/src/agent/harness/session/turn/tools.rs
@@ -591,7 +591,7 @@ impl Agent {
// `retain` can never withdraw a durable tool's spec.
let synthed = super::super::builder::drop_synthesized_name_collisions(
&self.tools,
- collect_orchestrator_tools(def, reg, &self.connected_integrations),
+ collect_orchestrator_tools(&def, reg, &self.connected_integrations),
);
let synthed_names: std::collections::HashSet<String> =
synthed.iter().map(|t| t.name().to_string()).collect();