Agentic AI · Module 5Lesson 5

Study explanation · Lesson 05 · 13 min

The anatomy of an agent

Five parts and a fence. Goal, Brain, Planning, Memory and Tools, wrapped in guardrails, describe every agent you will build or judge. Agents also fail in their own ways, because the failures come from the reasoning itself.

Listen to this lesson

Hear the lesson read aloud, with each sentence highlighted as you go.

Narrated by an AI voice.

The five components

The notes use one finance agent to illustrate all five.

Five parts and a fence · Module 5 lecture notes p. 5

The five parts

  • Goal: the outcome, not a step list.
  • Brain: the reasoning core, usually an LLM.
  • Planning: steps, order, and when to stop.
  • Memory: this run, and patterns over time.
  • Tools: bounded real actions, nothing more.

The fence: guardrails

  • Never act past the approval gate on anything sensitive.
  • Stop and ask when confidence is low.
  • Never reach outside the toolbox.
  • A human holds the only key.

Guardrails are not a sixth part. They are the boundary around the five.

The five components · Lecture notes p. 5
PartWhat it isFinance-agent example
GoalThe outcome it is trying to reach, not a step list“Keep us under budget this month and flag what needs attention.”
BrainThe reasoning core: understands requests and makes decisions, usually an LLMDecides which categories are worth a closer look this week
PlanningBreaks the task into steps, sequences them, and adjusts as it learns moreWhich categories to check, in what order, and when to stop
MemoryShort-term, for this run, and long-term, for patterns over timeShort: this week’s numbers. Long: the last three weeks’ flags
ToolsThe bounded, real actions it is allowed to take, and nothing outside themRead the sheet, draft, set a reminder, and nothing more

Guardrails: the fence around it all

Guardrails are rules the agent can never cross, no matter what the goal suggests. The notes are careful that they are not one of the five parts; they are the boundary around them.

  • Never act past the approval gate on anything sensitive.
  • Stop and ask when confidence is low.
  • Never reach outside the toolbox.

Key ideaA human holds the only key.

How agents fail differently

The notes name four failure modes, each with an everyday example.

Four ways an agent fails · Lecture notes p. 5
FailureWhat happensExample
Runaway loopIt keeps chasing the goal and never stopsAn inbox agent re-drafts the same reply, never satisfied it is good enough to send
Misread intentIt solves the wrong problem, confidentlyTold to clear out old files, it deletes anything unopened in a year, not just the duplicates you meant
Tool misuseIt uses a real tool the wrong wayGiven calendar access to check availability, it reschedules a meeting nobody asked it to move
Compounding hallucinationOne wrong guess snowballs three steps laterIt misreads a date on step one, and by step four has built an itinerary around a trip that isn’t happening

Why these are different

These are not missing-approval or missing-log problems. They come from the reasoning itself, which the notes say is exactly why guardrails and a human checkpoint matter even for a well-built agent.

Mental Model card #25 · The anatomy of an agent

The last card is the anatomy, the two ways to get it wrong, and one hard rule.

  • Goal, brain, planning, memory (short and long), tools, wrapped in guardrails.
  • Miss the brain or the planning and it’s just an automation; miss the guardrails and it’s one you can’t trust.
  • No approval gate, no unattended agent near anything that spends money or speaks for you.

Key takeaways

  • Every agent has a goal, a brain, planning, memory and tools.
  • Guardrails are the fence around the five parts, not a sixth part.
  • Agents fail by runaway loops, misread intent, tool misuse and compounding hallucination.
  • Those failures come from the reasoning, so guardrails and a human checkpoint still matter.
  • No approval gate means no unattended agent near money or your voice.

Study explanation based on the supplied Module 5 lecture notes and reading list for Agentic AI in Practice. The slides the notes accompany were not supplied, so nothing here is attributed to them. Open the source notes above for page-level traceability.

Your study checkpoint

Ready to continue?

Mark the lesson complete once you have read it and tried its idea on something real.

Next · Module summary