-
Notifications
You must be signed in to change notification settings - Fork 5.8k
feat: agentspec adapter #4035
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
base: main
Are you sure you want to change the base?
feat: agentspec adapter #4035
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the final PR Bugbot will review for you during this billing cycle
Your free Bugbot reviews will reset on December 28
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| from src.crewai import Agent, Crew, Task | ||
| from crewai import Agent, Crew, Task | ||
| from langchain_openai import ChatOpenAI | ||
| from pyagentspec.agent import Agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Import shadowing causes wrong Agent class usage
The import from pyagentspec.agent import Agent on line 338 shadows the earlier import from crewai import Agent on line 336. When code_helper_agent = Agent(...) is created on line 348 with role, goal, and backstory parameters, it will incorrectly use pyagentspec.agent.Agent instead of crewai.Agent. The pyagentspec Agent class likely doesn't accept these parameters, causing a runtime error. The pyagentspec Agent import needs an alias like AgentSpecAgent.
Additional Locations (1)
|
@greysonlalonde @lorenzejay , would you be able to review this pull request? |
This PR adds
AgentSpecAgentAdapterthat lets CrewAI import agents defined using Oracle's AgentSpec specification language. (https://github.com/oracle/agent-spec.git)Supported features:
Not currently supported (in the works):
Please refer to this PR in the crewai-examples repo for a detailed demo on how the AgentSpec adapter could be used to bring a LangGraph agent into CrewAI.
Note
Introduce AgentSpecAgentAdapter and update docs/examples to integrate AgentSpec agents into CrewAI.
AgentSpecAgentAdapterincrewai/agents/agent_adapters/agentspec/agentspec_adapter.pyto load AgentSpec-defined agents/flows viapyagentspecloader and delegate execution/tooling to the converted CrewAI component.agentspec/__init__.py.task_write_code,task_review_code,task_find_links, andtask_generate_reportused inCrew.Written by Cursor Bugbot for commit 4c48e91. This will update automatically on new commits. Configure here.