Choosing an AI agent framework for production means looking beyond standard provider benchmarks. Compare how each framework handles state, durable execution, and tool routing, alongside its language stack, integrations, and deployment requirements. In multi-agent systems, process restarts can erase conversation history held only in memory, so ask:
- What conversation or workflow state can be persisted, and what can resume after a process failure?
- How does the system route application context between specialized subagents?
- What human-in-the-loop approvals and observability controls come with the framework or its platform?
Arcade.dev provides an enterprise MCP gateway with built-in governance for agent tool access and execution. Teams bring selected business tools and integrated MCP servers behind a shared endpoint, with scoped authorization, runtime policy enforcement, and execution records for calls routed through Arcade.
TL;DR
- Start with your language and workflow: Pydantic AI for typed Python agents, LangGraph for complex stateful workflows, and Mastra for TypeScript applications.
- Use Arcade.dev as an enterprise MCP gateway when agents need centrally governed access to business tools. Arcade combines authorization, runtime policy enforcement, tool execution, and auditability alongside the chosen framework.
AI agent frameworks compared
| Framework | Languages | Model flexibility | Best fit | Main tradeoff |
|---|---|---|---|---|
| OpenAI Agents SDK | Python, TypeScript | OpenAI; compatible endpoints and adapters, some beta | Model-driven loops and specialist handoffs | Test feature support on non-OpenAI provider paths |
| Claude Agent SDK | Python, TypeScript | Claude models | Coding and file-based agent workflows | Claude-centric; shell and filesystem access need host safeguards |
| Google ADK | Python, TypeScript, Go, Java, Kotlin | Gemini and Claude; other connectors vary by SDK | Google Cloud-integrated agents | Persistent sessions and workflow resume need separate configuration |
| Microsoft Agent Framework | Python, .NET/C#; Go in preview | Cloud and local providers; coverage varies by SDK | .NET/Python enterprise workflows | Restart checkpoints need a configured storage backend |
| Strands Agents | Python, TypeScript | Multiple providers; Amazon Bedrock is the default | A customizable agent loop and coordination patterns | Restart recovery needs a session manager and durable storage |
| LangChain and LangGraph | Python, TypeScript/JavaScript | Multiple providers through integrations | Stateful workflows with explicit control | Graph design and retry-safe external actions require application work |
| CrewAI | Python | Native provider integrations; LiteLLM fallback for others | Role-based agent collaboration | Test checkpoint durability and protect external actions from duplicate retries |
| Agno | Python | Hosted and local providers through adapters | Code-first teams and workflows | Advanced AgentOS controls need registration and database operations |
| Pydantic AI | Python | Multiple providers, gateways, and local endpoints | Typed tool calls and validated outputs | Durable in-flight execution requires an external engine or service |
| LlamaIndex | Python; TypeScript deprecated | Hosted and local models through integrations | Retrieval and document-heavy agents | Durable workflow state needs a storage backend |
| Mastra | TypeScript | Multiple providers through model routing | TypeScript applications and workflows | Restart recovery requires configured storage |
Support for tool calling, structured output, streaming, and recovery varies by model and language SDK.
How to choose an AI agent framework for production
For each candidate, identify the language runtime, hosting environment, and storage or external execution service required for recovery. Decide which components your team will operate and which a managed platform will provide.
Check what the framework saves and what it can resume. Conversation history lets an agent continue a discussion. Workflow checkpoints preserve execution state at supported boundaries. Verify whether that state survives a process restart and how the application handles a tool call that may have completed before an interruption.
Compare how the application controls the next step: a model-driven loop, explicit workflow branches, specialist delegation, or a pause for human approval. Trace what context passes between agents and where approvals are enforced.
A workflow that pauses for approval and survives restarts
Suppose a workflow prepares a business-system update, waits for approval, and must continue after a process restart. Shortlist LangGraph when explicit graph state and checkpoint control are central. Include Microsoft Agent Framework when the application needs .NET or Python workflows in the Microsoft ecosystem.
Test saved history, workflow state, and restart recovery separately. Make external actions duplicate-safe when a retry could repeat an earlier side effect.
A Python service that needs validated outputs
Start with Pydantic AI for a Python service that needs typed tool arguments and validated structured responses using standard Python type hints. If it also needs durable in-flight execution, account for the setup and operation of a supported external engine or service. Type validation and restart recovery remain separate requirements.
A TypeScript application with persistent workflow state
Start with Mastra when a TypeScript application needs native workflow suspend and resume. Include LangGraph’s TypeScript implementation when explicit graph-based control is central. Compare how each API handles the application’s branching and approval steps, then confirm the storage configuration needed for restart recovery. TypeScript support alone doesn’t provide restart durability.
Framework controls shape workflow transitions, and framework or platform controls may suffice for narrower action workloads. When multiple users, agents, and business systems need consistent authorization and governance, a shared runtime can provide those controls for calls routed through it.
AI agent SDKs for model and cloud ecosystems
OpenAI Agents SDK: model-driven loops and handoffs
Best for
The SDK fits single or multi-agent workflows built around OpenAI models.
Overview
The OpenAI Agents SDK provides a direct integration layer for Swarm-inspired patterns and native API features. Its Python and JavaScript SDKs support non-OpenAI and mixed-provider setups through provider integration points. Third-party adapters are available where those paths don’t cover the required provider or routing.
Capabilities that matter
The SDK uses a model-driven loop to execute tool calls, switch contexts after handoffs, and return a final response. Native tool integration handles direct schema mapping and execution.
Handoffs let an agent delegate tasks to specialized subagents. The execution loop supports injected approval checkpoints and streaming outputs.
Three patterns preserve conversation history. The application can pass result.to_input_list() into a later run, use an SDK session backed by persistent storage, or use server-managed Conversations state across workers and services. An interrupted run also needs its resumable run state and application-level handling of external tool effects. Conversation storage alone doesn’t provide that recovery.
Tradeoffs and limits
For non-OpenAI models, test the selected provider path for the SDK features your application uses.
The SDK doesn’t establish cross-system, per-user authorization boundaries out of the box. For multi-user actions across business systems, the application needs an execution path that checks the represented user’s access and the agent’s scope. Evaluate whether application and target-system controls suffice for the actions and users involved.
Pricing
The framework is free and open-source. OpenAI API token and execution costs apply when using OpenAI services.
Claude Agent SDK: coding and filesystem workflows
Best for
The SDK fits workflows built around Anthropic’s models and precise, Claude-native tool use.
Overview
The Claude Agent SDK provides tools for building Claude Code-style coding-agent loops, with context-aware tool-execution patterns tailored to Anthropic’s models.
Capabilities that matter
The framework includes built-in Bash, Glob, Grep, Read, Write, Edit, and WebSearch tools for executing code and inspecting filesystems. Workflow control revolves around the agent loop, subagent coordination, hooks, and Model Context Protocol (MCP) integration.
Developers can enforce policies using strict permission modes and canUseTool callbacks before execution.
Sessions persist prompt and tool history to disk, allowing the workflow to continue, resume, or fork. The saved session contains conversation history and context. It’s distinct from the live filesystem state modified by the agent’s tools.
Tradeoffs and limits
The SDK integrates tightly with the Anthropic ecosystem, limiting cross-model portability. Multi-agent coordination outside that ecosystem adds integration work.
Developers must secure the host environment when granting the agent access to built-in shell and filesystem tools.
Pricing
The framework is free to use. Underlying model consumption incurs Anthropic API costs.
Google ADK: Google Cloud integration
Best for
Workloads requiring tight integration with Google Cloud Platform, Vertex AI, and Gemini models.
Overview
Google’s Agent Development Kit (ADK) offers multi-agent and graph workflow construction. It supports external and local models and provides multiple language implementations for GCP-native AI applications.
Capabilities that matter
ADK supports simple agents, workflow agents, graph workflows, and multi-agent systems. It supplies GCP integration and authentication helpers tailored for Google Cloud services.
The Runner executes built-in and custom tools across deployment paths, including managed GCP deployments.
ADK’s managed Agent Runtime session path persists session history and state using a Google Cloud project, Cloud Storage bucket, and Agent Runtime resource. ADK also provides DatabaseSessionService for persistent sessions backed by a configured relational database. Workflow recovery after an interruption requires the separate Resume configuration.
Tradeoffs and limits
Resumed workflows may repeat tool calls, so actions with external side effects need duplicate protection.
Pricing
The open-source SDK is free. Infrastructure and inference costs depend on the selected hosting environment, model provider, and any Google Cloud services used.
Microsoft Agent Framework: .NET and Python workflows
Best for
The framework fits scalable .NET and Python applications in the Azure and Semantic Kernel ecosystem.
Overview
Microsoft Agent Framework supplies agents, workflows, and tools at the application layer. It succeeds AutoGen and Semantic Kernel, bringing agent capabilities into enterprise codebases.
Capabilities that matter
The framework uses functional and graph workflows to connect agents and custom application code. It offers native middleware, telemetry integration, and workflow guardrails that intercept and observe execution paths.
Tool integration connects to Microsoft Foundry, Azure OpenAI, Anthropic, and local models.
Workflow executors modify shared state using strict visibility, scope, and isolation rules.
Tradeoffs and limits
Developers must configure checkpoint storage for restart recovery. Microsoft Agent Framework ships file-backed storage for single-machine workflows and Cosmos DB storage for distributed deployments.
Pricing
The framework consists of open-source components. Operating costs depend on the chosen model provider, hosting environment, and storage services.
Strands Agents: customizable agent loops
Best for
The SDK fits workflows that need a customizable agent loop, with Amazon Bedrock as the default provider and adapters for other models.
Overview
Strands Agents provides a customizable agent harness, SDK, and orchestration layer. Amazon Bedrock is the default model provider, with native adapters for other providers.
Capabilities that matter
Developers control the execution loop to customize how the model, tools, memory, and context interact. Within the loop’s constraints, they define tool execution, approvals, and workflow routing rules.
Strands supports Graph, Swarm, Workflow, and agents-as-tools patterns for coordinating agents. Built-in session managers can persist agent and orchestrator state with configured storage, retaining memory and context throughout the execution cycle.
Tradeoffs and limits
Restart persistence requires a configured session manager and durable storage. Strands supplies file and S3 options, and developers can add a custom backend when needed. For shared cross-user policy and audit controls across business systems, teams need to establish where those controls are enforced.
Pricing
The Python SDK uses an Apache 2.0 open-source license, while cloud features depend on applicable platform pricing.
Frameworks for stateful workflows and multi-agent collaboration
LangChain and LangGraph: integrations and stateful workflows
Best for
LangChain fits general LLM application chains. LangGraph fits complex, stateful, and highly controllable multi-agent workflows.
Overview
LangChain provides integrations and a prebuilt agent layer. LangGraph is the underlying state-machine orchestration layer, mapping execution nodes and cyclic edges to coordinate stateful multi-agent workflows.
Capabilities that matter
LangGraph uses nodes and edges to orchestrate logic. Native human-in-the-loop approvals pause execution until a person intervenes.
LangGraph checkpointers save thread graph state. Restart recovery requires a persistent checkpointer such as PostgreSQL, or Agent Server’s managed persistence.
LangGraph distinguishes thread checkpoints from cross-thread Stores, which persist application-defined data across different execution threads and agents. LangGraph Agent Server manages its checkpointer and Store persistence infrastructure.
Tradeoffs and limits
Graph-based orchestration requires modeling state, nodes, and edges, which may be unnecessary for simple, stateless tool calls. In framework-only deployments, developers must make external-system side effects idempotent on retry.
Pricing
Both frameworks are open-source. LangSmith has a free observability allowance. Paid plans and usage beyond included allowances can incur charges.
CrewAI: role-based multi-agent collaboration
Best for
CrewAI fits collaborative multi-agent systems using role-based design and delegated tasks.
Overview
CrewAI structures orchestration by assigning agents specific personas, roles, and tasks. These agents collaborate sequentially, hierarchically, or through deterministic Flows.
Capabilities that matter
CrewAI manages multi-agent execution through built-in task delegation and role-playing mechanics. Developers can embed multiple specialized crews within larger deterministic Flows to compose a complete system.
These agents share a unified memory system to access execution context.
CrewAI checkpoints snapshot flow and state, including crew and task state, memory, task outputs, and event history up to the checkpoint. Automatic checkpoints are written on selected events, by default after a task completes. Failed automatic writes are logged and the run continues.
CrewAI offers Flow human feedback, CrewAI AMP runtime policies, and enterprise human-in-the-loop controls. Availability depends on your framework and platform configuration.
Tradeoffs and limits
Test and evaluate the chosen checkpoint backend to confirm durability. Tools must also be duplicate-safe: an external business-system action might commit before a network failure, and a restart retry could repeat the side effect.
Pricing
CrewAI is an open-source framework. Enterprise deployment and management through CrewAI AMP have separate commercial terms.
Agno: code-first teams and workflows
Best for
Agno fits lightweight, code-first multi-agent orchestration without heavy abstractions.
Overview
Agno focuses on simplicity, execution speed, and reducing boilerplate code for agent interactions. Its SDK supports code-first team and workflow compositions, plus multi-agent routing. AgentOS provides an optional control plane.
Capabilities that matter
The SDK handles tool integration natively and passes context quickly between specialized multi-agent systems and teams. Session flags govern database persistence for media, tool messages, and full execution history.
Teams can build agents locally with the SDK, then add AgentOS controls when needed for managed operations. Separate from the SDK’s runtime features, AgentOS provides traces, human-in-the-loop approvals, session inspection, and advanced workflow operations.
Tradeoffs and limits
AgentOS’s advanced operational controls require formal agent registration and a configured database backend. Developers must maintain that database infrastructure for durable session persistence and control-plane telemetry.
Pricing
The Agno SDK and AgentOS runtime are open source, and the local control plane is available on the free plan. Paid plans cover live AgentOS connections and additional organization features.
Frameworks for typed outputs, RAG, and TypeScript applications
Pydantic AI: typed Python agents and validated outputs
Best for
Pydantic AI fits Python agents that need strict type safety, validation, and structured outputs.
Overview
Pydantic AI is an agent framework natively built around the Pydantic validation library. It validates configured tool arguments and structured outputs at the LLM boundary, returning schema-conforming data when validation succeeds or an error when the retry budget is exhausted.
Capabilities that matter
The framework integrates standard Python type hints with end-to-end type-safe tool calling and structured response generation. It supports conditional approval for configured tool calls: developers can require approval for a tool or raise ApprovalRequired based on its arguments or run context before that call executes.
For persistence, Pydantic AI integrates directly with external durable execution engines such as Temporal, DBOS, Prefect, and Restate. When configured, these engines journal supported model and tool operations outside model context so an interrupted run can replay completed units and retry the in-flight unit after a restart. Tool coverage and recovery behavior depend on the engine and integration.
Tradeoffs and limits
The framework targets Python. For durable in-flight execution, developers must configure and operate a supported engine or service (such as Temporal, DBOS, Prefect, or Restate) according to that engine’s deployment model.
Core Pydantic AI supports delegation and handoffs through application code. Pydantic AI Harness also supplies SubAgents for named agent delegation.
Pricing
Pydantic AI is free and open-source software.
LlamaIndex: retrieval and document workflows
Best for
Data-heavy workloads where advanced retrieval-augmented generation (RAG) is the agent’s primary function.
Overview
LlamaIndex combines data ingestion and indexing with event-driven agent workflows, connecting retrieval with multi-agent orchestration.
Capabilities that matter
The framework supports data ingestion, advanced indexing, and query parsing. Its event-driven Workflows architecture connects agent steps.
Workflow steps can call LLMs, execute retrieval pipelines, request human input, update shared execution state, and batch work reliably. Typed step inputs and outputs let LlamaIndex validate the workflow’s event graph before execution, including whether produced events have consumers.
Tradeoffs and limits
LlamaIndex’s TypeScript implementation is deprecated and no longer maintained.
Workloads requiring complex multi-agent persona delegation without heavy retrieval overhead may find the data machinery excessive.
Developers must implement a storage backend to persist workflow state durably.
Pricing
The core framework is open-source. LlamaParse offers free and paid credit-based plans for document parsing and related platform operations.
Mastra: TypeScript agents and workflows
Best for
Mastra fits AI applications in the TypeScript and JavaScript ecosystem that need a native, specialized framework.
Overview
Mastra is a TypeScript-first agent orchestration and workflow tool. It provides an execution environment optimized for Node.js, Bun, Deno, and Cloudflare.
Capabilities that matter
Mastra provides TypeScript integrations and strict type safety across workflow execution. Agents route tasks, invoke APIs, and handle application-level context using JavaScript-native idioms.
The framework handles persistence through native suspend and resume capabilities. Workflow steps can suspend for data retrieval, callbacks, throttling, or human input. Snapshots persist across application restarts and new deployments provided the developer supplies configured storage.
Tradeoffs and limits
Mastra confines its execution benefits to the TS/JS ecosystem.
Granular per-action business authorization across enterprise systems relies on the external application environment.
Pricing
The core Mastra framework is free and open-source. Mastra Platform offers plan-based pricing with usage charges for hosted compute and observability.
Arcade.dev: an enterprise MCP gateway with built-in governance
Frameworks coordinate reasoning, workflows, and application state. Arcade.dev gives enterprises a shared MCP gateway for controlling how agents and AI clients discover and use business tools. Its underlying actions runtime combines authorization, policy enforcement, execution, and governance for calls routed through Arcade.
Scope tool access by user and agent permissions
Operators select which prebuilt tools, custom tools, and tools from integrated MCP servers each gateway exposes. With corporate sign-in configured, employees can use the organization’s existing identity provider. Each action executed through Arcade runs within the intersection of the user’s existing permissions and the agent’s separately scoped permissions.
Take a sales agent configured to read Salesforce opportunities and draft Slack updates. Its gateway excludes finance tools. The framework coordinates the workflow. Arcade checks each routed call against both the represented user’s permissions and the agent’s separate scope and enforces configured runtime policies. Arcade records what ran and its outcome in Tool Executions, subject to recording and retention settings.
Enforce runtime policies on tool calls and results
Configured Contextual Access can filter tool discovery, deny or change requests before execution, and transform or redact results before they reach the model. These controls let teams apply existing access-control, DLP, and compliance checks along the tool-call execution path.
Arcade handles provider authorization flows and token refresh outside the agent. Provider credentials stay outside the agent, LLM context, and MCP client. Tools receive the credentials needed for execution outside model context.
Manage tools and MCP servers centrally
Operators use Arcade’s central control plane to manage projects, gateways, tools, access, and runtime configuration. Integrated MCP servers, prebuilt tools, and custom integrations share the governed action path, while versioned tool and MCP server deployments support controlled upgrades.
The Private Registry gives employees an authenticated page to browse their gateway’s tools, connect accounts, and request missing capabilities. Operators review requests and enable any new tools separately.
Teams can run Arcade on Arcade Cloud or deploy it in their own infrastructure to meet network, operational, and data-residency requirements.
Inspect tool executions and audit logs
Tool Executions capture calls and outcomes for actions executed through Arcade, including the represented user, toolkit version, inputs, outputs, and timing, subject to recording and retention settings. Audit Logs separately record administrative and configuration changes. These records support troubleshooting and compliance review.
Execute business actions with retries and failover
Arcade provides a catalog of prebuilt agent-optimized tools and supports custom tools and integrated MCP servers. Agent-optimized tools handle API-specific detail so developers can focus on workflows rather than rebuilding integration plumbing. The runtime supports parallelized execution, automatic failover, and intelligent retries. An offline remote server still can’t execute its tools.
Start with one user-facing integration and reuse the same foundation as agents, users, and connected systems grow. Keep your chosen orchestration framework and identity provider. Arcade governs calls routed through its runtime. Your application can also call Arcade’s API directly.
How to test AI agent frameworks before production
Select two frameworks that match your language stack and build the same multi-step business task with each. Include a mock external tool, a pause for human input, and a simulated network failure.
First, stop each workflow halfway through, restart the process, and check whether it resumes, what state it recovers, and whether earlier external actions repeat.
Next, run the workflow under two user profiles with different mock access control lists to test the framework’s native operational controls against your cross-system action requirements.
Check that credentials stay outside model context and each action respects both the user’s permissions and the agent’s separate scope. Test configured request and response policies, failure handling, and attributable execution records.
If those controls meet the workload’s needs, the existing architecture may suffice. Evaluate a shared actions runtime when maintaining them across agents, users, and systems repeats integration and security work.
Conclusion
Choose a framework that fits your language stack, coordination needs, and workflow state requirements.
When your agents need shared access and policy controls across business systems, pair your chosen framework with our enterprise MCP gateway. Use it to centralize tool access, enforce configured policies, and investigate execution outcomes. Start free with Arcade to connect your first governed business tool.
FAQ
What is an AI agent framework?
An AI agent framework provides components for model calls, tools, state, and workflow orchestration. Frameworks differ in how they coordinate subagents and whether they support durable execution directly or through configured storage and execution backends.
Which AI agent framework is best for Python?
Pydantic AI fits Python workloads that prioritize strict type safety and validation. LangGraph fits complex, stateful multi-agent orchestration. Microsoft Agent Framework offers agents and workflows for Python and .NET applications.
Which AI agent framework is best for TypeScript?
Mastra is a specialized execution environment optimized for TypeScript and JavaScript applications. It natively supports Node.js, Bun, Deno, and Cloudflare, offering strict type safety, application-level routing, and native suspend-and-resume capabilities for workflows.
How do AI agent frameworks handle memory and persistence?
In-process message history is lost when the process restarts unless the application persists it. Session storage can preserve conversation history, while workflow checkpoints record execution state at supported boundaries. A resumed tool call may repeat an external action, so applications need idempotency keys or another form of duplicate protection for those side effects.
When do enterprises need an MCP gateway?
An enterprise MCP gateway is useful when multiple agents and AI clients need shared access to business tools with consistent policies and attributable execution records. Arcade.dev lets teams select the tools each gateway exposes, apply user-and-agent permission checks and configured runtime policies, and inspect the outcomes of calls routed through Arcade. Teams can start with one integration and reuse those controls as adoption grows.
Does Arcade.dev replace my orchestration framework?
No. Your framework coordinates the workflow. Our enterprise MCP gateway provides governed access to the tools it uses. For tool calls routed through its runtime, Arcade checks the intersection of the user’s existing permissions and the agent’s separately scoped permissions, enforces configured runtime policies, executes the actions, and records their outcomes subject to recording and retention settings.