From 770819156af97109606d707898f45cb02f7690fa Mon Sep 17 00:00:00 2001 From: Karan Vaidya Date: Wed, 20 Mar 2024 17:10:50 +0530 Subject: [PATCH] Fix issues --- core/composio/composio_cli.py | 6 +++--- core/composio/sdk/core.py | 2 +- core/composio/sdk/sdk.py | 4 ++-- core/setup.py | 2 +- crew_ai/pyproject.toml | 2 +- crew_ai/requirements.txt | 2 +- crew_ai/setup.py | 2 +- langchain/pyproject.toml | 2 +- langchain/requirements.txt | 2 +- langchain/setup.py | 2 +- upload.sh | 0 11 files changed, 13 insertions(+), 13 deletions(-) mode change 100644 => 100755 upload.sh diff --git a/core/composio/composio_cli.py b/core/composio/composio_cli.py index 50bd030911f..825ac37d813 100755 --- a/core/composio/composio_cli.py +++ b/core/composio/composio_cli.py @@ -10,9 +10,9 @@ import termcolor import requests from uuid import getnode as get_mac -from sdk.storage import save_user_connection -from sdk.core import ComposioCore -from sdk.utils import generate_enums +from .sdk.storage import save_user_connection +from .sdk.core import ComposioCore +from .sdk.utils import generate_enums import webbrowser diff --git a/core/composio/sdk/core.py b/core/composio/sdk/core.py index a830720ad5c..00d44f6843f 100644 --- a/core/composio/sdk/core.py +++ b/core/composio/sdk/core.py @@ -39,7 +39,7 @@ def authenticate(self, hash: str): 'Content-Type': 'application/json', 'x-api-key': api_key }) - self.sdk = ComposioSdk(api_key, self.base_url) + self.sdk = Composio(api_key, self.base_url) if self.manage_auth: save_api_key(api_key) return api_key diff --git a/core/composio/sdk/sdk.py b/core/composio/sdk/sdk.py index f40b91dd241..70b3f4595e9 100644 --- a/core/composio/sdk/sdk.py +++ b/core/composio/sdk/sdk.py @@ -216,6 +216,6 @@ def get_list_of_connected_accounts(self) -> list[ConnectedAccount]: def get_action_enum(self, action_name: str, tool_name: str) -> Action: for action in Action: - if action.action == action_name and action.service == tool_name.lower(): + if action.action == action_name.lower() and action.service == tool_name.lower(): return action - raise ValueError(f"No matching action found for action: {action_name} and tool: {tool_name}") + raise ValueError(f"No matching action found for action: {action_name.lower()} and tool: {tool_name.lower()}") diff --git a/core/setup.py b/core/setup.py index 85e52c896bb..52f47e9df41 100644 --- a/core/setup.py +++ b/core/setup.py @@ -20,7 +20,7 @@ def run(self): setup( name = 'composio_core', - version = '0.1.24', + version = '0.1.25', 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 a7f2ff46c53..b35a2179a02 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.24", + "composio_langchain===0.1.25", ] name = "composio_crewai" diff --git a/crew_ai/requirements.txt b/crew_ai/requirements.txt index c97735c312a..b1c44eae2a1 100644 --- a/crew_ai/requirements.txt +++ b/crew_ai/requirements.txt @@ -1 +1 @@ -composio_langchain===0.1.24 \ No newline at end of file +composio_langchain===0.1.25 \ No newline at end of file diff --git a/crew_ai/setup.py b/crew_ai/setup.py index 940420e366f..425bb9e4cd9 100644 --- a/crew_ai/setup.py +++ b/crew_ai/setup.py @@ -11,7 +11,7 @@ def resolve_paths(*paths): setup( name = 'composio_crewai', - version = '0.1.24', + version = '0.1.25', 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 1a535a431b5..386f4d4e962 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.24" + "composio_core===0.1.25" ] name = "composio_langchain" diff --git a/langchain/requirements.txt b/langchain/requirements.txt index 8473401c1a6..d0b27ead742 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.24 \ No newline at end of file +composio_core===0.1.25 \ No newline at end of file diff --git a/langchain/setup.py b/langchain/setup.py index 3c88ea9aded..07f353de6ee 100644 --- a/langchain/setup.py +++ b/langchain/setup.py @@ -11,7 +11,7 @@ def resolve_paths(*paths): setup( name = 'composio_langchain', - version = '0.1.24', + version = '0.1.25', author = 'Karan', author_email = 'karan@composio.dev', description = 'Use Composio to get an array of tools with your LangChain agent.', diff --git a/upload.sh b/upload.sh old mode 100644 new mode 100755