
Build real tools: the clock, calculator, and word counter, with a name, description, parameter schema, and function; empower the agent to choose and call them.
register tools with a registry to dispatch observations, using a matcher and an argument extractor per tool, so the agent delegates decision making and scales without growing if-elif chains.
Write each interaction to a plain json file on disk to create persistent memory, then load it at startup, handling errors gracefully with atomic writes.
Explore the ReAct pattern by building a think, act, observe loop from scratch that chains tool calls, handles failures, and stops honestly when steps can't be resolved.
Learn how to replace regex and keyword-based decisions with a real language model, using json schemas, tool registries, and function calling to build an end-to-end agent.
Explain Strands' six-attempt exponential backoff retry for model throttling, with input validation and per-request fresh agents to improve reliability under real API errors.
Hardening a production agent, this lecture moves a secret to Secrets Manager, scopes access to one ARN, and enforces explicit deny policies; it adds real CloudWatch metrics and alarms.
This course contains the use of artificial intelligence. All lectures use AI-generated voice narration.
You can build an AI agent in a few lines with a framework. But when it does something unexpected, would you know why?
This course shows you what's actually going on inside an agent - by building one yourself, from a 30-line rule-based loop all the way to a real Gemini-powered agent deployed on AWS Bedrock AgentCore with Terraform, monitored, and torn down again, on screen.
The screen recordings were captured while writing and running the code, not edited afterward to skip the mistakes. When something breaks -- a wrong log group, a retry that never fires, a rate limit hit -- you see the bug and the fix, because that's how you learn what the code does.
You'll build, in order:
- A minimal rule-based agent using nothing but the Python standard library
- A reusable perceive-think-act loop
- A tool-calling system (calculator, clock, text utilities) with a registry and dispatcher
- Short-term memory (conversation history / context windows) and durable long-term memory (crash-safe atomic file writes)
- A ReAct-style reasoning loop and a multi-step planner, from scratch, no framework
- A real agent backed by Google's Gemini API, choosing which of your tools to call
- A production deployment of that agent to AWS Bedrock AgentCore, provisioned with Terraform
- Retry logic that survives real rate limits - you'll fire concurrent requests, hit a real 429, and watch it recover
- A hardened, secured version: secrets in AWS Secrets Manager, least-privilege IAM, real CloudWatch monitoring - and a real terraform destroy to close it all out
Along the way you also get:
- Hands-on exercises for every module, with worked solutions
- A short quiz plus a "debug this" challenge after every lesson
- A capstone project - a Research Notes Agent combining tools, durable memory, and multi-step Gemini reasoning in one build, with a starter (TODOs included) and a finished solution
If you already know some Python and want to understand how an AI agent actually works by building one yourself, this course is for you.