Part I — What actually is an agent?Lesson 03 of 36Model3 min readdone

The augmented LLM

What you should understand afterwards

How an ordinary model becomes useful through tools, retrieval and state.

A language model on its own maps text to text: you send a prompt, it returns a completion, and nothing else happens. The augmented LLM is that model given three further abilities — to use tools, to retrieve information, and to keep memory — and it is the building block every workflow and agent is built from.

The augmented LLM: a model plus tools, retrieval and memory

A plain language model takes text in and produces text out, and that is the whole of what it does: it cannot look anything up, run anything, or remember anything beyond the text placed in front of it, and the knowledge it picked up during training is fixed at a past date and cannot be updated. The augmented LLM is that same model wired to three further capabilities — tools it can invoke, retrieval it can draw on, and memory it can write to and read back. Each augmentation plugs into the same request-and-reply cycle: the model's output asks for one, the result comes back as text in the next request, and the model carries on from there. This augmented unit, not the bare model, is the building block that workflows and agents are built from.

Read

  1. Anthropic, "Building effective agents" § Building block: The augmented LLM
  2. Lilian Weng § Agent System Overview — the LLM as the brain, with memory and tool use

Tools: how a model acts on the world

A tool is a function the harness makes available to the model, described to it by a name and a schema for its arguments. The model cannot run code or reach a network itself, so it acts indirectly: its reply contains a structured request naming a tool and the arguments to call it with, the harness runs that function, and the result comes back as text the model reads on the next request. This is what lets a fixed text predictor read a file, query a database, or call an external service — the tool does the acting, and the model decides when to ask for it. Lesson 4 covers how a tool call is represented and dispatched in detail.

Read

  1. Lilian Weng § Component Three: Tool Use
  2. Chip Huyen § Tools

Retrieval: bringing outside information into the prompt

A model knows only what it learned in training, and it can attend only to the text inside its context window, which is finite. Retrieval is the augmentation that closes both gaps: when a question comes in, the system fetches the small slice of relevant external information — a passage from a document, a record from a database, the right file from a repository — and places it in the prompt before the model answers. This is how an augmented model works against a specific, up-to-date, or private body of information it never saw in training, without trying to fit all of that information into the context at once. Lessons 10 and 11 cover how an agent finds the relevant code to retrieve.

Read

  1. Chip Huyen § Tools, Knowledge augmentation
  2. Anthropic, "Building effective agents" § Building block: The augmented LLM

Memory and state: keeping information across steps

Lesson 2 showed that the conversation is the only memory a bare loop has: the whole message list is resent on every request, which makes it a short-term working memory that lasts as long as the run and no longer. Memory as an augmentation adds durable state on top of that — the model can write something down through a tool and read it back later, including in a separate run, so information survives past the conversation that produced it. In practice memory is not one mechanism but several: the running conversation, a scratchpad for the current task, and a persistent store that outlives both, and keeping them apart matters. Lesson 29 separates the kinds of memory, and lessons 27 and 28 cover how what enters the context window is chosen.

Read

  1. Lilian Weng § Component Two: Memory
  2. Lilian Weng § Types of Memory

From building block to agent

The augmented LLM is a single enriched step: one request in which the model can reach for a tool, some retrieved text, or a stored fact, and one reply. It is not yet an agent, because on its own it still runs once and stops. The loop from lesson 2 is what turns it into an agent — it feeds each tool result back and calls the augmented model again until the model signals it is done. A workflow is the other thing built from the same block: several augmented calls wired along a path fixed in code rather than chosen by the model. The building block is shared; what differs is who decides whether there is another step.

Read

  1. Anthropic, "Building effective agents" § Building blocks, workflows, and agents
  2. Willison § Tools in a loop to achieve a goal

My notes

  • The augmented LLM has tools, retrieval and memory.
  • There are 3 types of memory: sensory, short-term memory with is only a few seconds and is also called the working memory, and long term which comes in 2 types: declarative (events, facts) and procedural (e.g. riding a bike).
  • Some people describe agents as an LLM with tools in a bounded loop.

Extra reading

  1. What are agents?Hugging Face — smolagents docsdocs
  2. You Should Write An AgentThomas Ptacek · The Fly Blog · 6 Nov 2025post