Skip to content

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

test(tinyagents): assert projected tier matches routing role

Steven Enamakel08651931cc89
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.rs
index 22f3b225b3..68d763625b 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
@@ -54,13 +54,12 @@ fn registry_of(defs: Vec<HostAgentDefinition>) -> OpenHumanDefinitionRegistry {
}
#[test]
-fn projection_supplies_the_validated_tier_as_the_model_routing_role() {
+fn projection_preserves_the_validated_tier_and_model_routing_role() {
for tier in [AgentTier::Chat, AgentTier::Reasoning, AgentTier::Worker] {
let def = synthetic("tiered", tier, &[]);
- assert_eq!(
- registry_of(vec![def.clone()]).project(&def).role.as_deref(),
- Some(tier.as_str())
- );
+ let projected = registry_of(vec![def.clone()]).project(&def);
+ assert_eq!(projected.role.as_deref(), Some(tier.as_str()));
+ assert_eq!(projected.agent_tier.as_str(), tier.as_str());
}
}