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(tinyagents): add definition registry tests
Steven Enamakelb8b6f8896add
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rsindex 3b58e60fe9..5cbe1bdcf5 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs@@ -1,4 +1,5 @@use super::*;+use tinyagents_definition::{ModelSpec, SubagentEntry};/// Extract the materialized allowlist, failing if projection widens to wildcard.trait NamedToolScope {@@ -162,7 +163,7 @@ async fn authorized_delegates_agree_with_boot_time_validation() {let registry = builtins();for def in &builtin_defs {- let declared = declared_subagent_ids(def);+ let declared = def.allowed_subagent_ids();let authorized = registry.delegates_for(&def.id).await@@ -236,7 +237,7 @@ fn skills_wildcard_entries_are_not_agent_ids() {def.subagents.push(SubagentEntry::Skills(SkillsWildcard {skills: "*".to_string(),}));- assert_eq!(declared_subagent_ids(&def), vec!["a_worker".to_string()]);+ assert_eq!(&def.allowed_subagent_ids(), vec!["a_worker".to_string()]);}#[test]