Pebellslearn by building
RoadmapsMatrixCoursesSandboxSign in

Course details

AI Agents

Learn how an AI agent really works: a language model in a loop that plans, calls tools, reads the results and decides again. You will follow one travel-planning agent from tokens and prompts to tools, memory, planning patterns, testing and guardrails.

Ready to learn6 sections · 24 lessons
Start learning

Course curriculum

How LLMs Read and Charge3 lessons

Before building an agent, see the model the way it sees itself: text cut into tokens, a context window that holds everything it knows for one call, and a price on every token in and out.

  1. Tokenization — How a Model Reads12 min
  2. Context Windows — The Model's Desk12 min
  3. Token Based Pricing — Reading the Bill15 min
The Agent Loop5 lessons

Meet the loop at the heart of every agent: what makes something an agent, how it perceives and plans, how tools are invoked, how results feed back, when the loop stops, and which sampling settings suit each job.

  1. What Are AI Agents?12 min
  2. Perceive, Then Reason and Plan12 min
  3. Acting — How Tools Get Invoked12 min
  4. Observe, Reflect, and Know When to Stop12 min
  5. Sampling Settings — Temperature, Top-p, Penalties and Length15 min
Prompt Engineering3 lessons

Write prompts that leave nothing to guess, teach by example and improve them with a test set, then use chain of thought and tree of thought where the problem needs real reasoning.

  1. Be Specific — Goal, Context, Format12 min
  2. Show Examples, Then Test and Iterate15 min
  3. Chain of Thought and Tree of Thought15 min
Tools and the Model Context Protocol4 lessons

Write tool definitions a model can use correctly, sort tools by the damage a mistake could do, and connect tools through MCP hosts, clients and servers, running locally or remotely.

  1. Tool Definition — Describing a Tool So It Gets Used Well12 min
  2. The Common Kinds of Tools12 min
  3. MCP — Hosts, Clients and Servers15 min
  4. Creating MCP Servers — Local or Remote15 min
Agent Memory4 lessons

Give a stateless model a memory: manage the short-term working context, separate episodes from facts, and retrieve long-term memories by meaning with embeddings while letting stale ones fade.

  1. What Is Agent Memory?12 min
  2. Short-Term Memory — Keeping the Working Context Lean12 min
  3. Episodic and Semantic Memory12 min
  4. Long-Term Memory — Retrieval and Forgetting15 min
Agent Patterns, Testing and Guardrails5 lessons

Choose between ReAct and planner-executor or DAG designs, test tools and flows, trace every run and track the metrics that matter, then defend the agent against prompt injection with permissions enforced in code.

  1. ReAct — Reason, Act, Observe, Repeat12 min
  2. Planner–Executor and DAG Agents15 min
  3. Testing Agents — Tools, Flows and Human Review15 min
  4. Logging, Tracing and Metrics12 min
  5. Guardrails — Prompt Injection and Tool Permissions15 min