diff --git a/.gitignore b/.gitignore index 6109dd09a56..1f3cd357a32 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +try.ipynb *pycache* user_data.json .venv diff --git a/autogen/pyproject.toml b/autogen/pyproject.toml index c3d9106e4fa..c158fbddaec 100644 --- a/autogen/pyproject.toml +++ b/autogen/pyproject.toml @@ -1,7 +1,7 @@ [project] dynamic = ["classifiers", "version", "readme", "authors", "requires-python", "description"] dependencies = [ - "composio_core===0.1.48", + "composio_core===0.1.49", "pyautogen===0.2.19" ] name = "composio_autogen" diff --git a/autogen/setup.py b/autogen/setup.py index 76f20fc78e5..9e903544474 100644 --- a/autogen/setup.py +++ b/autogen/setup.py @@ -14,7 +14,7 @@ def resolve_paths(*paths): setup( name="composio_autogen", - version="0.1.48", + version="0.1.49", author="Sawradip", author_email="sawradip@composio.dev", description="Use Composio to get an array of tools with your Autogen agent.", diff --git a/core/composio/sdk/sdk.py b/core/composio/sdk/sdk.py index 1c772cb600b..db31a432727 100644 --- a/core/composio/sdk/sdk.py +++ b/core/composio/sdk/sdk.py @@ -211,6 +211,22 @@ def get_list_of_actions( return actions_response["items"] raise Exception("Failed to get actions") + + def get_list_of_triggers( + self, apps: list[App] = None + ) -> list: + if apps is None or len(apps) == 0: + resp = self.http_client.get(f"{self.base_url}/v1/triggers") + else: + app_unique_ids = [app.value for app in apps] + resp = self.http_client.get( + f"{self.base_url}/v1/triggers?appNames={','.join(app_unique_ids)}" + ) + if resp.status_code == 200: + triggers_response = resp.json() + return triggers_response + print(resp.status_code) + raise Exception("Failed to get triggers") def get_list_of_integrations(self) -> list[Integration]: resp = self.http_client.get(f"{self.base_url}/v1/integrations") diff --git a/core/setup.py b/core/setup.py index 78978326228..c020f63c20f 100644 --- a/core/setup.py +++ b/core/setup.py @@ -25,7 +25,7 @@ def run(self): setup( name="composio_core", - version="0.1.48", + version="0.1.49", author="Utkarsh", author_email="utkarsh@composio.dev", description="Core package to act as a bridge between composio platform and other services.", diff --git a/crew_ai/pyproject.toml b/crew_ai/pyproject.toml index 90aa4a72737..40694699bf7 100644 --- a/crew_ai/pyproject.toml +++ b/crew_ai/pyproject.toml @@ -1,7 +1,7 @@ [project] dynamic = ["classifiers", "version", "readme", "authors", "requires-python", "description"] dependencies = [ - "composio_langchain===0.1.48", + "composio_langchain===0.1.49", ] name = "composio_crewai" diff --git a/crew_ai/requirements.txt b/crew_ai/requirements.txt index 21ee7ce2376..22d4c6258b1 100644 --- a/crew_ai/requirements.txt +++ b/crew_ai/requirements.txt @@ -1 +1 @@ -composio_langchain===0.1.48 \ No newline at end of file +composio_langchain===0.1.49 \ No newline at end of file diff --git a/crew_ai/setup.py b/crew_ai/setup.py index 26bc33b0a21..ffdc3816553 100644 --- a/crew_ai/setup.py +++ b/crew_ai/setup.py @@ -14,7 +14,7 @@ def resolve_paths(*paths): setup( name="composio_crewai", - version="0.1.48", + version="0.1.49", author="Himanshu", author_email="himanshu@composio.dev", description="Use Composio to get an array of tools with your CrewAI agent.", diff --git a/langchain/pyproject.toml b/langchain/pyproject.toml index 598c2ed0233..94f8904266b 100644 --- a/langchain/pyproject.toml +++ b/langchain/pyproject.toml @@ -9,7 +9,7 @@ dependencies = [ "langchain-openai===0.0.2.post1", "langchainhub==0.1.15", "pydantic===2.6.4", - "composio_core===0.1.48" + "composio_core===0.1.49" ] name = "composio_langchain" diff --git a/langchain/requirements.txt b/langchain/requirements.txt index b6481dfd71e..6cc4b07f40b 100644 --- a/langchain/requirements.txt +++ b/langchain/requirements.txt @@ -2,4 +2,4 @@ langchain===0.1.0 langchain-openai===0.0.2.post1 pydantic===2.6.4 langchainhub==0.1.15 -composio_core===0.1.48 \ No newline at end of file +composio_core===0.1.49 \ No newline at end of file diff --git a/langchain/setup.py b/langchain/setup.py index 7b241e58a7f..16833573eb3 100644 --- a/langchain/setup.py +++ b/langchain/setup.py @@ -14,7 +14,7 @@ def resolve_paths(*paths): setup( name="composio_langchain", - version="0.1.48", + version="0.1.49", author="Karan", author_email="karan@composio.dev", description="Use Composio to get an array of tools with your LangChain agent.",