Skip to content

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

feat(agent): add ephemeral route support for tinyagents

Steven Enamakelc1392a4522c6
diff --git a/crates/openhuman-core/src/agent/tinyagents/routes.rs b/crates/openhuman-core/src/agent/tinyagents/routes.rs
index 22532f19f9..972f9c9d7e 100644
--- a/crates/openhuman-core/src/agent/tinyagents/routes.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/routes.rs
@@ -26,8 +26,8 @@ pub(super) const ROUTE_VISION: &str = "hint:vision";
/// The workload routes projected into the registry, keyed by role alias.
///
/// This is the canonical workload inventory (`chat`, `reasoning`, `agentic`,
-/// `coding`, `burst`, `summarization`, `vision`). `subconscious`/`memory` are
-/// intentionally absent — they are role aliases that ride the chat route rather
+/// `coding`, `burst`, `summarization`, `vision`). `memory` is
+/// intentionally absent — it is a role alias that ride the chat route rather
/// than distinct router entries.
pub(super) const WORKLOAD_ROUTE_TIERS: &[&str] = &[
ROUTE_CHAT,
diff --git a/crates/openhuman-core/src/config/schema/ephemeral_route.rs b/crates/openhuman-core/src/config/schema/ephemeral_route.rs
index 25198bac89..964930e4b3 100644
--- a/crates/openhuman-core/src/config/schema/ephemeral_route.rs
+++ b/crates/openhuman-core/src/config/schema/ephemeral_route.rs
@@ -25,7 +25,7 @@
//!
//! [`apply`] pins the four roles an agent turn actually runs on — chat,
//! reasoning, agentic, coding. It deliberately leaves the background roles
-//! (memory, embeddings, heartbeat, learning, subconscious) and `vision` alone:
+//! (memory, embeddings, learning) and `vision` alone:
//! those run tier-specific models a coding endpoint generally cannot serve, and
//! silently sending an embeddings request to a chat model is worse than ignoring
//! the route for that workload.
diff --git a/crates/openhuman-core/src/inference/http/server.rs b/crates/openhuman-core/src/inference/http/server.rs
index 99f5a6de94..1645658fca 100644
--- a/crates/openhuman-core/src/inference/http/server.rs
+++ b/crates/openhuman-core/src/inference/http/server.rs
@@ -341,9 +341,7 @@ async fn models_handler(State(_state): State<AppState>) -> Response {
config.vision_provider.as_deref(),
config.memory_provider.as_deref(),
config.embeddings_provider.as_deref(),
- config.heartbeat_provider.as_deref(),
config.learning_provider.as_deref(),
- config.subconscious_provider.as_deref(),
]
.into_iter()
.flatten()
diff --git a/crates/openhuman-core/src/inference/provider/fallback_diagnostics_tests.rs b/crates/openhuman-core/src/inference/provider/fallback_diagnostics_tests.rs
index fbac1c8b13..6642a0a59f 100644
--- a/crates/openhuman-core/src/inference/provider/fallback_diagnostics_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/fallback_diagnostics_tests.rs
@@ -20,9 +20,7 @@ fn background_roles_fall_back_to_cloud() {
"embeddings",
"memory",
"summarization",
- "heartbeat",
"learning",
- "subconscious",
"agentic",
"burst",
] {
@@ -64,9 +62,9 @@ fn fallback_notice_names_capability_local_model_and_override() {
#[test]
fn fallback_notice_for_role_without_capability_label_uses_role_name() {
- let msg = cloud_fallback_notice("heartbeat", "ollama:gemma3:1b", "openhuman");
- assert!(msg.contains("Heartbeat"), "got: {msg}");
- assert!(msg.contains("heartbeat_provider"), "got: {msg}");
+ let msg = cloud_fallback_notice("learning", "ollama:gemma3:1b", "openhuman");
+ assert!(msg.contains("Learning"), "got: {msg}");
+ assert!(msg.contains("learning_provider"), "got: {msg}");
}
#[test]