From 897f6efd0a35845cd2373c192e7a46508f1cd406 Mon Sep 17 00:00:00 2001 From: Karan Vaidya Date: Thu, 12 Sep 2024 13:42:12 +0530 Subject: [PATCH 1/2] Fix action filter via slug --- python/composio/client/collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/composio/client/collections.py b/python/composio/client/collections.py index c134809cd8..6ecf13842c 100644 --- a/python/composio/client/collections.py +++ b/python/composio/client/collections.py @@ -954,7 +954,7 @@ def get( # type: ignore response_json = response.json() items = [self.model(**action) for action in response_json.get("items")] if len(actions) > 0: - required = [t.cast(Action, action).name for action in actions] + required = [t.cast(Action, action).slug for action in actions] items = [item for item in items if item.name in required] if len(tags) > 0: From f35a6cd800dfb31e58253ad4ec1b3bf17985e8db Mon Sep 17 00:00:00 2001 From: Karan Vaidya Date: Thu, 12 Sep 2024 13:54:20 +0530 Subject: [PATCH 2/2] Fix action name to slug --- python/composio/client/collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/composio/client/collections.py b/python/composio/client/collections.py index 6ecf13842c..f618e9581a 100644 --- a/python/composio/client/collections.py +++ b/python/composio/client/collections.py @@ -1054,7 +1054,7 @@ def execute( return self._raise_if_required( self.client.http.post( - url=str(self.endpoint / action.name / "execute"), + url=str(self.endpoint / action.slug / "execute"), json={ "connectedAccountId": connected_account, "input": modified_params,