Skip to content

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

chore: files changed crates/openhuman-core/src/integrations/composio/action_tool.rs,crates/openhuman

Steven Enamakel1224e31f8741
diff --git a/crates/openhuman-core/src/integrations/composio/action_tool.rs b/crates/openhuman-core/src/integrations/composio/action_tool.rs
index 043cdd94de..3236569167 100644
--- a/crates/openhuman-core/src/integrations/composio/action_tool.rs
+++ b/crates/openhuman-core/src/integrations/composio/action_tool.rs
@@ -241,7 +241,7 @@ impl Tool for ComposioActionTool {
async fn execute(&self, args: Value) -> anyhow::Result<ToolResult> {
let (config, outcome) =
- Box::pin(self.execute_unredacted(&DispatchCtx::ambient(), args, None)).await;
+ Box::pin(self.execute_unredacted(&dispatch_ctx_for_tool(None), args, None)).await;
super::tools::redact_composio_outcome(&config, outcome)
}
async fn execute_with_context(
diff --git a/crates/openhuman-core/src/security/credentials/tools.rs b/crates/openhuman-core/src/security/credentials/tools.rs
index e85b3a52fe..f1bd633d94 100644
--- a/crates/openhuman-core/src/security/credentials/tools.rs
+++ b/crates/openhuman-core/src/security/credentials/tools.rs
@@ -228,18 +228,17 @@ impl Tool for OAuthListTool {
fn parameters_schema(&self) -> serde_json::Value {
json!({ "type": "object", "properties": {} })
}
- async fn execute(&self, _args: serde_json::Value) -> anyhow::Result<ToolResult> {
- self.execute_with_context(_args, tinytools::ToolCallOptions::default(), None)
+ async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
+ self.execute_with_context(args, tinytools::ToolCallOptions::default(), None)
.await
}
async fn execute_with_context(
&self,
- args: serde_json::Value,
+ _args: serde_json::Value,
_options: tinytools::ToolCallOptions,
context: Option<&dyn tinytools::ToolRunContext>,
) -> anyhow::Result<ToolResult> {
let ctx = crate::agent::tinyagents::host::run_context::dispatch_ctx_for_tool(context);
- let _ = &args;
log::debug!("[tool][credentials] oauth_list invoked");
let value = invoke_hosted(ctx, "openhuman.auth_oauth_list_integrations", Default::default())
.await