Skip to content

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

refactor(profiles): use is_subagent_spawn_tool for spawn tool check

Steven Enamakel9ddc9e00aff7
diff --git a/crates/openhuman-core/src/profiles/provider_settings.rs b/crates/openhuman-core/src/profiles/provider_settings.rs
index 359ffa6e97..fb9a2512a3 100644
--- a/crates/openhuman-core/src/profiles/provider_settings.rs
+++ b/crates/openhuman-core/src/profiles/provider_settings.rs
@@ -17,7 +17,7 @@ use tinysearch_bus::Role;
/// Whether a tool name belongs to a spawn/delegation surface that hosted
/// profiles must keep outside their tool capabilities.
pub(crate) fn is_profile_spawn_tool(name: &str) -> bool {
- crate::agent::tinyagents::turn_policy::is_subagent_spawn_or_delegate_tool(name)
+ crate::agent::tinyagents::turn_policy::is_subagent_spawn_tool(name)
|| crate::agent_registry::host_definition::AgentDefinitionRegistry::current().is_some_and(
|registry| {
registry