Build an AI agent, and test it
Building AI Agents. Tool use, retrieval, memory, the agent loop — and how to test them.
19 lessons · 1 hr 1 min of video · 11 quiz questions
Try a question from this course
What ends the agent loop?
What you'll be able to do
- Explain an agent as a model, tools and a loop
- Write tool schemas and a loop that runs tool calls and handles errors
- Build a persistent retriever over your own data
- Add memory to an agent and guard it in code
- Evaluate an agent on its final answers and its trajectory
What's in it
What an agent is
The three parts of every agent, and the vocabulary for the rest of the course.
Tool use and the agent loop
Describe tools with schemas, run the calls yourself, and loop until the model is done.
Retrieval (RAG)
Give the model data it doesn't have: embed it, store it, and fetch the closest pieces per question.
Memory
Make an agent remember across sessions — simply first, then safely.
Evaluating agents
Test the final answer and the path the agent took, and re-run after every change.
Made from these videos
- AI Agent Building Blocks: Tool Calling, RAG, Memory & the Agent Loop | AI Agents from Scratch #2 · AI World 4 U
- Building AI Agents in Pure Python - Beginner Course · Tech With Tim
- What is Tool Calling? Connecting LLMs to Your Data · IBM Technology
- Build Your Own Agentic Harness in Python - Full Tutorial · Tech With Tim
- How to Build a Local AI Agent With Python (Ollama, LangChain & RAG) · Tech With Tim
- Agent Memory Explained in 5 Minutes · KodeKloud
- Give Your AI Agent Tools: LLM Tool Calling for Memory (Python + pgvector) | CodeAlpha Builds Ep. 4 · CodeAlphaBuilds
- Beginner's Guide to Agent Evaluations · LangChain
- How to Setup DeepEval for Fast, Easy, and Powerful LLM Evaluations · Leon Builds Agents























