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
feat(config): add jev_route and jev_base_url to tool search config
Steven Enamakel4395826f1b4f
diff --git a/crates/openhuman-core/src/config/schema/agent.rs b/crates/openhuman-core/src/config/schema/agent.rsindex 051bd1ba0e..54b0cdd31e 100644--- a/crates/openhuman-core/src/config/schema/agent.rs+++ b/crates/openhuman-core/src/config/schema/agent.rs@@ -434,6 +434,26 @@ pub struct ToolSearchConfig {/// alongside it in the `tool.searched` telemetry, so the two can be/// judged on live traffic without changing what the model sees.pub ranker: String,+ /// Where the Jev ranker's decision calls go and what authenticates them.+ /// Jev is reachable three ways, and which one a process uses is the+ /// operator's call, not something to infer from whatever credential+ /// happens to be stored:+ ///+ /// - `"auto"` (default): the TinyHumans credential when the process has+ /// one, else `TYPESAFE_API_KEY` (direct), else an OpenRouter key+ /// (`OPENROUTER_API_KEY`, or the stored `openrouter` BYOK key).+ /// - `"tinyhumans"`: the TinyHumans backend's proxy, TinyHumans credential only.+ /// - `"typesafe"`: TypeSafe's own API, `TYPESAFE_API_KEY` only.+ /// - `"openrouter"`: OpenRouter's System One API, OpenRouter key only.+ ///+ /// `OPENHUMAN_JEV_ROUTE` overrides this for one launch.+ pub jev_route: String,+ /// Replaces the API origin of the `"typesafe"` / `"openrouter"` routes+ /// (a metering proxy, a regional mirror, a test double). Remote origins+ /// must be HTTPS; plain HTTP is accepted for literal loopback IPs only,+ /// which the Jev client enforces. `OPENHUMAN_JEV_BASE_URL` overrides this+ /// for one launch. Has no effect on the `"tinyhumans"` route.+ pub jev_base_url: Option<String>,/// Matches a search returns when the model does not ask for a number./// Three: enough for the model to choose, few enough that the schemas/// returned do not undo the saving deferral made.@@ -444,6 +464,8 @@ impl Default for ToolSearchConfig {fn default() -> Self {Self {ranker: "jev".into(),+ jev_route: "auto".into(),+ jev_base_url: None,top_k: 3,}}diff --git a/crates/openhuman-core/src/config/schema/load/env_overlay.rs b/crates/openhuman-core/src/config/schema/load/env_overlay.rsindex 3675655418..bdf418562d 100644--- a/crates/openhuman-core/src/config/schema/load/env_overlay.rs+++ b/crates/openhuman-core/src/config/schema/load/env_overlay.rs@@ -105,6 +105,25 @@ impl Config {}}+ // One-launch override of how the Jev tool ranker is reached+ // (`agent.tool_search.jev_route`): `auto | tinyhumans | typesafe |+ // openrouter`. The ranker validates the spelling and falls back to+ // `auto` with a warning on an unknown one.+ if let Some(raw) = env.get("OPENHUMAN_JEV_ROUTE") {+ let trimmed = raw.trim();+ if !trimmed.is_empty() {+ tracing::debug!(route = trimmed, "OPENHUMAN_JEV_ROUTE overrides agent.tool_search.jev_route");+ self.agent.tool_search.jev_route = trimmed.to_ascii_lowercase();+ }+ }+ if let Some(raw) = env.get("OPENHUMAN_JEV_BASE_URL") {+ let trimmed = raw.trim();+ if !trimmed.is_empty() {+ tracing::debug!("OPENHUMAN_JEV_BASE_URL overrides agent.tool_search.jev_base_url");+ self.agent.tool_search.jev_base_url = Some(trimmed.to_string());+ }+ }+if let Some(workspace) = env.get("OPENHUMAN_WORKSPACE") {if !workspace.is_empty() {let (_, workspace_dir) =