The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(composio): re-export catalog search helpers from parent module
Steven Enamakelf567fa73b82c
diff --git a/crates/openhuman-core/src/integrations/composio/builder_tools/catalog_search.rs b/crates/openhuman-core/src/integrations/composio/builder_tools/catalog_search.rsindex dfd849e85c..38f358f5cb 100644--- a/crates/openhuman-core/src/integrations/composio/builder_tools/catalog_search.rs+++ b/crates/openhuman-core/src/integrations/composio/builder_tools/catalog_search.rs@@ -9,7 +9,7 @@ use crate::config::Config;use tinytools::{PermissionLevel, Tool, ToolResult};mod ranking;-pub(crate) use ranking::search_live_catalog;+pub(crate) use ranking::{search_catalog, search_live_catalog};// ─────────────────────────────────────────────────────────────────────────────// search_tool_catalog — read-only: real Composio tool slugs from the FULL@@ -99,7 +99,7 @@ impl Tool for SearchToolCatalogTool {toolkit = toolkit.unwrap_or("(any)"),"[flows] search_tool_catalog: searching the FULL LIVE Composio catalog (read-only)");- let outcome = ranking::search_catalog(&self.config, &query, toolkit, ranking::MAX_CATALOG_RESULTS).await;+ let outcome = search_catalog(&self.config, &query, toolkit, ranking::MAX_CATALOG_RESULTS).await;// Build with `note` first so an agent reading top-down sees the// near-miss / keyword-based advisory before the (possibly zero) rows.// `count` is always the number of returned rows, never a stand-in fordiff --git a/crates/openhuman-core/src/integrations/composio/builder_tools/catalog_search/ranking.rs b/crates/openhuman-core/src/integrations/composio/builder_tools/catalog_search/ranking.rsindex f99e132a51..e1d28d39c2 100644--- a/crates/openhuman-core/src/integrations/composio/builder_tools/catalog_search/ranking.rs+++ b/crates/openhuman-core/src/integrations/composio/builder_tools/catalog_search/ranking.rs@@ -4,7 +4,7 @@ use serde_json::{json, Value};use crate::config::Config;/// Cap on returned matches so a broad query can't flood the agent's context.-const MAX_CATALOG_RESULTS: usize = 40;+pub(super) const MAX_CATALOG_RESULTS: usize = 40;/// Search the FULL LIVE Composio catalog (via/// [`crate::integrations::composio::catalog::fetch_live_toolkit_catalog`]) for