Skip to content

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

style: apply rustfmt formatting to subagent dispatch and session tests

Steven Enamakel1241b3a97ec0
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs b/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
index d085d17d9e..bc745d5d1e 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
@@ -27,9 +27,7 @@ pub(crate) struct DelegationDispatch {
}
enum DelegationDispatchKind {
- Archetype {
- agent_id: String,
- },
+ Archetype { agent_id: String },
}
impl DelegationDispatch {
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs
index 06395f2052..085d835b44 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs
@@ -599,7 +599,9 @@ async fn prompt_and_declared_tools(
async fn debug_prompt_matches_the_system_prompt_sent_on_a_cold_turn() {
let _ = crate::agent_registry::host_definition::AgentDefinitionRegistry::init_global_builtins();
let action_dir = tempfile::tempdir().expect("tempdir");
- let model = Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec!["ok"]));
+ let model = Arc::new(tinyagents_harness::testkit::ScriptedModel::replies(vec![
+ "ok",
+ ]));
let model_for_host: Arc<dyn tinyinference_llm::model::ChatModel<()>> = model.clone();
let mut host = crate::agent::SessionHostBuilder::new()
.chat_model(model_for_host)
@@ -636,7 +638,10 @@ async fn debug_prompt_matches_the_system_prompt_sent_on_a_cold_turn() {
.collect::<String>();
assert_no_goal_tools(&sent, &ToolSnapshot::default());
- assert_eq!(dumped, sent, "debug dump must equal the real cold-turn system prompt");
+ assert_eq!(
+ dumped, sent,
+ "debug dump must equal the real cold-turn system prompt"
+ );
}
fn assert_no_goal_tools(prompt: &str, snapshot: &ToolSnapshot) {