AgentenCode · Field guide

AI Agent Frameworks Compared: Choosing the Right Architecture

Compare OpenAI Agents SDK, LangGraph and Microsoft Agent Framework by orchestration, state and control.

AgentenCode Editorial · November 25, 2026 · Expanded technical reference

Original AgentenCode conceptual editorial illustration: AI agent frameworks
Original editorial illustration; not a vendor image or documentary screenshot.

Framework or simple application?

A single model call with structured output and one read-only tool often needs little orchestration. Frameworks become attractive when agents delegate tasks, use multiple tools, persist state or obtain human approval. Added abstraction carries learning and maintenance costs. Start with requirements and check whether direct implementation would be simpler.

Six architecture types instead of a leaderboard

A simple tool loop lets the model choose the next tool. An explicit graph defines states and allowed transitions. Role-based orchestration distributes tasks among specialists. Template workflows offer predefined sequential, parallel or repeated patterns. A durable process engine manages executions that outlive a model call. A team may also build a minimal runtime from a few direct SDK calls.

These categories overlap: a graph can call a tool loop as a node and coordinate multiple roles. A durable workflow can invoke an agent framework for one model step. Choose the required execution layer rather than the marketing term agentic. The matrix compares documented architectural emphases, not independently measured quality.

OpenAI Agents SDK

The Python documentation presents Agent and Runner, tools, handoffs, sessions and guardrails as core building blocks. It is a candidate for a lightweight agent loop with clear tool tasks. Separate delegation from authorization: handing work to a specialist must not automatically elevate rights. Review model integration, tracing privacy and guardrail scope for the exact SDK version.

Documentation: OpenAI – Agents SDK

Google ADK and CrewAI compared

Google documents agents, tool use and several workflow patterns in its Agent Development Kit, including template workflows and graph-based controls. Concrete capabilities depend on language and version. ADK is a candidate for teams combining agents with explicit process steps and Google-related or other supported integrations. Check required model and deployment interfaces in the actual SDK.

CrewAI documents crews for agent collaboration and flows for explicit application coordination, including state and event concepts. This can suit distinct research, verification and editorial roles. Roles alone are not authorization boundaries. Persistence, checkpointing and failure semantics require testing against the actual version. Multiple agents can also add costs, context loss and harder-to-attribute failures.

Documentation: Google – ADK template workflows · CrewAI – Flows

LangGraph

LangGraph represents execution as a graph of states and nodes. Documented persistence via checkpointers supports interruption and resumption; longer-term storage serves a separate purpose. The graph approach is a candidate for explicit branching and controlled multi-step processes. It adds responsibility for state definition, side effects, retention and workflow version migration.

Documentation: LangGraph – Persistence

Handoffs, tools and process nodes

A handoff transfers further work or conversational context to another agent. An agent exposed as a tool can instead complete a scoped task and return its result to a caller. In an explicit graph, program logic determines when a node follows. These patterns differ in ownership of the next step and visibility of control flow.

For internal support, an agent-as-tool might identify the relevant policy while the main process assembles the answer. A handoff makes sense when a specialist truly needs to lead the remaining conversation. For a posting requiring binding approval, we prefer an explicit state transition. This makes prior verification and authorization for the next step inspectable.

Microsoft Agent Framework

Microsoft documents agent abstractions and explicit workflows coordinating code, agents, events and human input. This is worth considering for organizations already using Microsoft development tools or requiring explicit process graphs. Capabilities differ by language and version. Check specific SDK documentation, deployment, identity and telemetry instead of assuming universal feature parity.

Documentation: Microsoft – Agent Framework overview · Microsoft – Workflows

Shared scenario: three versions of one task

A company receives daily travel-expense policy questions. Version A uses an agent loop with retrieval and structured output. Version B defines a graph for classification, search, evidence validation, clarification if needed and answer. Version C adds a durable workflow layer because some cases await approval for days. All are conceptual designs, not executed product tests.

Version A is likely the smallest suitable stack for immediate read-only answers. Version B is attractive when evidence validation must precede answers and request classes need explicit separation. Version C is justified when interrupted approval processes must resume reliably or external actions need reconciliation. Added complexity should correspond to actual requirements, not the number of framework features available.

Orchestration by process shape. Three alternative architectures for the same business task.
Orchestration by process shape
Three alternative architectures for the same business task.

Adding durable orchestration

Temporal is not an equivalent general-purpose agent SDK; it is an alternative or complementary layer for durable process execution. For long-running tasks such an orchestrator can embed model steps in a traceable workflow history. External side effects, idempotency and approvals remain application responsibilities. Framework choices need not be exclusive; multiple layers may be appropriate.

Documentation: Temporal – Workflows

A shared test case for comparison

Build the same agent in two candidates: it searches an internal policy and produces a structured proposal. Give both the same sources, model and limits. Test a missing document, manipulated input, tool timeout and denied approval. Compare accepted answers, unauthorized actions, recovery behavior, cost and the effort a developer needs to diagnose failures. This is more meaningful than uncontrolled demo comparisons.

Build your own weighted decision matrix

Define hard exclusions first: required language, model integration, privacy, licensing, target environment and mandatory recovery semantics. A candidate failing one prerequisite should not win on a strong average score. For remaining candidates, you could weight state control at 25 percent, tool and authorization design at 25 percent, debugging at 20 percent, integration at 15 percent and operations at 15 percent.

Score each criterion from zero to four using a reproducible task. The weighted result is the sum of weight multiplied by points divided by four. A hypothetical candidate scoring 3, 4, 2, 3 and 2 would receive 72.5 out of 100. This is not a score for any named framework. Use it as a transparent selection procedure and retain evidence for each criterion alongside the number.

