Skip to content

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

feat(composio): add list_tools integration

Steven Enamakel1bc478bbc1ec
diff --git a/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs b/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs
index c5aa0380df..7cb0aabb8b 100644
--- a/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools/list_tools.rs
@@ -9,8 +9,12 @@ use serde_json::Value;
use super::live_config::live_composio_config;
use super::redact::redact_composio_outcome;
+use crate::agent::tinyagents::host::run_context::dispatch_ctx_for_tool;
use crate::config::Config;
-use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolCategory, ToolResult};
+use crate::core::runtime::DispatchCtx;
+use tinytools::{
+ PermissionLevel, Tool, ToolCallOptions, ToolCategory, ToolResult, ToolRunContext,
+};
use super::super::client::{resolve_composio_route, ComposioRoute};
use super::super::module_client::{self as connectors};
@@ -73,7 +77,9 @@ impl Tool for ComposioListToolsTool {
args: Value,
options: ToolCallOptions,
) -> anyhow::Result<ToolResult> {
- self.execute_with_context(args, options, None).await
+ let ctx = dispatch_ctx_for_tool(None);
+ let (config, outcome) = Box::pin(self.execute_unredacted(&ctx, args, options)).await;
+ redact_composio_outcome(&config, outcome)
}
async fn execute_with_context(