The agent stack / Layer 2 of 11

Agent SDKs & frameworks

What's the fastest way to build an agent that uses tools?

What this layer is for

Higher-level kits that bundle the agent loop, tool definitions, structured outputs, hand-offs between agents and tracing. Many come from the model labs (OpenAI, Anthropic, Google, Microsoft) and are tuned for their own models, though most can call others. Start here before reaching for a lower-level orchestration library.

Side by side

ToolBest atLanguagesLicenseBy
Claude Agent SDKAnthropic's SDK that embeds Claude Code's agent loop, built-in tools, permissions and sessions in Python and TypeScript apps.Python, TypeScriptMIT (Python SDK); proprietary, Anthropic Commercial Terms (TypeScript SDK and bundled Claude Code runtime)Anthropic
Google Agent Development Kit (ADK)Google's open-source, code-first toolkit for building, evaluating and deploying agents and multi-agent systems in Python, TypeScript, Go and Java.Python, TypeScript, Go, JavaApache-2.0Google
Microsoft Agent FrameworkMicrosoft's open-source .NET and Python framework for agents and graph-based multi-agent workflows; successor to AutoGen and Semantic Kernel.C#, Python, GoMITMicrosoft
Mistral Agents SDKMistral's Python SDK for long-running agents you can run locally, self-host, or deploy to Mistral Studio.PythonApache-2.0 (SDK), proprietary (harness runtime and Studio)Mistral AI
OpenAI Agents SDKOpenAI's open-source Python and TypeScript SDK for agents built from a few primitives - agents, handoffs, guardrails, sessions, tracing.Python, TypeScriptMITOpenAI
Pydantic AIPydantic's type-safe Python agent framework - validated tools and outputs, swappable models, durable execution, built-in evals.PythonMITPydantic
DSPyStanford-born framework for programming - not prompting - LMs; declare tasks as signatures and let optimizers tune prompts and weights.PythonMITStanford NLP Group
LettaPlatform for stateful agents that remember and improve over time, from the creators of MemGPT; now built around the Letta Code harness.TypeScriptApache-2.0Letta
LlamaIndexOpen-source Python framework for connecting LLMs to your data - indexes, query engines, agents and event-driven Workflows.PythonMITLlamaIndex
MastraOpen-source TypeScript framework for agents, workflows, memory, RAG and evals, from the team behind Gatsby.TypeScriptApache-2.0 (core), separate enterprise license for ee/ directoriesMastra
Vercel AI SDKVercel's open-source TypeScript toolkit - one API across model providers, tool-calling agents, and UI hooks for chat apps.TypeScript, JavaScriptApache-2.0Vercel

Tools in this layer

Agent SDKssdk

Claude Agent SDK

Anthropic's SDK that embeds Claude Code's agent loop, built-in tools, permissions and sessions in Python and TypeScript apps.

Anthropic · Python, TypeScript

Agent SDKsframework

Google Agent Development Kit (ADK)

Google's open-source, code-first toolkit for building, evaluating and deploying agents and multi-agent systems in Python, TypeScript, Go and Java.

Google · Python, TypeScript, Go

Agent SDKsframework

Microsoft Agent Framework

Microsoft's open-source .NET and Python framework for agents and graph-based multi-agent workflows; successor to AutoGen and Semantic Kernel.

Microsoft · C#, Python, Go

Agent SDKssdk

Mistral Agents SDK

Mistral's Python SDK for long-running agents you can run locally, self-host, or deploy to Mistral Studio.

Mistral AI · Python

Agent SDKssdk

OpenAI Agents SDK

OpenAI's open-source Python and TypeScript SDK for agents built from a few primitives - agents, handoffs, guardrails, sessions, tracing.

OpenAI · Python, TypeScript

Agent SDKsframework

Pydantic AI

Pydantic's type-safe Python agent framework - validated tools and outputs, swappable models, durable execution, built-in evals.

Pydantic · Python

Optimizationframework

DSPy

Stanford-born framework for programming - not prompting - LMs; declare tasks as signatures and let optimizers tune prompts and weights.

Stanford NLP Group · Python

Memoryplatform

Letta

Platform for stateful agents that remember and improve over time, from the creators of MemGPT; now built around the Letta Code harness.

Letta · TypeScript

Retrievalframework

LlamaIndex

Open-source Python framework for connecting LLMs to your data - indexes, query engines, agents and event-driven Workflows.

LlamaIndex · Python

TypeScriptframework

Mastra

Open-source TypeScript framework for agents, workflows, memory, RAG and evals, from the team behind Gatsby.

Mastra · TypeScript

TypeScriptsdk

Vercel AI SDK

Vercel's open-source TypeScript toolkit - one API across model providers, tool-calling agents, and UI hooks for chat apps.

Vercel · TypeScript, JavaScript