Agent Frameworks
13 toolsTurns a model call into a multi-step program.
- LangChainframework
Composable abstractions for model calls, tools and state.
- LlamaIndexframework
Data-centric framework for retrieval and agent workflows.
- Pydantic AIframework
Type-safe agent framework that leans on Pydantic models.
- AutoGenframework
Microsoft research project for conversable multi-agent systems.
- CrewAIframework
Role-based orchestration where agents collaborate as a crew.
- Semantic Kernelframework
Microsoft SDK for embedding AI steps into .NET and Python apps.
- Mastraframework
TypeScript agent framework with typed workflows and evals.
- OpenAI Agents SDKframework
Lightweight primitives for handoffs, guardrails and tracing.
- Agnoframework
Minimal agent runtime centered on model-agnostic tool interfaces.
- Claude Agent SDKframework
Anthropic's toolkit for building agents with tool use and hooks.
- Lettaplatform
Agent runtime with persistent, editable memory as a first-class primitive.
- smolagentsframework
Minimal code-first agent loop from the Hugging Face team.
- Vercel AI SDKlibrary
Provider-agnostic building blocks for streaming apps and agents.
By Kunj ShahLayer boundaries and entries verifiedmethod
Rules of thumb
- An agent loop that cannot survive a deploy will eventually cause real damage. Durability and tool permissions are the controls, not the prompt.
- Start with a single model call and plain code. Add an agent framework when the control flow genuinely depends on the model's output.
- Give every side-effecting tool an idempotency key. Retries are guaranteed; duplicate payments should not be.
Quick answers
- What does an agent framework add over plain API calls?
- A loop that lets the model choose tools, state carried between steps, and conventions for memory, retries and handoffs. It is worth the dependency when the number and order of steps are decided at runtime.
- Why do agents fail in production?
- Mostly from unbounded loops, tools with too much permission, and lost state when a process restarts mid-run. Cap steps, scope tool credentials, and persist state outside the process.
- Do I need multiple agents?
- Rarely at first. One agent with well-described tools is easier to debug. Split into several only when one context window or one set of instructions measurably cannot hold the task.
Ask an AI about this page
Opens the assistant with this page’s link and a question already filled in.