Engineering the Agentic Stack
The Definitive Guide to Building AI Agents
A comprehensive engineering manual for mastering the architecture of intelligent systems—from LLM fundamentals to production-ready multi-agent orchestration.
Table of Contents
Part 1 — Getting Started
- 1
Introduction
FREEWhy this tutorial exists, the AI-Native mindset, and what you'll learn.
- 2
Agent Fundamentals
FREEBuild your first agent in 10 minutes, then understand what makes it tick.
- 3
LLM & Agent Fundamentals
FREEUnderstanding the raw material: tokens, context windows, reasoning modes, and model limitations.
Part 2 — Core Skills
- 4
Prompt Engineering
FREEThe art and science of programming models through natural language.
- 5
Structured Output
FREETaming non-determinism with JSON Schema, Pydantic, and constrained decoding.
- 6
Tools & Function Calling
FREETurning LLMs from text generators into decision makers that can execute code.
- 7
Model Context Protocol (MCP)
FREEThe universal standard for connecting AI agents to tools, data, and services.
- 8
RAG (Retrieval-Augmented Generation)
FREEGiving your agent access to external knowledge beyond the training data.
- 9
Memory & Persistence
FREEBuilding agents that remember across conversations and sessions.
Part 3 — Agent Architecture
- 10
Building Agents
FREELLMs that dynamically direct their own processes and tool usage.
- 11
Workflows
FREEOrchestrating LLMs through predefined code paths for predictable, consistent results.
- 12
Agentic Systems
FREECombining agents, workflows, and humans into production-ready systems.
- 13
Context Engineering
FREEMaximizing the signal-to-noise ratio in the context window.
Part 4 — Production
- 14
Safety & Guardrails
FREEProtecting against prompt injection, indirect attacks, and unintended agent behaviors.
- 15
Observability & Evaluation
FREETesting, debugging, and measuring what matters in probabilistic systems.
- 16
Deployment Strategies
FREEVersioning, gradual rollouts, cost guardrails, permissions, sandboxing, and model migration for production agents.
Part 5 — Advanced Topics
Want full access to all chapters and series?
Get LM Frontier Pro