
Build an AI Agent (From Scratch)
Agents that reason, plan, and act autonomously
by Jungjun Hur
Have a question? Ask on WhatsApp or Message on Messenger
- Pay after we confirm your order by phone.
- Delivery charge confirmed before you pay. Store pickup in Nilkhet is free.
- Read our delivery, return and refund policy.
Call 01963 822422 / 01817 506044 for help with your order
- ISBN-13
- 978-1633434615
- Publisher
- Manning
- Edition
- 1st Edition
- Format
- Paperback
- Condition
- New
Contact us for paper details and condition photos.
Build an AI Agent (From Scratch): Agents That Reason, Plan, and Act Autonomously by Jungjun Hur is a hands-on guide that teaches you how AI agents really work by building one yourself, step by step. Instead of relying on a framework that hides the details, you learn the core ideas behind agents and write the key parts in code, so you understand how an agent reasons, plans, uses tools, and takes action on its own.
AI agents are one of the fastest-growing areas in modern AI, but many developers use them without knowing what happens inside. This book removes the mystery. It starts with the basic building blocks and gradually adds more capability, until you have a working agent that can handle multi-step tasks. Along the way, you gain the understanding you need to debug, improve, and adapt agents for your own projects.
Topics covered in this book:
- What AI agents are and how they differ from standard chatbots and simple LLM applications
- The core agent loop: observing, reasoning, planning, and acting
- Working with large language models as the reasoning engine of an agent
- Prompting techniques for agents, including structured outputs and step-by-step reasoning
- Giving agents tools: function calling, API access, and connecting to external systems
- Planning and task decomposition, so agents can break big goals into smaller steps
- Memory and context management for multi-step and long-running tasks
- Building agent workflows and handling errors, retries, and unexpected results
- Evaluating and testing agent behavior to improve reliability
- Safety, guardrails, and keeping autonomous agents under control
- Building complete, practical agents with clear code you can run and extend
Who is this book for?
- Software developers and AI engineers who want to build agent-based applications
- Python programmers who have used LLM APIs and want to understand agents in depth
- Machine learning engineers and data scientists exploring agentic AI
- Students and self-learners who learn best by building things from scratch
- Technical leads and product teams evaluating how agents can automate real work
- Developers who prefer to understand the fundamentals before choosing a framework
Why do so many readers choose this book over other AI agent books?
- It teaches by building from scratch, so you understand every part of your agent.
- It focuses on the fundamentals that stay useful even as frameworks and tools change.
- It covers the full cycle of an agent: reasoning, planning, tool use, memory, and action.
- It uses clear, practical code examples that you can run, modify, and reuse.
- It balances concepts with implementation, making advanced ideas easy to follow.
- It prepares you to build reliable agents, not just impressive demos.
Key topics: AI agents, build AI agent, agentic AI, LLM agents, reasoning, planning, tool use, function calling, memory, autonomous agents, Python, and LLM applications.
If you want to truly understand AI agents and build one that can reason, plan, and act on its own, Build an AI Agent (From Scratch) is an excellent choice. It gives you the foundation and the confidence to create your own intelligent systems.


