Agent frameworks: how to choose
Compare workflow control, session state, tool execution and deployment boundaries; distinguish SDK mechanisms from application configuration.
Choose the level you need
Write down what your application needs to control before choosing an SDK. Their abstraction levels differ. Low-level does not mean fewer capabilities, and one kind of tool's execution model does not describe the whole SDK.
| Requirement | Inspect |
|---|---|
| Explicit workflow steps and branches | Graph, state, nodes and interruption recovery |
| Collaboration between agents | Tools, handoffs, scheduling and responsibilities |
| Context across turns | Session backend, retained scope and recovery |
| Tools accessing files, commands or networks | Execution process, permissions and isolation |
Four frameworks
| Project | Mechanisms in official documentation | Application decisions |
|---|---|---|
| LangGraph | Stateful orchestration, durable execution, streaming, human-in-the-loop | State schema, storage configuration, branches and tool permissions |
| OpenAI Agents SDK | Agent loop, tools, handoffs, Sessions, human-in-the-loop | Session backend, tool authorisation, business approvals and model integration |
| Google ADK | Agents, graph workflows, sequential/loop/parallel workflows and runtime | Workflow design, state data and deployment configuration |
| Claude Agent SDK | Claude Code capabilities, custom in-process MCP tools and external MCP connections | CLI/tool permissions, deployment isolation and session lifecycle |
A mechanism's existence does not mean it is configured for your application. Check language-specific SDK and version coverage separately.
When each fits
LangGraph: examine durable execution and interruption mechanisms when you need explicit graph, state and recovery control. Describe recovery from failure as well as the success path.
OpenAI Agents SDK: examine its runtime when you need an agent loop, tools and handoffs. For cross-turn context, inspect Sessions rather than describing it as having no state management. Check model compatibility against the tool-call and response capabilities you actually need.
Google ADK: examine graph, sequential, loop or parallel workflows for the appropriate task. Its documentation also provides an Agent Runtime; it is not merely a graph layer that cannot run agents.
Claude Agent SDK: examine the Python or TypeScript version when embedding Claude Code capabilities and custom tools. create_sdk_mcp_server() creates a tool server inside the Python application. That does not mean the whole SDK has no CLI subprocess or guarantee zero end-to-end IPC overhead.
Verification scope
On 2026-11-04, this page's mechanism comparison was checked against four official documents: the LangGraph overview, OpenAI Agents SDK introduction, Google ADK documentation and Claude Agent SDK Python reference.
Three boundaries were corrected: OpenAI Agents SDK has Sessions and human-in-the-loop mechanisms; ADK has an Agent Runtime; Claude's in-process MCP tools do not make the entire SDK single-process. No SDK was executed, no throughput was measured, and compatibility across all versions was not verified.
Common misreads
- A persistence mechanism does not establish a working backup; check backend, retention and recovery.
- Multiple-model support does not make substitution free; recheck prompts, tool schemas and evaluations.
- Human-in-the-loop is not automatic safety; approval points must cover consequential actions.
- In-process tools still need explicit file, command and network boundaries.
- Feature names alone are insufficient; check language, version and deployment environment.
Sources
| Source | URL |
|---|---|
| LangGraph official overview (orchestration and persistence mechanisms; 2026-11-04) | https://docs.langchain.com/oss/python/langgraph/ |
| OpenAI Agents SDK introduction (Sessions and human-in-the-loop; 2026-11-04) | https://openai.github.io/openai-agents-python/ |
| Google ADK documentation (agents, graph workflows and runtime; 2026-11-04) | https://google.github.io/adk-docs/ |
| Claude Agent SDK Python reference (in-process MCP tools versus CLI subprocess; 2026-11-04) | https://platform.claude.com/docs/en/agent-sdk/python |
Source snapshot: 2026-11-04; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.