从零开始构建智能体 (陈思州等) (z-library.sk, 1lib.sk, z-lib.sk)
Artificial Intelligence
No Description
8
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
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.
Passage locations
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
Recommended for You
{{#thumbnailUrl}}
{{/thumbnailUrl}}
{{^thumbnailUrl}}
{{/thumbnailUrl}}
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