شعار Crewai And Autogen Multi Agent Frameworks

Crewai And Autogen Multi Agent Frameworks

المجتمع
selvarajmurugesan90
crewai-and-autogen-multi-agent-frameworks

Guides building multi-agent systems with role-based frameworks — CrewAI's crew/task/process model and Microsoft AutoGen's conversable-agent model — as opinionated implementations of multi-agent orchestration patterns. Use when a user asks to "build this with CrewAI," "set up a crew of agents," "use AutoGen for multi-agent," "define agent roles and tasks in CrewAI," "configure a GroupChat in AutoGen," or is deciding between CrewAI, AutoGen, and a hand-rolled or LangGraph-based multi-agent implementation.

نظرة عامة

الناشرselvarajmurugesan90
المستودعops-engineering-skills
اسم المهارةcrewai-and-autogen-multi-agent-frameworks
النجوم
44
التفريعات
18
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها selvarajmurugesan90 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Crewai And Autogen Multi Agent Frameworks في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/ai-agent/skills/crewai-and-autogen-multi-agent-frameworks
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/selvarajmurugesan90/ops-engineering-skills.git /tmp/ops-engineering-skills
mkdir -p .claude/skills
cp -r /tmp/ops-engineering-skills/plugins/ai-agent/skills/crewai-and-autogen-multi-agent-frameworks .claude/skills/crewai-and-autogen-multi-agent-frameworks
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Crewai And Autogen Multi Agent Frameworks في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Crewai And Autogen Multi Agent Frameworks تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Crewai And Autogen Multi Agent Frameworks بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

CrewAI and AutoGen Multi-Agent Frameworks

Purpose

