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(isolation_subagents): update subagent declaration in tests
Steven Enamakelf117f1394ecf
diff --git a/crates/openhuman-embed/tests/isolation_subagents.rs b/crates/openhuman-embed/tests/isolation_subagents.rsindex ebc030ba09..b1c1456fa1 100644--- a/crates/openhuman-embed/tests/isolation_subagents.rs+++ b/crates/openhuman-embed/tests/isolation_subagents.rs@@ -47,8 +47,13 @@ fn sub_agents_stay_with_the_agent_that_declared_them() {// ── A declares a helper; B does not ──let a_provider = scripted_provider(vec![tool_call_completion(- "delegate_a_helper",- &serde_json::json!({ "prompt": "summarise the plan" }).to_string(),+ "spawn_subagent",+ &serde_json::json!({+ "agent_id": "a_helper",+ "prompt": "summarise the plan",+ "task_key": "a-helper-summary"+ })+ .to_string(),)],"a-done",)@@ -90,10 +95,16 @@ fn sub_agents_stay_with_the_agent_that_declared_them() {assert!(tool_names(&a_requests[0]).iter()- .any(|t| t == "delegate_a_helper"),+ .any(|t| t == "spawn_subagent"),"a is offered its own helper: {:?}",tool_names(&a_requests[0]));+ assert!(+ !tool_names(&a_requests[0])+ .iter()+ .any(|tool| tool == "delegate_a_helper"),+ "a uses the shared spawn tool instead of a generated delegate alias"+ );assert!(a_requests.iter()