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): expose search provider constants and legacy inputs
Steven Enamakel5df6d23453e3
diff --git a/crates/openhuman-core/src/config/mod.rs b/crates/openhuman-core/src/config/mod.rsindex e9de4807f3..038556c467 100644--- a/crates/openhuman-core/src/config/mod.rs+++ b/crates/openhuman-core/src/config/mod.rs@@ -61,7 +61,8 @@ pub use schema::{MANAGED_MULTIMODAL_MODELS, MEMORY_SYNC_INTERVAL_PRESETS_SECS, MODEL_IMAGE_GENERATION_AGENT,MODEL_MANAGED_DEFAULT, MODEL_MEDIA_UNDERSTANDING, MODEL_VIDEO_GENERATION_AGENT,SEARCH_ENGINE_BRAVE, SEARCH_ENGINE_DISABLED, SEARCH_ENGINE_EXA, SEARCH_ENGINE_MANAGED,- SEARCH_ENGINE_QUERIT, SEARCH_ENGINE_TAVILY,+ SEARCH_ENGINE_QUERIT, SEARCH_ENGINE_TAVILY, MANAGED_SEARCH_PROVIDERS, SEARCH_PROVIDERS,+ SEARCH_ROLES, SEARCH_ROLE_ANSWER, SEARCH_ROLE_CONTENTS, SEARCH_ROLE_SEARCH, LegacySearchInputs,};// Kept as a separate re-export (issue #4117) so the large alphabetized group// above stays byte-identical and rustfmt-stable.diff --git a/crates/openhuman-core/src/tools/schemas/web_search.rs b/crates/openhuman-core/src/tools/schemas/web_search.rsindex cab08da2a3..0bb9fcf132 100644--- a/crates/openhuman-core/src/tools/schemas/web_search.rs+++ b/crates/openhuman-core/src/tools/schemas/web_search.rs@@ -89,9 +89,14 @@ fn search_arguments(params: &Map<String, Value>, provider: Option<&str>) -> Resuif let Some(provider) = provider.map(str::to_string).or_else(|| optional_text(params, "provider")) {arguments["provider"] = json!(provider);}+ let pinned = arguments+ .get("provider")+ .and_then(Value::as_str)+ .unwrap_or("auto")+ .to_string();tracing::debug!(query_len = query.chars().count(),- provider = arguments.get("provider").and_then(Value::as_str).unwrap_or("auto"),+ provider = %pinned,"[rpc][tools.search] request");Ok(arguments)