internalsGet Pro

AI Engineering · Module 07

Agents: models that plan and act

Lessons
15
Free
1
Reading
~5 h

Your progress

0 / 15 lessons done

Sign in to track

Lessons

  1. Agents: models that act until a goal is metFreeMany features sold as agents are a few model calls in a loop that your own code runs. If you know the parts, the stops and the cost, you can build one that ends, stays in budget and leaves consequential actions to a person, and you can tell when a plain workflow is the better build.14 min
  2. Workflows vs agents: when you need autonomySooner or later someone on your team will propose rebuilding a working feature as an AI agent. You need a way to decide that from the feature’s steps and measured failures, not from what is new.17 min
  3. ReAct: reasoning, acting and observing in turnsMost AI agents in production run some version of this loop. Knowing what each turn contains, and what the model reads at each step, is how you debug an agent that calls the wrong tool or answers too soon.16 min
  4. Planning: breaking a goal into stepsAny AI agent that handles requests with several parts will one day drop a part or apply the wrong rule to it. A plan the code can see turns “the model forgot” into a missing step that code catches before a person approves the result.18 min
  5. Agent memory: short-term context, long-term storesEvery AI agent you ship forgets everything between runs and pays again for everything it saw within one. Getting memory right decides whether users repeat themselves, whether costs grow with run length, and whether one bad note spreads into many wrong answers.18 min
  6. Context engineering: choosing what the model seesEvery AI agent resends its whole run on every call. What you let into that run decides the bill, the wait and whether the model notices the one fact that matters.18 min
  7. Multi-agent systems: orchestrators and subagentsWhen one AI agent runs out of context or time, the next idea is usually to add more AI agents. Before you build that, you need to know what it buys, what it costs and which new failures it brings.18 min
  8. Agent2Agent protocol: agents calling other agentsMore companies are putting an AI agent in front of their own processes, such as claims, bookings and returns. When your software needs one of those done, A2A is a standard way to ask, follow the work for days and get a result back that you can check.18 min
  9. Human in the loop: approvals and handoffsAny AI agent that can spend money or write to customers needs a person somewhere in its loop. If the request is badly designed, that person stops reading within weeks, and the approval no longer protects anything.17 min
  10. Agent reliability: loops, limits and budgetsAn AI agent decides how many steps it takes, so without limits a single bad run has no ceiling on cost, time or side effects. The limits, loop checks and idempotency keys in this lesson are what let you put one in production and still know the worst case before it happens.19 min
  11. Agent frameworks: when to use oneEvery team that ships an AI agent is asked why it doesn’t use a framework, or why it does. If you know what each layer takes over and what it sets for you, you can choose by your agent’s needs instead of by habit, and you’ll know which defaults to check before the first bill.17 min
  12. Lab: an agent loop from scratch in PythonAgent frameworks wrap this loop in their own classes, but underneath they run the same steps: call the model, run the tools, add the results, check the limits. Writing it once by hand shows where cost builds up, where a person must step in and what each stop reason asks you to do.22 min
  13. Lab: rebuilding your agent with LangGraphApprovals rarely come back while a program waits at a prompt: a support agent clicks hours later, after deploys and restarts. A framework that saves the run between steps solves that, and rebuilding a loop you already understand shows exactly what you gain and what you can no longer see.24 min
  14. Case: Swiggy’s text-to-SQL analyst agentMost teams that ship text-to-SQL find that one model call is right for easy questions and wrong for their own business terms. Swiggy published what it added over three versions, so you can see which additions paid off and match them to your own data.20 min
  15. Design: a research agent that writes reportsA research agent reads pages you don’t control and writes text that people act on. The model can find and read; the engineering is making every sentence traceable to a page it really fetched, at a cost you know before the run starts.30 min

Practise with

Terms this module teaches 66

Open glossary

Agent Card

A JSON document an A2A server publishes to describe its agent: name, provider, version, skills, endpoint and the security schemes callers must use. Usually served at /.well-known/agent-card.json.