Skip to content

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

fix(tinyagents): map agent tier onto resolved definitions

Steven Enamakel68d50b28b63f
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs
index 5b3aa5cc87..ebf94f4ed8 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs
@@ -155,10 +155,8 @@ pub struct OpenHumanDefinitionRegistry {
/// Outcome of resolving a definition's own scope.
///
-/// Modelled explicitly because the crate's `Vec<String>` overloads *empty* to
-/// mean "unrestricted". Inferring wildcard from emptiness is what let a
-/// denylist-emptied scope, an explicitly tool-less scope, and a true wildcard
-/// all collapse onto the same value.
+/// Modelled explicitly so a denylist-emptied scope, an explicitly tool-less
+/// scope and a true wildcard never collapse onto the same host allowlist.
enum ResolvedScope {
/// Every registered tool, with no denylist to apply.
Wildcard,
@@ -288,6 +286,11 @@ impl OpenHumanDefinitionRegistry {
// The definition's validated tier is the host assertion the model
// resolver consumes for workload routing.
role: Some(def.agent_tier.to_string()),
+ agent_tier: match def.agent_tier {
+ AgentTier::Chat => tinyagents_definition::AgentTier::Chat,
+ AgentTier::Reasoning => tinyagents_definition::AgentTier::Reasoning,
+ AgentTier::Worker => tinyagents_definition::AgentTier::Worker,
+ },
model: model_for(&def.model),
subagents: declared_subagent_ids(def)
.into_iter()
diff --git a/vendor/tinysearch b/vendor/tinysearch
index 92853d636f..76acbf3c94 160000
--- a/vendor/tinysearch
+++ b/vendor/tinysearch
@@ -1 +1 @@
-Subproject commit 92853d636f56853b2c8511dec723bf38eab2cb24
+Subproject commit 76acbf3c9442c31c7c29fd78064493a2cbf05983