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(composio): add direct tool execution path
Steven Enamakel209ded2747e1
diff --git a/crates/openhuman-core/src/integrations/composio/tools.rs b/crates/openhuman-core/src/integrations/composio/tools.rsindex b0ac065904..fb0266e8c6 100644--- a/crates/openhuman-core/src/integrations/composio/tools.rs+++ b/crates/openhuman-core/src/integrations/composio/tools.rs@@ -58,8 +58,8 @@ pub(crate) use visibility::{action_mutates_external_state, resolve_action_scope}pub use authorize::ComposioAuthorizeTool;#[cfg(test)]use connect::{- connection_is_active, parse_composio_connect_timeout, ComposioConnectTool,- DEFAULT_COMPOSIO_CONNECT_TIMEOUT_SECS,+ composio_connect_tool_timeout, connection_is_active, parse_composio_connect_timeout,+ ComposioConnectTool, DEFAULT_COMPOSIO_CONNECT_TIMEOUT_SECS,};pub use list_connections::ComposioListConnectionsTool;pub use list_toolkits::ComposioListToolkitsTool;diff --git a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rsindex c9ef1d1d59..738ba58e27 100644--- a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs@@ -314,6 +314,24 @@ fn parse_composio_connect_timeout_defaults_when_absent_or_garbage() {assert_eq!(parse_composio_connect_timeout(Some("")), Some(default));}+#[test]+fn composio_connect_outlives_its_approval_park() {+ // The per-tool deadline must not race the in-execute approval park: the+ // tool's budget is the park bound plus slack, and unbounded when the+ // operator opted out of the bound.+ let bound = std::time::Duration::from_secs(DEFAULT_COMPOSIO_CONNECT_TIMEOUT_SECS);+ match composio_connect_tool_timeout(Some(bound)) {+ tinytools::ToolTimeout::Millis(ms) => {+ assert!(ms > bound.as_millis() as u64, "budget {ms}ms must exceed the park bound");+ }+ other => panic!("expected an explicit budget, got {other:?}"),+ }+ assert_eq!(+ composio_connect_tool_timeout(None),+ tinytools::ToolTimeout::Unbounded+ );+}+#[test]fn parse_composio_connect_timeout_honors_override_and_zero_opt_out() {// Explicit value → that many seconds.