Skip to content

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

chore: files changed crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs

Steven Enamakela9bc5423fdd0
diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs
index ddcd251af8..4a6c2796bf 100644
--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests.rs
@@ -87,15 +87,15 @@ fn find<'a>(tools: &'a [Box<dyn Tool>], name: &str) -> &'a dyn Tool {
.unwrap_or_else(|| panic!("{name} missing"))
}
+/// A shared, immutable tool registry.
+type ToolRegistry = Arc<Vec<Box<dyn Tool>>>;
+
/// A registry split the way a real agent's is: the pack tool in the durable
/// vector, the packed tool in the separate synthesised one.
///
/// This is not a contrived shape. Every `delegate_*` tool is synthesised into
/// `OpenHumanSessionHost::synthesized_tools`, a different `Arc` from the durable registry
/// (#6145), and seven delegates were already packed.
-/// A shared, immutable tool registry.
-type ToolRegistry = Arc<Vec<Box<dyn Tool>>>;
-
fn split_registries(
name: &'static str,
level: PermissionLevel,