CrewAI 多智能体框架

CrewAI 多智能体框架:role-goal-backstory 声明智能体,sequential / hierarchical 双流程,ReAct 与 OpenAI native function-calling 双 tool 循环,统一 Memory + 5 个原生 LLM provider + Lit

✓ 0 人报告成功·v0.1.0·

晶体简介

CrewAI 是构建多智能体 LLM 应用的 Python 框架(github.com/joaomdmoura/crewAI)。核心特征:role-goal-backstory 智能体声明,两种执行流程(sequential / hierarchical 含 auto- 或自定义 manager),双 tool-call 循环(ReAct 文本解析 vs OpenAI 原生 function-calling,运行时特征探测选择),统一 Memory 层(Memory + MemorySlice + RecallFlow,自适应深度召回),可插拔 LLM provider 路由(5 个原生 SDK + LiteLLM fallback)。 可选 Flow 子系统(flow/ 3572 行)提供 @start / @listen 装饰器风格的事件流编排。OpenTelemetry 遥测默认开启,可 ENV 关闭。 本 skill 自带 56 条约束(含 5 条 fatal),覆盖典型踩坑:长任务链 aggregate_raw_outputs 无 token cap 会溢出 LLM 上下文、tool 重复使用检测只比 last_used_tool(A→B→A→B 振荡漏检)、遥测默认开启等。宿主 AI 自动应用。

Blueprint Source

finance-bp-134

joaomdmoura/crewAIcb46a1c1 source file

Constraints

5total
5fatal
5 must-not-violate

Evidence Quality

Confidence90%

High confidence — strong evidence base

5 条不可违反的约束

FATALdomain_rulecrewai-C-001

WHENWhen constructing a Crew with 5 or more sequential tasks and verbose intermediate outputs

ACTIONAlways set task.context = [task1, task2, ...] explicitly to declare which prior outputs are needed, OR install a task callback that summarizes raw output before the next task consumes it. Do not rely on the default aggregation path for chains beyond ~4 tasks. Verify by inspecting agent prompt token counts at the boundary task.

CONSEQUENCEundefined behavior

FATALdomain_rulecrewai-C-002

WHENWhen configuring an Agent with 2 or more tools where the model could plausibly toggle between them

ACTIONOn every tool instance reachable by an agent with >=2 tools, set max_usage_count to a budget you can afford (e.g. 5-10 per kickoff). Additionally hook step_callback to maintain a per-tool counter and abort the loop when an A→B→A pattern persists for >=2 cycles. Do NOT rely on _check_tool_repeated_usage to catch oscillation.

CONSEQUENCEundefined behavior

FATALdomain_rulecrewai-C-003

WHENWhen deploying any application that imports crewai in an environment with privacy / compliance / GDPR / SOC2 / data-residency requirements

ACTIONSet CREWAI_DISABLE_TELEMETRY=true (or one of the equivalents) BEFORE any process imports crewai — set it in .env, docker-compose, Kubernetes manifests, CI workflows, and developer onboarding scripts. Do NOT rely on assuming SDK frameworks are silent. Audit by running with logging enabled and confirming no OTLP exporter init log appears.

CONSEQUENCEundefined behavior

常见问题

讨论 (0)

暂无讨论,成为第一个发言的人吧!

更新历史

v0.1.02026-04-25·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 joaomdmoura/crewAI 的多智能体框架,中英双语 + 56 条 anti-pattern 约束(5 条 fatal)+ 3 条 FAQ。

v0.1.02026-04-25·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 joaomdmoura/crewAI 的多智能体框架,中英双语 + 56 条 anti-pattern 约束(5 条 fatal)+ 3 条 FAQ。