Skip to content

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

test(flows): update agent route tests to use task_manager_agent

Steven Enamakel5a2ab676ae51
diff --git a/crates/openhuman-core/src/flows/agent_route_tests.rs b/crates/openhuman-core/src/flows/agent_route_tests.rs
index 1346c43c6e..8253bc42ad 100644
--- a/crates/openhuman-core/src/flows/agent_route_tests.rs
+++ b/crates/openhuman-core/src/flows/agent_route_tests.rs
@@ -66,7 +66,7 @@ async fn route_for_agent_ref_selects_harness_for_definitions_else_fallback() {
CoreContext::scope(context, async {
assert_eq!(route_for_agent_ref("workflow_builder"), AgentRoute::Harness);
- assert_eq!(route_for_agent_ref("planner"), AgentRoute::Harness);
+ assert_eq!(route_for_agent_ref("task_manager_agent"), AgentRoute::Harness);
assert_eq!(
route_for_agent_ref("totally_unknown_custom_agent_xyz"),
AgentRoute::RegistryFallback
diff --git a/crates/openhuman-core/src/flows/caps_host/ops_tier_gate_and_timeouts_tests.rs b/crates/openhuman-core/src/flows/caps_host/ops_tier_gate_and_timeouts_tests.rs
index 6d53aabd0c..e3e0c8f2d5 100644
--- a/crates/openhuman-core/src/flows/caps_host/ops_tier_gate_and_timeouts_tests.rs
+++ b/crates/openhuman-core/src/flows/caps_host/ops_tier_gate_and_timeouts_tests.rs
@@ -397,17 +397,18 @@ async fn agent_node_runtime_resolves_to_the_definitions_effective_iteration_cap(
);
CoreContext::scope(context, async {
+ let agent_ref = "task_manager_agent";
let def = definitions
- .get("planner")
- .expect("planner definition registered")
- .clone();
+ .get(agent_ref)
+ .expect("task manager definition registered")
+ .clone();
let expected = def.effective_max_iterations();
assert_eq!(expected, 50);
let agent = crate::agent::OpenHumanSessionHost::from_config_for_agent(
&crate::core::runtime::DispatchCtx::unbound(),
&config,
- "planner",
+ agent_ref,
)
.expect("build planner agent");
assert_eq!(agent.agent_config().max_tool_iterations, expected);