First Edition · 2026
Book cover: title Building Agentic AI above a teal node network rising through violet concentric rings to an amber radiant apex, with the Hands-On AI Science Series gold badge bottom-right and author names at the bottom

Building Agentic AI From Goals to Autonomous Systems

The theory and practice of autonomous AI: from goal-directed reasoning and planning to multi-agent coordination and real-world deployment.

Alexander (Sasha) Apartsin, Ph.D. & Yehudit Aperstein, Ph.D.

An agent is a system that perceives its environment, decides what to do, acts, and learns from the outcome. That loop runs whether the policy is a planning algorithm, a learned reward function, or a language model. Where Building Language AI asks how models work, this book asks what they do: pursue goals, use tools, collaborate with other agents, and operate autonomously over long horizons. The treatment is complete: decision theory and classical planning first (the mathematics every agent is built on), then reinforcement learning and deep RL (agents that improve from reward alone), then LLM-powered agents and agentic RAG, and finally multi-agent systems, embodied deployment, safety, and governance. Each idea is built from first principles and shown in production code.

4 parts 39 chapters 5 appendices & a capstone First Edition, 2026

The Four-Part Arc

Each part stands on the one before it; together they span the full spectrum from a single reactive loop to autonomous organizations.

How This Book Teaches

Five habits, kept in every chapter from the first agent loop to the last autonomous system.

Worked Pipelines

Every chapter builds complete, runnable systems (a grid-world agent, a PPO policy, a multi-tool LLM agent end to end), never isolated snippets.

Library Shortcuts

After each from-scratch build, a shortcut callout shows the same task in a few lines of LangGraph, Stable-Baselines3, or the Anthropic SDK, and names exactly what the library handles for you.

A Callout System

Pitfalls, math asides, benchmark tables, and cross-references are typeset as distinct boxes, so you can read deep or skim fast and never miss a trap.

Exercises & Labs

Each chapter closes with hands-on exercises that extend its worked pipelines, from quick checks to small projects you can put in a portfolio.

Classical Ideas Return Learned

The utility function becomes the reward signal, the search tree becomes chain-of-thought, the knowledge base becomes agentic RAG. One story, told twice.

The Hands-On AI Science Series

Building Agentic AI is one of nine connected books, each a deep, build-it-yourself guide to a major field of AI.

Hands-On AI Science is a series of in-depth guides to the major fields of artificial intelligence. Every book goes deep into the theory, models, and internals, covering the classical foundations and the most recent ideas, then shows you how to build each one in Python with the modern libraries and tools that get the job done. The writing stays plain and light (illustrations, analogies, mental models, worked examples, and a little fun) without trading away rigor or coverage. Each volume is self-contained and complete enough to anchor a full course on its subject.

Building Language AI

From Tokens to Agents.

Read online · Kindle

Building Vision AI

From Pixels to Generative Models.

Read online · Kindle

Building Temporal AI

From Forecasting to Sequential Decision Making.

Read online · Kindle

Building Scalable AI

From Big Data Algorithms to Distributed Intelligence.

Read online · Kindle

Building Embodied AI

From Perception to Autonomous Action.

Read online

Building Agentic AI

From Goals to Autonomous Systems.

You are here

Building Discovery AI

From Vibe Coding to Autonomous Science.

Read online

Building Neuromorphic AI

From Spiking Neurons to Edge Intelligence.

Read online

Building Quantum AI

From Qubits to Quantum Machine Learning.

Read online

Read the full About the Hands-On AI Science Series note.