Leanpub Header

Skip to main content

The Agentic AI book

From Language Models to Multi-Agent Systems

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 understand what you're building and why it fails.

Minimum price

$18.00

$31.00

You pay

$31.00

Author earns

$24.80
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.

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

PDF
About

About

About the Book

⭐ Top-3 Bestseller in Deep Learning and Generative AI every single week since launch. ⭐

The Paradox of AI Today

It’s never been easier to build an agent—and never been harder to understand why it works, why it fails, or how to make it production-ready. The barrier to entry has collapsed; the barrier to mastery has never been higher.

The Agentic AI Book bridges that gap. This is the definitive guide to understanding the core components of AI agents and building systems that actually work in the real world. While others show you how to build agents in low-code environments and hope for the best, this book reveals why agents fail and how to fix them.

📖 Inside the Book

Not surface-level tutorials. Not "vibes-based" prompting. Each section builds from first principles to complex orchestration, covering not just what these systems do, but how they work architecturally.

  • Foundations: Master the Three-Layer Framework (Architecture, Training, Objective) to deconstruct any model, from n-grams to GPT-4o. Understand the death of Hard Logic, the rise of Learned Intuition, and the Scaling Laws that define the physics of modern AI.
  • LLMs & VLMs: Diagnose the Reversal Curse, the Modality Gap, and Perception-Reasoning Dissociation in vision models. Learn why Inference-Optimal Overtraining means a smaller model can outperform a giant.
  • Adaptation & Reliability: When prompts fail, renovate the weights. Master chunking strategies, the RAG Triad, LoRA/QLoRA, and the alignment frontier, DPO and GRPO, the secret sauce behind today's top reasoning models.
  • Agent Architecture: Define autonomy through Control Flow with the 6 Levels of Agentic Autonomy. Apply Poka-Yoke principles to tool design via the ACI, and fight Context Rot with JIT Context and Attention Budget management.
  • Multi-Agent Systems: Orchestrate agent societies using DAG-based task graphs and the AAI. Know when not to scale (the Complexity Tax), slash costs with Semantic Compression, and prevent deadlocks and runaway costs with Conflict Resolution Protocols.
  • Production Reality (D2D): Replace hope with Reliability Engineering. Master Quantization and Speculative Sampling for efficient deployment. Implement guardrails, observability, and Security & Governance; and debug Agentic Race Conditions before they reach your users.

🚀 Progress & Roadmap

The book is currently 77% complete. By joining now, you get immediate access to the core foundations and can influence the final chapters.

  • 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 (5.1-5.2 ✓ - 5.3-5.4: Coming Mid-April)
  • Chapter 6: Production-Ready Agentic AI (Coming Mid-May)
  • Final Digital Edition: June 2026

💎 Join as a Founding Member

Instead of a traditional "Early Bird" discount, for a limited-time I am inviting you to join as a Founding Member.

  • Value-Based Pricing: To reward early supporters, the price grows with the book. While the final book will retail at (~$50), you can currently lock in the 77% version for as low as $18.
  • Lifetime Access: Receive new chapters monthly, bonus content, and the final completed digital version in July at no extra cost.
  • Exclusive Bonus Content: Includes access to the private code repository and real-world case studies.
  • Amazon Print Discount: All Founding Members will receive a special discount code for the physical print version when it launches (est. June 2026).

Ready to move beyond demo-grade agents to production-ready systems?

Time is ticking! ⏳ The book is nearing completion this May, and this founding offer is only available for a limited time. Secure your lifetime access now before the price increases. 🕒

Learn more at book.ryanrad.org

Team Discounts

Team Discounts

Get a team discount on this book!

  • Up to 3 members

    Minimum price
    $44.00
    Suggested price
    $74.00
  • Up to 5 members

    Minimum price
    $68.00
    Suggested price
    $119.00
  • Up to 10 members

    Minimum price
    $120.00
    Suggested price
    $209.00
  • Up to 15 members

    Minimum price
    $170.00
    Suggested price
    $299.00
  • Up to 25 members

    Minimum price
    $255.00
    Suggested price
    $449.00

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.

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.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

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 $14 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