Agent Architecture: Tools, Memory and Decisions

You understand how agents use tools, retain context and make autonomous decisions.

Why this lesson matters

Building an agent without understanding the architecture is like building a house without foundations. You get something that works sometimes, but you don't know why it fails. In this lesson you learn exactly how an agent works under the bonnet: which tools it uses, how memory works, and how it makes decisions.

You need this knowledge to build agents of your own that are reliable, instead of agents that happen to get it right now and then.

Tools: what an agent can "do"

An LLM can only generate text. Tools give an agent hands. Each tool is an action the agent can carry out:

Tool typeWhat it doesExample
API callsTalk to external servicesFetch the weather, send an email
Reading filesAnalyse documentsSummarise a PDF report
Database queriesFetch or write dataPull customer details from the CRM
Web searchFind current informationLatest news on a topic
Running codeDo calculationsRun an Excel analysis
Triggering actionsStart processesCreate an invoice in the accounting system
Going deeper

The power of an agent comes from its tools. An agent without tools is a chatbot. An agent with the right tools can automate the work of a whole department.

Memory: short vs long term

Agents have two kinds of memory:

text
┌─────────────────────────────────────┐
│           AGENT MEMORY              │
│                                     │
│  Short term           Long term     │
│  ┌─────────────┐   ┌──────────────┐ │
│  │ Current     │   │ Knowledge    │ │
│  │ conversation│   │ Base         │ │
│  │             │   │ (documents,  │ │
│  │ Context     │   │  FAQ, rules) │ │
│  │ window      │   │              │ │
│  └─────────────┘   │ Earlier      │ │
│                    │ interactions │ │
│                    └──────────────┘ │
└─────────────────────────────────────┘

Keep reading

Leave your name and email address and you can read the rest

You get the whole lesson right away, and every other lesson stays open after that. No password, no confirmation email.

Your address stays with us. No selling to third parties, and you unsubscribe in one click.