/knowledge/ai-agents
AI Agents & Tool Use
A language model answers; an agent acts. Put an LLM in a loop, give it tools, and it can search, calculate, run code, and carry out multi-step tasks on its own — which is powerful, and exactly why it has to be bounded and checked.
- Studied
- AI Agents & Tool UseAdvanced · LLMs that act
- When
- AI & current practice
- Applied in
- Agentic research & automation
- Read / Refreshed
- ~15 min read2026-06-26
A language model on its own does one thing: you give it text, it gives you text back. An AI agent is what you get when you wrap that model in a loop and give it tools — the ability to take actions in the world, observe what happens, and decide what to do next. The shift from answering a question to acting to accomplish a goal is the whole idea, and it's the frontier where most of the current excitement (and risk) in AI lives.
It's worth understanding properly because agentic tools are rapidly entering everyday workflows — and because the same things that make them powerful make them dangerous if used uncritically. This page builds the agent up from the loop, covers the pieces (tools, planning, memory), and is honest about the hard parts — drawing on the LLM, RL, and retrieval threads from this section.
01
From answering to acting
The defining leap is agency: an agent doesn't just produce a final answer in one shot, it pursues a goal over multiple steps, deciding its own actions along the way. Ask a plain LLM "what's the weather in Adelaide and should I bring an umbrella?" and it can only guess from stale training data. An agent calls a weather API, reads the result, and answers from real, current data — then maybe checks your calendar and drafts a reminder.
That autonomy is what unlocks genuinely useful work — research, automation, coding, operating software — but it also means the system is now doing things, not just saying things, which raises the stakes of every error. Understanding the loop is how you keep that power useful.
02
The reason-act-observe loop
The heart of nearly every agent is a simple cycle, popularised as ReAct (Reason + Act): the model reasons about what to do, takes an action (calls a tool), observes the result, and loops — reasoning again with the new information — until the goal is met.
This is what turns a one-shot text generator into something that can tackle a task it can't solve in a single response. Each turn of the loop, the model gets to see the consequences of its last action and adjust — exactly the feedback structure of the agent-environment loop from reinforcement learning, here driven by an LLM's reasoning rather than a learned policy.
03
Tool use: grounding the model in real capabilities
Tools are what give an agent its powers. Through function calling, the model is told what tools are available (a search engine, a calculator, a database query, a code interpreter, an email sender) and can choose to invoke one, with arguments it generates, instead of answering directly. The tool runs, and its output comes back into the model's context.
This solves the LLM's core weaknesses at a stroke. It can't do reliable arithmetic? Give it a calculator. Its knowledge is stale or it hallucinates? Give it search over real documents (this is RAG as a tool). It can't act in the world? Give it an API. Tools ground the fluent-but-unreliable model in capabilities that are exact, current, and real — which is why "what tools does it have?" matters as much as "which model is it?"
04
Planning & memory
Two further pieces turn a reactive loop into something that can handle real complexity:
- Planning — for a multi-step goal, the agent first decomposes it into a sequence of sub-tasks ("to book this trip: find flights, then a hotel, then add to calendar") rather than improvising one step at a time. Better planning is much of what separates an agent that finishes a complex task from one that wanders.
- Memory — the loop's working context is short-term memory (and it's bounded by the context window). For anything longer, agents need long-term memory — an external store (often a vector database) it can write to and retrieve from, so it can recall earlier findings without holding everything in context at once.
05
Multi-agent systems
A natural extension is to use several agents together, each specialised — a "researcher" agent that gathers information, a "writer" that drafts, a "critic" that checks — coordinating to solve a problem one generalist agent would struggle with. It mirrors how a human team divides labour, and the "critic" or "verifier" role is especially valuable because it builds checking into the system. It's a promising pattern, though it multiplies the cost and the coordination challenges, and isn't a free win.
06
Why it's hard — and must be bounded
Agents are powerful and genuinely unreliable, and the honesty here matters more than the hype:
07
Where it shows up in my work
08
Refresh in 60 seconds
The ReAct loop, tool-use/function-calling, planning-and-memory architecture, and the error-compounding/verification cautions reflect current AI-agent references alongside hands-on use.