The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
style: format code with rustfmt
Steven Enamakela8872d8d339d
diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rsindex 6afcf3aaf6..46d168816e 100644--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs@@ -12,7 +12,12 @@ fn child_tool_surface_never_contains_any_spawn_or_continuation_tool() {let spawn_names = tinyagents_definition::SPAWN_TOOL_NAMES.iter().copied()- .chain(["delegate", "delegate_graph", "delegate_researcher", "continue_subagent"])+ .chain([+ "delegate",+ "delegate_graph",+ "delegate_researcher",+ "continue_subagent",+ ]).collect::<Vec<_>>();for name in &spawn_names {assert!(@@ -21,9 +26,9 @@ fn child_tool_surface_never_contains_any_spawn_or_continuation_tool() {);}let tools: Vec<Box<dyn Tool>> = spawn_names- .into_iter()- .map(|name| Box::new(NamedTool(name)) as Box<dyn Tool>)- .collect();+ .into_iter()+ .map(|name| Box::new(NamedTool(name)) as Box<dyn Tool>)+ .collect();let indices = filter_tool_indices(&tools, &ToolScope::Wildcard, &[], None);diff --git a/crates/openhuman-core/src/profiles/capabilities_tests.rs b/crates/openhuman-core/src/profiles/capabilities_tests.rsindex 9f24eeeaa0..a92d99130f 100644--- a/crates/openhuman-core/src/profiles/capabilities_tests.rs+++ b/crates/openhuman-core/src/profiles/capabilities_tests.rs@@ -2,14 +2,7 @@ use super::*;#[test]fn profile_capabilities_deny_the_registered_spawn_tool() {- let capabilities = ProfileCapabilities::new(- None,- None,- None,- HashMap::new(),- Vec::new(),- None,- );+ let capabilities = ProfileCapabilities::new(None, None, None, HashMap::new(), Vec::new(), None);for name in tinyagents_definition::SPAWN_TOOL_NAMES.iter()diff --git a/crates/openhuman-core/src/profiles/provider_settings.rs b/crates/openhuman-core/src/profiles/provider_settings.rsindex efb601aba5..5d71283bd9 100644--- a/crates/openhuman-core/src/profiles/provider_settings.rs+++ b/crates/openhuman-core/src/profiles/provider_settings.rs@@ -18,13 +18,14 @@ use tinysearch_bus::Role;/// profiles must keep outside their tool capabilities.pub(crate) fn is_profile_spawn_tool(name: &str) -> bool {crate::agent::tinyagents::is_subagent_spawn_or_delegate_tool(name)- || crate::agent_registry::host_definition::AgentDefinitionRegistry::current()- .is_some_and(|registry| {+ || crate::agent_registry::host_definition::AgentDefinitionRegistry::current().is_some_and(+ |registry| {registry.list().iter().any(|definition| definition.delegate_name.as_deref() == Some(name))- })+ },+ )}/// Search capability vocabulary for operator presentation settings.pub use tinysearch_bus::Role as SearchRole;@@ -262,7 +263,10 @@ fn collides(name: &str) -> bool {|| super::tools::HARD_DENIED_PREFIXES.iter().any(|prefix| name.starts_with(prefix))- || matches!(name, "shell" | "memory" | "show_page" | "search" | "http_request")+ || matches!(+ name,+ "shell" | "memory" | "show_page" | "search" | "http_request"+ )|| is_profile_spawn_tool(name)}