What is an agent framework?

An agent framework is a software library or platform offering the agent loop, tool definitions and calls, memory, state management and monitoring as ready components for building AI agents.

It differs from agent orchestration in scope: orchestration manages the division and order of work across several agents, while a framework is the toolkit both single agents and orchestration are built on. A framework is not the model; the same framework works with different models.

Topic
Agents and protocols
Also known as
Agentic framework

How an agent framework works

  1. The developer writes the agent's task, system instructions and available tools in the form the framework defines.
  2. The framework runs the agent loop: it calls the model, parses structured output and runs the relevant tool.
  3. Conversation history, intermediate results and long-term memory are kept in the framework's state layer.
  4. Every model call and tool run is traced; error, retry and limit rules are set in the framework.

In more detail

Checkpointing and durable execution

Modern production frameworks distinguish between stateless chat loops and stateful, durable graph execution with checkpointing. Checkpointing allows an agent to pause cleanly for human approval, survive process crashes and replay or branch from an exact intermediate step without re-running costly tool calls.

The cost of abstraction: when not to use a framework

Over-engineered frameworks can obscure underlying prompts, inflate token overhead and complicate debugging, leading many engineering teams to prefer lightweight, composable patterns or direct SDKs for simple workflows. Frameworks become valuable primarily when managing complex branching state, multi-agent handoffs, structured error recovery and standardised observability (such as OpenTelemetry GenAI traces).

Sandboxing, loop budgets and MCP and A2A support

Leading frameworks treat tool execution sandboxing and protocol interoperability as first-class primitives, natively consuming MCP servers for tools and exposing or calling A2A endpoints for peer agents. Frameworks must also isolate untrusted tool outputs and enforce strict recursion, token and wall-clock budgets to prevent runaway agent loops.

Commonly confused terms

TermHow it differs
Deterministic LLM workflowA workflow executes a deterministic, developer-defined graph of LLM and tool calls, while an agent framework supports open-ended agent loops where the LLM dynamically chooses tools and control flow.
Agent protocols (MCP and A2A)An interoperability protocol (such as MCP or A2A) standardises wire-level communication between agents, tools and other agents, whereas an agent framework is the application runtime implementing or consuming those protocols.

Why an agent framework matters for on-premises AI

Choosing a framework is a long-term decision for in-house agent development. Key criteria are compatibility with in-house models, no dependency on outside services, support for tool permissions and human approval steps, plus detailed logging and monitoring. A framework does not make an agent safe; it only provides the infrastructure where security rules can be enforced. In this fast-moving field, whether the framework is still maintained and whether its code can be reviewed by the organisation also count.

ON-PREMISES EXAMPLE

A state bank's software team evaluating agent frameworks tests in a separate environment whether each runs without internet access, works with its in-house model and logs every tool call.

Common questions

How does an agent framework differ from agent orchestration?

An agent framework is the toolkit for building agents. Agent orchestration manages the division of work across agents and is usually done with a framework.

What should guide the choice of an agent framework?

Compatibility with in-house models, no internet dependency, support for tool permissions and human approval, detailed logging, ongoing maintenance and reviewable code.

Sources

In the glossary: Glossary, A to C

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.