Plus, receive recommendations and exclusive offers on all of your favorite books and authors from Simon & Schuster.
Build an AI Agent (From Scratch)
Agents that reason, plan, and act autonomously
Part of From Scratch
By Jungjun Hur and Younghee Song
Published by Manning
Distributed by Simon & Schuster
LIST PRICE $59.99
PRICE MAY VARY BY RETAILER
Free shipping when you spend $40. Terms apply.
Buy from Other Retailers
Table of Contents
About The Book
Get the eBook free when you register your print book at Manning.
"A practical guide for anyone who wants to move beyond demos and create agentic systems with confidence.”
—Elliot Kim, Coupang Inc.
This book is a fascinating step-by-step journey through design, development, and deployment of a system of autonomous AI agents. Authors Jungjun Hur and Younghee Song guide you concept-by-concept as you build a sophisticated research agent in Python, designed to solve complex, multi-step tasks from the rigorous GAIA (General AI Assistants) benchmark. By seeing the construction of the system end to end, you’ll understand how the underlying mechanics unobstructed by any existing blackbox libraries and frameworks.
This book includes ten meaty chapters and a handy appendix (about how to get an OpenAI API key). The technical explanations throughout the book are made crystal clear by the use of many helpful diagrams. As one reviewer remarked, even for someone building their first agent, “nothing feels like magic or a mystery after the first few chapters!”
Early on, you’ll establish the foundational blueprint for your agent by distinguishing rigid developer-defined workflows from true, LLM-directed agent loops. You’ll learn how to manage stateless APIs, enforce structured outputs using Pydantic, and implement dynamic tool-calling. Crucially, the book centers on “Context Engineering”—the discipline of systematically structuring information to prevent context rot and the “Lost in the Middle” effect. One technical reviewer particularly appreciated that core concepts like agent loops, context engineering, and evaluation are introduced with clear motivation and practical examples rather than as isolated abstractions.
After you build the basic agent, you’ll progressively expand its capabilities by integrating custom web search, local file system exploration, and vector-based RAG to navigate complex data. You’ll also enable the agent to recall past failures and adapt state persistence through hierarchical context optimization and longterm memory. Along the way, you’ll see how to use the Model Context Protocol (MCP) to seamlessly connect your agent to external tools and servers.
Later chapters push into advanced territory. To prevent the agent from hallucinating or looping during complex tasks, you’ll implement explicit planning and procedural reflection. Then, you’ll explore the Code-Act paradigm, empowering the agent with sandboxed cloud environments to securely write scripts, run CLI commands, and compose tools dynamically. Finally, you’ll up-scale your project from a single agent into a collaborative, multi-agent architecture using the A2A protocol, where specialized tasks are routed to isolated sub-agents to maximize token efficiency.
Because highly autonomous agents carry real-world risks, the book culminates in a rigorous observability and evaluation pipeline. You’ll implement an automated LLM-as-a-judge system—powered by Open Telemetry—to trace, grade, and continuously refine the agent’s trajectory and outputs. By building every layer from the ground up, the book ensures that readers are left with a deep, practical understanding of AI mechanics.
What's inside
• End-to-end construction of a framework-free, autonomous AI agent in Python
• Advanced practical integrations including MCP, vector-based RAG, long-term memory, and sandboxed code execution
• Multi-agent orchestration and automated LLM-as-a-judge evaluation pipelines
About the reader
For Python developers with some knowledge of machine learning who want to build and deeply understand agentic systems without relying on abstract libraries.
About the author
Jungjun Hur is an independent AI and data engineer who specializes in building agentic systems for e-commerce. He is the author of Practical AI Application Development Using LLMs. Younghee Song is an AI consultant at PricewaterhouseCoopers (PwC). Both authors live and work in South Korea.
Table of Contents
Part 1
1 What is an AI agent?
2 The brain of AI agents: LLMs
3 Enabling actions: Tool use
4 Implementing a basic ReAct agent
Part 2
5 Building knowledge bases with RAG
6 Adding memory to your agent
7 Planning and reflection for complex tasks
8 Empowering agents with code execution
9 Orchestrating multi-agent systems
10 Evaluating agents
A OpenAI API Key
"A practical guide for anyone who wants to move beyond demos and create agentic systems with confidence.”
—Elliot Kim, Coupang Inc.
This book is a fascinating step-by-step journey through design, development, and deployment of a system of autonomous AI agents. Authors Jungjun Hur and Younghee Song guide you concept-by-concept as you build a sophisticated research agent in Python, designed to solve complex, multi-step tasks from the rigorous GAIA (General AI Assistants) benchmark. By seeing the construction of the system end to end, you’ll understand how the underlying mechanics unobstructed by any existing blackbox libraries and frameworks.
This book includes ten meaty chapters and a handy appendix (about how to get an OpenAI API key). The technical explanations throughout the book are made crystal clear by the use of many helpful diagrams. As one reviewer remarked, even for someone building their first agent, “nothing feels like magic or a mystery after the first few chapters!”
Early on, you’ll establish the foundational blueprint for your agent by distinguishing rigid developer-defined workflows from true, LLM-directed agent loops. You’ll learn how to manage stateless APIs, enforce structured outputs using Pydantic, and implement dynamic tool-calling. Crucially, the book centers on “Context Engineering”—the discipline of systematically structuring information to prevent context rot and the “Lost in the Middle” effect. One technical reviewer particularly appreciated that core concepts like agent loops, context engineering, and evaluation are introduced with clear motivation and practical examples rather than as isolated abstractions.
After you build the basic agent, you’ll progressively expand its capabilities by integrating custom web search, local file system exploration, and vector-based RAG to navigate complex data. You’ll also enable the agent to recall past failures and adapt state persistence through hierarchical context optimization and longterm memory. Along the way, you’ll see how to use the Model Context Protocol (MCP) to seamlessly connect your agent to external tools and servers.
Later chapters push into advanced territory. To prevent the agent from hallucinating or looping during complex tasks, you’ll implement explicit planning and procedural reflection. Then, you’ll explore the Code-Act paradigm, empowering the agent with sandboxed cloud environments to securely write scripts, run CLI commands, and compose tools dynamically. Finally, you’ll up-scale your project from a single agent into a collaborative, multi-agent architecture using the A2A protocol, where specialized tasks are routed to isolated sub-agents to maximize token efficiency.
Because highly autonomous agents carry real-world risks, the book culminates in a rigorous observability and evaluation pipeline. You’ll implement an automated LLM-as-a-judge system—powered by Open Telemetry—to trace, grade, and continuously refine the agent’s trajectory and outputs. By building every layer from the ground up, the book ensures that readers are left with a deep, practical understanding of AI mechanics.
What's inside
• End-to-end construction of a framework-free, autonomous AI agent in Python
• Advanced practical integrations including MCP, vector-based RAG, long-term memory, and sandboxed code execution
• Multi-agent orchestration and automated LLM-as-a-judge evaluation pipelines
About the reader
For Python developers with some knowledge of machine learning who want to build and deeply understand agentic systems without relying on abstract libraries.
About the author
Jungjun Hur is an independent AI and data engineer who specializes in building agentic systems for e-commerce. He is the author of Practical AI Application Development Using LLMs. Younghee Song is an AI consultant at PricewaterhouseCoopers (PwC). Both authors live and work in South Korea.
Table of Contents
Part 1
1 What is an AI agent?
2 The brain of AI agents: LLMs
3 Enabling actions: Tool use
4 Implementing a basic ReAct agent
Part 2
5 Building knowledge bases with RAG
6 Adding memory to your agent
7 Planning and reflection for complex tasks
8 Empowering agents with code execution
9 Orchestrating multi-agent systems
10 Evaluating agents
A OpenAI API Key
Product Details
- Publisher: Manning (August 18, 2026)
- Length: 336 pages
- ISBN13: 9781633434615
Browse Related Books
Resources and Downloads
High Resolution Images
-
Book Cover Image (jpg): Build an AI Agent (From Scratch)
Trade Paperback 9781633434615











