LLM
A neural network trained on text that predicts the next token. Given a prompt, it returns a completion.
- Text in, text out
- Knows what it learned in training
- Stateless: each call starts fresh
- Can only propose a tool call
An LLM turns text into text. An AI agent puts that model in a loop with tools, memory and rules, so its next words can become a lookup, a calculation or a change in a system.
People ask whether ChatGPT or Claude is an LLM or an agent. The model is an LLM; what you use may wrap it as an agent. This guide separates the two precisely: what a model can do on its own, the parts added around it, how one agent run looks as a trace, why errors compound over steps, and how to decide whether a task needs an agent at all.
Updated · 8 sources
An LLM (large language model) is a model that takes text in and predicts text out; it has no tools, no memory between calls and no way to act. An AI agent is a system built around an LLM: it runs the model in a loop, gives it tools to call, keeps context across steps and checks each result until a goal is met. In AI agent vs LLM, the LLM is the reasoning engine and the agent is everything that lets that reasoning do work — often summed up as agent = model + harness.
OpenAI describes an agent as three parts — a model, tools, and instructions — run in a loop until an exit condition. Remove the loop and the tools, and what remains is the LLM.
A neural network trained on text that predicts the next token. Given a prompt, it returns a completion.
Software that uses an LLM to decide what to do next, does it with tools, and repeats until the goal is met.
Modern LLMs are trained to answer with a structured request for a tool instead of prose. That is the hinge between model and agent: the model writes the request, and the application decides whether to run it.
The application sends the prompt and a list of tools with their input schemas.
The LLM returns a tool name and arguments — text, not an action.
The application executes the function, if policy allows.
The output goes back to the model in a second request.
The model answers, or asks for another tool.
An LLM cannot act by itself. OpenAI’s documentation states the step plainly: execute the code “on the application side” with input from the tool call. Everything an agent can do is decided by what the application around the model will run.
Anthropic calls the starting point an augmented LLM — a model with retrieval, tools and memory. Lilian Weng’s widely cited 2023 overview names the same core: planning, memory and tool use. Production agents add instructions, checks and a record.
Repeat until the work passes its checks or a person must decide.
Question: “Which supplier did we spend the most with last quarter, and is any of it overdue?” The answer lives in your systems, not in any model’s training data.
user > Which supplier did we spend the most
with last quarter? Anything overdue?
model > call sql_query(
"spend by supplier, Q3, top 1")
app < Northwind Metals · 1,284,600.00
model > call list_invoices(
supplier="Northwind Metals",
status="unpaid", due_before=today)
app < 2 invoices · 41,200.00 · 12 and 19
days overdue
model > answer: Northwind Metals, 1.28m in Q3.
Two invoices (41,200.00) are overdue;
links to both below.Giving a model tools and a loop measurably improves results on interactive tasks. It also means one wrong step can carry through every step after it, which is why checks sit inside the loop.
How errors compound. Our arithmetic, not a measurement: if each step of a task is right 95% of the time, independently, and nothing checks the steps, a 20-step run is right end to end only about 36% of the time (0.95 to the power of 20 ≈ 0.36). Checks after each step, and a person on the risky ones, are what keep long runs reliable.
Microsoft’s architecture guidance puts it as a rule: use the lowest level of complexity that reliably meets your requirements. A direct model call is cheaper, faster and easier to test than an agent.
What does the task need beyond the prompt?
On Botminds the model is a choice and the harness is constant. Pick one model or a pool; the same loop, grants, approvals and records apply to every agent.
See the agent harness and, in the Academy, LLMs and services.
In AI agent vs LLM, the LLM is a model that turns text into text and cannot act. An AI agent is a system that runs an LLM in a loop with tools, memory and rules, so the model’s choices become lookups and actions, checked step by step until a goal is met.
No. An LLM on its own only produces text. It becomes part of an agent when software runs it in a loop, gives it tools to call, keeps state between steps and decides which of its requested actions to carry out.
ChatGPT is an application built on LLMs. When it only replies, it is a chat interface to a model; when it browses, runs code or uses connected tools to complete a task, it is acting as an agent.
No. Through function calling, the model returns the name and arguments of a tool it wants. The application runs the tool and sends the result back. What the application allows decides what the agent can do.
Control over the next step. When the model’s output decides which tool runs next and the loop continues until a goal is met, the system is agentic. When code fixes every step and the model only fills in text, it is a workflow.
Today’s general-purpose AI agents use an LLM to read requests and choose actions. Older software agents used rules or planners. The LLM is what lets an agent handle open-ended language and messy documents.
The LLM reasons, the agent runs that reasoning in a loop with tools, and MCP — the Model Context Protocol — is a standard way for the agent to discover and call those tools. See MCP vs API.
An agent makes many model calls per task, each carrying more context. Anthropic reports agents use about four times the tokens of chat interactions, so use an agent only where its choices add value.
Bring one process and its documents. We’ll show you the agents, the controls and the record, running on your data.