Skip to content

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

fix(tests): conditionally import tool_results behind mcp feature

Steven Enamakel65b0f2645bba
diff --git a/crates/openhuman-embed/tests/runtime_agents.rs b/crates/openhuman-embed/tests/runtime_agents.rs
index aa75c3561a..b489caf819 100644
--- a/crates/openhuman-embed/tests/runtime_agents.rs
+++ b/crates/openhuman-embed/tests/runtime_agents.rs
@@ -11,10 +11,9 @@
mod common;
-use common::{
- chat_completion, offline_config, runtime, stub_backend, tool_call_completion,
- tool_results,
-};
+#[cfg(feature = "mcp")]
+use common::tool_results;
+use common::{chat_completion, offline_config, runtime, stub_backend, tool_call_completion};
use openhuman_embed::{
Access, AgentDefinitionSpec, AgentError, AgentSpec, Provider, Runtime, SandboxModeSpec,
Workspace,