multi-agent-orchestration describes the generic topologies (supervisor/worker, pipeline, parallel/aggregation, critic/debate) that justify splitting a task across multiple agents. CrewAI and AutoGen are two concrete, higher-level frameworks that implement those topologies with an opinionated, role-centric abstraction rather than requiring you to wire message-passing and state by hand. CrewAI models a multi-agent system as a crew of role-scoped agents, each assigned one or more tasks, executed under a process (sequential — tasks run in a fixed order, each consuming prior tasks' output; or hierarchical — a manager agent delegates and reviews) — it is closest to the pipeline and supervisor/worker topologies, expressed declaratively. AutoGen models a multi-agent system as a set of conversable agents that exchange messages in a shared conversation (a GroupChat with a chat manager choosing the next speaker, or direct two-agent conversations), with a distinct built-in role for a UserProxyAgent that can execute code and optionally pause for human input — it is closest to the critic/debate and supervisor/worker topologies, expressed as a conversation rather than a fixed pipeline. Both frameworks trade some of LangGraph's low-level control (explicit state typing, arbitrary cyclical graphs, durable checkpointing) for faster time-to-first-working-crew when the task genuinely fits a role-based mental model. This skill covers configuring each framework correctly and choosing between them (and against LangGraph) for a given task — it does not repeat the underlying "should this be multi-agent at all" justification, which lives in multi-agent-orchestration.

When to use

  • The task is naturally described as a set of named roles collaborating (e.g. "a researcher, a writer, and an editor") and a declarative, role-first framework fits better than hand-wiring a graph.
  • Building or reviewing a CrewAI crew's agents.yaml/tasks.yaml (or equivalent Python config) and choosing sequential vs. hierarchical process.
  • Building or reviewing an AutoGen GroupChat — choosing the speaker- selection strategy, configuring a UserProxyAgent's code-execution and human-input behavior.
  • Deciding between CrewAI, AutoGen, LangGraph (langchain-and-langgraph-agent-orchestration), and a hand-rolled orchestrator for a specific multi-agent task.
  • An existing CrewAI crew or AutoGen group chat loops, has agents talking past each other, or produces redundant work, and needs debugging.
  • Migrating a multi-agent prototype built in one of these frameworks toward (or away from) a lower-level graph-based implementation as requirements outgrow the framework's abstraction.

Prerequisites & environment

  • Python (both frameworks are Python-first; CrewAI has no first-party JS/TS SDK as of current releases — verify before assuming parity).
  • CrewAI: the crewai package plus crewai-tools for common tool integrations; an LLM provider configured per-agent (CrewAI supports per-agent model overrides, so a cheaper model can drive a simple role while a stronger model drives a complex one).
  • AutoGen: the autogen/pyautogen (or current successor package — Microsoft has re-branded and restructured AutoGen's packaging across versions; confirm the current package name and API surface before starting a new project) plus an LLM config dict per agent.
  • For AutoGen's UserProxyAgent with code execution enabled: a sandboxed execution environment (Docker container or restricted subprocess) — never enable code_execution_config against an unsandboxed host process for agent-generated code you have not reviewed.
  • A concrete task decomposition already justified via multi-agent-orchestration — both frameworks make it easy to declare more agents than a task needs, and neither framework's ergonomics substitute for that justification step.
  • Tool functions each agent will call, either defined natively in the framework's tool format or proxied from an MCP server; see mcp-server-development for building the MCP side.

Step-by-step guidance

  1. In CrewAI, define each agent with a narrow role, goal, and backstory — these three fields are what the underlying LLM call actually conditions on, not just documentation:

    python
    from crewai import Agent, Task, Crew, Process
    
    researcher = Agent(
        role="Research Analyst",
        goal="Find and summarize the three most relevant sources for a given topic",
        backstory="You are meticulous about citing sources and never invent facts.",
        tools=[web_search_tool],
        allow_delegation=False,
    )
    
    writer = Agent(
        role="Technical Writer",
        goal="Turn research findings into a clear, well-structured summary",
        backstory="You write for an engineering audience and avoid marketing language.",
        allow_delegation=False,
    )

    allow_delegation=False on worker agents keeps delegation authority concentrated in the process/manager rather than letting every agent freely hand off work to any other agent, mirroring the "fixed, testable roles over a dynamic pool" guidance in multi-agent-orchestration.

  2. Define tasks with an explicit expected output and, for sequential processes, an explicit context dependency — CrewAI passes prior tasks' output into later tasks automatically when wired via context, which is the framework's version of the structured hand-off contract:

    python
    research_task = Task(
        description="Research recent developments in {topic}",
        expected_output="A bullet list of 3 findings, each with a source URL",
        agent=researcher,
    )
    
    writing_task = Task(
        description="Write a 200-word summary using the research findings",
        expected_output="A markdown summary citing each source",
        agent=writer,
        context=[research_task],   # explicit hand-off, not free-form
    )
  3. Choose CrewAI's process deliberately. Process.sequential runs tasks in the declared order — the pipeline topology. Process.hierarchical adds a manager agent (either an LLM you configure or CrewAI's default manager) that plans and delegates dynamically — the supervisor/worker topology, at the cost of an extra planning LLM call and less predictable task ordering:

    python
    crew = Crew(
        agents=[researcher, writer],
        tasks=[research_task, writing_task],
        process=Process.sequential,
        verbose=True,
    )
    result = crew.kickoff(inputs={"topic": "vector database sharding"})
  4. In AutoGen, configure each conversable agent's system_message as narrowly as a CrewAI role, and decide up front whether the conversation is a direct two-agent exchange or a GroupChat:

    python
    from autogen import ConversableAgent, GroupChat, GroupChatManager
    
    researcher = ConversableAgent(
        name="researcher",
        system_message="You research topics and report findings with sources. "
                        "You do not write final summaries.",
        llm_config={"config_list": [{"model": "claude-sonnet-4-5", "api_key": "${ANTHROPIC_API_KEY}"}]},
    )
    
    writer = ConversableAgent(
        name="writer",
        system_message="You turn research findings into clear summaries. "
                        "You do not do your own research.",
        llm_config={"config_list": [{"model": "claude-sonnet-4-5", "api_key": "${ANTHROPIC_API_KEY}"}]},
    )
  5. Configure GroupChat's speaker-selection strategy explicitly rather than relying on the default, since the default (LLM-based next-speaker selection) can pick an unexpected agent, especially with more than a handful of participants:

    python
    groupchat = GroupChat(
        agents=[researcher, writer],
        messages=[],
        max_round=6,                      # hard bound, same discipline as any agent loop
        speaker_selection_method="round_robin",  # deterministic; alternatives: "auto" (LLM-chosen), "manual"
    )
    manager = GroupChatManager(groupchat=groupchat, llm_config=researcher.llm_config)

    max_round is AutoGen's equivalent of the hard iteration cap described in agent-architecture-design — set it explicitly rather than trusting the conversation to converge on its own.

  6. Scope UserProxyAgent's code execution and autonomy explicitly — this is AutoGen's most operationally sensitive default surface:

    python
    from autogen import UserProxyAgent
    
    user_proxy = UserProxyAgent(
        name="user_proxy",
        human_input_mode="ALWAYS",         # "NEVER" for fully autonomous runs; "TERMINATE" to ask only at the end
        code_execution_config={
            "use_docker": True,             # never run agent-generated code outside a sandbox
            "timeout": 60,
        },
        max_consecutive_auto_reply=5,
    )

    Warning: setting human_input_mode="NEVER" with code_execution_config enabled means agent-generated code executes with no human checkpoint at all. Only do this against a fully sandboxed, disposable environment with no access to real credentials or production systems — treat it the same as any irreversible-action tool per agent-architecture-design.

  7. Cap delegation depth in CrewAI's hierarchical process and AutoGen's nested chats — both frameworks support an agent's task spawning further sub-delegation, which needs an explicit ceiling (max_iter on a CrewAI agent, a bounded max_round and no nested GroupChat-within-GroupChat without a depth check in AutoGen) to avoid the unbounded recursive-delegation pitfall described in multi-agent-orchestration.

  8. Log the full conversation/task trace, not just final output — CrewAI exposes task outputs and verbose=True logging; AutoGen's GroupChat exposes groupchat.messages as the full transcript. Both are what you need to debug agents duplicating work or talking past each other, the same failure modes described generically in multi-agent-orchestration.

Best practices

  • Treat CrewAI's role/goal/backstory and AutoGen's system_message with the same rigor as a production system prompt — vague or overlapping role descriptions across agents are the single biggest cause of duplicated work or role confusion in both frameworks.
  • Default to CrewAI Process.sequential or AutoGen speaker_selection_method="round_robin" for anything that needs predictable, reviewable ordering; reserve Process.hierarchical or "auto" speaker selection for cases where the task genuinely needs dynamic delegation and you've accepted the added unpredictability and planning-call cost.
  • Keep allow_delegation=False on CrewAI worker agents by default; enable delegation only on an explicit manager/supervisor role, mirroring the fixed-role guidance in multi-agent-orchestration.
  • Never enable AutoGen code execution against a real filesystem, network, or credential set without Docker (or an equivalent) sandbox — this is a destructive-action risk, not a convenience trade-off to skip under time pressure.
  • Use a cheaper/faster model for narrowly-scoped worker roles (a researcher summarizing one document) and reserve the strongest available model for planning/manager roles, the same cost-optimization principle as llm-cost-and-latency-optimization.
  • Re-evaluate whether a CrewAI/AutoGen crew could be replaced by a single well-scoped agent periodically — both frameworks make it easy to declare agents, which is exactly the failure mode multi-agent-orchestration warns against: splitting because it "felt cleaner," not because of measured need.

Common pitfalls

  • Symptom: Two CrewAI agents (or two AutoGen conversable agents) both produce overlapping output — e.g. both research the same sub-topic — with no error, just redundant/contradictory results. Fix: This is the same task-boundary-overlap pitfall described in multi-agent-orchestration. Tighten each Task.description/ConversableAgent.system_message to state what the role does not do, and check for overlapping tool access — two agents with the same tool and a vague task boundary will often both use it.

  • Symptom: An AutoGen GroupChat with speaker_selection_method="auto" runs many rounds without converging, or the same agent keeps being selected to speak. Fix: Switch to "round_robin" or "manual" for predictability, or add explicit termination conditions to agent system messages (e.g. "reply TERMINATE when the summary is complete"); always set max_round as a hard backstop regardless of selection method.

  • Symptom: A CrewAI crew using Process.hierarchical produces inconsistent results run-to-run for the same input. Fix: The manager agent's delegation plan is itself an LLM call and can vary; if reproducibility matters more than dynamic flexibility, switch to Process.sequential with explicit context dependencies between tasks instead of relying on the manager to reconstruct the same plan every run.

  • Symptom: An AutoGen agent with code_execution_config enabled and human_input_mode="NEVER" executes a destructive shell command (e.g. deleting files) generated in response to a misleading or adversarial prompt. Fix: This is a real incident, not a tooling quirk — code execution with no human checkpoint should only ever run inside a disposable, network-isolated sandbox (Docker with no mounted credentials or production filesystem access); if that constraint can't be met, set human_input_mode="ALWAYS" or "TERMINATE" so a human reviews commands before they run.

  • Symptom: A multi-agent crew/group-chat is noticeably slower and more expensive than expected for what turns out to be a fairly linear task. Fix: Count actual LLM calls per run (each agent turn, each manager planning call) — CrewAI's hierarchical process and AutoGen's "auto" speaker selection both add planning-overhead calls beyond the "useful work" calls; if the task is genuinely linear, a sequential process (or a single agent) removes that overhead entirely.

Worked example

Scenario: Generate a weekly engineering digest summarizing merged PRs and open incidents — the same task used as the parallel-aggregation example in multi-agent-orchestration, built here as a CrewAI sequential crew for a team that wants a declarative, low-code implementation rather than hand-wiring a graph.

python
from crewai import Agent, Task, Crew, Process

pr_agent = Agent(
    role="PR Summarizer",
    goal="Summarize merged pull requests from the past week",
    backstory="You report only on merged PRs, with links, in one bullet each.",
    tools=[list_merged_prs_tool],
    allow_delegation=False,
)

incident_agent = Agent(
    role="Incident Reporter",
    goal="Summarize currently open incidents",
    backstory="You report only open incidents with severity and age.",
    tools=[list_open_incidents_tool],
    allow_delegation=False,
)

digest_writer = Agent(
    role="Digest Editor",
    goal="Combine PR and incident summaries into one Markdown digest",
    backstory="You never invent content not present in the inputs you're given.",
    allow_delegation=False,
)

pr_task = Task(description="List merged PRs from the last 7 days", expected_output="Bullet list with links", agent=pr_agent)
incident_task = Task(description="List currently open incidents", expected_output="Bullet list with severity and age", agent=incident_agent)
digest_task = Task(
    description="Combine the PR and incident summaries into one weekly digest",
    expected_output="A Markdown document with a PRs section and an Incidents section",
    agent=digest_writer,
    context=[pr_task, incident_task],
)

crew = Crew(
    agents=[pr_agent, incident_agent, digest_writer],
    tasks=[pr_task, incident_task, digest_task],
    process=Process.sequential,
)
digest = crew.kickoff()

Each agent has exactly one tool and a role description stating what it does not cover (PRs vs. incidents), so digest_writer receives two clearly separated, non-overlapping inputs via context rather than free-form text — the same schema-based hand-off discipline recommended in multi-agent-orchestration, here expressed through CrewAI's context mechanism instead of a hand-rolled JSON contract.

Cross-references

  • multi-agent-orchestration — the vendor-neutral topologies (supervisor/worker, pipeline, parallel/aggregation, critic/debate) and coordination pitfalls that CrewAI and AutoGen each implement in their own opinionated way.
  • langchain-and-langgraph-agent-orchestration — a lower-level, graph-based alternative when a task outgrows CrewAI/AutoGen's role-based abstraction and needs explicit cyclical control flow or durable checkpointing.
  • agent-architecture-design — the single-agent control-loop fundamentals (iteration caps, tool boundaries, human checkpoints) that still apply inside each individual CrewAI/AutoGen agent.
  • mcp-server-development — building the tool-serving side that CrewAI/AutoGen agents call into, rather than defining every tool as an in-framework Python function.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Crewai And Autogen Multi Agent Frameworks؟

Guides building multi-agent systems with role-based frameworks — CrewAI's crew/task/process model and Microsoft AutoGen's conversable-agent model — as opinionated implementations of multi-agent orchestration patterns. Use when a user asks to "build this with CrewAI," "set up a crew of agents," "use AutoGen for multi-agent," "define agent roles and tasks in CrewAI," "configure a GroupChat in AutoGen," or is deciding between CrewAI, AutoGen, and a hand-rolled or LangGraph-based multi-agent implementation.

لماذا تستخدم Crewai And Autogen Multi Agent Frameworks على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Crewai And Autogen Multi Agent Frameworks عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Crewai And Autogen Multi Agent Frameworks في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/ai-agent/skills/crewai-and-autogen-multi-agent-frameworks. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Crewai And Autogen Multi Agent Frameworks؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Crewai And Autogen Multi Agent Frameworks؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Crewai And Autogen Multi Agent Frameworks معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Crewai And Autogen Multi Agent Frameworks مجانية؟

نعم. نشرها selvarajmurugesan90 على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