Kick off your book project in 2 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Tuesday, June 16, 2026. Learn more…

Leanpub Header

Skip to main content

The Agentic AI book

From Language Models to Multi-Agent Systems

This book is 100% completeLast updated on 2026-06-13
+10% in the last 30 days

It's never been easier to build an AI agent — and never been harder to make one that actually works. This book takes you from language model foundations to production-ready multi-agent systems with the depth to predict failure before it happens, engineer graceful degradation over catastrophic failure, and take absolute architectural ownership.

Get the paperback from amazon.

Minimum price

$23.00

$45.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

Buying multiple copies for your team? See below for a discount!

PDF
EPUB
About

About

About the Book

⭐ Bestseller in Deep Learning and Generative AI ⭐

The barrier to building autonomous AI systems has completely collapsed, but the chasm in true engineering understanding has never been deeper.
The demo survives the conference room. The system does not survive the week.

The Agentic AI Book is the definitive engineering guide for practitioners who want to move past fragile "prompt-and-pray" scripts, understand exactly why agents work and fail, and architect autonomous systems that hold up under real-world production conditions. This book takes you from language model foundations to production-ready multi-agent systems, with enough depth to predict failure modes before they surface, design systems that degrade gracefully rather than catastrophically, and diagnose exactly what broke and why when they do.

📖 Inside the Book

Each section builds from first principles to complex orchestration, covering not just what these systems do, but how they work architecturally.

- Build intuition that decodes any model — past, present, or future. Trace the complete problem-solving arc from bag-of-words to self-attention, understanding why each breakthrough was necessary and what failure it fixed. Master the Three-Layer Framework as a universal evaluation lens, and understand scaling laws deeply enough to explain why a properly overtrained smaller model can outperform a frontier giant.

- Diagnose the failures that surface-level AI education never names. Move past "the model hallucinated" to isolate specific, actionable failure modes: the Reversal Curse, Flat Latency, and Underspecification in language systems; the Modality Gap and Perception-Reasoning Dissociation in multimodal ones. Coverage extends to the full VLM stack.

- Adapt models when prompting reaches its limits. Master RAG architectures, the RAG Triad, LoRA and QLoRA, and the alignment frontier — including DPO and GRPO, powering today's leading reasoning models.

- Defeat context rot and design bulletproof tools. Navigate the Six Levels of Agentic Autonomy, apply Poka-Yoke principles to the Agent-Computer Interface, and build three-tier memory systems with Just-In-Time context loading and attention budget management.

- Orchestrate multi-agent systems without paying the complexity tax. Use DAG-based task graphs and the Agent-to-Agent Interface, know when not to scale, and prevent deadlocks and runaway costs with conflict-resolution protocols and semantic compression.

- Take absolute engineering ownership of production deployment. Replace hope with reliability engineering. Implement evaluation frameworks, build observability stacks, enforce guardrail architectures, debug agentic race conditions, and deploy with quantization and speculative sampling. Design kill switch protocols before you need them.

👤 Who This Book Is For

This book is for serious practitioners who aren't strangers to code or machine learning fundamentals. If you occupy an ML-adjacent role — software engineer, data scientist, or technical leader — or you already have a foundational understanding of machine learning and want to bridge the gap to mastering LLMs and autonomous agents, this book was written for you. Not to impress you. To equip you.

💡 Why This Book

Most material on Generative and Agentic AI falls into one of three traps: surface-level infotainment engineered for quick consumption, technically fragmented and disconnected from first principles, or written for readers who already hold a PhD. This book is none of those things. It is a rigorous, framework-agnostic Design-to-Deployment lifecycle built by an author who has spent two decades watching production systems fail in ways that demos never predict.

Context engineering, memory tiering, reasoning-action loops, dynamic task decomposition, multi-agent orchestration: these are not hype. They are the physics of this field. Everything else is the weather of the week.

📚 Complete & Available Now

The book is complete and available now in PDF and EPUB formats, with print editions on Amazon.

  • Chapter 1: The AI Landscape ✓
  • Chapter 2: Language Models and Multimodal Intelligence ✓
  • Chapter 3: Building with Large Language Models ✓
  • Chapter 4: Agent Building Blocks ✓
  • Chapter 5: Multi-Agent Architectures & Design Patterns ✓
  • Chapter 6: Production-Ready Agentic AI ✓

