Skip to content

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

refactor(tinyhumans): parameterize tool hook with run context

Steven Enamakelcb58894d9b2a
diff --git a/crates/openhuman-tinyhumans/src/runtime.rs b/crates/openhuman-tinyhumans/src/runtime.rs
index 10584c01df..649dda118a 100644
--- a/crates/openhuman-tinyhumans/src/runtime.rs
+++ b/crates/openhuman-tinyhumans/src/runtime.rs
@@ -25,7 +25,8 @@ use std::path::PathBuf;
use std::sync::Arc;
use openhuman_embed::seams::{
- ControllerExtension, LearningSink, SecurityPolicy, ServerLauncher, ToolHook,
+ ControllerExtension, LearningSink, OpenHumanRunContext, SecurityPolicy, ServerLauncher,
+ ToolHook,
};
use tinytools::ToolRanker;
@@ -201,7 +202,7 @@ impl RuntimeBuilder {
);
forward!(
/// See [`openhuman_embed::RuntimeBuilder::tool_hook`].
- tool_hook(hook: Arc<dyn ToolHook>)
+ tool_hook(hook: Arc<dyn ToolHook<OpenHumanRunContext>>)
);
forward!(
/// See [`openhuman_embed::RuntimeBuilder::server_launcher`].