Skip to content

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

feat(tools): add user filter tool for access control

Steven Enamakel04a2126fcbd7
diff --git a/crates/openhuman-core/src/tools/mod.rs b/crates/openhuman-core/src/tools/mod.rs
index b8d05d198a..df07e81652 100644
--- a/crates/openhuman-core/src/tools/mod.rs
+++ b/crates/openhuman-core/src/tools/mod.rs
@@ -46,7 +46,8 @@ pub use crate::platform::cost::tools::*;
pub use crate::platform::doctor::tools::*;
pub use crate::platform::health::tools::*;
pub use crate::platform::service::tools::*;
-pub use crate::search::tools::*;
+#[cfg(feature = "modules")]
+pub use crate::search::TinySearchTool;
pub use crate::security::credentials::tools::*;
pub use crate::security::tools::*;
#[cfg(feature = "skills")]
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index 69b5d61d22..86ccc0cfb9 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -941,17 +941,10 @@ pub fn all_tools_with_runtime(
} else {
tracing::debug!("[integrations] google_places disabled — skipping");
}
- // NOTE: parallel tools moved to the unified [search] engine
- // selector above. `integrations.parallel` is parsed but no
- // longer registers tools directly — set
- // `search.engine = "parallel"` instead.
- if root_config.integrations.parallel.is_active() {
- tracing::debug!(
- "[integrations] parallel toggle is active but tools are governed by search.engine now"
- );
- }
- // TinyFish is search-owned and registers through the unified search
- // surface above so `search.engine = "disabled"` suppresses it too.
+ // Web search providers (Exa, Gemini, TinyFish, ...) register through
+ // the TinySearch module above, so `[search] enabled = false`
+ // suppresses them too. `integrations.parallel` is parsed for old
+ // config files and no longer does anything.
if root_config.integrations.stock_prices.is_active() {
tools.push(Box::new(crate::tools::StockQuoteTool::new(Arc::clone(
&client,
@@ -1277,11 +1270,17 @@ fn tool_group(name: &str) -> crate::core::all::DomainGroup {
// Integrations: every external connector reached on the user's behalf.
if name.starts_with("composio")
|| name == "web_search_tool"
+ || name == "web_answer_tool"
+ || name == "web_contents_tool"
+ || name == "search"
|| name.starts_with("tinyfish_")
|| name.starts_with("exa_")
+ || name.starts_with("gemini_")
|| name.starts_with("brave_")
- || name.starts_with("parallel_")
- || name.starts_with("querit_") || name.starts_with("tavily_")
+ || name.starts_with("querit_")
+ || name.starts_with("tavily_")
+ || name.starts_with("seltz_")
+ || name.starts_with("searxng_")
|| name.starts_with("google_places_")
|| name.starts_with("stock_")
|| name.starts_with("storage_")
diff --git a/crates/openhuman-core/src/tools/user_filter.rs b/crates/openhuman-core/src/tools/user_filter.rs
index 45aea23bfb..1e7a01b021 100644
--- a/crates/openhuman-core/src/tools/user_filter.rs
+++ b/crates/openhuman-core/src/tools/user_filter.rs
@@ -77,7 +77,7 @@ const TOOL_FAMILIES: &[ToolFamily] = &[
},
ToolFamily {
id: "web_search",
- rust_names: &["web_search_tool"],
+ rust_names: &["web_search_tool", "web_answer_tool", "web_contents_tool"],
default_enabled: true,
},
ToolFamily {