Skip to content

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

refactor(flows): route catalog search through integrations module

Steven Enamakeleb032368a7b4
diff --git a/crates/openhuman-core/src/flows/mod.rs b/crates/openhuman-core/src/flows/mod.rs
index 7eaa2c9388..2c13be1b81 100644
--- a/crates/openhuman-core/src/flows/mod.rs
+++ b/crates/openhuman-core/src/flows/mod.rs
@@ -25,7 +25,7 @@
pub mod agents;
pub mod builder_host;
-pub mod builder_tools;
+pub(crate) mod builder_tools;
mod builder_tools_connection_reads;
pub mod bus;
pub mod catalogue;
diff --git a/crates/openhuman-core/src/flows/ops/catalog.rs b/crates/openhuman-core/src/flows/ops/catalog.rs
index 854bb6bc78..ceeb7d6eae 100644
--- a/crates/openhuman-core/src/flows/ops/catalog.rs
+++ b/crates/openhuman-core/src/flows/ops/catalog.rs
@@ -18,8 +18,10 @@ pub async fn flows_search_tool_catalog(
limit: usize,
) -> Result<Outcome<Value>, String> {
tracing::debug!(target: "flows", %query, toolkit = toolkit.unwrap_or("<all>"), "[flows] flows_search_tool_catalog: searching live catalog");
- let tools =
- crate::flows::builder_tools::search_live_catalog(config, query, toolkit, limit).await;
+ let tools = crate::integrations::composio::builder_tools::search_live_catalog(
+ config, query, toolkit, limit,
+ )
+ .await;
Ok(Outcome::single_log(
json!({ "tools": tools }),
"tool catalog searched",