Applied LLM Systems: RAG, Agents & MCP / Agents and Tools
Model vs. agent.
Reviewed by Yuvaraj
Most uses of a language model are a single exchange: one prompt in, one answer out. An agent is different. It pursues a goal over many steps, deciding as it goes, calling tools, reading the results, and choosing what to do next. The model is still the engine; the agent is the loop and the scaffolding built around it.
A plain model call is a function: text in, text out, no memory of the world and no way to act on it. An agent wraps that call in a system that can hold a goal, act, observe, and decide whether to continue.
The single most useful sentence to remember:
A model predicts. An agent acts, observes, and adapts, in a loop, until a goal is met.
Answer from memory before revealing, retrieval practice is what builds durable recall.
What distinguishes an agent from a single model call?
Ask about this lesson, or about anything in AI. Answers cite the lessons they draw on.
Finished this lesson?
Mark it complete to earn XP, keep your streak, and schedule a review.
Nearly every agent, however it is built, has four ingredients:
Because the model cannot know a tool's result in advance, an agent cannot plan everything up front. It proposes one action, the environment answers, and only then can it choose the next action. That feedback is what lets an agent handle tasks a single prompt cannot, multi-step research, using live data, or recovering when a step fails.
For instance, asked "is the office open on the next public holiday?", an agent might first call a calendar tool to find the date, read that result, then call an hours tool for that specific date, a second step it could not have formed until the first returned.
Capable is not infallible
An agent that can act can also act wrongly, call the wrong tool, loop without progress, or take a step that is hard to undo. Real systems add guardrails: step budgets, tool permissions, validation, and a human in the loop for consequential actions. "Autonomous" never means "unsupervised." We return to this in Workflows vs. Agents.