Skip to content

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

docs(flows): document account-aware dispatch

simple_naive3254d7e3acd4
diff --git a/src/openhuman/flows/tinyflows/caps/tools/composio.rs b/src/openhuman/flows/tinyflows/caps/tools/composio.rs
index 91663f74e6..ca90be58b3 100644
--- a/src/openhuman/flows/tinyflows/caps/tools/composio.rs
+++ b/src/openhuman/flows/tinyflows/caps/tools/composio.rs
@@ -76,6 +76,8 @@ impl ToolBackend for ComposioToolBackend {
super::super::preflight_composio_args(config, slug, args).await
}
+ /// Executes a curated Composio action after account resolution and all
+ /// workflow security gates have succeeded.
async fn invoke(
&self,
ctx: &ToolCallCtx<'_>,
diff --git a/src/openhuman/integrations/composio/client_tests.rs b/src/openhuman/integrations/composio/client_tests.rs
index e4091f57dc..971a5f0de1 100644
--- a/src/openhuman/integrations/composio/client_tests.rs
+++ b/src/openhuman/integrations/composio/client_tests.rs
@@ -418,6 +418,8 @@ async fn list_tools_filters_pass_through_as_csv_query_param() {
assert_eq!(resp_empty_tags.tools[0].function.name, "ECHO_gmail");
}
+/// Ambient execution must preserve the legacy unscoped request shape while
+/// still returning provider success and cost metadata.
#[tokio::test]
async fn execute_tool_returns_cost_and_success_flags() {
let app = Router::new().route(