Skip to content

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

chore(embed): gate test-only hook import behind cfg(test)

Steven Enamakelef579dd9bb7a
diff --git a/crates/openhuman-embed/src/runtime/seams.rs b/crates/openhuman-embed/src/runtime/seams.rs
index 593c26ece5..dcb8bad021 100644
--- a/crates/openhuman-embed/src/runtime/seams.rs
+++ b/crates/openhuman-embed/src/runtime/seams.rs
@@ -27,6 +27,8 @@ use openhuman_core::agent::hooks::{
embedder_post_turn_hook_named, embedder_tool_hooks, replace_embedder_post_turn_hook,
replace_embedder_tool_hook,
};
+#[cfg(test)]
+use openhuman_core::agent::hooks::embedder_post_turn_hooks;
use openhuman_core::agent::tinyagents::discovery::{
clear_tool_ranker, install_tool_ranker, installed_tool_ranker,
};