Skip to content

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

fix(config): remove unused integration controller schema

Steven Enamakel69c4955129bb
diff --git a/crates/openhuman-core/src/config/schemas/controllers/integrations.rs b/crates/openhuman-core/src/config/schemas/controllers/integrations.rs
index 04216f101c..29ff4a9652 100644
--- a/crates/openhuman-core/src/config/schemas/controllers/integrations.rs
+++ b/crates/openhuman-core/src/config/schemas/controllers/integrations.rs
@@ -6,38 +6,19 @@ use crate::config::rpc as config_rpc;
use crate::core::all::ControllerFuture;
use super::super::helpers::{
- deserialize_params, to_json, ComposioTriggerSettingsUpdate, SearchSettingsUpdate,
+ deserialize_params, to_json, ComposioTriggerSettingsUpdate,
};
pub(super) fn handle_update_search_settings(params: Map<String, Value>) -> ControllerFuture {
Box::pin(async move {
log::debug!("[config][rpc] update_search_settings enter");
- let update = match deserialize_params::<SearchSettingsUpdate>(params) {
- Ok(u) => u,
+ let patch = match deserialize_params::<config_rpc::SearchSettingsPatch>(params) {
+ Ok(patch) => patch,
Err(err) => {
log::warn!("[config][rpc] update_search_settings invalid params: {err}");
return Err(err);
}
};
- let patch = config_rpc::SearchSettingsPatch {
- enabled: update.enabled,
- enabled_providers: update.enabled_providers,
- presentation: update.presentation,
- presentation_provider: update.presentation_provider,
- parallel_route: update.parallel_route,
- gemini_route: update.gemini_route,
- gemini_api_key: update.gemini_api_key,
- engine: update.engine,
- max_results: update.max_results,
- timeout_secs: update.timeout_secs,
- parallel_api_key: update.parallel_api_key,
- brave_api_key: update.brave_api_key,
- querit_api_key: update.querit_api_key,
- exa_api_key: update.exa_api_key,
- tavily_api_key: update.tavily_api_key,
- allowed_domains: update.allowed_domains,
- allow_all: update.allow_all,
- };
match config_rpc::load_and_apply_search_settings(patch).await {
Ok(outcome) => {
log::debug!("[config][rpc] update_search_settings ok");
diff --git a/crates/openhuman-core/src/config/schemas/helpers.rs b/crates/openhuman-core/src/config/schemas/helpers.rs
index 47ad87cadf..937d064027 100644
--- a/crates/openhuman-core/src/config/schemas/helpers.rs
+++ b/crates/openhuman-core/src/config/schemas/helpers.rs
@@ -111,27 +111,6 @@ pub(super) struct AnalyticsSettingsUpdate {
pub(super) enabled: Option<bool>,
}
-#[derive(Debug, Deserialize)]
-pub(super) struct SearchSettingsUpdate {
- pub(super) enabled: Option<bool>,
- pub(super) enabled_providers: Option<Vec<String>>,
- pub(super) presentation: Option<String>,
- pub(super) presentation_provider: Option<String>,
- pub(super) parallel_route: Option<String>,
- pub(super) gemini_route: Option<String>,
- pub(super) gemini_api_key: Option<String>,
- pub(super) engine: Option<String>,
- pub(super) max_results: Option<usize>,
- pub(super) timeout_secs: Option<u64>,
- pub(super) parallel_api_key: Option<String>,
- pub(super) brave_api_key: Option<String>,
- pub(super) querit_api_key: Option<String>,
- pub(super) exa_api_key: Option<String>,
- pub(super) tavily_api_key: Option<String>,
- pub(super) allowed_domains: Option<Vec<String>>,
- pub(super) allow_all: Option<bool>,
-}
-
#[derive(Debug, Deserialize)]
pub(super) struct LocalAiSettingsUpdate {
pub(super) runtime_enabled: Option<bool>,