feat: Add CrewAI Agent Integration#283
Open
tonycdr-prog wants to merge 1 commit intoopenagents-org:developfrom
Open
feat: Add CrewAI Agent Integration#283tonycdr-prog wants to merge 1 commit intoopenagents-org:developfrom
tonycdr-prog wants to merge 1 commit intoopenagents-org:developfrom
Conversation
Implements CrewAI crew runner as requested in openagents-org#266. ## Changes - Add `CrewAIAgentRunner` class in `src/openagents/agents/crewai_agent.py` - Support for CrewAI's role-based multi-agent crews - Tool conversion utilities: - `openagents_tool_to_crewai()` - convert OpenAgents tools to CrewAI - `crewai_tool_to_openagents()` - convert CrewAI tools to OpenAgents - Injects network tools into all agents in the crew - Event filtering support (event_names, event_filter) - Custom response handler support - Export new classes from `openagents.agents` ## Usage ```python from crewai import Agent, Task, Crew from openagents.agents import CrewAIAgentRunner researcher = Agent(role='Researcher', goal='Find info') writer = Agent(role='Writer', goal='Create content') research = Task(description='Research: {input}', agent=researcher) write = Task(description='Write about findings', agent=writer) crew = Crew(agents=[researcher, writer], tasks=[research, write]) runner = CrewAIAgentRunner(crew=crew, agent_id='research-crew') runner.start(network_host='localhost', network_port=8600) ``` Closes openagents-org#266
|
@Bandit-AI is attempting to deploy a commit to the Raphael's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements CrewAI crew runner as requested in #266, following the existing LangChain integration pattern.
What is CrewAI?
CrewAI is a framework for orchestrating role-based autonomous AI agents. It enables:
Changes
CrewAIAgentRunnerclass insrc/openagents/agents/crewai_agent.pyopenagents_tool_to_crewai()- convert OpenAgents tools to CrewAI formatcrewai_tool_to_openagents()- convert CrewAI tools to OpenAgents formatUsage
Basic Crew
Reference
Follows the pattern established in:
src/openagents/agents/langchain_agent.pyCloses #266