# AI for Beginners: Use Agents With Confidence

- 发布方：Real Python；作者：Sarah Jane Ross
- 形式：视频 · en
- 原始资源：[https://realpython.com/courses/ai-agents-101/](<https://realpython.com/courses/ai-agents-101/>)
- 本站页面：[https://oplearnx.com/resources/res\_8mfjapfksna8](<https://oplearnx.com/resources/res_8mfjapfksna8>)
- 学习主题：人工智能 / AI Agent；人工智能 / AI Agent / 工具调用与工作流；人工智能 / AI 通识 / 全景认识与基本概念
- 内容状态：状态待核验
- 原始发布时间：2026-10-26
- 本站首次收录：2026-10-29 01:02

## 能学到什么

理解 AI Agent 的模型与执行框架（harness）分工、上下文与记忆的作用、权限与隐私风险，并能更好地提问、管理 token 与对话、封装可复用技能、核查 Agent 输出。

- 说清 AI 应用中负责思考的模型与负责执行动作的 harness 的分工，并解释由此产生的误解
- 说明上下文与记忆如何决定模型的回答，并据此组织交给模型的信息
- 在让 Agent 干活前检查它在哪运行、能接触什么、会发出什么数据、谁会看到
- 识别隐藏指令（提示注入）类风险并采取基本防护
- 用有效提问、控制 token、适时重开对话与使用子 Agent 提升结果
- 把常用任务封装成可复用的技能（skills），并了解如何自建技能
- 用固定习惯和四个问题核查 Agent 的错误结果，并对最终结果负责

## 适合我吗

- 适合：适合想了解 AI Agent 实际怎么工作、如何在日常工作中安全有效地使用 Agent 的初学者与 Python 学习者。
- 需要留意：不适合想学习如何从零编写 Agent 框架代码的开发者，课程偏使用与理解而非编程实现。

## 前置条件与费用

- 知识前置：原站未说明硬性先修要求；标题面向初学者，具备基本 Python 使用经验会有帮助。
- 软件、账号与硬件：能使用浏览器观看视频；原站未说明需要自备的账号或其他资源。
- 内容费用：费用待核验：节选只有课程介绍、包含项与课节目录，看不到视频正文，网页也未写明课程免费或需付费；页面的 Join/Sign-In 与“Unlock All Content”为站点会员入口。
- 实践费用：实践费用待核验：原站未说明课程练习是否需要自备 API 密钥或付费服务。
- 转载与修改：按材料分别核对，见本页“来源核验与开课实跑”；仓库许可不自动适用于教材或视频。

## 准备工具

- 浏览器：观看课程视频与使用交互式练习

## 学习指南

开课检查：提示词由本站整理，尚未按提示词实际完成开课检查。

### 开课提示词

```text
请帮我把「AI for Beginners: Use Agents With Confidence」的学习环境一次准备好，让我之后只需要按顺序学习和做练习。
开始前先问我：课程放在哪个目录（等我给出完整路径），确认我的操作系统和已有工具。确认前不要创建文件或安装软件。

课程入口：https://realpython.com/courses/ai-agents-101/
我的系统：Windows。如果实际不符，先调整方案。
本次路线：浏览器或在线环境。只准备这条路线需要的工具；只读路线不安装运行环境、不配置模型密钥。
练习：课程在交互式应用与导师会话中练习，最后阶段要求找出并修复一个 AI 助手配置中的五个问题；网页未说明练习是否需要额外付费工具。
课节（官方顺序）：
1. 1. The Parts of an AI System 03:31：https://realpython.com/videos/agents-101-parts-ai-system/
2. 2. Models and Harnesses 03:41：https://realpython.com/videos/agents-101-models-harnesses/
3. 3. What a Model Knows 04:13：https://realpython.com/videos/agents-101-what-model-knows/
4. 4. The Model's Limits 02:43：https://realpython.com/lessons/agents-101-sealed-room/
5. 5. Context and Memory 02:40：https://realpython.com/lessons/agents-101-context-memory/
6. 6. The Agent Loop 02:38：https://realpython.com/lessons/agents-101-agent-loop/
7. 7. Request, Chat, and Agent 02:20：https://realpython.com/lessons/agents-101-chat-api-agent/
8. 1. Where Is Your Agent Working? 03:53：https://realpython.com/lessons/agents-101-where-agent-works/
9. 2. What It Can Touch, and Who It Acts As 02:54：https://realpython.com/lessons/agents-101-what-agent-can-touch/
10. 3. What Gets Sent, and Who Sees It 02:29：https://realpython.com/lessons/agents-101-what-gets-sent/
11. 4. Hidden Instructions: Prompt Injection 03:00：https://realpython.com/lessons/agents-101-prompt-injection/
12. 1. Asking Well 03:32：https://realpython.com/lessons/agents-101-asking-well/
13. 2. Usage, Limits, and Tokens 02:50：https://realpython.com/lessons/agents-101-usage-limits-tokens/
14. 3. Long Conversations and Starting Fresh 03:00：https://realpython.com/lessons/agents-101-long-conversations/
15. 4. Subagents 02:46：https://realpython.com/lessons/agents-101-helper-agents/
16. 5. Agents That Keep Working When You Leave 02:34：https://realpython.com/lessons/agents-101-agents-keep-working/
17. 1. Skills 03:20：https://realpython.com/lessons/agents-101-skills/
18. 2. Making Your Own Skills 03:04：https://realpython.com/lessons/agents-101-making-skills/
19. 3. APIs and Other Models 02:32：https://realpython.com/lessons/agents-101-apis-other-models/
20. 1. When the Result Is Wrong: Four Questions 02:10：https://realpython.com/lessons/agents-101-four-questions/
21. 2. Habits for Checking Results 02:51：https://realpython.com/lessons/agents-101-habits-checking-results/
22. 3. You're Still the Thinker 03:12：https://realpython.com/lessons/agents-101-still-the-thinker/
23. 1. Words You'll Hear 01:46：https://realpython.com/lessons/agents-101-words-youll-hear/
24. 2. AI for Beginners: Use Agents With Confidence (Quiz) 13:30：https://realpython.com/lessons/agents-101-quiz/
25. 3. Wrap-Up and Two Exits 01:58：https://realpython.com/lessons/agents-101-wrap-up/

1. 环境
- 浏览器即可，无需安装环境
- 安装前先列出要装的软件和命令，等我同意；已装好的直接复用。
2. 材料
- 官方课程页面：只记录链接 https://realpython.com/courses/ai-agents-101/
3. 目录（最外层放在我确认的位置）
ai-agents-101-real-python/
├── README.md        # 课程入口、课节清单、每次怎么开始
├── progress.md      # 每课：读讲义 / 做练习 / 记笔记
├── questions.md     # 待解决的问题
├── check-env.md     # 环境自检，按 README 操作
├── data/            # 练习用到的样例数据
└── lessons/         # 每课一个文件夹：notes.md + exercises/
    ├── 01-01-1-the-parts-of-an/
    ├── 02-02-2-models-and-harnesses-03/
    ├── 03-03-3-what-a-model-knows/
    ├── 04-04-4-the-model-s-limits/
    ├── 05-05-5-context-and-memory-02/
    ├── 06-06-6-the-agent-loop-02/
    ├── 07-07-7-request-chat-and-agent/
    ├── 08-08-1-where-is-your-agent/
    ├── 09-09-2-what-it-can-touch/
    ├── 10-10-3-what-gets-sent-and/
    ├── 11-11-4-hidden-instructions-prompt-injection/
    ├── 12-12-1-asking-well-03-32/
    ├── 13-13-2-usage-limits-and-tokens/
    ├── 14-14-3-long-conversations-and-starting/
    ├── 15-15-4-subagents-02-46/
    ├── 16-16-5-agents-that-keep-working/
    ├── 17-17-1-skills-03-20/
    ├── 18-18-2-making-your-own-skills/
    ├── 19-19-3-apis-and-other-models/
    ├── 20-20-1-when-the-result-is/
    ├── 21-21-2-habits-for-checking-results/
    ├── 22-22-3-you-re-still-the/
    ├── 23-23-1-words-you-ll-hear/
    ├── 24-24-2-ai-for-beginners-use/
    └── 25-25-3-wrap-up-and-two/
- 每课文件夹里建 notes.md（顶部写本课官方链接）和 exercises/；课节文件夹名称与上面一致。
- 已有课程目录先检查并复用；不覆盖笔记、作业或 progress.md，不重置已有进度。尚未发布的课节保留入口并注明未发布，不能代写讲义或虚构练习。
4. 自检
- 创建 check-env.md，逐项检查并记录“通过/未通过”：
- 按浏览器或在线 notebook 清单检查，不为自检安装本机终端。
  - 打开 https://realpython.com/courses/ai-agents-101/ 确认目录列出六个模块共 25 节课  → 页面显示“25 Lessons / 1h 23m”与完整课节列表
  - 打开第 1 节视频链接  → 能播放“The Parts of an AI System”并看到字幕
- 标注为人工检查、浏览器操作或 notebook 单元的项目，按相应方式操作，不直接粘贴进 shell；脚本只包含当前系统可执行的命令。
- 仅在当前路线需要、对应材料已获准保存、工具已安装时运行该项；需要登录、付费或尚未开放的材料记为“需要我操作/未验证”，不能伪报通过。不执行会调用付费 API、提交作业或修改云服务的检查。
- 运行一次，把结果给我看；未通过的项目说明原因和修复办法。
5. 学习计划
- README.md：课程入口、课节清单（带链接）、每次学习怎么开始（使用“每课提示词”）。
- progress.md：每课三项勾选——读讲义、做练习、记笔记。
6. 最后分三部分汇报：已完成、需要我自己操作的、尚未验证的。

边界：
- 需要管理员权限、会产生费用或需要填写密钥的操作，先告诉我原因，等我同意。密钥由我在本机配置，不发到聊天，不写进笔记或版本库；原项目需要 .env 时确认已被 Git 忽略。
- 不替我写练习或作业答案，也不替我提交。我卡住时只给提示；我明确要求时才给解答。
- 只下载许可允许个人保存的材料；其余只放链接。不把未运行的命令说成成功。
如果你不能直接操作我的文件系统，请在确认目录后给出适用于我的系统、可直接执行的命令和需要保存的文件内容。
```

### 每课提示词

```text
继续学习「AI for Beginners: Use Agents With Confidence」。课程目录是 ai-agents-101-real-python/（不知道完整路径就先问我）。
1. 读 progress.md，找到下一课；如果我指定了第几课，就准备那一课。
2. 打开这一课的官方页面和本地讲义，列出本课练习要用的工具、文件和样例数据。缺少的先告诉我，等我同意再安装或下载。
3. 在 lessons/ 对应的课节文件夹里准备好练习：exercises/ 里给每道题建一个文件，写上题号和题目原文链接，不写答案；已有文件保留，样例数据放到 data/。拿不到官方题目或起始代码时记录限制，不编造替代品。
4. 按 README 运行开课时生成的自检脚本或在线检查清单，并检查本课新增工具能否正常使用。
5. 告诉我：本课先读哪几节、从哪道练习开始、大约需要多久。我学完后，帮我在 progress.md 勾选并把问题整理到 questions.md。

边界：
- 需要管理员权限、会产生费用或需要填写密钥的操作，先告诉我原因，等我同意。密钥由我在本机配置，不发到聊天，不写进笔记或版本库；原项目需要 .env 时确认已被 Git 忽略。
- 不替我写练习或作业答案，也不替我提交。我卡住时只给提示；我明确要求时才给解答。
- 只下载许可允许个人保存的材料；其余只放链接。不把未运行的命令说成成功。
```

### 课节（官方顺序）

1. [1. The Parts of an AI System 03:31](<https://realpython.com/videos/agents-101-parts-ai-system/>)
2. [2. Models and Harnesses 03:41](<https://realpython.com/videos/agents-101-models-harnesses/>)
3. [3. What a Model Knows 04:13](<https://realpython.com/videos/agents-101-what-model-knows/>)
4. [4. The Model's Limits 02:43](<https://realpython.com/lessons/agents-101-sealed-room/>)
5. [5. Context and Memory 02:40](<https://realpython.com/lessons/agents-101-context-memory/>)
6. [6. The Agent Loop 02:38](<https://realpython.com/lessons/agents-101-agent-loop/>)
7. [7. Request, Chat, and Agent 02:20](<https://realpython.com/lessons/agents-101-chat-api-agent/>)
8. [1. Where Is Your Agent Working? 03:53](<https://realpython.com/lessons/agents-101-where-agent-works/>)
9. [2. What It Can Touch, and Who It Acts As 02:54](<https://realpython.com/lessons/agents-101-what-agent-can-touch/>)
10. [3. What Gets Sent, and Who Sees It 02:29](<https://realpython.com/lessons/agents-101-what-gets-sent/>)
11. [4. Hidden Instructions: Prompt Injection 03:00](<https://realpython.com/lessons/agents-101-prompt-injection/>)
12. [1. Asking Well 03:32](<https://realpython.com/lessons/agents-101-asking-well/>)
13. [2. Usage, Limits, and Tokens 02:50](<https://realpython.com/lessons/agents-101-usage-limits-tokens/>)
14. [3. Long Conversations and Starting Fresh 03:00](<https://realpython.com/lessons/agents-101-long-conversations/>)
15. [4. Subagents 02:46](<https://realpython.com/lessons/agents-101-helper-agents/>)
16. [5. Agents That Keep Working When You Leave 02:34](<https://realpython.com/lessons/agents-101-agents-keep-working/>)
17. [1. Skills 03:20](<https://realpython.com/lessons/agents-101-skills/>)
18. [2. Making Your Own Skills 03:04](<https://realpython.com/lessons/agents-101-making-skills/>)
19. [3. APIs and Other Models 02:32](<https://realpython.com/lessons/agents-101-apis-other-models/>)
20. [1. When the Result Is Wrong: Four Questions 02:10](<https://realpython.com/lessons/agents-101-four-questions/>)
21. [2. Habits for Checking Results 02:51](<https://realpython.com/lessons/agents-101-habits-checking-results/>)
22. [3. You're Still the Thinker 03:12](<https://realpython.com/lessons/agents-101-still-the-thinker/>)
23. [1. Words You'll Hear 01:46](<https://realpython.com/lessons/agents-101-words-youll-hear/>)
24. [2. AI for Beginners: Use Agents With Confidence \(Quiz\) 13:30](<https://realpython.com/lessons/agents-101-quiz/>)
25. [3. Wrap-Up and Two Exits 01:58](<https://realpython.com/lessons/agents-101-wrap-up/>)

## 指南参考

- [课程主页](<https://realpython.com/courses/ai-agents-101/>)

## 来源、许可与验证记录

- **开课提示词未完整验证，需要自备账号或资源**：Mentor AI 导师会话与专家问答入口（网页列出，非必需）
- 转载与修改 · 课程页面与材料：未找到明确许可。页面仅写“© 2012–2026 DevCademy Media Inc. DBA Real Python. All rights reserved.”，未给出任何许可名称 [依据](<https://realpython.com/courses/ai-agents-101/>)
- 链接检查：1/1 个可以访问

## 来源与推荐

- 编辑整理收录

---
来源：LearnMap · 学径（https://oplearnx.com）
