Skip to content

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

fix(tools): use host retrieve tool for tokenjuice output

Steven Enamakel12042fdba6aa
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index 487a0b1f62..4db561a177 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -287,7 +287,13 @@ pub fn all_tools_with_runtime_and_pack_handle(
if crate::inference::tokenjuice::enabled(root_config) {
tools.push(Box::new(retrieve_tool_output_tool()));
tools.push(Box::new(
- crate::inference::tokenjuice::TokenjuiceRetrieveTool::new(),
+ tinyjuice_host::retrieve_tool::RetrieveToolOutputTool::new(Arc::new(
+ |token, range| {
+ Box::pin(async move {
+ crate::inference::tokenjuice::retrieve(token, range).await
+ })
+ },
+ )),
));
} else {
tracing::debug!("[tools::ops] juice component off; recovery tools not registered");