Skip to content

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

refactor(flows): inline single-item copilot tool registration loop

Steven Enamakel2aa9f78d7e1c
diff --git a/crates/openhuman-core/src/flows/registration.rs b/crates/openhuman-core/src/flows/registration.rs
index fdf000f49e..522f95fc2e 100644
--- a/crates/openhuman-core/src/flows/registration.rs
+++ b/crates/openhuman-core/src/flows/registration.rs
@@ -71,9 +71,7 @@ pub(crate) fn tools(config: Arc<Config>, security: &Arc<SecurityPolicy>) -> Vec<
crate::integrations::composio::builder_tools::GetToolOutputSampleTool::new(config.clone()),
));
- for name in ["list_agent_definitions"] {
- push_copilot_tool(&mut tools, copilot.as_ref(), name);
- }
+ push_copilot_tool(&mut tools, copilot.as_ref(), "list_agent_definitions");
tools.push(Box::new(
crate::integrations::composio::builder_tools::ListConnectableToolkitsTool::new(
config.clone(),