Build an AI Agent

Build an AI Agent

,
Fiction · 2026 · 336 pages
Build an AI Agent
,
Fiction · 2026 · 336 pages
For you
Readers
Add to list
Send
Share

A fascinating step-by-step journey through the design, development, and deployment of a system of autonomous AI agents. Authors Jungjun Hur and Younghee Song guide you concept by concept as you build a sophisticated research agent in Python, designed to solve complex, multi-step tasks from the rigorous GAIA (General AI Assistants) benchmark. By seeing the construction of the system end to end, you'll understand how the underlying mechanics work unobstructed by any existing black-box libraries and frameworks. Early on, you'll establish the foundational blueprint for your agent by distinguishing rigid developer-defined workflows from true, LLM-directed agent loops. You'll learn how to manage stateless APIs, enforce structured outputs using Pydantic, and implement dynamic tool-calling. Crucially, the book centers on "Context Engineering"—the discipline of systematically structuring information to prevent context rot and the "Lost in the Middle" effect. After you build the basic agent, you'll progressively expand its capabilities by integrating custom web search, local file system exploration, and vector-based RAG. You'll also enable the agent to recall past failures and adapt through hierarchical context optimization and long-term memory, using the Model Context Protocol (MCP) to connect to external tools and servers. Later chapters push into advanced territory: explicit planning and procedural reflection to prevent hallucination and looping, the Code-Act paradigm for sandboxed cloud execution, and scaling up to a collaborative multi-agent architecture using the A2A protocol. The book culminates in a rigorous observability and evaluation pipeline with an automated LLM-as-a-judge system, powered by OpenTelemetry, to trace, grade, and refine the agent's outputs.

Published2026
Length336 pages
GenreFiction