Agent课程进阶英文3–5 周★ 4.5k↑+134 章可站内阅读
AI Agents From Scratch
从零搭建 Agent:强调可运行最小实现
pguso · 4,477 stars · 8/8 04:44 → 8/8 14:57(10 小时)
偏手写的 Agent from-scratch 教程:强调可运行的最小实现(循环、工具、记忆、规划)。适合在框架之外先建立底层直觉,再决定是否以及如何使用 Lang*/官方 SDK。
为什么收录 · 补齐 Agent 书架上「只教框架、不教循环」的空洞。与官方入门课和中文原理书配套最好。
Agent 手写工具调用记忆规划最小实现From Scratch
这本书强在哪
- 偏实现向:先建立底层直觉,再谈框架
- 文档 + examples 结构,便于对照最小可行代码
- 与微软入门课、李博杰书形成「入门 → 原理 → 手写」三段式
- 适合面试前重建 Agent 心智模型
建议怎么学
- 01关掉框架,先跟文档实现最小循环
- 02工具与记忆各写测试用例(失败、超时、重复调用)
- 03实现稳定后再引入一个框架重写同一问题,比较抽象层
- 04原理对照读《深入理解 AI Agent》对应章节
适合谁 / 前置
- Python 熟练
- 已会调用 LLM API
- 最好先上过一门 Agent 入门课(如微软 Agents)
学完得到什么
- 能从零写出 Agent 主循环(感知→推理→行动)
- 理解工具与记忆的最小实现,而不是框架魔法
- 具备把最小实现扩展到主流框架的迁移能力
- 能用 examples 对照自己的设计取舍
目录
来自站内阅读器镜像;点击章节直接阅读
文档4 章
examples30 章
- 02Code Explanation: intro.jsmarkdown
- 03Concept: Basic LLM Interactionmarkdown
- 04Code Explanation: OpenAI Intromarkdown
- 05Concepts: Understanding OpenAI APIsmarkdown
- 06Code Explanation: translation.jsmarkdown
- 07Concept: System Prompts & Agent Specializationmarkdown
- 08Code Explanation: think.jsmarkdown
- 09Concept: Reasoning & Problem-Solving Agentsmarkdown
- 10Code Explanation: batch.jsmarkdown
- 11Concept: Parallel Processing & Performance Optimizationmarkdown
- 12Code Explanation: coding.jsmarkdown
- 13Concept: Streaming & Response Controlmarkdown
- 14Code Explanation: simple-agent.jsmarkdown
- 15Concept: Function Calling & Tool Usemarkdown
- 16Code Explanation: simple-agent-with-memory.jsmarkdown
- 17Concept: Persistent Memory & State Managementmarkdown
- 18Code Explanation: react-agent.jsmarkdown
- 19Concept: ReAct Pattern for AI Agentsmarkdown
- 20Code Explanation: aot-agent.jsmarkdown
- 21Concept: Atom of Thought (AoT) Pattern for AI Agentsmarkdown
- 22Code Explanation: error-handling.jsmarkdown
- 23Concept: Comprehensive error handling for agentsmarkdown
- 24Code explanation: `tree-of-thought.js`markdown
- 25Tree of Thought: Motivation analysis of a personmarkdown
- 26Code explanation: `graph-of-thought.js`markdown
- 27Graph of Thought: Motivation analysis of a personmarkdown
- 28Code explanation: `chain-of-thought.js`markdown
- 29Chain of Thought: Return decision (fraud vs legitimate)markdown
- 30Code explanation: `tool-routing-embeddings.js`markdown
- 31Tool routing with embeddings and exemplarsmarkdown
策展亮点章节
Agent 循环工具调用记忆规划评测与 examples
仓库数据
Stars4,477
Forks656
主要语言JavaScript
更新2026/8/8
ai-agentseducationalfunction-callingllmllm-agent
62e4ac7b(main)· 许可证 MIT License (MIT)。 上游更新后可通过同步脚本刷新。