页面加载中...
Python 原生多 Agent 协作框架,通过角色定义+任务分解+流程编排实现 Agent 团队协作。支持顺序和层级流程,内置记忆和工具系统。
Python 原生多 Agent 协作框架——让多个 AI Agent 像团队一样工作。
CrewAI 是目前最流行的多 Agent 协作框架之一,核心理念是「角色化 Agent + 结构化流程」。
核心概念:
pip install crewai pip install 'crewai[tools]' # 含额外工具集成
from crewai import Agent, Task, Crew, Process researcher = Agent( role='Researcher', goal='Find and analyze information', backstory='Expert at gathering and synthesizing data', tools=[search_tool, web_scraper] ) writer = Agent( role='Writer', goal='Create compelling content', backstory='Skilled at turning research into narratives' ) research_task = Task(description='Research AI trends in 2026', agent=researcher) write_task = Task(description='Write a blog post based on research', agent=writer) crew = Crew( agents=[researcher, writer], tasks=[research_task, write_task], process=Process.sequential ) result = crew.kickoff()
GitHub: https://github.com/crewAIInc/crewAI (28k+ stars)
版本
v0.86.0
作者
crewAIInc
平台
发布时间
2026年4月10日