Back to all guides

Five Agent Frameworks, Five Philosophies: Choosing Between LangGraph, Pydantic AI, Claude Agent SDK, OpenAI Agents SDK, and Google ADK

Each of the five dominant agent frameworks in 2026 encodes a different answer to the question: what should an agent framework be? Here is how to match the philosophy to your production use case.

Published
Aug 29, 2026
Reading time
9 min read

Every AI agent framework is an argument about what matters most. LangGraph argues that state and crash recovery are non-negotiable. Pydantic AI insists that type safety catches bugs before they reach production. Claude Agent SDK bets that giving an agent a computer is the whole point. OpenAI's SDK says the fastest path to a working prototype wins. Google ADK makes the case that multi-language support and agent-to-agent communication are the future of enterprise systems.

The mistake most teams make is evaluating these frameworks against a feature matrix. That tells you what each one can do, but not what it wants to do. The right question is simpler: which philosophy matches the problem you are actually solving?

I tested both Google ADK and LangGraph extensively and came away impressed with both, for entirely different reasons. That experience shaped how I think about the choice.

LangGraph: The Durable State Machine

LangGraph reframes agent execution as explicit state machines. Nodes are Python functions. Edges are transitions. State is immutable and checkpointed after every step. The core insight is that modeling agent state as a typed, checkpointed graph makes workflows debuggable, recoverable, and auditable.

What this means in practice: if your agent crashes at step 7 of a 12-step workflow, LangGraph restarts and resumes from step 7. No work repeats. No side effects double-fire. Time-travel debugging lets you inspect state at any historical point, rewind, and replay. Community reports a 60% reduction in debugging time with this capability.

The production adoption reflects the philosophy. Klarna, Uber, J.P. Morgan, Replit, and LinkedIn run LangGraph in production. It holds roughly 34.5M monthly PyPI downloads and 33.9K GitHub stars. Enterprise survey data places it in 34% of large-company AI architecture decisions.

The trade-off is real. LangGraph has a steep learning curve, typically 1 to 2 weeks for effective development. It is verbose and not appropriate for simple single-agent use cases. It is not serverless-compatible due to checkpointer state requirements. But if your agent needs to survive process restarts, support human-in-the-loop interrupts, maintain complex multi-actor state, or provide audit trails, LangGraph is the default choice.

When I tested it, the checkpointing system was the feature that convinced me. The ability to pause execution at any node, surface state to a human, accept modifications, and resume is more flexible than most HITL implementations. For any workflow where "what happens when step 7 fails" is a real concern, LangGraph has the first-class answer.

Pydantic AI: The Type-Safe Single Agent

Pydantic AI is built by the team behind Pydantic, the Python validation library underpinning OpenAI SDK, LangChain, and FastAPI. The design thesis: apply FastAPI's ergonomic type-safe philosophy to LLM agents.

Agents are generic Python objects, Agent[Dependencies, Output]. Type parameters flow through dependency injection and output validation. Every LLM response is validated against the output type; validation failures trigger automatic LLM retry with the error as context. The framework scored 8 out of 10 on the Nextbuild DX benchmark, the highest of any framework tested, and its type system caught 23 bugs missed by LangChain in a direct comparison.

The model agnosticism is the key strength. 25+ model providers supported: OpenAI, Anthropic, Gemini, xAI, DeepSeek, Cohere, Mistral, Perplexity, Bedrock, Cerebras, Groq, HuggingFace, Ollama, OpenRouter. Same agent code runs on different providers by changing one constructor argument. In a 90-day cost benchmark, Pydantic AI spent $390 compared to CrewAI's $1,088, a 64% cost advantage from fewer unnecessary LLM calls.

The critical limitation: Pydantic AI is a single-agent framework. No built-in multi-agent orchestration, no graph execution, no role-based crews, no handoff model. Teams needing complex orchestration must pair it with LangGraph or another layer.

This is the right choice for Python teams prioritizing correctness, type safety, and model portability. Data extraction pipelines, form processing, classification tasks, compliance-sensitive industries like finance, healthcare, and legal. The go-to framework when "the model must return data matching this exact schema" is the core requirement.

Claude Agent SDK: The Computer-Using Agent

Claude Agent SDK exposes the same underlying harness that powers Claude Code, Anthropic's agentic terminal coding assistant. The design premise is that Claude's extended thinking, filesystem tools, and managed agent loop are powerful enough to serve as a general-purpose agent backend.

The built-in tool suite is the differentiator. Read, Write, Edit, Bash, Glob, Grep, WebSearch, WebFetch, and AskUserQuestion ship pre-implemented. No custom tool implementation required for common agentic work. MCP integration is the deepest of any framework, 200+ servers supported with a single configuration line.

The hooks system provides lifecycle control. PreToolUse, PostToolUse, Stop, SessionStart, SessionEnd, UserPromptSubmit callbacks allow audit logging, policy enforcement, and behavioral customization. Subagents spawn via AgentDefinition objects with their own context window and tool set, providing hierarchical delegation with isolation.

