agents-crewai
3
总安装量
1
周安装量
#57254
全站排名
安装命令
npx skills add https://github.com/vadimcomanescu/codex-skills --skill agents-crewai
Agent 安装分布
mcpjam
1
claude-code
1
kilo
1
junie
1
windsurf
1
zencoder
1
Skill 文档
CrewAI
Design and run role-based agent teams using CrewAI.
Quick Start
- Define agents with clear roles and goals.
- Define tasks with explicit expected outputs.
- Choose a process (sequential vs. hierarchical).
- Run the crew and inspect outputs.
Minimal Example
from crewai import Agent, Task, Crew, Process
researcher = Agent(role="Researcher", goal="Find 5 key trends")
writer = Agent(role="Writer", goal="Summarize findings")
research = Task(description="Research AI agents", expected_output="5 bullets", agent=researcher)
write = Task(description="Write a summary", expected_output="Short memo", agent=writer, context=[research])
crew = Crew(agents=[researcher, writer], tasks=[research, write], process=Process.sequential)
result = crew.kickoff(inputs={"topic": "AI agents"})
print(result.raw)
Design Guidance
- Keep roles narrow and outputs explicit.
- Use context chaining to pass outputs between tasks.
- Prefer sequential for reliability; hierarchical for delegation-heavy workflows.
Use Alternatives When
- You need complex graph cycles â consider LangGraph.
- Youâre focused on document retrieval â consider LlamaIndex.
References
- Extended examples:
references/examples.md