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 per-agent search host credentials
Steven Enamakel16868ec431c5
diff --git a/crates/openhuman-core/src/config/mod.rs b/crates/openhuman-core/src/config/mod.rsindex 649dfab02f..75bf8afc40 100644--- a/crates/openhuman-core/src/config/mod.rs+++ b/crates/openhuman-core/src/config/mod.rs@@ -54,7 +54,8 @@ pub use schema::{ObservabilityConfig, OrchestratorModelConfig, PrivacyConfig, PrivacyMode, ProxyConfig,ProxyScope, ReliabilityConfig, ResourceLimitsConfig, RuntimeConfig, SandboxBackend,SandboxConfig, SchedulerConfig, SchedulerGateConfig, SchedulerGateMode, SearchConfig,- SearchEngineCredentials, SearchPresentation, SearchProviderSettings, SearchRoute,+ SearchEngineCredentials, SearchHostCredential, SearchPresentation, SearchProviderSettings,+ SearchRoute,SearxngConfig, SecretsConfig, SecurityConfig, ShellConfig, SlackConfig, StreamMode, SttEngine,TeamModelConfig, TelegramConfig, TokenjuiceConfig, UpdateConfig, UpdateRestartStrategy,VoiceActivationMode, VoiceServerConfig, WebSearchConfig, WebhookConfig, YuanbaoConfig,diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rsindex 0b8344d619..9bfba29269 100644--- a/crates/openhuman-core/src/config/schema/mod.rs+++ b/crates/openhuman-core/src/config/schema/mod.rs@@ -121,8 +121,8 @@ pub use tools::{ComposioHostCredential, CurlConfig, GitbooksConfig, HttpHeader, HttpRequestConfig,IntegrationToggle, IntegrationsConfig, LegacySearchInputs, McpAuthConfig, McpClientConfig,McpClientIdentityConfig, McpServerConfig, McpToolExposure, MultimodalConfig,- MultimodalFileConfig, SearchConfig, SearchEngineCredentials, SearchPresentation,- SearchProviderSettings, SearchRoute, SearxngConfig, SecretsConfig, SeltzConfig,+ MultimodalFileConfig, SearchConfig, SearchEngineCredentials, SearchHostCredential,+ SearchPresentation, SearchProviderSettings, SearchRoute, SearxngConfig, SecretsConfig, SeltzConfig,WebSearchConfig, COMPOSIO_MODE_BACKEND, COMPOSIO_MODE_DIRECT, COMPOSIO_MODE_DISABLED,MANAGED_SEARCH_PROVIDERS, SEARCH_ENGINE_BRAVE, SEARCH_ENGINE_DISABLED, SEARCH_ENGINE_EXA,SEARCH_ENGINE_MANAGED, SEARCH_ENGINE_PARALLEL, SEARCH_ENGINE_QUERIT, SEARCH_ENGINE_TAVILY,diff --git a/crates/openhuman-core/src/config/schema/tools/mod.rs b/crates/openhuman-core/src/config/schema/tools/mod.rsindex f7208d5392..c089fb4c52 100644--- a/crates/openhuman-core/src/config/schema/tools/mod.rs+++ b/crates/openhuman-core/src/config/schema/tools/mod.rs@@ -20,8 +20,8 @@ pub use mcp::{};pub use multimodal::{MultimodalConfig, MultimodalFileConfig};pub use search::{- LegacySearchInputs, SearchConfig, SearchEngineCredentials, SearchPresentation,- SearchProviderSettings, SearchRoute, SearxngConfig, SeltzConfig, WebSearchConfig,+ LegacySearchInputs, SearchConfig, SearchEngineCredentials, SearchHostCredential,+ SearchPresentation, SearchProviderSettings, SearchRoute, SearxngConfig, SeltzConfig, WebSearchConfig,MANAGED_SEARCH_PROVIDERS, SEARCH_ENGINE_BRAVE, SEARCH_ENGINE_DISABLED, SEARCH_ENGINE_EXA,SEARCH_ENGINE_MANAGED, SEARCH_ENGINE_PARALLEL, SEARCH_ENGINE_QUERIT, SEARCH_ENGINE_TAVILY,SEARCH_PROVIDERS, SEARCH_ROLES, SEARCH_ROLE_ANSWER, SEARCH_ROLE_CONTENTS, SEARCH_ROLE_SEARCH,diff --git a/crates/openhuman-core/src/config/schema/tools/search.rs b/crates/openhuman-core/src/config/schema/tools/search.rsindex 440048af5d..e737aab372 100644--- a/crates/openhuman-core/src/config/schema/tools/search.rs+++ b/crates/openhuman-core/src/config/schema/tools/search.rs@@ -373,6 +373,13 @@ pub struct SearchConfig {#[serde(default, skip_serializing)]#[schemars(skip)]pub gemini_route: Option<String>,++ /// Keys an embedder pinned for one agent, by provider. Never persisted+ /// or printed. While any is set, this config is authoritative for the+ /// agent's search calls. Set them with [`SearchConfig::pin_host_credential`].+ #[serde(skip)]+ #[schemars(skip)]+ pub host_credentials: BTreeMap<String, SearchHostCredential>,}impl Default for SearchConfig {@@ -397,6 +404,7 @@ impl Default for SearchConfig {gemini_route: None,parallel: SearchEngineCredentials::default(),tinyfish: SearchEngineCredentials::default(),+ host_credentials: BTreeMap::new(),}}}@@ -481,6 +489,10 @@ impl SearchConfig {#[path = "search_migrate.rs"]mod migrate;+#[path = "search_host.rs"]+mod host;+pub use host::{SearchHostCredential, UnknownKeyedSearchProvider};+#[cfg(test)]#[path = "search_search_config_tests_tests.rs"]mod search_config_tests;diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rsindex 150226287b..29cc775e93 100644--- a/crates/openhuman-embed/src/lib.rs+++ b/crates/openhuman-embed/src/lib.rs@@ -71,6 +71,7 @@ pub use openhuman_core::backend::{BackendTransportError, BaseUrlPurpose, TransportProfile,};pub use openhuman_core::config::ComposioHostCredential;+pub use openhuman_core::config::SearchHostCredential;pub use openhuman_core::config::Config as RuntimeConfig;pub use openhuman_core::security::TrustedAccess;pub use openhuman_core::tools::toolpacks::{GroupMode, ToolGroups};