Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kaavee315 committed Mar 20, 2024
1 parent 04474ad commit 7708191
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions core/composio/composio_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion core/composio/sdk/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions core/composio/sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}")
2 changes: 1 addition & 1 deletion core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def run(self):

setup(
name = 'composio_core',
version = '0.1.24',
version = '0.1.25',
author = 'Utkarsh',
author_email = '[email protected]',
description = 'Core package to act as a bridge between composio platform and other services.',
Expand Down
2 changes: 1 addition & 1 deletion crew_ai/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion crew_ai/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
composio_langchain===0.1.24
composio_langchain===0.1.25
2 changes: 1 addition & 1 deletion crew_ai/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def resolve_paths(*paths):

setup(
name = 'composio_crewai',
version = '0.1.24',
version = '0.1.25',
author = 'Himanshu',
author_email = '[email protected]',
description = 'Use Composio to get an array of tools with your CrewAI agent.',
Expand Down
2 changes: 1 addition & 1 deletion langchain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion langchain/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
composio_core===0.1.25
2 changes: 1 addition & 1 deletion langchain/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def resolve_paths(*paths):

setup(
name = 'composio_langchain',
version = '0.1.24',
version = '0.1.25',
author = 'Karan',
author_email = '[email protected]',
description = 'Use Composio to get an array of tools with your LangChain agent.',
Expand Down
Empty file modified upload.sh
100644 → 100755
Empty file.

0 comments on commit 7708191

Please sign in to comment.