Skip to content

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

fix(tinyagents): pass name by reference to typed_dispatch_for

Steven Enamakelb3ad5d4e7e46
diff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs
index cd71c982dc..ae6af980bd 100644
--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs
@@ -177,7 +177,7 @@ impl ToolDispatch<(), OpenHumanRunContext> for UseSkillDispatch {
.await;
};
- if let Some(dispatch) = typed_dispatch_for(name, inner_adapter.clone()) {
+ if let Some(dispatch) = typed_dispatch_for(&name, inner_adapter.clone()) {
return dispatch
.execute(&(), call_id, inner_args, options, parent)
.await;