Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import paths #245

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ env: clean
pipenv --python 3.10;\
pipenv install --skip-lock;\
pipenv install --dev --skip-lock;\
pipenv run pip install -e .;\
pipenv run pip install -e swe;\
pipenv run pip install -e plugins/autogen;\
pipenv run pip install -e plugins/claude;\
pipenv run pip install -e plugins/crew_ai;\
Expand All @@ -109,6 +109,7 @@ env: clean
pipenv run pip install -e plugins/llamaindex;\
pipenv run pip install -e plugins/lyzr;\
pipenv run pip install -e plugins/openai;\
pipenv run pip install -e .;\
echo "Enter virtual environment with all development dependencies now: 'pipenv shell'.";\
else\
echo "In a virtual environment! Exit first: 'exit'.";\
Expand Down
3 changes: 2 additions & 1 deletion python/swe/benchmark/run_evaluation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# pylint: disable=logging-fstring-interpolation

import argparse
import datetime
import logging
Expand All @@ -14,7 +15,7 @@
LocalDockerArgumentsModel,
)
from composio.workspace.workspace_factory import WorkspaceFactory, WorkspaceType
from examples.crewai_agent import CrewaiAgent, SWEArgs
from swe.examples.crewai_agent import CrewaiAgent, SWEArgs


# get logger
Expand Down
3 changes: 1 addition & 2 deletions python/swe/examples/crewai_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
CrewAI agent implementation.
"""


from composio_crewai import Action, App, ComposioToolSet
from composio_swe.agents.base import BaseSWEAgent, SWEArgs
from composio_swe.agents.utils import get_langchain_llm
Expand All @@ -11,7 +10,7 @@
from crewai import Agent, Task
from langchain_core.agents import AgentAction, AgentFinish

from examples.prompts import AGENT_BACKSTORY_TMPL, ISSUE_DESC_TMPL
from swe.examples.prompts import AGENT_BACKSTORY_TMPL, ISSUE_DESC_TMPL


class CrewaiAgent(BaseSWEAgent):
Expand Down
2 changes: 1 addition & 1 deletion python/swe/examples/llama_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from llama_index.core.agent import FunctionCallingAgentWorker
from llama_index.core.llms import ChatMessage, MessageRole

from examples.prompts import AGENT_BACKSTORY_TMPL, ISSUE_DESC_TMPL
from swe.examples.prompts import AGENT_BACKSTORY_TMPL, ISSUE_DESC_TMPL


class LlamaIndexAgent(BaseSWEAgent):
Expand Down
2 changes: 1 addition & 1 deletion python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ basepython = python3
deps =
mypy==1.3.0
commands =
mypy composio/ scripts/ tests/ swe/ --config-file tox.ini
mypy composio/ scripts/ tests/ swe/ --config-file tox.ini --explicit-package-bases
mypy plugins/ --config-file tox.ini

[testenv:pylint]
Expand Down
Loading