AI Agents & Harnesses Foundations: Building from ReAct Loops to Long Horizon Agent Harnesses with LangChain and LangGraph
暫譯: AI 代理與 Harness 基礎:使用 LangChain 與 LangGraph,從 ReAct 迴圈打造長時程代理 Harness

Marco, Eden

相關主題

商品描述

Go beyond simple prompts and build production-grade AI agents with LangChain and LangGraph, from ReAct reasoning loops to tool-calling, RAG, and context engineering.

Key Features:

- Build and debug AI agents using LangChain, LangGraph, and LangSmith

- Implement ReAct reasoning loops, tool calling, and structured outputs

- Apply context engineering, MCP integration, and RAG to real-world agent workflows

Book Description:

AI Agents & Harnesses Foundations shows you how to build the AI agents and agent harnesses powering modern agentic AI applications. You'll start with LangChain's core primitives, including models, messages, prompts, tools, and structured outputs, and use them to build increasingly capable agents. From there, you'll go under the hood to understand the agent loop, tool-calling LLMs, state, memory, context engineering, orchestration, and long-horizon agents. Using LangChain, LangGraph, and LangSmith, you'll see how modern agent systems are built, orchestrated, traced, and observed. By the end, you'll understand modern agent harness architecture and have the practical foundations to build, debug, secure, and evolve reliable production AI agents.

What You Will Learn:

- Build AI agents with LangChain primitives, tools, and structured outputs

- Understand the agent loop: call the model, run tools, feed results back, repeat

- Build stateful agents with LangGraph and apply context engineering

- Trace and debug agent behavior with LangSmith

- Design reliable agent harnesses for long-horizon execution

- Secure and improve production AI agent systems with memory, persistence, and guardrails

Who this book is for:

This book is for software developers and engineers, AI engineers, data scientists, researchers, and technical builders who want to understand how modern AI agents work and how to build them with LangChain and LangGraph. You should be comfortable with Python, Git, APIs, and basic debugging. No machine learning background is required, but the book assumes some programming experience and focuses on practical implementation rather than introductory coding.

Table of Contents

- Understanding LangChain Foundations

- Building Your First Agent

- Understanding Agents Under the Hood

- Building Agent Loop Without a Framework

- ReAct From Scratch: Building an Agent Loop Without Function Calling

- Prompt and Context Engineering

- Agent Harnesses and Deep Agents

商品描述(中文翻譯)

超越簡單的提示詞,使用 LangChain 和 LangGraph 建立可用於正式環境的 AI agents,涵蓋從 ReAct 推理迴圈、工具呼叫、RAG 到 context engineering。

主要特色:

- 使用 LangChain、LangGraph 和 LangSmith 建置及除錯 AI agents
- 實作 ReAct 推理迴圈、工具呼叫和結構化輸出
- 將 context engineering、MCP 整合和 RAG 應用於真實世界的 agent 工作流程

書籍介紹:

《AI Agents & Harnesses Foundations》將教你如何建置支援現代 agentic AI 應用程式的 AI agents 與 agent harnesses。你將從 LangChain 的核心基礎元件開始,包括 models、messages、prompts、tools 和 structured outputs,並運用這些元件建置功能日益強大的 agents。接著,本書將深入探討 agent loop、可呼叫工具的 LLM、狀態、記憶體、context engineering、協調流程,以及長期執行(long-horizon)的 agents。

透過 LangChain、LangGraph 和 LangSmith,你將了解現代 agent 系統如何建置、協調、追蹤和觀測。讀完本書後,你將理解現代 agent harness 的架構,並具備建置、除錯、保護及持續演進可靠正式環境 AI agents 所需的實務基礎。

你將學到:

- 使用 LangChain 基礎元件、tools 和 structured outputs 建置 AI agents
- 理解 agent loop:呼叫模型、執行工具、將結果回傳給模型,並重複此流程
- 使用 LangGraph 建置具狀態的 agents,並應用 context engineering
- 使用 LangSmith 追蹤及除錯 agent 行為
- 設計可支援長期執行的可靠 agent harnesses
- 透過記憶體、持久化和 guardrails,保護並改善正式環境中的 AI agent 系統

適合讀者:

本書適合想了解現代 AI agents 的運作方式,以及如何使用 LangChain 和 LangGraph 建置 agents 的軟體開發者與工程師、AI 工程師、資料科學家、研究人員及技術實作者。你應熟悉 Python、Git、API 和基本除錯技巧。本書不要求具備機器學習背景,但預設讀者擁有一定的程式設計經驗,並著重於實務實作,而非入門程式設計。

目錄:

- 認識 LangChain 基礎
- 建置你的第一個 agent
- 深入了解 agents 的內部運作
- 不使用框架建置 agent loop
- 從零開始實作 ReAct:不使用 Function Calling 建置 agent loop
- Prompt 與 Context Engineering
- Agent Harnesses 與 Deep Agents