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(subagent_host): cover shared spawn predicate in tool prep tests
Steven Enamakel82c9aaeb8a58
diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rsindex 33cc2cf76b..6afcf3aaf6 100644--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs@@ -9,16 +9,18 @@ fn custom_delegate_is_treated_as_spawn_tool() {#[test]fn child_tool_surface_never_contains_any_spawn_or_continuation_tool() {- let tools: Vec<Box<dyn Tool>> = [- "delegate",- "spawn_subagent",- "spawn_async_subagent",- "spawn_parallel_agents",- "spawn_worker_thread",- "delegate_graph",- "delegate_researcher",- "continue_subagent",- ]+ let spawn_names = tinyagents_definition::SPAWN_TOOL_NAMES+ .iter()+ .copied()+ .chain(["delegate", "delegate_graph", "delegate_researcher", "continue_subagent"])+ .collect::<Vec<_>>();+ for name in &spawn_names {+ assert!(+ crate::agent::tinyagents::is_subagent_spawn_or_delegate_tool(name),+ "shared spawn predicate missed {name}"+ );+ }+ let tools: Vec<Box<dyn Tool>> = spawn_names.into_iter().map(|name| Box::new(NamedTool(name)) as Box<dyn Tool>).collect();