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
test(tests): update test setups for subagent contexts
Steven Enamakel2f226566bc20
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rsindex 00c47a9dad..0e56700798 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_driver_bridge_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::subagent_host::{spawn_async_via_driver_tool_with_jobs, SubagentRunStatus};+use crate::agent::subagent_host::{SubagentRunStatus, spawn_async_via_driver_tool_with_jobs};#[tokio::test]async fn prepared_subagent_runs_through_driver_jobs_dispatcher() {diff --git a/tests/composio_list_tools_stack_overflow_regression.rs b/tests/composio_list_tools_stack_overflow_regression.rsindex 9c04e75675..4bcef71e7f 100644--- a/tests/composio_list_tools_stack_overflow_regression.rs+++ b/tests/composio_list_tools_stack_overflow_regression.rs@@ -420,9 +420,13 @@ async fn drive_subagent() {// The parent is an explicit value on the run options, not ambient state.let mut options = SubagentRunOptions::default();options.run_context.parent = Some(parent);- let parent = options.run_context.clone().into_tinyagents(- tinyagents_harness::context::RunConfig::new("composio-stack-regression-subagent"),- );+ let parent =+ options+ .run_context+ .clone()+ .into_tinyagents(tinyagents_harness::context::RunConfig::new(+ "composio-stack-regression-subagent",+ ));let _ = OpenHumanSubagentHost::new(def, options).run(&parent, "list available gmail actions".into()).await;@@ -436,8 +440,10 @@ async fn drive_subagent() {2,"the model must continue after the tool result");- assert!(tool_output- .lock()- .as_deref()- .is_some_and(|output| output.contains("composio is disabled")));+ assert!(+ tool_output+ .lock()+ .as_deref()+ .is_some_and(|output| output.contains("composio is disabled"))+ );}diff --git a/tests/in_process/calendar_grounding_e2e.rs b/tests/in_process/calendar_grounding_e2e.rsindex fa081a32b7..ba406aae43 100644--- a/tests/in_process/calendar_grounding_e2e.rs+++ b/tests/in_process/calendar_grounding_e2e.rs@@ -215,9 +215,13 @@ async fn test_subagent_has_current_date_context() -> Result<()> {// The parent is an explicit value on the run options, not ambient state.let mut options = openhuman_core::agent::subagent_host::SubagentRunOptions::default();options.run_context.parent = Some(parent);- let parent = options.run_context.clone().into_tinyagents(- tinyagents_harness::context::RunConfig::new("calendar-grounding-subagent-test"),- );+ let parent =+ options+ .run_context+ .clone()+ .into_tinyagents(tinyagents_harness::context::RunConfig::new(+ "calendar-grounding-subagent-test",+ ));let _ = openhuman_core::agent::subagent_host::OpenHumanSubagentHost::new(def, options).run(&parent, "list my calendar events for today".into()).await;