Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: 陈思州等

Rating No ratings yet

No description

AI Reading Assistant

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

AI guide
【One-Line Pitch】 A hands-on, open-source guide that takes you from LLM user to agent builder—covering theory, classic paradigms, framework development, and real-world multi-agent projects. Ideal for developers, students, and self-learners with basic Python skills who want to design and implement AI-native agents, not just use low-code tools. 【Book Arc】 - **Opening (~0%–10%)**: Introduces the Hello-Agents project and its mission—bridging the gap between theory and practice in the "Agent era." It outlines the five-part structure (basics, building, advanced, case studies, capstone) and sets expectations for a hands-on learning journey. - **Early (~10%–23%)**: Lays the conceptual foundation—defines agents via the classic sense-act loop, contrasts traditional agent types (reflex, model-based, goal-based, utility-based, learning) with LLM-driven agents, and explains the PEAS framework for task environments. It also covers the history of AI paradigms (symbolic, sub-symbolic, neuro-symbolic) to contextualize modern agents. - **Early (~23%–32%)**: Dives into the core operating mechanism—the Agent Loop (perception, thought, action, observation) and the Thought-Action-Observation interaction protocol. A practical section walks through building a simple travel assistant with weather and attraction tools, using an OpenAI-compatible client. - **Middle (~39%–48%)**: Explores collaboration modes—agents as developer tools (e.g., GitHub Copilot, Cursor) versus autonomous collaborators (e.g., AutoGen, LangGraph). It clarifies the crucial difference between deterministic Workflows and goal-driven, self-directed Agents, using the travel assistant as a recurring example. - **Late (~48%–52%+)**: Begins the historical retrospective—tracing agent evolution from symbolic AI and the Physical Symbol System Hypothesis to expert systems, showing how each paradigm solved prior limitations while introducing new ones. This sets up the transition to learning-based and modern LLM agents. 【Key Takeaways】 - **Agents are defined by the sense-act-autonomy loop** (Early): An agent perceives its environment via sensors, acts via actuators, and makes autonomous decisions to achieve goals—a framework that applies from thermostats to LLM-powered assistants. - **LLM agents differ fundamentally from traditional ones** (Early): Unlike rule-based or utility-based agents, LLM agents use implicit world knowledge from pretraining to handle vague, high-level instructions through planning, tool use, and dynamic correction—shifting from "writing code" to "guiding a brain." - **The Agent Loop is the universal operating rhythm** (Early): Every agent runs a cycle of perception → thought (planning + tool selection) → action → observation. Structuring outputs as Thought/Action/Observation fields enables a parser to bridge LLM reasoning with external tool execution. - **PEAS helps you design task environments** (Early): Performance, Environment, Actuators, Sensors—this framework forces clarity on goals and constraints. Real LLM environments are partially observable, stochastic, multi-agent, and sequential, which directly shapes memory and exploration needs. - **Workflow ≠ Agent** (Middle): A workflow is a predefined, static flowchart (e.g., expense approval rules), while an agent is a goal-directed system that plans, reasons, and adapts dynamically—no hardcoded "if weather = sunny then recommend X" logic. - **Autonomous collaboration comes in distinct architectural patterns** (Middle): From single-agent loops (AgentGPT) to role-play dialogues (CAMEL), organizational workflows (MetaGPT, CrewAI), and state-graph control flows (LangGraph)—each pattern trades off flexibility, reliability, and complexity. - **Agent history is problem-driven evolution** (Late): Symbolic AI (PSSH, expert systems) offered transparency but hit the "knowledge acquisition bottleneck"; sub-symbolic AI learned from data but was a black box. Neuro-symbolic approaches, exemplified by LLM agents, aim to fuse both strengths. 【Reading Tips】 - **Skim the historical chapters (Ch. 2) if you're in a hurry**: The key insight is the "problem-driven" progression—each paradigm solves the last one's flaw. Focus on the final synthesis (neuro-symbolic) to understand why LLM agents look the way they do. - **Deep-read the practical sections (Ch. 1.3 and later hands-on chapters)**: The travel assistant example is the backbone of the book. Run the code, modify the tools, and trace the Thought-Action-Observation loop yourself—this is where the concepts click. - **Pay extra attention to the Workflow vs. Agent distinction**: It's a common point of confusion. Use the travel assistant example (dynamic planning) versus the expense-approval flowchart (fixed rules) as your mental model. - **Don't skip the PEAS analysis**: It may feel abstract, but it's the design template you'll reuse for every agent project. Practice applying it to your own use case before moving to advanced chapters. - **Expect code-heavy sections with API keys**: The excerpts show real code (e.g., Tavily, OpenAI client). Prepare your own API credentials and be ready to debug—the book explicitly encourages modifying code to learn. 【Coverage Limits】 This guide synthesizes content from the opening through the early-middle sections (~0–52%), covering fundamentals, the first practical agent, collaboration modes, and the start of agent history. Later chapters on advanced topics (memory, context engineering, protocols, RL training, evaluation) and comprehensive case studies (travel assistant, deep research, cyber town) are not covered here.
Excerpt 1
以 PR 的形式贡献到社区精选。如果是独立于正文的内容,也可以投稿至 Extra-Chapter! 期待你的第一次贡献! 社区精选 内容总结 00-共创毕业设计 社区共创毕业设计项目 01-Agent面试题总结 Agent 岗位相关面试问题 01-Agent面试题答案 相关面试问题答案 02-上下文工程内容补充...
View in text
Excerpt 2
专用自动化工具转向构建能自主解决问题的系统。核心不再是编写代码,而是引导一个通用的“大脑”去规划、行动和学习。 1.1.3 智能体的类型 继上文回顾智能体的演进后,本节将从三个互补的维度对智能体进行分类。 (1) 基于内部决策架构的分类 第一种分类维度是依据智能体内部决策架构的复杂程度,这个视角在《Artific...
View in text
Excerpt 3
bleClient : """ 一个用于调用任何兼容OpenAI接口的LLM服务的客户端。 """ def __init__ ( self, model: str , api_key: str , base_url: str ): self .model...
View in text
Excerpt 4
在昆明湖上泛舟,欣赏美丽的皇家园林景色。” 在这个过程中,没有任何写死的 if天气=晴天 then 推荐颐和园 的规则。如果天气是“雨天”,Agent 会自主推理并推荐国家博物馆、首都博物馆等室内场所。 这种基于实时信息进行动态推理和决策的能力,正是 Agent 的核心价值所在。 1.4 本章小结 在本章中,我们...
View in text
Excerpt 5
ure you need {0}?" ], r'Why don\'t you (.*)\?' : [ "Do you really think I don't {0}?" , "Perhaps eventually I will {0...
View in text
Excerpt 6
现 [9] 。在这个过程中,AlphaGo(智能体)通过观察棋盘的当前布局(环境状态),决定下一步棋的落子位置(行动)。一局棋结束后,根据胜负结果,它会收到一个明确的信号:赢了就是正向奖励,输了则是负向奖励。通过数百万次这样的自我对弈,AlphaGo不断调整其内部策略,逐渐学会了在何种棋局下选择何种行动,最有可能...
View in text
Excerpt 7
imation,MLE) 来计算。这个术语听起来很复杂,但其思想非常直观:最可能出现的,就是我们在数据中看到次数最多的。例如,对于 Bigram 模型,我们想计算在词 $w_{i−1}$ 出现后,下一个词是 $w_i$ 的概率 $P(w_i∣w_{i−1})$。根据最大似然估计,这个概率可以通过简单的计数来估算:...
View in text
Excerpt 8
t Neural Network, RNN) 应运而生,其核心思想非常直观:为网络增加“记忆”能力 [2] 。 如图3.3所示,RNN 的设计引入了一个 隐藏状态 (hidden state) 向量,我们可以将其理解为网络的短期记忆。在处理序列的每一步,网络都会读取当前的输入词,并结合它上一刻的记忆(即上一个时间...
View in text
Tags
AI categories
Artificial IntelligenceProgrammingTechnology
Publish Year: 2026
Language: Chinese
File Format: EPUB
File Size: 21.1 MB