Skip to content

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

feat(integrations): add composio module client for connector auth

Steven Enamakel1bebed3964fc
diff --git a/crates/openhuman-core/src/integrations/composio/module_client.rs b/crates/openhuman-core/src/integrations/composio/module_client.rs
index 1ad9be6f31..93d9d37f5c 100644
--- a/crates/openhuman-core/src/integrations/composio/module_client.rs
+++ b/crates/openhuman-core/src/integrations/composio/module_client.rs
@@ -115,23 +115,6 @@ where
.map_err(|error| normalize_error(member, error))
}
-/// Call a long-running member with a deadline sized for it (see
-/// `modules::connectors::call_slow` for why `Sync` needs one).
-#[cfg(feature = "modules")]
-pub async fn call_slow<Request, Reply>(
- config: &crate::config::Config,
- member: &str,
- request: Request,
-) -> Result<Reply, String>
-where
- Request: serde::Serialize + Send,
- Reply: serde::de::DeserializeOwned,
-{
- crate::modules::connectors::call_slow(config, member, request)
- .await
- .map_err(|error| normalize_error(member, error))
-}
-
/// Call one member with an argument. Always fails without the `modules` feature.
///
/// # Errors
@@ -150,24 +133,6 @@ where
Err(format!("{member}: {WITHOUT_MODULES}"))
}
-/// Call a long-running member. Always fails without the `modules` feature.
-///
-/// # Errors
-///
-/// Always, explaining that this build has no module loader.
-#[cfg(not(feature = "modules"))]
-pub async fn call_slow<Request, Reply>(
- _config: &crate::config::Config,
- member: &str,
- _request: Request,
-) -> Result<Reply, String>
-where
- Request: serde::Serialize + Send,
- Reply: serde::de::DeserializeOwned,
-{
- Err(format!("{member}: {WITHOUT_MODULES}"))
-}
-
/// Give an already-serving connector module the route the current config
/// selects — for a signed-out user, that means dropping the credential it was
/// configured with while signed in — without loading a module that is not
diff --git a/crates/openhuman-core/src/modules/connectors.rs b/crates/openhuman-core/src/modules/connectors.rs
index 8d28cb6651..ad1d24a964 100644
--- a/crates/openhuman-core/src/modules/connectors.rs
+++ b/crates/openhuman-core/src/modules/connectors.rs
@@ -352,35 +352,6 @@ where
.map_err(|error| format!("{member}: {error}"))
}
-/// Call a long-running member with a deadline sized for it.
-///
-/// The default bus deadline (30s) fits request-shaped members. `Sync` is not
-/// one: the module pages a whole connected account through inside the call —
-/// "a full sync is minutes of paging" is its own documentation — and a 30s
-/// deadline made the host report failure while the module went on to finish
-/// (observed live: timeout at 30s, `run finished … ingested=200` at 38s, and
-/// a Sync button that spun forever on a run that had actually succeeded).
-///
-/// # Errors
-///
-/// As [`call`].
-pub async fn call_slow<Request, Reply>(
- config: &Config,
- member: &str,
- request: Request,
-) -> Result<Reply, String>
-where
- Request: Serialize + Send,
- Reply: DeserializeOwned,
-{
- const SLOW_MEMBER_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(15 * 60);
- let proxy = proxy(config).await?.with_timeout(SLOW_MEMBER_TIMEOUT);
- proxy
- .call::<Reply>(member, (request,))
- .await
- .map_err(|error| format!("{member}: {error}"))
-}
-
/// Call a member that takes no arguments.
///
/// # Errors