Scripts2026年3月29日·1 分钟阅读

CrewAI — Multi-Agent AI Framework

Build teams of AI agents that collaborate to solve complex tasks. Define roles, goals, and tools for each agent, then let them work together autonomously.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

pip install crewai crewai-tools

介绍

CrewAI lets you create teams of specialized AI agents that collaborate like a real team. Each agent has a role, goal, and set of tools. They delegate tasks, share results, and work together to accomplish complex objectives.

Best for: Research pipelines, content creation, code review, data analysis, automated workflows Works with: OpenAI, Anthropic, Google, Ollama, local models


How It Works

from crewai import Agent, Task, Crew

researcher = Agent(
    role="Senior Researcher",
    goal="Find the latest AI trends",
    tools=[search_tool, web_scraper],
)

writer = Agent(
    role="Content Writer",
    goal="Write engaging articles based on research",
)

research_task = Task(description="Research AI trends for 2025", agent=researcher)
write_task = Task(description="Write a blog post from the research", agent=writer)

crew = Crew(agents=[researcher, writer], tasks=[research_task, write_task])
result = crew.kickoff()

Key Features

  • Role-based agents with distinct personalities and tools
  • Sequential & parallel task execution
  • Human-in-the-loop for critical decisions
  • Memory for cross-task context retention
  • 30+ built-in tools (search, scrape, file I/O, etc.)

🙏

来源与感谢

Created by CrewAI. Licensed under MIT. crewAIInc/crewAI — 25K+ GitHub stars

相关资产