AI Agents
Design and build LLM agents that use tools in a loop: function calling, ReAct-style planning, memory, guardrails, failure modes and evaluation.
An agent is an LLM that decides, step by step, which actions to take to reach a goal: it calls tools, observes the results and continues until it is done. That autonomy makes agents powerful, and also makes them slow, expensive and risky when built carelessly.
This advanced course treats agents as an engineering problem. You will learn what really distinguishes an agent from a fixed LLM workflow (and when you should not build one), how tool/function calling works at the protocol level, how ReAct-style loops plan and act, how to manage short- and long-term memory, how to put guardrails around actions, and how agents fail and how to evaluate them.
All exercises run in pure Python in your browser without calling a real model. You will build a validated tool dispatcher, an agent loop driven by a scripted fake LLM, a memory trimmer, a policy-based guardrail and a loop detector. Real SDK usage (Anthropic, OpenAI) appears in illustrative code examples.
What an agent is, when to use one, and how tool calling works.
ReAct-style reasoning loops and how agents remember.
Keep agents safe, recognise how they fail, and measure them.
Build a tool-using agent that answers questions about a set of local documents and a small mock API (for example an orders database), with a hand-written agent loop, validated tools, memory management, code-level guardrails and an evaluation suite that measures success rate, cost and safety.