Share E-Book

Build an AI Agent (From Scratch) - MEAP Version 3 (Jungjun Hur, Younghee Song)(Z-Library)

Author Jungjun Hur, Younghee Song

AI
Language English

Build a working AI agent that can reason, plan, and execute multi-step tasks! LLM-powered AI agents are the next leap in applied AI, capable of reasoning and collaboration to achieve even complex, multi-step goals. Using new protocols like MCP and A2A, agents can use software tools, retrieve relevant knowledge, and adapt to feedback. This book guides you step by step in creating an AI agent from the ground up, with clear, detailed explanations you can follow to build your own custom assistants! In Build an AI Agent (From Scratch) you will learn how to: Implement a ReAct (Thought → Action → Observation) loop Use MCP to integrate tools calls into your agent’s workflow Agentic RAG for relevant responses Create memory modules that store facts, context, and evolving goals Enable agents to plan, reflect, and self-correct Build specialized agents, including a code execution agent Design multi-agent systems In Build an AI Agent (From Scratch), bestselling author Jungjun Hur and AI expert Younghee Song guide you through creating a complete research assistant agent framework. You’ll learn how agents function under the hood—all without hidden abstractions, black boxes, or framework lock-in. You will implement each piece as you develop a mental model of how agents really work. about the reader For Python developers and AI practitioners. All examples run on a standard laptop.

Format EPUB
Size 7.2 MB
109
Views
0
Downloads
0.00
Total Donations

AI Guide

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Full assistant
AI guide
# Build an AI Agent (From Scratch) - Reading Guide ## 【One-Line Pitch】 A hands-on, framework-free guide to building LLM-powered AI agents from the ground up—perfect for Python developers who want to truly understand how agents work under the hood rather than relying on black-box abstractions. ## 【Book Arc】 - **Opening (~0%–9%)**: Introduces the agent landscape, defines what makes an agent (LLM + tools + loop), and explains why building from scratch matters for debugging and troubleshooting real-world agent failures. - **Early (~9%–28%)**: Covers LLM fundamentals, the seven levels of agency, and the critical distinction between workflows (developer-defined flows) and agents (LLM-directed flows), including patterns like single calls, chains, and routers. - **Early–Middle (~28%–47%)**: Explores when agents are actually necessary (task complexity, value, error cost), introduces the GAIA benchmark as a training ground, and establishes context engineering as the discipline that determines agent success. - **Middle (~47%–53%)**: Begins the practical implementation journey, setting up the core ReAct loop pattern (Thought → Action → Observation) that will be built upon throughout the book. - **Late (~53%–100%)**: Progresses through advanced capabilities—tool integration via MCP, agentic RAG, memory modules, planning and reflection, code execution agents, and multi-agent coordination—before covering production deployment concerns like evaluation and monitoring. ## 【Key Takeaways】 - **Agents = LLM + tools + loop** (Early): The core definition is simple—an LLM brain that decides, external tools that act, and a loop that repeats until the goal is achieved. This mental model underpins everything else in the book. - **Workflows vs. agents is a spectrum, not a binary** (Early): Seven levels of agency exist between fully developer-controlled flows and fully autonomous agents. The pragmatic question isn't "which approach?" but "where does agent behavior justify its cost?" - **Building from scratch is about debugging** (Opening): Framework lock-in hides failure points. Understanding each component internally—whether the LLM misread context or a tool returned unexpected results—is essential for diagnosing agent failures. - **Not every task needs an LLM, and not every LLM task needs an agent** (Middle): Evaluate task complexity, value, and error cost before choosing an approach. Simple, predictable tasks are better served by deterministic code or workflows. - **GAIA provides the ideal training ground** (Middle): The benchmark's clear answers enable fast feedback loops, and its web-search-heavy problems require no domain expertise—making it perfect for practicing the observe-analyze-improve cycle. - **Context engineering, not prompting, determines success** (Middle): The distinction between prompts (user input) and context (everything the LLM receives) is fundamental. How you engineer that context shapes whether an agent succeeds or fails. - **Agent development is an iterative cycle** (Middle): The core practice is identifying failures and reducing them through repeated cycles of observation, analysis, and improvement—not one-shot perfection. ## 【Reading Tips】 - **Deep-read Chapter 1** (~0%–34%): The workflow vs. agent distinction and the seven levels of agency are conceptual foundations you'll reference throughout. Don't skim this—it shapes all architectural decisions later. - **Skim the agent landscape survey** (~4%–9%): The overview of personal, customer-facing, and specialized agents is useful context but not critical to implementation. Move quickly through this section. - **Pay special attention to the GAIA discussion** (~44%–47%): Understanding why the authors chose this benchmark and how they use it to measure progress will help you track your own learning as you build. - **Treat the decision frameworks as checklists** (~34%–44%): The criteria for "does this need an LLM?" and "does this need an agent?" are practical tools you'll reuse in your own projects. Consider writing them down. - **Note that this is a MEAP (early access) version**: The excerpts cover primarily the foundational chapters. Later chapters on MCP integration, memory, planning, and multi-agent systems are mentioned but not detailed in this sample. ## 【Coverage Limits】 This guide is based on excerpts covering roughly the first half of the book (through Chapter 1 and into early implementation). Detailed content on MCP tool integration, agentic RAG, memory modules, planning/reflection, code agents, multi-agent systems, and production deployment is not covered in the available material. ##

Passage locations

Excerpt 1
k, you don’t need to be an expert in AI or machine learning. If you are comfortable with the basics of Python—things like writing simple functions and classe...
View in text
Excerpt 2
epresentative example of an LLM agent is the research agent. When a user asks, "Summarize the 2024 Nobel Physics winners' research," the agent gathers inform...
View in text
Excerpt 3
nd if so, specifies which tool to call with what parameters. What transforms tool use into an agent is the loop. Rather than making a single tool call and st...
View in text
Excerpt 4
t is "identifying when it fails and reducing those failures." When answers are clear, you can immediately verify whether you're heading in the right directio...
View in text

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
Back to List