Skip to content

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

style: reformat tokenjuice tool construction

Steven Enamakel44cac2549e36
diff --git a/crates/openhuman-core/src/inference/tokenjuice/mod_tests.rs b/crates/openhuman-core/src/inference/tokenjuice/mod_tests.rs
index 405d41d60f..cc5f33f66d 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/mod_tests.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/mod_tests.rs
@@ -7,9 +7,10 @@ fn host_tools_keep_the_published_recovery_names_and_schemas() {
// Pin the actual tool the registry constructs before removing the local
// forwarding wrapper; this protects the model-facing contract byte for
// byte across the ownership move to tinyjuice-host.
- let retrieve = tinyjuice_host::retrieve_tool::RetrieveToolOutputTool::new(
- std::sync::Arc::new(|_, _| Box::pin(async { Ok(None) })),
- );
+ let retrieve =
+ tinyjuice_host::retrieve_tool::RetrieveToolOutputTool::new(std::sync::Arc::new(|_, _| {
+ Box::pin(async { Ok(None) })
+ }));
assert_eq!(retrieve.name(), "juice_retrieve");
assert_eq!(
retrieve.permission_level(),
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index 4db561a177..4040428411 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -287,13 +287,9 @@ 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(
- tinyjuice_host::retrieve_tool::RetrieveToolOutputTool::new(Arc::new(
- |token, range| {
- Box::pin(async move {
- crate::inference::tokenjuice::retrieve(token, range).await
- })
- },
- )),
+ 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");