
AI Agent Frameworks in 2026: LangGraph, OpenAI Agents SDK, Claude Agent SDK, and More
Search for “AI agent framework” and you will find a dozen projects, each claiming to be the production-ready way to build agents. Some are libraries, some are runtimes, and some are hosted services. They overlap, they borrow each other’s ideas, and several change faster than any blog post can track.
This guide cuts through that. It explains what an agent actually is, shows the whole idea in about thirty lines of plain Python, and then walks through ten frameworks: what each one is for, who maintains it, and where it can bite you. It ends with a method for choosing, because the right answer depends on your language, your cloud, and how much control you need.
I ran what I could. The framework-free loop, a LangGraph graph with checkpointing, and a Pydantic AI agent with typed output all run here, using scripted or built-in test models so that no API keys or tokens were spent. I did not run the other frameworks, so their sections rest on official documentation and on package registry data that I checked on November 19, 2026.
This is the third article in my AI and LLM series. It follows my guides to MCP servers and local LLM tooling, and it connects to my deep dives on Claude Code and AI-powered IDEs.
Table of Contents
- The Short Answer
- What an Agent Actually Is
- The Loop Without a Framework
- What Frameworks Add
- The Frameworks
- Two Tested Examples
- Side-by-Side Comparison
- Protocols: MCP and A2A
- How to Choose
- Production Concerns
- Common Mistakes
- Frequently Asked Questions
- Conclusion
- References
1. The Short Answer
Start without a framework, and add one when you can name the problem it solves. When you do pick one, match it to your language and your platform first.
| If you… | Look at |
|---|---|
| Need a stateful workflow with pauses and retries | LangGraph |
| Want a small Python toolkit with handoffs | OpenAI Agents SDK |
| Want a coding or file-working agent in your app | Claude Agent SDK, or Managed Agents if you want Anthropic to host the loop |
| Build on Google Cloud, or need several languages | Google ADK |
| Build on Azure or in .NET | Microsoft Agent Framework |
| Care most about typed, validated Python | Pydantic AI |
| Build in TypeScript | Mastra or the Vercel AI SDK |
| Build on AWS | Strands Agents |
| Like role-based teams of agents | CrewAI |
| Want agents that write and run code | smolagents |
Three rules cover most of the value.
- Prefer workflows to agents: If you know the steps in advance, write them as code. Use an agent only when the number of steps cannot be known.
- Own your loop’s limits: Cap the steps, the tokens, and the money, whichever framework you pick.
- Choose for your constraints, not for hype: Language, hosting, and data rules narrow the field faster than feature lists do.
2. What an Agent Actually Is
An agent is a program in which a language model decides what to do next. It runs in a loop. The model reads the conversation, optionally asks to call a tool, your code runs the tool, the result goes back to the model, and the loop continues until the model gives a final answer.
Anthropic’s engineering guide on building agents draws a useful line. Workflows orchestrate models and tools through code paths that you define in advance. Agents let the model direct its own process and tool use. The guide recommends using the simplest solution that works, and notes that agents trade latency and cost for flexibility and can compound errors.
The same guide lists five workflow patterns that cover most real products.
- Prompt chaining: Split a task into steps, where each model call builds on the last.
- Routing: Classify the input, then send it to a specialized path.
- Parallelization: Run independent subtasks at once, or run the same task several times and compare.
- Orchestrator and workers: One model breaks a task apart and delegates to others.
- Evaluator and optimizer: One model drafts and another critiques, in a loop.
Many business problems fit one of these patterns without any autonomy at all. That is good news, because workflows are cheaper, faster, and far easier to test.
3. The Loop Without a Framework
Here is the entire idea in plain Python. To keep it runnable without an API key, the “model” is a scripted function. In real use, you would replace fake_model with a call to your provider.
import json
def get_order_status(order_id: str) -> str:
orders = {"A100": "shipped", "A200": "processing"}
return orders.get(order_id, "not found")
TOOLS = {"get_order_status": get_order_status}
def fake_model(messages):
last = messages[-1]
if last["role"] == "user":
return {"type": "tool_call", "name": "get_order_status", "args": {"order_id": "A100"}}
if last["role"] == "tool":
return {"type": "final", "text": f"Your order is {last['content']}."}
raise RuntimeError("unexpected state")
def run_agent(user_text, max_steps=5):
messages = [{"role": "user", "content": user_text}]
for step in range(max_steps):
reply = fake_model(messages)
if reply["type"] == "final":
return reply["text"], step + 1
result = TOOLS[reply["name"]](**reply["args"])
messages.append({"role": "assistant", "content": json.dumps(reply)})
messages.append({"role": "tool", "content": result})
raise RuntimeError("step limit reached")
print(run_agent("Where is order A100?"))
What I tested: I ran this script. It printed Your order is shipped. after two model calls, one that requested the tool and one that produced the answer.
Three details are worth noticing.
- The loop is tiny: Everything else in this article is machinery around it.
- There is a step limit: The
max_stepsguard stops runaway loops. Any real agent needs one, along with a token or cost budget. - The tools are plain functions: A registry maps names to code you control.
If your needs stay this simple, you may never need a framework. Anthropic’s guide says the same thing. It advises starting with direct API calls, because many patterns need only a few lines of code, and warns that framework abstractions can hide the prompts and responses that you need to debug.
4. What Frameworks Add
The loop above breaks down in production. These are the problems frameworks try to solve.
- State and persistence: Saving progress so a run can resume after a crash, a deploy, or a long human delay.
- Human in the loop: Pausing for approval before a risky action, then continuing.
- Streaming: Sending tokens and progress events to a user interface as they happen.
- Tracing and evaluation: Recording every model and tool call so you can debug and measure quality.
- Guardrails: Validating inputs and outputs, often in parallel with the main work.
- Multi-agent coordination: Handing work between specialized agents.
- Tool plumbing: Turning functions into schemas, validating arguments, and connecting to MCP servers.
- Model abstraction: Swapping providers without rewriting your code.
Each framework below picks a different subset of these and a different level of opinion. Low-level ones give you a graph and leave the prompts to you. High-level ones give you a ready loop and ask you to configure it.
5. The Frameworks
Version numbers below are the latest on PyPI or npm when I checked on November 19, 2026. They show how fast this space moves, since most of these packages shipped a release within the past two weeks. They also show maturity. Versions below 1.0 usually mean the API can still change.
LangGraph
What it is: A low-level orchestration framework and runtime for long-running, stateful agents, from the LangChain team. The docs describe a workflow as a graph of shared state, nodes, and edges. It does not prescribe prompts or an agent architecture.
Key features: Persistence through checkpointing, durable execution that survives interruptions, human-in-the-loop pauses, and streaming of tokens and state updates. LangChain is the higher-level agent framework above it. LangGraph itself does not require LangChain, and a harness called Deep Agents sits on top of it. LangSmith handles tracing and evaluation.
Install: pip install -U langgraph. Latest on PyPI: 1.2.23. A TypeScript package, @langchain/langgraph, is at 1.7.5.
Best for: Workflows where you want explicit control over every step, plus pauses, retries, and resumption.
Watch out for: More concepts to learn than a simple loop needs. It is a runtime, so expect to think in graphs.
OpenAI Agents SDK
What it is: A lightweight Python package with few abstractions, described as the production-ready successor to the experimental Swarm project.
Key features: Agents with instructions and tools, handoffs and agents-as-tools for delegation, guardrails that run in parallel and fail fast, sessions for memory, built-in tracing, and function tools with automatic schema generation. It can expose remote MCP tools alongside function tools. It uses the Responses API by default for OpenAI models, and the docs cover non-OpenAI providers and third-party adapters.
Install: pip install openai-agents. Latest on PyPI: 0.25.0. A TypeScript package, @openai/agents, is at 0.22.0.
Best for: Small to medium agent apps and multi-agent handoffs, especially if you already use OpenAI models.
Watch out for: Both packages are below 1.0, so pin your version. Tracing and some tooling work best with OpenAI’s platform.
# Minimal example from the official docs (not run here)
from agents import Agent, Runner
agent = Agent(name="Assistant", instructions="You are a helpful assistant")
result = Runner.run_sync(agent, "Write a haiku about recursion in programming.")
print(result.final_output)
Claude Agent SDK and Managed Agents
What it is: Anthropic offers two agent options beyond the plain Messages API. The Claude Agent SDK is Claude Code packaged as a library for Python and TypeScript, and your process runs it. Managed Agents is a hosted harness where Anthropic runs the loop.
Agent SDK features: According to the documentation, it gives you Claude Code’s built-in tools for reading, writing, and editing files and running commands. It also has hooks, subagents, MCP connections, permission controls, and sessions that you can resume or fork. It loads skills, commands, and memory from a project’s .claude/ folder, the same way Claude Code does.
Install and versions: The Python package is claude-agent-sdk, at 0.2.185 on PyPI. The TypeScript package is @anthropic-ai/claude-agent-sdk, at 0.3.328 on npm. Both packages are still below version 1.0.
Managed Agents: The docs describe agents, environments, sessions, and events. Sessions run in an Anthropic-managed cloud sandbox, or in a self-hosted sandbox on your infrastructure. The feature is in beta and needs a beta header. It is not eligible for Zero Data Retention or HIPAA coverage, except for the self-hosted option, because sessions are stateful and transcripts persist until you delete them. Check current pricing for the cost of hosted sessions.
Best for: Coding agents, file-heavy tasks, and teams that already use Claude Code and want the same engine inside their own app.
Watch out for: The Agent SDK is built around Claude models. The documentation also says third-party developers may not offer claude.ai login or its rate limits in their products without approval, so use API key authentication. My Claude Code deep dive covers the underlying tool in detail.
Google Agent Development Kit (ADK)
What it is: Google’s open-source framework for building, debugging, and deploying agents. It supports Python, TypeScript, Go, Java, and Kotlin.
Key features: Workflow agents for sequential, loop, and parallel execution, plus graph workflows that combine code and AI reasoning, which the docs mark as new in ADK 2.0. It offers function, MCP, and OpenAPI tools, support for the A2A protocol, and an evaluation toolkit. You can deploy to Cloud Run, GKE, or your own infrastructure. The docs say it works with almost any model, with easy access to Gemini and adapters for other providers, including local ones.
Install: pip install google-adk for Python, at 2.14.1. npm install @google/adk for TypeScript, at 2.5.0. Go, Java, and Kotlin use their own package coordinates.
Best for: Teams on Google Cloud, and teams that need the same framework across several languages.
Watch out for: The docs moved to a new address recently, so older links may redirect. Check which language your chosen features support, because the docs treat the languages as separate tracks.
Microsoft Agent Framework
What it is: The direct successor to both Semantic Kernel and AutoGen, created by the same Microsoft teams, according to Microsoft’s overview. It supports .NET and Python, and Go is in public preview.
Key features: Agents that call tools and MCP servers, a harness agent for long multi-step work with planning, compaction, and tool approval, graph-based workflows, sessions for state, middleware, and telemetry. It supports Microsoft Foundry, Anthropic, Azure OpenAI, OpenAI, Ollama, and other providers. Microsoft publishes migration guides from AutoGen and Semantic Kernel.
Install: pip install agent-framework. Latest on PyPI: 1.26.0. For comparison, the last autogen-agentchat release I saw on PyPI was 0.7.5, from September 30, 2025, so new projects should look at the successor.
Best for: Azure and .NET shops, and teams migrating off AutoGen or Semantic Kernel.
Watch out for: The docs advise reviewing data flows carefully when you connect third-party servers or non-Azure models, since those fall outside Microsoft’s own terms and compliance boundaries.
CrewAI
What it is: An open-source framework for orchestrating teams of agents. Its docs describe two main abstractions. Flows are the backbone of an application and manage state, events, and branching. Crews are teams of agents that a Flow can delegate work to.
Install and version: Latest on PyPI: 1.15.44. The docs page I read links to a separate install guide, so follow that for current commands.
Best for: Role-based, collaborative agent teams, and people who like thinking in terms of crews and tasks.
Watch out for: Role-playing teams can burn many model calls for modest gains. Compare a crew against a single well-prompted agent on your task before you commit.
Pydantic AI
What it is: A Python agent framework from the Pydantic team. Its pitch is type safety. Agents are generic over their dependencies and output types, so editors and type checkers know what a run returns.
Key features: Structured outputs validated on every run, with validation errors sent back to the model for a retry. Dependency injection through RunContext, which makes testing easy. It works with many model providers, including Ollama, and it has an MCP capability. Durable execution on engines such as Temporal, DBOS, and Prefect. A companion evaluation library and OpenTelemetry-based tracing.
Install: pip install pydantic-ai. Latest on PyPI: 2.71.0.
Best for: Python teams who want validated outputs, testable code, and a familiar Pydantic style.
Watch out for: The framework shows a start-up banner that suggests its observability product. You can silence it with the PYDANTIC_AI_NO_BANNER=1 environment variable. I tested this framework, and section 6 shows how.
Strands Agents
What it is: An open-source SDK from AWS, in Python and TypeScript. Tools are plain functions marked with a @tool decorator.
Key features: It supports many model providers, including Amazon Bedrock, Anthropic, Google, OpenAI, Ollama, and llama.cpp, plus custom providers. It has MCP tool support.
Install: pip install strands-agents, at 1.65.0, or npm install @strands-agents/sdk, at 1.25.0.
Best for: Teams building on AWS who want a minimal, model-driven agent.
Watch out for: The documentation page I read did not give a standalone quickstart snippet, so check the current guides before you start.
smolagents
What it is: A small Python library from Hugging Face. The docs say its core logic fits in roughly a thousand lines.
Key idea: Its CodeAgent writes its actions as Python code rather than as JSON tool calls, which makes composing steps with loops and conditionals natural. It also offers a regular ToolCallingAgent. The docs describe sandboxed code execution through Modal, Blaxel, E2B, or Docker.
Install: pip install 'smolagents[toolkit]'. Latest on PyPI: 1.26.0, published May 29, 2026, which is older than most packages here.
Best for: Research, learning, and tasks where code as the action format helps.
Watch out for: Running model-written code is dangerous without a sandbox. Never execute it on your own machine without isolation.
Mastra and the Vercel AI SDK
What they are: The two main TypeScript options I looked at. Mastra is a TypeScript agent framework with agents, tools defined with Zod schemas, a central Mastra instance, and a Studio interface. The docs describe a project template that includes memory and task tracking. The Vercel AI SDK, published as the ai package, offers a ToolLoopAgent class that manages the loop, message context, and stopping conditions, with stopWhen and prepareStep for loop control.
Versions: @mastra/core was at 1.85.0, and ai was at 7.0.177.
Best for: Web teams that already use Next.js or similar stacks and want agents in the same language as the rest of the app.
Watch out for: Both release very often. Lock versions and read changelogs before upgrading.
Others worth knowing
LlamaIndex, at 0.14.26 on PyPI, is strong when retrieval over your documents is central. DSPy, at 3.5.0, takes a different approach by optimizing prompts programmatically. I did not review either in detail.
6. Two Tested Examples
LangGraph: a graph with a router and checkpoints
This graph routes a question to a math path or a chat path. The router is plain Python here, so the example needs no model. In a real app, you would replace that function with a model call.
from typing import TypedDict
from langgraph.graph import StateGraph, START, END
from langgraph.checkpoint.memory import InMemorySaver
class State(TypedDict):
question: str
route: str
answer: str
def classify(state: State) -> dict:
return {"route": "math" if any(c.isdigit() for c in state["question"]) else "chat"}
def do_math(state: State) -> dict:
nums = [int(t) for t in state["question"].replace("?", "").split() if t.isdigit()]
return {"answer": f"sum={sum(nums)}"}
def do_chat(state: State) -> dict:
return {"answer": "just chatting"}
g = StateGraph(State)
g.add_node("classify", classify)
g.add_node("math", do_math)
g.add_node("chat", do_chat)
g.add_edge(START, "classify")
g.add_conditional_edges("classify", lambda s: s["route"], {"math": "math", "chat": "chat"})
g.add_edge("math", END)
g.add_edge("chat", END)
app = g.compile(checkpointer=InMemorySaver())
cfg = {"configurable": {"thread_id": "t1"}}
print(app.invoke({"question": "add 2 and 40?"}, cfg))
print(app.get_state(cfg).values)
What I tested: With LangGraph 1.2.23, the first call returned {'question': 'add 2 and 40?', 'route': 'math', 'answer': 'sum=42'}. A question without digits took the chat path and returned just chatting. The checkpointer stored the final state for each thread, and the history for the first thread held four entries. That history is what lets a graph resume, replay, or branch from an earlier point.
Pydantic AI: typed output, a tool, and injected dependencies
This agent must return an OrderInfo object. It has a tool that reads from a dependency object. The test model is built in, so no API call happens.
from dataclasses import dataclass
from pydantic import BaseModel
from pydantic_ai import Agent, RunContext
from pydantic_ai.models.test import TestModel
class OrderInfo(BaseModel):
order_id: str
status: str
@dataclass
class Deps:
orders: dict
agent = Agent("test", deps_type=Deps, output_type=OrderInfo,
instructions="Look up the order the user asks about.")
@agent.tool
def lookup(ctx: RunContext[Deps], order_id: str) -> str:
return ctx.deps.orders.get(order_id, "not found")
with agent.override(model=TestModel()):
result = agent.run_sync("Where is order A100?", deps=Deps(orders={"A100": "shipped"}))
print(type(result.output).__name__, result.output)
What I tested: With pydantic-ai-slim 2.71.0, the run called my tool once and returned a validated OrderInfo instance. The test model fills fields with placeholder values such as a, so the output was order_id='a' status='a'. The value of the test is not the content. It shows that the wiring, the typing, and the validation work, and that you can unit test an agent for free before you point it at a real model.
7. Side-by-Side Comparison
| Framework | Languages | Style | State and resume | Hosting tie-in |
|---|---|---|---|---|
| LangGraph | Python, TypeScript | Low-level graph runtime | Checkpointing, durable runs | LangSmith (optional) |
| OpenAI Agents SDK | Python, TypeScript | Lightweight agent toolkit | Sessions | Works best with OpenAI |
| Claude Agent SDK | Python, TypeScript | Claude Code as a library | Resumable, forkable sessions | Built for Claude |
| Claude Managed Agents | REST, SDKs | Hosted harness | Server-side sessions | Anthropic infrastructure |
| Google ADK | Python, TypeScript, Go, Java, Kotlin | Workflow and multi-agent | Per the docs | Google Cloud (optional) |
| Microsoft Agent Framework | .NET, Python, Go (preview) | Agents plus graph workflows | Sessions, checkpoints | Azure (optional) |
| CrewAI | Python | Flows and crews | Flow state | None required |
| Pydantic AI | Python | Typed agents | Durable engines supported | None required |
| Strands Agents | Python, TypeScript | Model-driven minimal SDK | Check the docs | AWS-friendly |
| smolagents | Python | Code-writing agents | Check the docs | Hugging Face-friendly |
| Mastra | TypeScript | Agents, tools, memory | Memory in template | None required |
| Vercel AI SDK | TypeScript | Tool loop agent | App-managed | None required |
I filled the state column only where the documentation I read said something concrete. “Check the docs” means I did not confirm it.
8. Protocols: MCP and A2A
Two open protocols sit beside the frameworks, and they solve different problems.
- MCP: Connects an agent to tools, data, and prompts. Nearly every framework above can act as an MCP client. My guide to MCP servers covers building and securing them.
- A2A: The Agent2Agent protocol connects one agent to another agent, even across vendors. The project site says a Linux Foundation project hosts it under neutral governance, that the current version is 1.0, and that it complements MCP rather than replacing it.
A simple way to remember it is that MCP is how an agent reaches its tools, and A2A is how an agent reaches its peers. Google’s ADK documents A2A support. Both protocols now sit under the Linux Foundation umbrella, according to their project pages.
You may not need A2A at all. Single-vendor, single-team systems usually handle coordination inside one framework. Cross-organization agent calls are where an open protocol starts to pay off.
9. How to Choose
Work through these questions in order.
- Can a workflow do it? If the steps are known, write code, or use a framework’s workflow features. Do not use an autonomous agent for a job that a function can do.
- What language and platform do you use? TypeScript web teams should start with Mastra or the Vercel AI SDK. Azure and .NET teams should look at Microsoft Agent Framework. Google Cloud teams should look at ADK. AWS teams should look at Strands.
- Do you need pauses, retries, and long runs? Choose a runtime with checkpointing, such as LangGraph or a durable engine under Pydantic AI.
- Is the agent mostly a coding or file worker? The Claude Agent SDK and Managed Agents target that case directly, and Microsoft’s harness agent also aims at long multi-step tasks.
- How much do you value typed, testable code? Pydantic AI leans hardest on that.
- How many vendors do you need to support? Check each framework’s provider list and keep your tool definitions portable. MCP helps with that goal.
- Does your data have retention rules? Hosted agent services keep session data. Read the data retention terms before you build on them.
Then run a one-day spike. Build the same small task in two candidates, measure code size, test effort, and cost, and keep the one that felt less like fighting.
10. Production Concerns
Frameworks help with plumbing. They do not make an agent safe or good.
Limit the loop with hard caps:
- Cap steps, tokens, wall-clock time, and spend per run.
- Fail loudly when a cap hits, and log the full trace.
Evaluate before you ship:
- Write a set of real tasks with expected outcomes, and run it on every change.
- Score tool-call behavior as well as final answers. Pydantic AI and ADK both document evaluation tooling, and LangSmith serves the same purpose for LangGraph.
Trace everything: When an agent misbehaves, you need to see every prompt, tool call, and result. Prefer OpenTelemetry-compatible tracing so you are not locked to one vendor.
Treat tool output as untrusted: A web page or a document can carry instructions aimed at your model. Keep approval steps on writes, payments, and deletions, and limit what each tool can touch. My MCP servers guide goes deeper on this.
Sandbox code execution: Any agent that runs shell commands or model-written code needs isolation. Use containers or a hosted sandbox, and give them minimal permissions.
Protect secrets: Do not put credentials in prompts or tool arguments. My secrets management guide shows safer patterns, and my guide to supply chain security applies to the many packages that agent projects pull in.
Pin versions: Many of these packages release weekly, and several are below 1.0. Pin exact versions, read changelogs, and upgrade on purpose.
11. Common Mistakes
- Reaching for an agent first: Many tasks are workflows, and a workflow is easier to test and cheaper to run.
- Adopting a framework before writing the loop once: You will not understand what the framework hides.
- No step or cost limit: A confused agent can loop until your budget is gone.
- Skipping evaluation: Without a test set, you cannot tell whether a change helped.
- Trusting multi-agent demos: Teams of agents look impressive and can cost much more than a single agent for the same result. Measure both options before you decide.
- Mixing up MCP and A2A: One is for tools, and the other is for peer agents.
- Ignoring data retention: Hosted sessions and traces store your prompts, so read the terms first.
- Unpinned dependencies: Fast-moving packages break builds without warning.
- Running generated code unsandboxed: This is the fastest way to lose a machine.
- Choosing by popularity alone: The best framework is the one that fits your language, cloud, and team.
12. Frequently Asked Questions
What is an AI agent framework?
An AI agent framework is a library or runtime that handles the plumbing around a model-driven loop. It typically manages tools, state, streaming, tracing, and handoffs, so you can focus on your task instead of the loop itself.
Do I need a framework to build an agent?
No, you do not. An agent loop takes about thirty lines of code, as section 3 shows. A framework earns its place when you need persistence, human approval steps, tracing, or multi-agent coordination.
What is the difference between a workflow and an agent?
A workflow follows code paths that you define in advance. An agent lets the model decide its own steps and tool calls. Workflows are more predictable. Agents are more flexible and cost more.
Which framework is best for beginners?
The OpenAI Agents SDK and Pydantic AI both have small, readable APIs, and smolagents is deliberately tiny. Writing the plain loop first is the best preparation for any of them.
Which framework is best for production?
It depends on your needs. LangGraph and Pydantic AI both document durable execution, Microsoft Agent Framework adds enterprise features like middleware and telemetry, and Managed Agents removes the hosting burden. Evaluate on your own workload.
Are these frameworks tied to one model provider?
Most support several providers. The OpenAI Agents SDK, Pydantic AI, ADK, Strands, and Microsoft Agent Framework document multiple providers. The Claude Agent SDK is built around Claude models, so it is the least portable of the group.
Can I use local models with these frameworks?
Often you can do that. Pydantic AI, Strands, smolagents, and Microsoft Agent Framework list Ollama or local options in their docs, and ADK mentions locally running models. My guide to local LLM tooling explains how to serve one.
What happened to AutoGen and Semantic Kernel?
Microsoft says Agent Framework is their direct successor and the next generation of both, and it publishes migration guides. The last AutoGen agent chat package release I found on PyPI dates from September 2025.
How do MCP and A2A fit together?
MCP connects an agent to tools and data. A2A connects agents to other agents. You can use both in one system, and the A2A project says they are complementary.
How do I test an agent without paying for model calls?
Use a scripted or built-in test model, as I did in sections 3 and 6. It lets you test tool wiring, validation, and control flow for free. Then run a small paid evaluation against a real model.
13. Conclusion
Agent frameworks are mostly packaging around a simple loop. The packaging matters when you need persistence, approvals, tracing, or teams of agents, and it matters little before then. Most useful systems start as plain workflows with one or two model calls.
The field changes quickly. Most packages here shipped a release in the past few weeks, and several remain below 1.0. That is a reason to pin versions, to keep your tools portable through MCP, and to avoid betting your architecture on one project’s abstractions.
Write the loop once by hand. Add a framework when a specific problem justifies it, pick one that fits your language and platform, and measure with your own evaluation set. The final article in this series compares the model APIs that power all of this.
14. References
Guides and open protocols:
Official documentation for each framework:
- LangGraph overview
- OpenAI Agents SDK
- Claude Agent SDK overview
- Claude Managed Agents overview
- Google Agent Development Kit
- Microsoft Agent Framework overview
- CrewAI introduction
- Pydantic AI
- Strands Agents
- smolagents
- Mastra documentation
- Vercel AI SDK: agents
Package registries (versions checked on November 19, 2026):
- langgraph on PyPI
- openai-agents on PyPI
- claude-agent-sdk on PyPI
- google-adk on PyPI
- agent-framework on PyPI
- pydantic-ai on PyPI
Related posts on this site:
- MCP servers explained
- Local LLM tooling: Ollama, LM Studio, llama.cpp
- Claude Code deep dive
- The Ultimate Guide to AI-Powered IDEs
- Secrets management
- Supply chain security: SBOM and Sigstore