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
chore: files changed crates/openhuman-core/src/modules/search/proxy.rs,crates/openhuman-core/src/mod
Steven Enamakelc040636d63a2
diff --git a/crates/openhuman-core/src/modules/search/proxy.rs b/crates/openhuman-core/src/modules/search/proxy.rsindex efec7ff010..2c71468738 100644--- a/crates/openhuman-core/src/modules/search/proxy.rs+++ b/crates/openhuman-core/src/modules/search/proxy.rs@@ -20,6 +20,7 @@ use tinysearch_bus::{names, ExecuteToolRequest, ExecuteToolResponse, ListToolsReuse super::{module_config, MODULE_ID};use crate::config::Config;+use crate::core::runtime::DispatchCtx;/// Bus deadline for one `ExecuteTool` call.///diff --git a/crates/openhuman-core/src/modules/search/proxy_tests.rs b/crates/openhuman-core/src/modules/search/proxy_tests.rsindex 68d96c3713..7a0ca2b362 100644--- a/crates/openhuman-core/src/modules/search/proxy_tests.rs+++ b/crates/openhuman-core/src/modules/search/proxy_tests.rs@@ -168,7 +168,7 @@ async fn a_host_pinned_config_is_used_as_given_without_reading_config_path() {).unwrap();// No config.toml exists; a reload would come back without the pin.- let current = current_config(&config).await.unwrap();+ let current = current_config(&DispatchCtx::unbound(), &config).await.unwrap();assert_eq!(current.search.direct_key("tavily"), Some("agent-key"));assert!(current.search.is_host_pinned());assert!(!config.config_path.exists(), "nothing was written");@@ -183,7 +183,7 @@ async fn an_unpinned_config_is_reloaded_from_config_path() {std::fs::write(&on_disk.config_path, toml::to_string(&on_disk).unwrap()).unwrap();// The caller's snapshot is stale: the file has since gained a key.let stale = file_backed_config(dir.path());- let current = current_config(&stale).await.unwrap();+ let current = current_config(&DispatchCtx::unbound(), &stale).await.unwrap();assert_eq!(current.search.direct_key("tavily"), Some("file-key"));}diff --git a/crates/openhuman-core/src/tools/schemas/web_search.rs b/crates/openhuman-core/src/tools/schemas/web_search.rsindex b3a7c20f4e..4b39fd8fec 100644--- a/crates/openhuman-core/src/tools/schemas/web_search.rs+++ b/crates/openhuman-core/src/tools/schemas/web_search.rs@@ -36,11 +36,12 @@ async fn run_role_tool(method: &str,) -> Result<Value, String> {let config = ctx.load_config().await?;- run_role_tool_with(&config, tool, arguments, method).await+ run_role_tool_with(ctx, &config, tool, arguments, method).await}#[cfg(feature = "modules")]async fn run_role_tool_with(+ ctx: &DispatchCtx,config: &crate::config::Config,tool: &'static str,arguments: Value,@@ -59,7 +60,7 @@ async fn run_role_tool_with(name: tool.to_string(),arguments,};- let response = crate::modules::search::execute_tool(config, request)+ let response = crate::modules::search::execute_tool(ctx, config, request).await.map_err(|error| crate::search::tools::user_facing_error(&error))?;let payload = json!({@@ -119,6 +120,7 @@ fn ensure_servable(#[cfg(not(feature = "modules"))]async fn run_role_tool_with(+ _ctx: &DispatchCtx,_config: &crate::config::Config,_tool: &'static str,_arguments: Value,