How to use this book
Who this book is for
Building AI Agents (AGE) is a 1st dan black belt course. It examines whether one can design long-running, multi-step agents, equip them with tools, memory, evaluation, and observability, and operate them while controlling failures and costs. There are two primary groups of readers: engineers who directly design and operate agent systems, and leads of AI platform teams supporting multiple agent products.
The recommended experience is API utilization skills at the red belt (AI Feature Development) level and 6 months or more of agent operation experience. It is written assuming knowledge of message structures, the basic flow of tool calls, and the relationship between tokens and costs. However, terms used for the first time in this book have their meanings explained where they first appear, and an everyday analogy is provided for each difficult concept. Even readers with slightly less experience can follow along if they read in order.
Model pre-training is not covered. The focus of this book is on what architecture to place existing models in, what tools and memory to provide them with, what metrics to measure them by, and where to make them stop. While framework and product names constantly change, these design decisions endure.
How this book is organized
The five chapters of the main text correspond one-to-one with the five exam domains. Chapter 1 covers how to choose an architecture; Chapter 2, how to connect with the outside world using tools and MCP; Chapter 3, how to maintain memory and state across long tasks; Chapter 4, how to measure quality and find failures; and Chapter 5, how to tie costs, failures, and risks into operational policies. Although arranged so that decisions in earlier chapters lead into challenges in later chapters, each chapter is written to be understood even when read independently.
Every chapter consists of the same ten sections.
| Section | What it does |
|---|---|
| Learning objectives | What you should be able to do upon completing the chapter |
| Introduction | A short story showing why this chapter is needed, and a chapter map |
| Key concepts | Main text explaining all knowledge and skills within the exam scope without omission |
| Going deeper | Trade-offs, edge cases, and failure analysis |
| At work | The process of a hypothetical organization moving from problem to decision, including rejected alternatives |
| Common mistakes | Plausible but incorrect ideas and the reasons why |
| Summary at a Glance | A summary to review the day before the exam |
| Check the Official Documentation | Official pages for checking detailed specifications |
| Self-check | Questions for self-assessment. Explanations are in Appendix B |
| Hands-on tasks | Hands-on tasks taking 30–60 minutes |
Appendix A is a glossary, Appendix B contains explanations for the Self-check, Appendix C provides tips for exam day, and Appendix D lists the official documents cited in this book.
The exam at a glance
| Category | Number of questions | Time | Standard |
|---|---|---|---|
| Dan exam | 40 questions | 70 minutes | Pass with a raw score of 75 or higher |
| Free practice set | 10 questions | 25 minutes | Score notification only |
| Chapter | Domain | Weight |
|---|---|---|
| Chapter 1 | Agent Architecture | 20% |
| Chapter 2 | Tools and MCP | 20% |
| Chapter 3 | Context, Memory, and State | 20% |
| Chapter 4 | Evaluation and Observability | 20% |
| Chapter 5 | Operations, Costs, and Safety | 20% |
The exam seeks to verify five capabilities: selecting workflow and agent architectures suited to task characteristics; designing tools and MCP servers with secure permission boundaries; managing context, memory, and state for long-running execution; catching quality regressions through evaluation and observability; and turning failure, cost, and human approval checkpoints into operational policies. Because all five domains carry equal weight, leaving any weak chapter makes it difficult to pass.
What the questions look like
The exam paper resembles the College Scholastic Ability Test (CSAT) paper, and all questions are answered by selecting one number from ① through ⑤. There are five question formats, which appear on the exam paper as follows:
| Format | Appearance on the exam paper |
|---|---|
| Single choice | One of five options |
| Multiple selection | Options are placed in a <Box> (A, B, C...), and numbered choices are combinations of a set number of items |
| Statement evaluation | Statements are placed in a <Box>, and numbered choices are combinations of statements determined to be 'True'. Both the judgment and its reasoning must be correct for a statement to be True |
| Ordering | Steps (A) through (E), and five candidate sequences |
| Matching | Five candidate pairs between left items and right targets. One on the right remains unpaired |
Point values follow cognitive levels. Questions that recognize a concept or apply a single principle are worth 2 points, while analytical questions that weigh two or more constraints are worth 3 points. Most questions in this course are analytical. Organizations, data scales, and goals within the questions are given specifically, and they are designed so that if a single bolded condition changes, the correct answer changes as well. Therefore, choosing an answer based solely on keywords easily leads to an incorrect choice. This is also why the 'At work' section in this book always shows even the 'rejected alternatives'. The raw score is calculated on a 100-point scale by dividing earned points by total points, and grades are based on absolute evaluation from Grades 1 to 9, divided at boundaries of 90, 80, 70, 60, 50, 40, 30, and 20 points.
Six-week study plan
The schedule is based on 1 hour per day, 5 days per week. Hands-on tasks may be completed together on weekends.
| Week | Reading | Hands-on work |
|---|---|---|
| Week 1 | How to use this book, Chapter 1 | Redraw one operational feature as a pattern and compare it with a simpler architecture |
| Week 2 | Chapter 2 | Redesign and measure one frequently failing tool, and create a permission table |
| Week 3 | Chapter 3 | Attach progress files and checkpoints, and test resumption after a forced interruption |
| Week 4 | Chapter 4 | Create an evaluation set from 20 actual failures and locate failure stages using traces |
| Week 5 | Chapter 5 | Insert risk tables, stopping conditions, and approval checkpoints into the execution path and test them |
| Week 6 | Appendices, Comprehensive review | Retake Self-checks, take the free practice set, and organize review notes |
On the last day of each week, try explaining that chapter's 'Summary at a Glance' aloud. Any line where you get stuck while explaining is where you should re-read the following week.
Key point
The Self-checks are created separately so they do not overlap with exam questions. Rather than memorizing the correct answers to the Self-checks, try applying the principles relied upon in the Appendix B explanations to unfamiliar situations. The exam tests the ability to apply principles to unfamiliar combinations of constraints.
Notation and sources
Vendor-specific facts in this book (feature names, parameters, default values, limits) were verified in respective official documentation on October 20, 2026. Sources include Anthropic engineering articles and developer documentation, the Model Context Protocol (MCP) specification, OpenAI Agents SDK documentation and OpenAI guides, Google Agent Development Kit (ADK) documentation, and official OWASP, NIST, and AWS materials. MCP follows the 2026-07-28 specification, the latest version as of the verification date. Differences from previous editions are noted where relevant.
Several conventions have been observed:
- Product, API, and parameter names retain their original notation (
max_turns,isError,tools/list). - Content that cannot be confirmed through vendor documentation is not described as a specific vendor's feature, but explained solely through general principles.
- Model version numbers and prices are used only when strictly necessary for judgment, and are mostly left as "check the official documentation." These values change frequently.
- Organizations, individuals, and figures appearing in scenarios are entirely fictional. They bear no relationship to actual companies or clients.
- Normative terms in framework documentation (MUST, SHOULD) are translated as "must" and "is recommended to", with the original terms placed in parentheses when necessary.
Vendor documentation changes faster than this book. If the book and documentation differ while studying, the documentation is correct. 'Check the Official Documentation' in each chapter and Appendix D serve as the starting point for that verification.