Skip to content

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

fix(profiles): iterate provider tool specs by value

Steven Enamakel2d13c73d462c
diff --git a/crates/openhuman-core/src/profiles/provider_settings.rs b/crates/openhuman-core/src/profiles/provider_settings.rs
index 81a31a76f7..8795b597aa 100644
--- a/crates/openhuman-core/src/profiles/provider_settings.rs
+++ b/crates/openhuman-core/src/profiles/provider_settings.rs
@@ -227,7 +227,8 @@ fn valid_identifier(name: &str) -> bool {
fn collides(name: &str) -> bool {
tinysearch_bus::role_for_tool(name).is_some()
|| tinysearch_bus::provider_tool_specs()
- .iter()
+ .values()
+ .flatten()
.any(|tool| tool.name == name)
|| crate::tools::toolpacks::pack_for_tool(name).is_some()
|| super::tools::HARD_DENIED.contains(&name)