The model lock-in is the critical constraint. Claude Agent SDK is architecturally bound to Claude models exclusively. It supports multiple deployment backends (Anthropic API, Amazon Bedrock, Google Vertex AI, Microsoft Azure AI Foundry), but all routes go through Claude models. Anthropic's April 2026 billing changes added friction that the community is actively navigating.

Right for Claude-native agentic products needing filesystem and shell access with rich MCP connectivity. Wrong for teams needing model flexibility, multi-language support, or complex stateful workflow orchestration.

OpenAI Agents SDK: The Fastest Onboard

OpenAI's Agents SDK is explicitly minimalist. Five primitives encode a specific, opinionated multi-agent coordination model: Agent, Handoffs, Guardrails, Sessions, and Tracing. A working multi-agent triage system can be written in roughly 20 lines.

The handoff model is the cleanest in the ecosystem. When Agent A decides to delegate to Agent B, it executes a specialized tool call that passes control along with conversation history. No shared state bus, no message queues. The simplicity is the point.

Guardrails are the most sophisticated input/output validation of any framework here. Three-tier parallel checking (input, output, tool) adds minimal latency while providing strong safety. Sandbox Agents, added in v0.14, provide preconfigured container environments with filesystem access and persistent workspace state.

The absence of native state persistence and crash recovery is the price of that simplicity. Sessions track history in memory, optionally Redis, but a process crash requires restarting. External Temporal integration is the recommended workaround. The handoff model is linear or branching, not arbitrary graph topologies.

This wins on velocity. For teams that need a working agent system now, that are already on OpenAI, or that need voice agent capabilities, nothing ships faster. Coinbase and Box deployed in days. The SDK's deliberate minimalism makes it genuinely fast to start with.

Google ADK: The Multi-Language Enterprise

Google ADK approaches multi-agent systems as a software engineering problem. Five language SDKs (Python, TypeScript, Go, Java, Kotlin) as of mid-2026. No other framework in this comparison approaches this breadth.

The A2A protocol is the other differentiator. ADK is the only framework with native A2A support. ADK agents auto-generate Agent Cards (JSON capability descriptions) and can expose themselves as A2A peers. This peer-to-peer task delegation enables genuinely distributed agent ecosystems. A2A became a Linux Foundation project in late 2025 with 50+ partners including Salesforce and SAP.

For enterprise Java and Go teams, this matters. A Python agent can talk to a Java agent via A2A without either side knowing the other's language. The Google Cloud Console includes a visual, low-code builder for ADK agents, the only native no-code authoring of any framework in this comparison.

The production deployment is most compelling on GCP. Vertex AI Agent Engine provides managed infrastructure, one-command deployment, and centralized tool governance. Burns and McDonnell, the engineering consultancy, uses ADK with Vertex AI Agent Builder to turn decades of project data into real-time, actionable intelligence.

The heavy GCP dependency in production is the trade-off. MCP support is through adapters only, not native. The community is smaller than LangGraph or CrewAI. Non-Python SDKs are newer and less battle-tested. When I tested it, the A2A protocol was the feature that stood out. The ability for agents built in different languages to discover and delegate to each other without shared infrastructure is a genuine architectural advantage for multi-language teams.

The Microsoft Consolidation Story

The broader industry trend is framework consolidation. Microsoft's move is the clearest example.

In October 2025, Microsoft announced plans to merge AutoGen and Semantic Kernel. The Release Candidate shipped February 19, 2026. Version 1.0 GA shipped April 3, 2026 for both .NET and Python. AutoGen, with 50K+ GitHub stars, is now in maintenance mode. Semantic Kernel users are directed to migrate via official guides.

The merged framework combines AutoGen's simple agent abstractions with Semantic Kernel's enterprise features: session-based state management, type safety, middleware, telemetry. It adds graph-based workflows for explicit multi-agent orchestration. Native MCP support ships in 1.0. A2A 1.0 support is listed as coming soon.

This is a maturing signal for the entire space. Fewer live bets for teams to hedge. The question is no longer whether to use an agent framework but which one, and the answer is settling on 2 to 3 dominant options rather than 8.

Choosing by Philosophy, Not Feature Matrix

The synthesizing recommendation: use LangGraph as the default orchestration layer for any workflow with meaningful complexity. Use Pydantic AI as the type-safe single-agent building block for Python teams. Choose provider SDKs when first-party ecosystem integration justifies the lock-in. Use Google ADK when multi-language or A2A is a hard requirement.

These frameworks can and do interoperate. The ecosystem is composable. A Pydantic AI agent can be a node in a LangGraph graph. A Claude Agent SDK subagent can be called via A2A from a Google ADK orchestrator. The protocol layer (MCP for tools, A2A for agents) is converging beneath all frameworks.

The 37% gap between lab benchmarks and production performance is largely attributable to orchestration quality, not model capability. Framework choice shapes your observability story, your scaling costs, your debugging experience, and through protocol support, your interoperability with other agents and tools. Choose the philosophy that matches how you already reason about the problem.

Five Agent Frameworks, Five Philosophies: Choosing Between LangGraph, Pydantic AI, Claude Agent SDK, OpenAI Agents SDK, and Google ADK · Open Agency · Open Agency