Skip to content

Commit

Permalink
Add enums
Browse files Browse the repository at this point in the history
  • Loading branch information
kaavee315 committed Mar 25, 2024
1 parent d9dcc27 commit 1885f9a
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 32 deletions.
2 changes: 1 addition & 1 deletion autogen/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_core===0.1.47",
"composio_core===0.1.48",
"pyautogen===0.2.19"
]
name = "composio_autogen"
Expand Down
2 changes: 1 addition & 1 deletion autogen/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def resolve_paths(*paths):

setup(
name="composio_autogen",
version="0.1.47",
version="0.1.48",
author="Sawradip",
author_email="[email protected]",
description="Use Composio to get an array of tools with your Autogen agent.",
Expand Down
34 changes: 11 additions & 23 deletions core/composio/sdk/enums.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from enum import Enum


class App(Enum):
CLICKUP = "clickup"
GOOGLE_DRIVE = "google-drive"
Expand All @@ -22,7 +21,7 @@ class App(Enum):
NOTION = "notion"
DROPBOX = "dropbox"
EVENTBRITE = "eventbrite"

MIXPANEL = "mixpanel"

class TestIntegration(Enum):
CLICKUP = "test-clickup-connector"
Expand All @@ -45,34 +44,19 @@ class TestIntegration(Enum):
NOTION = "test-notion-connector"
DROPBOX = "test-dropbox-connector"
EVENTBRITE = "test-eventbrite-connector"

MIXPANEL = "test-mixpanel-connector"

class Action(Enum):
def __init__(self, service, action):
self.service = service
self.action = action

ZENDESK_CREATE_ZENDESK_ORGANIZATION = (
"zendesk",
"zendesk_create_zendesk_organization",
)
ZENDESK_DELETE_ZENDESK_ORGANIZATION = (
"zendesk",
"zendesk_delete_zendesk_organization",
)
ZENDESK_COUNT_ZENDESK_ORGANIZATIONS = (
"zendesk",
"zendesk_count_zendesk_organizations",
)
ZENDESK_CREATE_ZENDESK_ORGANIZATION = ("zendesk", "zendesk_create_zendesk_organization")
ZENDESK_DELETE_ZENDESK_ORGANIZATION = ("zendesk", "zendesk_delete_zendesk_organization")
ZENDESK_COUNT_ZENDESK_ORGANIZATIONS = ("zendesk", "zendesk_count_zendesk_organizations")
ZENDESK_GET_ZENDESK_ORGANIZATION = ("zendesk", "zendesk_get_zendesk_organization")
ZENDESK_GET_ZENDESK_ORGANIZATIONS = (
"zendesk",
"zendesk_get_all_zendesk_organizations",
)
ZENDESK_UPDATE_ZENDESK_ORGANIZATION = (
"zendesk",
"zendesk_update_zendesk_organization",
)
ZENDESK_GET_ZENDESK_ORGANIZATIONS = ("zendesk", "zendesk_get_all_zendesk_organizations")
ZENDESK_UPDATE_ZENDESK_ORGANIZATION = ("zendesk", "zendesk_update_zendesk_organization")
ZENDESK_CREATE_ZENDESK_TICKET = ("zendesk", "zendesk_create_zendesk_ticket")
ZENDESK_DELETE_ZENDESK_TICKET = ("zendesk", "zendesk_delete_zendesk_ticket")
ZENDESK_GET_ZENDESK_ABOUT_ME = ("zendesk", "zendesk_get_about_me")
Expand All @@ -82,6 +66,10 @@ def __init__(self, service, action):
GITHUB_GET_REPOSITORY = ("github", "github_list_github_repos")
GITHUB_STAR_REPO = ("github", "github_star_repo")
GITHUB_GET_ABOUT_ME = ("github", "github_get_about_me")
GITHUB_CREATE_REPO_WEBHOOK = ("github", "github_create_repo_webhook")
GITHUB_FETCH_README = ("github", "github_fetch_readme")
GITHUB_GET_COMMITS = ("github", "github_get_commits")
GITHUB_GET_COMMITS_WITH_PATCH_FILE_FOR_THAT_COMMIT = ("github", "github_get_commits_with_code")
TYPEFORM_GET_ABOUT_ME = ("typeform", "typeform_get_about_me")
TRELLO_CREATE_TRELLO_LIST = ("trello", "trello_create_trello_list")
TRELLO_CREATE_TRELLO_CARD = ("trello", "trello_create_trello_card")
Expand Down
2 changes: 1 addition & 1 deletion core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run(self):

setup(
name="composio_core",
version="0.1.47",
version="0.1.48",
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.47",
"composio_langchain===0.1.48",
]
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.47
composio_langchain===0.1.48
2 changes: 1 addition & 1 deletion crew_ai/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def resolve_paths(*paths):

setup(
name="composio_crewai",
version="0.1.47",
version="0.1.48",
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.47"
"composio_core===0.1.48"
]
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.47
composio_core===0.1.48
2 changes: 1 addition & 1 deletion langchain/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def resolve_paths(*paths):

setup(
name="composio_langchain",
version="0.1.47",
version="0.1.48",
author="Karan",
author_email="[email protected]",
description="Use Composio to get an array of tools with your LangChain agent.",
Expand Down

0 comments on commit 1885f9a

Please sign in to comment.