Repo for AI Agents The Definitive Guide
Jupyter Notebook
2,761
24 commits
updated Aug 1, 2026
⭐ If you find this repository helpful, please consider giving it a ⭐ here on GitHub (click the star button in the top right corner) It's a quick way to show support for this openly available code. ⭐

This is the corresponding code for the book AI Agents - The Definitive Guide the book can be found here and on Amazon. The book has an accompanying website with quizzes and additional material, as well as a Discord channel.
All of the code is organized into folders. Each folder starts with CH followed by the chapter number. For example, CH01.
The notebooks are then organized as follows: ch01_attention_mechanism_variations.ipynb, where ch01 indicates the chapter
and attention_mechanism_variations what is done in the notebook.
├── LICENSE
├── README.md <- The top-level README for developers using this project.
├── CH01 <- Per chapter folder with Jupyter notebooks.
├── [name].ipynb <- Jupyter notebooks with naming as mentioned above.
├── CH02 <- Per chapter folder with Jupyter notebooks.
... <- Same structure for all chapters.
├── utils <- Custom classes and functions and utility functions.
├── resources <- Some miscellaneous resources.
Every notebook can be opened and run on Google Colab directly from the links below. Just click the Open In Colab badge next to the notebook you want to run.
| Notebook | Colab |
|---|---|
| Chain-of-Thought (CoT) | |
| Tree-of-Thought (ToT) | |
| ReAct | |
| Human-in-the-Loop (HITL) | |
| Hierarchical Agent Teams | |
| Swarms |
| Notebook | Colab |
|---|---|
| A2A + MCP Governed | |
| MCP Server with Composio | |
| LangGraph + E2B Sandbox | |
| Programmatic Tool Calling (Monty) |
| Notebook | Colab |
|---|---|
| AgentVista | |
| External Evaluation Pipelines (Langfuse) | |
| External Evaluation Pipelines (LangSmith) | |
| RULER Trace Answer Ranking (LangSmith) |
| Notebook | Colab |
|---|---|
| Agent Cost Estimator by Topology | |
| Memoizing Swarm Research Engine | |
| Memory Footprint, Throughput & GPU Requirements |
58 followers · starred Nov 2025
634 followers · starred Aug 2026
236 followers · starred May 2026
156 followers · starred Aug 2026
Repo for AI Agents The Definitive Guide
Jupyter Notebook
2,761
24 commits
updated Aug 1, 2026
⭐ If you find this repository helpful, please consider giving it a ⭐ here on GitHub (click the star button in the top right corner) It's a quick way to show support for this openly available code. ⭐

This is the corresponding code for the book AI Agents - The Definitive Guide the book can be found here and on Amazon. The book has an accompanying website with quizzes and additional material, as well as a Discord channel.
All of the code is organized into folders. Each folder starts with CH followed by the chapter number. For example, CH01.
The notebooks are then organized as follows: ch01_attention_mechanism_variations.ipynb, where ch01 indicates the chapter
and attention_mechanism_variations what is done in the notebook.
├── LICENSE
├── README.md <- The top-level README for developers using this project.
├── CH01 <- Per chapter folder with Jupyter notebooks.
├── [name].ipynb <- Jupyter notebooks with naming as mentioned above.
├── CH02 <- Per chapter folder with Jupyter notebooks.
... <- Same structure for all chapters.
├── utils <- Custom classes and functions and utility functions.
├── resources <- Some miscellaneous resources.
Every notebook can be opened and run on Google Colab directly from the links below. Just click the Open In Colab badge next to the notebook you want to run.
| Notebook | Colab |
|---|---|
| Chain-of-Thought (CoT) | |
| Tree-of-Thought (ToT) | |
| ReAct | |
| Human-in-the-Loop (HITL) | |
| Hierarchical Agent Teams | |
| Swarms |
| Notebook | Colab |
|---|---|
| A2A + MCP Governed | |
| MCP Server with Composio | |
| LangGraph + E2B Sandbox | |
| Programmatic Tool Calling (Monty) |
| Notebook | Colab |
|---|---|
| AgentVista | |
| External Evaluation Pipelines (Langfuse) | |
| External Evaluation Pipelines (LangSmith) | |
| RULER Trace Answer Ranking (LangSmith) |
| Notebook | Colab |
|---|---|
| Agent Cost Estimator by Topology | |
| Memoizing Swarm Research Engine | |
| Memory Footprint, Throughput & GPU Requirements |
58 followers · starred Nov 2025
634 followers · starred Aug 2026
236 followers · starred May 2026
156 followers · starred Aug 2026