💎 Get the Book

Digital Access: PDF and EPUB editions available now (you set the price), with lifetime access to all updates and bonus content.

Exclusive Bonus Content: Includes access to the companion code repository and real-world case studies.

Print Edition: Hardcover and paperback are available on Amazon.

Ready to move beyond demo-grade agents?

Team Discounts

Team Discounts

Get a team discount on this book!

  • Up to 3 members

    Minimum price
    $60.00
    Suggested price
    $135
  • Up to 5 members

    Minimum price
    $90.00
    Suggested price
    $225
  • Up to 10 members

    Minimum price
    $150
    Suggested price
    $450
  • Up to 25 members

    Minimum price
    $350
    Suggested price
    $1125

Author

About the Author

Dr. Ryan Rad

Dr. Ryan Rad is an AI researcher, professor, and industry advisor with over 15 years shaping how artificial intelligence is built, taught, and deployed. He holds faculty positions at Northeastern University and the University of British Columbia, where he has designed curricula and graduate programs in Machine Learning, Computer Vision, Generative AI, and Data Science—reaching thousands of students across six universities and online. His industry work spans research, engineering, and leadership at startups and tech giants including Microsoft, scaling AI solutions across 40 countries for Fortune 500 companies. A sought-after speaker with 50+ international talks and tens of top-tier peer-reviewed publications, Dr. Rad's research focuses on resource-efficient generative AI for edge deployment. He is the author of The Agentic AI Book—distilling years of building, teaching, and deploying AI into actionable insights—and shares AI perspectives on his YouTube channel.

Launch

Launch Video

Contents

Table of Contents

Table of Contents

 Chapter 1: The AI Landscape 

From Rule-Based Systems to Intelligent Learning

  • 1.1 From Rule-Based to Learning-Based Systems: The Paradigm Shift
  • 1.2 Understanding AI Terminology: A Three-Layer Framework
  • 1.3 Layer 1 - Objectives: Discriminative vs. Generative AI
  • 1.4 Layer 2 - Training Methods: How AI Systems Learn
  • 1.5 Layer 3 - Architecture: From ML Models to Deep Learning
 Chapter 2: Language Models and Multimodal Intelligence 

The Foundation of Intelligent Agents

  • 2.1 What is a Language Model?
  • 2.2 Large Language Models (LLMs): Architecture and Capabilities
  • 2.3 Vision-Language Models (VLMs) and Multimodal Intelligence
 Chapter 3: Building with Large Language Models 

Techniques for Control, Adaptation, and Reliability

  • 3.1 Capabilities and Limitations
  • 3.2 Prompt Engineering
  • 3.3 Retrieval-Augmented Generation (RAG)
  • 3.4 Fine-tuning and RLHF
 Chapter 4: Agent Building Blocks 

Core Components and Cognitive Architecture

  • 4.1 Defining AI Agents and the Spectrum of Agency .
  • 4.2 The ReAct Pattern: Reasoning and Acting in Harmony .
  • 4.3 Context Engineering: Memory Systems .
  • 4.4 Tool Use and Function Calling .
 Chapter 5: Multi-Agent Architectures and Design Patterns 

From Single Agents to Multi-Agent Ecosystems

  • 5.1 Do You Actually Need Multi-Agent? .
  • 5.2 Architectural Patterns: From Workflows to Swarms .
  • 5.3 Planning Systems: Goal Decomposition and Task Hierarchies .
  • 5.4 Communication, Coordination, and State Management .
 Chapter 6: Production-Ready Agentic AI 

D2D: From Design to Deployment

  • 6.1 Frameworks, Implementation, and Best Practices .
  • 6.2 Testing, Debugging, and Reliability Engineering .
  • 6.3 Deployment, Monitoring, and Performance .
  • 6.4 Security, Safety, Ethics, and Governance .

Get the free Community Edition

You can get the free Community Edition in PDF or EPUB just by sharing your name and email address with the author, or you can just click this link to read a shorter sample online...

 

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub