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
chore(memory): remove unused Composio host implementation
Steven Enamakel20019982143e
diff --git a/src/openhuman/memory/host_impls.rs b/src/openhuman/memory/host_impls.rsindex f9704730b1..3fd6ae5b30 100644--- a/src/openhuman/memory/host_impls.rs+++ b/src/openhuman/memory/host_impls.rs@@ -180,118 +180,6 @@ impl ChatHost for OpenHumanChatHost {}}-// ── Composio ────────────────────────────────────────────────────────────────--/// Runs Composio calls for the memory sync pipelines.-///-/// The two async methods re-read the config from disk, because an OAuth-/// completion or a `set_api_key` RPC between ticks has to take effect-/// immediately. The two sync ones recover the caller's config with-/// [`host_config`], which costs nothing and is still current as of the call.-#[derive(Debug)]-pub struct OpenHumanComposioHost {- config: Arc<Config>,-}--#[async_trait]-impl ComposioHost for OpenHumanComposioHost {- async fn list_connections(- &self,- config: &SeamConfig,- ) -> Result<Vec<ComposioConnection>, String> {- use crate::openhuman::integrations::composio::client::{- create_composio_client, direct_list_connections, ComposioClientKind,- };- let config = live_config(config).await?;- let response = match create_composio_client(&config)- .map_err(|e| format!("create_composio_client: {e:#}"))?- {- ComposioClientKind::Backend(client) => client- .list_connections()- .await- .map_err(|e| format!("list_connections (backend): {e:#}"))?,- ComposioClientKind::Direct(direct) => {- direct_list_connections(&direct).await.map_err(|e| {- // [#1166 / Sentry TAURI-RUST-X9] The v3 `/connected_accounts`- // 401 shape has to reach the observability classifier, and it- // only fires on a message carrying the `[composio-direct]`- // anchor. Render it here, where the direct client lives.- let rendered = format!("[composio-direct] list_connections (direct): {e:#}");- crate::openhuman::integrations::composio::ops::report_composio_op_error(- "list_connections",- &rendered,- );- rendered- })?- }- };- // Across the seam into `tinymemory`'s parallel copy — see- // `integrations::composio::types::reencode`. Removed with the trait in- // phase 4 of the connector extraction.- crate::openhuman::integrations::composio::types::reencode(&response.connections)- }-- async fn execute(- &self,- config: &SeamConfig,- tool: &str,- arguments: Option<serde_json::Value>,- entity_id: &str,- connection_id: Option<&str>,- ) -> Result<ComposioExecuteResponse, String> {- use crate::openhuman::integrations::composio::client::{- create_composio_client, direct_execute, ComposioClientKind,- };- let config = live_config(config).await?;- let response = match create_composio_client(&config).map_err(|e| format!("{e:#}"))? {- ComposioClientKind::Backend(client) => client- .execute_tool(tool, arguments)- .await- .map_err(|e| format!("{e:#}"))?,- ComposioClientKind::Direct(direct) => {- direct_execute(&direct, tool, arguments, entity_id, connection_id)- .await- .map_err(|e| format!("{e:#}"))?- }- };- // Across the seam into `tinymemory`'s parallel copy — see- // `integrations::composio::types::reencode`.- crate::openhuman::integrations::composio::types::reencode(&response)- }-- fn api_key(&self, config: &SeamConfig) -> Option<String> {- crate::openhuman::security::credentials::get_composio_api_key(host_config(- config,- &self.config,- ))- .ok()- .flatten()- }-- /// The app-session bearer proxied Composio mode authenticates with.- ///- /// The trait defaults this to `None`, which is right for a host that has no- /// session concept — and wrong here, where the whole point of the member is- /// that the engine can reach a live one. Left on the default, the engine's- /// proxied branch falls back to `Config::session_token`, which works only- /// while the engine runs in THIS process and answers nothing once it moves- /// behind the bus.- ///- /// Resolved through `host_config` for the same reason every other member- /// here does: the seam is handed a `dyn MemoryHostConfig` that may be the- /// module's snapshot rather than this host's own config.- fn session_bearer(&self, config: &SeamConfig) -> Option<String> {- crate::api::jwt::get_session_token(host_config(config, &self.config))- .ok()- .flatten()- }-- fn is_available(&self, config: &SeamConfig) -> bool {- use crate::openhuman::integrations::composio::client::create_composio_client;- create_composio_client(host_config(config, &self.config)).is_ok()- }-}-// ── Config loading ──────────────────────────────────────────────────────────/// Loads host configs for the memory subsystem's background loops.