Skip to content
Blog

ADK vs LangChain, CrewAI, AutoGen, and OpenAI Agents SDK: Comparative Architecture

An architectural comparison of ADK, LangChain/LangGraph, CrewAI, AutoGen and the OpenAI Agents SDK: agent definition, orchestration, state, runtime, streaming, evals.

Published on • November 24, 2026

AI Assistant

We already surveyed the agent SDK landscape at the ecosystem level in agent-sdk-landscape-deep-dive.md, and compared PydanticAI against the OpenAI Agents SDK by building the same agent twice in pydanticai-vs-openai-agents-sdk.md. This post takes a different cut: instead of features or ergonomics, we compare architecture — how each framework defines an agent, orchestrates work, models state, executes turns, streams output, evaluates quality and ships to production.

The five candidates are Google’s Agent Development Kit (ADK), LangChain with LangGraph, CrewAI, Microsoft’s AutoGen lineage, and the OpenAI Agents SDK. Their APIs look unrelated, but underneath they make seven structural choices that determine what your code will look like six months in.

1. Agent definition model

FrameworkCore unitHow you declare one
ADKAgent (LlmAgent)Class instance with model, instruction, tools, assigned to module-level root_agent
LangChain / LangGraphChain or graph nodeComposable runnables; in LangGraph, a node function inside a StateGraph
CrewAIAgentDataclass with role, goal, backstory, tools
AutoGenConversableAgentClass with llm_config and message handlers, wired into group chats
OpenAI Agents SDKAgentDataclass with name, instructions, tools, handoffs
# ADK: the agent *is* the unit of composition
from google.adk import Agent
root_agent = Agent(name="triage", model="gemini-flash-latest",
                   instruction="Route the request.", tools=[lookup_order])

# OpenAI Agents SDK: an agent is data; a Runner executes it
from agents import Agent, Runner
triage = Agent(name="triage", instructions="Route the request.", tools=[lookup_order])

The difference is deeper than syntax. ADK makes the agent tree the architecture (sub-agents, AgentTool, workflow agents); LangGraph deliberately demotes the agent to a node so the graph becomes the architecture; CrewAI bakes role-playing persona fields into the definition; AutoGen centers message-passing between conversable agents; the OpenAI SDK keeps agents as plain data executed by a separate Runner.

# CrewAI: a role-playing definition, executed by a Crew
from crewai import Agent, Task, Crew, Process
researcher = Agent(role="Researcher", goal="Find accurate sources",
                   backstory="A meticulous analyst", tools=[search])

# LangGraph: the agent is a node inside a state graph
from langgraph.graph import StateGraph, START
graph = StateGraph(AgentState)
graph.add_node("agent", call_model)
graph.add_edge(START, "agent")
app = graph.compile()

2. Orchestration primitives

  • ADK: LLM-driven transfer between agents, explicit AgentTool delegation, deterministic workflow agents (SequentialAgent, ParallelAgent, LoopAgent), and — new in ADK 2.0 — graph workflows declared as Workflow with edges=[("START", a, b)] supporting routing, fan-out/fan-in, retries and human-in-the-loop.
  • LangGraph: StateGraph with add_node, add_edge, add_conditional_edges, compiled to a runnable — the most explicit control flow of the five.
  • CrewAI: Crew with Process.sequential or Process.hierarchical; the Task object, not the agent, drives progress.
  • AutoGen: group chat with a speaker-selection function deciding who talks next — flexible but implicit.
  • OpenAI Agents SDK: first-class handoffs that transfer the conversation to another agent; loops stay in your own code.

ADK 2.0’s graph workflows deliberately converge on LangGraph’s territory: deterministic execution paths woven together with adaptive model reasoning.

Two delegation primitives deserve a closer look. The OpenAI Agents SDK makes handoffs a declarative field on the agent — routing is data you declare up front. ADK’s LLM-driven transfer instead records the decision in the event stream as event.actions.transfer_to_agent, so why the conversation moved to another agent is visible in the history afterward. AutoGen’s speaker-selection function sits between the two: routing logic exists, but as an imperative callback rather than an inspectable event.

3. State and session model

