CrewAI Multi-Agents

Course Content

CrewAI Multi-Agents

9 sections · 53 lessons

CrewAI vs LangChain Agents: what are the key differences?


What you need to know

What a "LangChain agent" means in 2026

The name has changed meaning over time, so say which version you mean.

  • Old style (legacy): initialize_agent and AgentExecutor. These are now in the langchain-classic package and should not be used for new work.
  • 2024–2025: create_react_agent from langgraph.prebuilt.
  • LangChain 1.0 and later: from langchain.agents import create_agent. It builds a LangGraph graph under the hood and adds middleware for things like human approval and summarising long histories.
Python
from langchain.agents import create_agentagent = create_agent(model="openai:gpt-4.1", tools=[search_orders],                     system_prompt="You answer order questions.")result = agent.invoke({"messages": [{"role": "user", "content": "Where is order 881?"}]})

In all versions, the core is one agent: one prompt, one tool set, one loop.

What CrewAI adds

Python
crew = Crew(agents=[researcher, analyst, writer],            tasks=[research, analyse, write],            process=Process.sequential)result = crew.kickoff(inputs={"topic": "Pune meal-kit market"})

The unit is a team: each Agent has a role, goal, backstory, tools and model; each Task has a description, an expected_output and an optional schema; the Crew decides the order and passes results. CrewAI is its own framework and does not depend on LangChain.

LangChain agentCrewAI
Basic unitone agent + toolsAgent, Task, Crew, Flow
Number of actorsone (multi-agent means you build a graph)many, with roles
How work is definedmessages and a system prompttasks with expected outputs
Handoffsyou design themcontext, delegation, manager
ConfigPythonPython or YAML with @CrewBase
Built inmodel and tool integrations, middlewareguardrails, memory, knowledge, planning, training, testing CLI

A real-life example

A food-delivery company needs two things.

  1. "Where is my order?" chat. One agent with three tools (order status, rider location, refund policy). A LangChain create_agent agent fits well: one actor, short conversation, and the company already uses LangChain integrations.
  2. Weekly market-research report on new cloud-kitchen brands in five cities. A researcher, an analyst and a writer with different tools and a fixed report format. A CrewAI crew fits: the work is naturally a team with a handoff, and it was working in a day.

Using a crew for the chat would add personas and handoffs with no benefit. Building the report as one giant agent prompt gave long, unfocused output in their first attempt.

Follow-up questions to expect

  • "Can LangChain do multi-agent?" — Yes, by composing agents in LangGraph, for example a supervisor graph. You design the structure yourself.
  • "Is CrewAI built on LangChain?" — Not any more. Early versions used it; current CrewAI is independent and calls model providers through its own LLM class.
  • "Which would you pick for a single tool-using assistant?" — A single agent: LangChain's create_agent, a CrewAI Agent.kickoff(), or even the provider SDK. A crew is for work that splits into roles.