
Build an AI Agent (From Scratch)
Author(s): Jungjun Hur (Author), Younghee Song (Author)
- Publisher: Manning
- Publication Date: August 25, 2026
- Language: English
- Print length: 375 pages
- ISBN-10: 1633434613
- ISBN-13: 9781633434615
Book Description
LLM-powered AI agents are the next leap in applied AI, capable of reasoning and collaboration to achieve even complex, multi-step goals. Using new protocols like MCP and A2A, agents can use software tools, retrieve relevant knowledge, and adapt to feedback. This book guides you step by step in creating an AI agent from the ground up, with clear, detailed explanations you can follow to build your own custom assistants!
In this book, bestselling author Jungjun Hurand AI expert Younghee Songguide you through creating a complete research assistant agent framework. You’ll learn how agents function under the hood—all without hidden abstractions, black boxes, or framework lock-in. You will implement each piece as you develop a mental model of how agents really work.
In Build an AI Agent (From Scratch) you will learn how to:
• Implement a ReAct (Thought → Action → Observation) loop
• Use MCP to integrate tools calls into your agent’s workflow
• Agentic RAG for relevant responses
• Create memory modules that store facts, context, and evolving goals
• Enable agents to plan, reflect, and self-correct
• Build specialized agents, including a code execution agent
• Design multi-agent systems
About the book
Build an AI Agent (From Scratch) is a step-by-step guide to creating a working AI agent, starting with the bare essentials and growing your AI into a full-featured, real-world system. You will connect your agent to powerful software tools, implement a reasoning loop, and then extend your agent with retrieval, memory, planning, reflection, and even multi-agent coordination. Along the way, you will work through production-grade code snippets, full prompts and configs, and “make it better” exercises that encourage you to extend and improve your system. By the final chapter, you will have built an end-to-end AI agent that you can use as a foundation for your own projects.
About the reader
For Python developers and AI practitioners. All examples run on a standard laptop.
About the author
Jungjun Huris an AI and data engineer with experience in e-commerce and AI industries, where he has built production-ready AI applications and LLM-powered features. He is the author of the bestselling book Practical AI Application Development Using LLMs.
Younghee Songis an AI consultant at PwC. She graduated from Hanyang University with a degree in Economics and Finance and holds a Master’s in Human Factors Engineering from Seoul National University.
Editorial Reviews
Editorial Reviews
About the Author
Younghee Songis an AI consultant at PwC. She graduated from Hanyang University with a degree in Economics and Finance and holds a Master’s in Human Factors Engineering from Seoul National University.
Brief contents
PART 1: BUILDING YOUR FIRST LLM AGENT1 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: DEVELOPING ADVANCED AGENT CAPABILITIES
5 Building knowledge bases with RAG
6 Adding memory to your agent
7 Planning and reflection for complex tasks
Wow! eBook