ADK has the most explicit persistence contract: a Session (fields id, app_name, user_id, state, events, last_update_time) created and managed by a SessionService — InMemorySessionService for dev, DatabaseSessionService (via pip install google-adk[db]) or VertexAiSessionService (via google-adk[gcp]) for production. State mutates only through EventActions.state_delta, committed by the Runner before agent logic resumes.

LangGraph pairs a typed state schema with checkpointers that snapshot graph state per step (enabling rewind and human-in-the-loop). CrewAI offers crew/agent memory across tasks. The OpenAI Agents SDK provides session objects for conversation history; AutoGen passes messages as its state. For durable, backend-swappable conversation state, ADK and LangGraph are the two serious answers.

4. Execution runtime

ADK’s runtime is an event loop: Runner.run_async appends the user message, calls the agent, receives yielded Events, commits their actions through services, then resumes the agent at the yield point — a cooperative yield/pause/commit/resume cycle. LangGraph runs a compiled graph executor with checkpointing. The OpenAI SDK’s Runner.run / run_sync / run_streamed drives turn-based execution. CrewAI’s kickoff() runs a whole crew synchronously. AutoGen delivers messages asynchronously between agents. If you need to reason precisely about when state is durable, ADK’s documented commitment semantics are unusually precise.

5. Streaming

All five stream tokens, but at different layers. ADK streams events — partial=True marks incomplete chunks inside the same Event stream that carries tool calls and state changes, and its live/voice agents add bidirectional audio streaming on the Gemini Live API. LangGraph exposes multiple stream modes (values, updates, messages). The OpenAI SDK streams through RunResultStreaming. CrewAI and AutoGen stream text callbacks around their higher-level kickoff/message loops. ADK’s unified stream means your UI consumes one protocol for text, tool calls and state deltas.

6. Evaluation

ADK ships evaluation into the framework: multi-turn evaluation datasets run via adk eval or the dev UI, plus criteria, user simulation and custom metrics docs. Concretely, from the adk-python repo:

adk eval contributing/samples/evaluation/home_automation_agent \
    contributing/samples/evaluation/basic_criteria/home_automation.evalset.json \
    --config_file_path contributing/samples/evaluation/basic_criteria/eval_config.json

LangGraph leans on LangSmith for tracing and evals. CrewAI and AutoGen integrate external eval tooling; the OpenAI Agents SDK has built-in tracing but evaluation is delegated to your stack. For offline, CLI-run agent evals without a SaaS dependency, ADK is ahead.

7. Deployment

ADK containers and ships: adk deploy docker --with_ui, adk deploy cloud_run --with_ui, adk api_server for REST, GKE, and managed Agent Runtime on Google Cloud’s Agent Platform (formerly Vertex AI Agent Engine) — with VertexAiSessionService keeping conversation state in the same managed stack. The other frameworks land differently:

  • LangGraph: self-host the compiled graph anywhere; LangGraph Platform adds managed state and a control plane.
  • CrewAI / AutoGen: libraries — you bring the web framework, queue and hosting.
  • OpenAI Agents SDK: a process-level Runner; deployment is your own server around it.

A practical rule: if your compliance story requires managed session persistence and one vendor for runtime, state and observability, ADK’s path is the shortest. If you already operate Kubernetes and want framework freedom, LangGraph’s compiled graph drops into any ASGI app with the least ceremony.

When to use which

  • ADK: hierarchical multi-agent systems needing sessions, artifacts, built-in evals, and a path to managed Google Cloud deployment — especially with Gemini in the stack.
  • LangGraph: you want an explicit state machine, checkpointed interrupts, and best-in-class ecosystem tooling around it.
  • CrewAI: role-driven, task-oriented crews where rapid composition beats low-level control.
  • AutoGen: research-flavored conversational multi-agent experiments and group-chat dynamics.
  • OpenAI Agents SDK: minimal, handoff-centric agents tightly coupled to OpenAI models and tracing.

Takeaway: the frameworks differ less in how they call an LLM than in where they place control — ADK puts it in an event-sourced agent tree with service-backed sessions, LangGraph in an explicit checkpointed graph, CrewAI in tasks and processes, AutoGen in message passing, and the OpenAI SDK in handoffs around a Runner — so choose the control surface your architecture will live inside for the next two years.

Sources