Skip to content

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

fix(tools): re-export x402_request_tool under web3 feature

Steven Enamakel5ceec60adb21
diff --git a/crates/openhuman-core/src/tools/impl/network/mod.rs b/crates/openhuman-core/src/tools/impl/network/mod.rs
index ae2263f405..2162d9d328 100644
--- a/crates/openhuman-core/src/tools/impl/network/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/network/mod.rs
@@ -23,6 +23,8 @@ mod mcp_server_tools;
pub use gitbooks::{GitbooksGetPageTool, GitbooksSearchTool};
pub use gmail_unsubscribe::GmailUnsubscribeTool;
pub use host::{http_request_tool, web_fetch_tool};
+#[cfg(feature = "web3")]
+pub(crate) use host::x402_request_tool;
#[cfg(feature = "mcp")]
pub use mcp::{mcp_call_tool, McpListServersTool, McpListToolsTool};
#[cfg(feature = "mcp")]
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index 5cddffff69..b28db3342c 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -550,7 +550,7 @@ pub fn all_tools_with_runtime(
// or SPL payment signing, and ledger recording. Gated with the `web3`
// feature (the x402 domain is compiled out when web3 is disabled).
#[cfg(feature = "web3")]
- tools.push(Box::new(crate::tools::impl::network::host::x402_request_tool(
+ tools.push(Box::new(crate::tools::x402_request_tool(
security.clone(),
http_config.allowed_domains.clone(),
http_config.max_response_size,