Weighted selection score. Example weighting and hypothetical points, not a rating of any specific framework.
Weighted selection score
Example weighting and hypothetical points, not a rating of any specific framework.

Choose by deployment and provider dependence

List the model providers, languages, data sources and deployment locations you need. Check the actual model and tool interfaces for each candidate. Provider portability is not the same as functional equivalence: another model may behave differently with structured output and tool selection. Document the model version separately from the integration layer.

Framework selection can affect trace storage, state and credential handling. Check whether these components can be self-hosted, which default settings contact external services and what rights the runtime requires. A documented feature does not establish suitability for your operating conditions.

Costs and debugging in a pilot

Measure more than tokens and latency: count redundant model steps, time to diagnose failures and effort to change an existing workflow. A framework with understandable failure traces may ease maintenance despite technical complexity. Total cost depends on traffic, models, storage and operations; free licensing does not mean free production.

Define appropriate failure outcomes in advance. A prohibited action should produce a controlled stop. Missing sources should produce explicit uncertainty rather than fabricated answers. High task completion without these negative tests is not meaningful quality evidence.

Portability: where lock-in actually appears

Tool schemas and business interfaces are often easier to port than workflow states, traces, agent handoffs or durable checkpoints. Keep business logic and authorization independent from frameworks. A tool should be directly testable without a model. A separate adapter translates agent calls to internal functions and normalizes error classes. A later framework change can then affect orchestration without reimplementing business rules.

Changing a language model may alter tool selection, JSON reliability or answer quality despite identical interfaces. Framework comparisons using different models cannot isolate the framework's effect. Fix model revision, temperature where controllable, retrieval data, tasks and budgets. Repeat cases because agent outcomes can vary stochastically.

Document the architecture decision

Keep a short decision record with the task, alternatives, evidence and unresolved risks. A simple read-only support agent may require little orchestration; a task involving days of approval may require a durable workflow layer. Use clear interfaces between business tools and the framework so a future migration does not require replacing the entire system.

Schedule reassessment after the pilot. The projects compared here evolve, and feature claims must remain tied to concrete releases. A new framework version does not automatically justify migration while an existing system meets business and operational goals.

A practical shortlist by requirement

For a lightweight tool loop with handoffs, OpenAI Agents SDK is a reasonable candidate. For more complex state transitions and checkpoints, examine LangGraph. Microsoft Agent Framework is natural to investigate for relevant .NET or enterprise integrations, with language version important. Google ADK belongs on a shortlist for template and graph workflows. CrewAI is relevant for role-based teams plus flow orchestration. Temporal deserves review as a complementary execution layer for long-running consequential business processes.

This is not a market ranking or exhaustive list. Other frameworks and direct implementations may better fit a project. Use the matrix for an initial architectural shortlist and run a small pilot. Our most important test is whether a failure can be explained, reproduced and addressed in a controlled way. An impressive demo video tells less about production operation than demonstrable recovery from a realistic outage.

Six architectural emphases. Documented emphases, not feature completeness or a performance ranking.
Six architectural emphases
Documented emphases, not feature completeness or a performance ranking.

AgentenCode assessment

Our selection rule is to use the smallest suitable stack for simple tasks, explicit graphs for complex branches, and durable orchestration for prolonged or consequential actions. There is no universal winner. The matrix is an editorial architecture comparison grounded in documentation, not a benchmark of speed, model quality or production readiness. Validate a choice through a small reversible pilot.

Decision matrix

CandidatePrimary architectureState / controlPilot task
OpenAI Agents SDKTool loop, handoffsSessions, guardrails; verify scopeRead-only support agent
LangGraphExplicit state graphCheckpointers; test recoveryMulti-stage research and approval
Microsoft Agent FrameworkAgents, workflowsSessions, middleware; verify SDK versionEnterprise workflow with .NET
Google ADKAgents, templates, graphsVerify SDK workflow semanticsMulti-step tool task
CrewAICrews and flowsFlow state; verify persistenceRole-based research and verification
Temporal (complement)Durable workflow engineEvent history, activitiesMulti-day side-effectful process
Small custom stackDirect model and tool callsImplement yourselfSimple bounded task

Additional practical decision guide

CandidateArchitecture focusCheck
OpenAI Agents SDKAgent loop / handoffsTool scope
LangGraphGraph / checkpointsState and replay
Microsoft Agent FrameworkAgents / workflowsSDK capabilities
Temporal (complement)Durable processesSide effects

Frequently asked questions

Which framework is best?

It depends on task and architecture; a universal winner is not established.

Do I need a multi-agent framework?

Only if distinct roles or delegation are actually required.

Can I use a local model?

It depends on the integration and model; test concrete tool support.

Is LangGraph a model?

No. It is an orchestration layer.

Does a framework replace security controls?

No. Applications must independently enforce authorization.

How do I compare fairly?

Use the same tasks, models, sources, budgets and failure cases.

Did AgentenCode lab-test the named products?

No. Our assessment combines public vendor documentation with original conceptual examples and calculations. Suitability must be tested in the specific environment.

Primary sources and methodology

Claims are grounded in the linked primary sources and original editorial analysis. Examples are illustrative; AgentenCode has not independently tested products, certified security or measured keyword volume. Sources reviewed November 25, 2026.

  1. OpenAI – Agents SDK
  2. LangGraph – Persistence
  3. Microsoft – Agent Framework overview
  4. Microsoft – Workflows
  5. Google – ADK template workflows
  6. CrewAI – Flows
  7. Temporal – Workflows

Our evidence methodology

NEWSLETTER · FREE · GERMAN EDITION

More signal. Less AI noise.

Our source-backed German-language digest of major AI developments, agent updates and knowledge articles. The weekly edition is being prepared.

Double opt-in: Subscription starts only after email confirmation. Your details are sent to Brevo when you submit.