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
feat(tools): add wallet and web3 tool configuration
Steven Enamakel8c9342bf2a48
diff --git a/crates/openhuman-core/src/config/tools.rs b/crates/openhuman-core/src/config/tools.rsindex e1db86eece..16d2ddfde6 100644--- a/crates/openhuman-core/src/config/tools.rs+++ b/crates/openhuman-core/src/config/tools.rs@@ -49,7 +49,7 @@ macro_rules! read_tool {}async fn execute(&self, _args: serde_json::Value) -> anyhow::Result<ToolResult> {log::debug!(concat!("[tool][config] ", $name, " invoked"));- emit!(ops::$fn(&ctx).await, $name)+ emit!(ops::$fn(&crate::core::runtime::DispatchCtx::ambient()).await, $name)}fn is_concurrency_safe(&self, _args: &serde_json::Value) -> bool {truediff --git a/crates/openhuman-core/src/core/invoke.rs b/crates/openhuman-core/src/core/invoke.rsindex c2317e9128..84243d46c5 100644--- a/crates/openhuman-core/src/core/invoke.rs+++ b/crates/openhuman-core/src/core/invoke.rs@@ -34,7 +34,7 @@ pub async fn invoke_method(method: &str,params: Value,) -> Result<Value, String> {- let mut result = invoke_scoped(ctx, state, method, params).await;+ let mut result = invoke_scoped(ctx.clone(), state, method, params).await;// Session auto-cleanup: if the OpenHuman auth session is explicitly// expired, publish a `SessionExpired` event. The credentials subscriberdiff --git a/crates/openhuman-core/src/web3/wallet/tools.rs b/crates/openhuman-core/src/web3/wallet/tools.rsindex a93e2ab57e..9e1388a73e 100644--- a/crates/openhuman-core/src/web3/wallet/tools.rs+++ b/crates/openhuman-core/src/web3/wallet/tools.rs@@ -90,6 +90,7 @@ impl WalletModuleTool {};outcome_value(crate::web3::wallet::prepare_transfer(+ ctx,params,crate::modules::web3_service::owner_of(chat),)