Skip to content

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

refactor(agent): use NamedToolHook alias in tool hooks registry

Steven Enamakel2d6469ce220a
diff --git a/crates/openhuman-core/src/agent/hooks.rs b/crates/openhuman-core/src/agent/hooks.rs
index c5117ebc09..f47aa3a596 100644
--- a/crates/openhuman-core/src/agent/hooks.rs
+++ b/crates/openhuman-core/src/agent/hooks.rs
@@ -17,7 +17,7 @@ static EMBEDDER_POST_TURN_HOOKS: std::sync::LazyLock<
std::sync::Mutex<Vec<NamedLearningSink>>,
> = std::sync::LazyLock::new(|| std::sync::Mutex::new(Vec::new()));
static EMBEDDER_TOOL_HOOKS: std::sync::LazyLock<
- std::sync::Mutex<Vec<(Option<String>, Arc<dyn ToolHook<OpenHumanRunContext>>)>>,
+ std::sync::Mutex<Vec<NamedToolHook>>,
> = std::sync::LazyLock::new(|| std::sync::Mutex::new(Vec::new()));
impl HookIdentity for OpenHumanRunContext {