Skip to content

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

refactor(hooks): annotate embedder tool hook type explicitly

Steven Enamakelc69e7674b56d
diff --git a/crates/openhuman-core/src/hooks/ops.rs b/crates/openhuman-core/src/hooks/ops.rs
index 81733bf9c4..2908974204 100644
--- a/crates/openhuman-core/src/hooks/ops.rs
+++ b/crates/openhuman-core/src/hooks/ops.rs
@@ -55,10 +55,10 @@ pub async fn init(ctx: &DispatchCtx, config: &crate::config::schema::Config) {
crate::agent::hooks::replace_embedder_tool_hook("configured_hooks", None);
return;
}
- crate::agent::hooks::replace_embedder_tool_hook(
- "configured_hooks",
- Some(std::sync::Arc::clone(super::host::engine())),
- );
+ let hook: std::sync::Arc<
+ dyn tinyagents_hooks::tool::ToolHook<crate::agent::tinyagents::host::OpenHumanRunContext>,
+ > = super::host::engine().clone();
+ crate::agent::hooks::replace_embedder_tool_hook("configured_hooks", Some(hook));
}
fn workspace_roots(config: &crate::config::schema::Config) -> Vec<PathBuf> {