Abstract
The Hitchhiker's Guide to Agentic AI is a comprehensive practitioner's reference for building autonomous AI systems. The book covers the full stack from first principles to production deployment, organized around a central thesis: building great agentic systems requires understanding every layer of the pipeline, not just one. The book opens with the LLM substrate -- transformer architecture, GPU systems, training and fine-tuning (SFT,LoRA, MoE), model compression, and inference optimization -- treated as essential foundations rather than the primary focus. It then develops the alignment and reasoning layer: reinforcement learning from human feedback (RLHF), PPO, DPO and its variants, GRPO, reward modeling, and RL for large reasoning models including chain-of-thought and test-time scaling. The second half is devoted to agentic AI proper. Topics include agentic training and trajectory-based RL, retrieval-augmented generation (RAG and Agentic RAG), memory systems (in-context, external, episodic, and semantic), agent harness design and context management, and a taxonomy of agent design patterns. Inter-agent coordination is covered in depth: the Model Context Protocol (MCP), agent skills and tool use, the Agent-to-Agent (A2A) communication protocol, and multi-agent architectures spanning centralized, decentralized, and hierarchical topologies. The book concludes with agent development frameworks, agentic UI design, evaluation methodology for agentic tasks, and production deployment. Each chapter pairs rigorous theoretical foundations with implementation guidance, code examples, and references to the primary literature.
Chinese Translation
《代理人工智能的指南》是一本全面的实践者参考书,旨在构建自主人工智能系统。该书涵盖了从基本原理到生产部署的完整技术栈,围绕一个中心论点组织:构建优秀的代理系统需要理解管道的每一层,而不仅仅是其中一层。书中首先介绍了大型语言模型(LLM)基础——变换器架构、GPU系统、训练与微调(SFT、LoRA、MoE)、模型压缩和推理优化,这些被视为基本基础,而非主要关注点。接着发展了对齐与推理层:人类反馈强化学习(RLHF)、PPO、DPO及其变体、GRPO、奖励建模,以及针对大型推理模型的强化学习,包括思维链和测试时扩展。第二部分专注于代理人工智能的核心内容。主题包括代理训练和基于轨迹的强化学习、检索增强生成(RAG和代理RAG)、记忆系统(上下文、外部、情节和语义)、代理工具设计和上下文管理,以及代理设计模式的分类。书中深入探讨了代理间协调:模型上下文协议(MCP)、代理技能与工具使用、代理间(A2A)通信协议,以及涵盖集中式、分散式和层级拓扑的多代理架构。最后,书中讨论了代理开发框架、代理用户界面设计、代理任务的评估方法以及生产部署。每一章都将严谨的理论基础与实施指导、代码示例和主要文献参考相结合。