Skip to content

Commit

Permalink
feat: update version to 0.1.59
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh-dixit committed Mar 31, 2024
1 parent e2666da commit 306b8f8
Show file tree
Hide file tree
Showing 12 changed files with 51 additions and 21 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.58",
"composio_core===0.1.59",
"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.58",
version="0.1.59",
author="Sawradip",
author_email="sawradip@composio.dev",
description="Use Composio to get an array of tools with your Autogen agent.",
Expand Down
6 changes: 3 additions & 3 deletions core/composio/composio_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from rich.console import Console
import termcolor
from uuid import getnode as get_mac
from sdk.storage import get_user_connection, save_user_connection
from sdk.core import ComposioCore
from sdk.utils import generate_enums
from .sdk.storage import get_user_connection, 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/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.58",
version="0.1.59",
author="Utkarsh",
author_email="utkarsh@composio.dev",
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.58",
"composio_langchain===0.1.59",
]
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.58
composio_langchain===0.1.59
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.58",
version="0.1.59",
author="Himanshu",
author_email="himanshu@composio.dev",
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.58"
"composio_core===0.1.59"
]
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.58
composio_core===0.1.59
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.58",
version="0.1.59",
author="Karan",
author_email="karan@composio.dev",
description="Use Composio to get an array of tools with your LangChain agent.",
Expand Down
46 changes: 38 additions & 8 deletions test.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,41 @@
from composio_langchain import ComposioToolset
import json
from typing import Sequence, List
from flask import Flask, request
from crewai import Agent, Task
from composio_crewai import ComposioToolset, App, Action
from langchain_openai import ChatOpenAI

from llama_index.llms.openai import OpenAI
from llama_index.core.llms import ChatMessage
from llama_index.core.tools import BaseTool, FunctionTool
app = Flask(__name__)

import nest_asyncio
llm = ChatOpenAI(openai_api_key="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", model="gpt-4-0613")

nest_asyncio.apply()
class GithubLinearTodoAgent():

def __init__(self):
self.composioCrewAI = ComposioToolset([App.GITHUB, App.LINEAR])

def createAgent(self):
return Agent(
role='Github-Linear TODO Agent',
goal="""Take action on Linear via Linear APIs based on Github commits. Linear Project to create issues: Hermes""",
backstory="""You are an AI Agent with access to Github and Linear and wants to keep the Github Code TODOs and Linear in Sync. Linear Project to create issues: Hermes""",
verbose=True,
tools=self.composioCrewAI,
llm=llm
)

def task(self, payload):
return Task(description=f"""Given the following Github patch: {payload}, create a Linears issues for the TODOs
in the patch and assign them to right people. Please read the patch carefully and create issues for the new TODOs only, avoid removed/old TODOs.""",
expected_output="A LINEAR issue created for the commit",
agent=self.createAgent(),
)

@app.route('/webhook', methods=['POST'])
def webhook():
agent = GithubLinearTodoAgent()
agent.task(
request.json
).execute()
return 'Payload received and processed', 200

if __name__ == '__main__':
app.run(port=2000, debug=True)
2 changes: 1 addition & 1 deletion upload_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ upload_package() {
cd ..
}

upload_package core
# upload_package core
upload_package langchain
upload_package crew_ai
upload_package autogen

0 comments on commit 306b8f8

Please sign in to comment.