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

$13.99

$21.99

You pay

$21.99

Author earns

$17.59
$

...Or Buy With Credits!

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

About

About the Book

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. It's the definitive guide to understanding the core components of AI agents and building ones 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.

What's inside:

  • Foundations — From n-grams to transformers, from language models to vision-language models. Attention mechanisms, tokenization, embeddings—not just what they do, but how they work architecturally.
  • Building with LLMs — Prompt engineering, retrieval-augmented generation, and fine-tuning. When each works, when they backfire, how to combine them. Includes chunking strategies, vector databases, and evaluation methods.
  • Agent Architecture — Memory systems (short-term, long-term, episodic), tool use, and reasoning patterns: ReAct, chain-of-thought, reflection, and planning loops.
  • Multi-Agent Systems — Orchestration patterns, communication protocols, state management, and the architectural decisions that prevent deadlocks and runaway costs.
  • Production Reality — Debugging non-deterministic behavior, preventing prompt injections, guardrails, monitoring, observability, and scaling from prototype to enterprise.

Chapters:

  1. The AI Landscape ✓
  2. Language Models and Multimodal Intelligence ✓
  3. Building with Large Language Models ✓
  4. Agent Building Blocks (Mid April)
  5. Multi-Agent Architectures and Design Patterns (Mid May)
  6. Production-Ready Agentic AI (Mid June)

What sets this book apart:

  • Foundation First. From n-grams to transformers, each chapter builds from first principles—you'll understand not just what works, but why.
  • Battle-Tested. Learn from real failures: why multi-agent systems deadlock, when RAG backfires, why demo agents crash in production.
  • Beyond the Hype. No AGI promises—just honest assessments and practical patterns that work today.

Why this book:

Papers are fragmented. Tutorials optimize for clicks, not depth. Documentation assumes you already know what you're doing. This book connects the dots—giving you the mental models to evaluate new tools, debug strange failures, and make architectural decisions with confidence.

Why now:

Agentic AI is crossing from research into production. Companies are hiring. Systems are shipping. The practitioners who understand foundations—not just frameworks—will build what lasts. The window to develop that understanding is now.

Who this is for:

Software engineers, ML practitioners, and technical leaders who want to move beyond demo-grade agents. Comfortable with Python, some ML exposure—no PhD required.

What You Get:

  • Instant access to Chapters 1-3 (55% of the book)
  • New chapters delivered monthly through June 2026 - Downloadable PDF and ePub formats
  • Lifetime updates: includes improvements, errata, and exclusive bonus content (code repository and case studies)
  • The complete final edition at no extra cost


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

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 Memory Systems Architecture
  • 4.4 Tool Use and Function Calling
Chapter 5: Multi-Agent Architectures and Design Patterns

From Single Agents to Multi-Agent Ecosystems

  • 5.1 Architectural Patterns and Design Decisions
  • 5.2 Planning Systems: Goal Decomposition and Task Hierarchies
  • 5.3 Communication, Coordination, and State Management
  • 5.4 Evaluation and Metrics
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

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