Glossary
AI agent framework
A software library that provides the agent loop, tool calling, state, memory and orchestration, so developers can build AI agents without writing that plumbing themselves.
An AI agent framework is a software library that provides the building blocks for AI agents: the loop that calls the model, the way tools are defined and run, how state and memory are kept, and how several agents work together. Instead of writing the plumbing around each model call, a developer describes the agent’s tools, prompts and flow, and the framework runs it. LangGraph, CrewAI, LlamaIndex, AutoGen and the OpenAI Agents SDK are common examples.
What an agent framework provides
Most frameworks cover the same core pieces. The agent loop sends the prompt and tool definitions to the model, runs any tool the model asks for through function calling, feeds the result back and repeats until the task is done. A tool layer turns your functions, APIs or MCP servers into tools the model can call. A state layer tracks the conversation and agent state across steps, often with checkpoints so a run can resume. And an orchestration layer lets you chain steps, branch, or coordinate a multi-agent team.
Around that core, many frameworks add retrieval helpers for building a RAG pipeline, integrations with model providers and vector stores, streaming, and tracing hooks for agent observability. Some come with a hosted service for deployment and monitoring alongside the open-source library.
Frameworks, SDKs, runtimes and harnesses
The terms overlap, but they point at different layers. An agent SDK is usually a thinner library from a model provider, focused on its own models and tools. An agent runtime is where agents run and keep state over time, which matters for long-running agents. An agent harness is the complete wrapper around a model for a specific product, such as a coding agent. A framework sits in the middle: general-purpose, provider-neutral in most cases, and opinionated about how agents should be structured.
Common frameworks compared
Framework | Approach | Often chosen for |
|---|---|---|
LangGraph | Agents as graphs of nodes and edges with checkpointed state | Custom control flow and long-running, resumable agents |
CrewAI | Role-based crews of agents with tasks | Quick multi-agent prototypes with clear roles |
LlamaIndex | Data and retrieval first, with agent workflows on top | Agents built around document retrieval |
AutoGen | Agents that collaborate through conversation | Research into multi-agent dialogue |
OpenAI Agents SDK | Lightweight agents with handoffs and guardrails | Teams building mainly on OpenAI models |
Best AI agent frameworks covers more options in detail, and LangChain vs LlamaIndex, CrewAI vs LangGraph and CrewAI vs AutoGen compare the most common pairs.
Choosing a framework
The useful questions are about control and lock-in more than feature lists. How much of the loop do you want to see and change? Frameworks with heavy abstractions are quick to start with but can be hard to debug when a step goes wrong, and many teams later move to a thinner library or their own loop. Does it run in your language? Python has the widest choice, with fewer TypeScript options. How does it store state and memory? Most frameworks ship a short-term buffer that keeps recent turns in context, which suits demos but not users who return over weeks. When to outgrow your framework’s built-in memory covers the signs.
Agent frameworks and Exabase
Exabase is not an agent framework, and it works with any of them. It is model-agnostic and framework-agnostic, reached through a REST API and a TypeScript SDK, so its calls become ordinary tools or steps in whichever framework you use. In place of the framework’s built-in buffer, Memory gives agents long-term memory that extracts facts from conversations, resolves contradictions and returns a few hundred tokens of relevant context per request. In place of a hand-built retrieval stack, Deep Search searches files stored as Resources at the sub-document level, with page numbers and timestamps for citations. The getting started guide shows the first calls, and the agent memory solution explains the memory layer.
For recurring jobs, Exabase Workers remove the need to host your own agent loop plus a scheduler: a Worker is a prompt, a schedule and a set of allowed tools that runs inside one Base. Exabase vs LangChain, Exabase vs LlamaIndex and Exabase vs CrewAI explain where the line between framework and infrastructure falls, and the research agents use case shows a framework-built agent using Exabase for memory and search.
FAQs
What is an AI agent framework?
An AI agent framework is a library that handles the agent loop, tool calling, state, memory and multi-agent coordination, so developers describe an agent’s tools and flow instead of writing that plumbing themselves.
Do I need a framework to build an AI agent?
No. A basic agent is a loop of model calls and tool calls that fits in a few hundred lines. Frameworks help most with state, retries, multi-agent flows and tracing.
What is the difference between an agent framework and an agent SDK?
An agent SDK is usually a thinner, provider-specific library. A framework is broader, usually provider-neutral, and more opinionated about how agents are structured and orchestrated.
Which agent framework is best?
It depends on the job. LangGraph suits custom control flow, CrewAI suits role-based teams, LlamaIndex suits retrieval-heavy agents, and provider SDKs suit teams committed to one model family.
Do agent frameworks include memory?
Most include short-term memory that keeps recent turns in context, and some add simple long-term stores. Durable memory that handles changing facts across sessions usually comes from a dedicated memory layer.
Does Exabase work with LangChain, CrewAI or LlamaIndex?
Exabase is framework-agnostic. Its REST API and TypeScript SDK calls can be wrapped as tools or steps in any framework for memory, file storage and search.
Related pages: Agent SDK, Agent runtime, Agent harness, Agent orchestration, ReAct agent, Agent loop, Best AI agent frameworks, LangChain alternatives, Agent memory solution, Workers, Supervisor agent.