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
chore: apply rustfmt formatting across agent modules
Steven Enamakelb931fe5469aa
diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rsindex c40649c453..c4cf35c161 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs@@ -592,7 +592,10 @@ fn tools_section_code_formats_render_function_signatures() {"{format:?} expected {expected:?}, got:\n{rendered}");assert!(!rendered.contains("Call as:"), "{format:?}:\n{rendered}");- assert!(!rendered.contains("\"properties\""), "{format:?}:\n{rendered}");+ assert!(+ !rendered.contains("\"properties\""),+ "{format:?}:\n{rendered}"+ );assert!(rendered.ends_with("## Tool Use Protocol\n\n(block)"),"{format:?} appends the dispatcher block, got:\n{rendered}"diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rsindex b1ba586406..9249fec5a9 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs@@ -610,10 +610,8 @@ fn render_subagent_system_prompt_skips_memory_md_when_disabled() {#[test]fn render_subagent_system_prompt_code_formats_list_signatures_and_protocol() {- let workspace = std::env::temp_dir().join(format!(- "openhuman_prompt_code_{}",- uuid::Uuid::new_v4()- ));+ let workspace =+ std::env::temp_dir().join(format!("openhuman_prompt_code_{}", uuid::Uuid::new_v4()));std::fs::create_dir_all(&workspace).unwrap();let tools: Vec<Box<dyn Tool>> = vec![Box::new(TestTool)];diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rsindex 73433878ed..40554e0971 100644--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs@@ -1,6 +1,7 @@//! `OpenHumanSessionHost::from_config` factory methods and the internal//! `build_session_agent_inner` constructor.+use super::dispatcher::{resolve_dispatcher_kind, DispatcherKind};use super::helpers::prefetch_tool_memory_rules_blocking;use super::should_synthesize_delegation_tools;use crate::agent::harness::definition::NO_TOOLS_SENTINEL;@@ -17,8 +18,9 @@ use crate::tools;use anyhow::Result;use std::sync::Arc;use tinytools::{PermissionLevel, Tool};-use super::dispatcher::{resolve_dispatcher_kind, DispatcherKind};-use tinytools_agent::dialect::{CodeDialect, NativeDialect, PFormatDialect, ToolDialect, XmlDialect};+use tinytools_agent::dialect::{+ CodeDialect, NativeDialect, PFormatDialect, ToolDialect, XmlDialect,+};impl OpenHumanSessionHost {/// Constructs an `OpenHumanSessionHost` instance from a global system configuration.diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory_provider_role_tests_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/factory_provider_role_tests_tests.rsindex 408b84137e..a5cf40b15e 100644--- a/crates/openhuman-core/src/agent/session_host/builder/factory_provider_role_tests_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/factory_provider_role_tests_tests.rs@@ -1,5 +1,5 @@-use super::provider_role_for;use super::super::dispatcher::{resolve_dispatcher_kind, DispatcherKind};+use super::provider_role_for;#[test]fn legacy_orchestrator_fallback_defaults_to_chat() {diff --git a/crates/openhuman-core/src/agent/session_host/driver.rs b/crates/openhuman-core/src/agent/session_host/driver.rsindex 6acc8ec0b7..e8e2b4770f 100644--- a/crates/openhuman-core/src/agent/session_host/driver.rs+++ b/crates/openhuman-core/src/agent/session_host/driver.rs@@ -182,8 +182,10 @@ impl SessionDriver<OpenHumanRunContext> for OpenHumanSessionDriver {// composed for: a text dialect strips schemas off the wire and needs// the positional registry to recover P-Format / code-style calls.let run_context = request.run_context.data.clone().with_tool_dialect(- crate::agent::prompts::tool_call_format_from_dialect(self.dispatcher.tool_call_format())- .harness_dispatcher(),+ crate::agent::prompts::tool_call_format_from_dialect(+ self.dispatcher.tool_call_format(),+ )+ .harness_dispatcher(),);let outcome = match graph::run_chat_turn_graph(ChatTurnGraph {turn_models,