Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
- 已有稿件需要降低 AI 写作痕迹时,使用 `.agents/skills/humanizer-zh/`。
- Skill 只负责写作与改稿,不能覆盖本文件中的目录约束、事实核验、截图和敏感信息要求。

## 第 15 章飞书材料

- 第 15 章的飞书来源、章节对应关系与接入版本见 `docs/sources/chapter15-feishu.md`。
- 第 15 章正文绝大多数情况下沿用飞书原文的讲解逻辑、意思和措辞,只做目录编号、示例路径、图片引用等必要适配,不自行扩写背景或概念解释。
- 可以补充简短的跨章衔接,帮助读者联系前文。
- 按当前约定,仓库修改暂不写回飞书。从飞书吸收后续修改时,先比较差异,保留仓库的章节标题、构建 ID、图片路径和已核验修订;恢复写回以用户后续指示为准。

## 本地参考源码

- `deepseek-harness/` 是独立的上游源码 checkout,只用于查阅和验证。
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ DeepSeek Harness(简称 dsh)是一套由插件组装而成的 Agent Harness
| [第 13 章 让 dsh 通过自进化画出概念图](https://dshbook.penguin.ooo/chapter13/) | 通过多轮评分改进并复用绘画 Skill。 | [Demo](demo/chapter13-concept-art-evolution/) |
| **⚙️ 第三部分 拆解 dsh** | | |
| [第 14 章 Harness 的工作原理](https://dshbook.penguin.ooo/chapter14/) | 理解消息、会话、工具和上下文管理。 | |
| [第 15 章 dsh 的核心:Cordis](https://dshbook.penguin.ooo/chapter15/) | 理解 Cordis 的插件加载、依赖和通信。 | [Demo](demo/chapter15-cordis/) |
| [第 15 章 dsh 的核心:Cordis](https://dshbook.penguin.ooo/chapter15/) | 从问候插件逐步练习生命周期、服务、事件、配置和工具调用。 | [Demo](demo/chapter15-cordis/) |

## 👥 适合谁,怎么读

Expand Down
18 changes: 18 additions & 0 deletions book/assets/chapter15/15-1-02-plugin-start.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions book/assets/chapter15/15-2-01-child-plugin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions book/assets/chapter15/15-2-02-effect-cleanup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions book/assets/chapter15/15-3-01-service-dependency.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions book/assets/chapter15/15-3-02-event-order.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions book/assets/chapter15/15-3-03-hmr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions book/assets/chapter15/15-4-01-tool-sequence.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions book/assets/chapter15/source/15-4-01-tool-sequence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```mermaid
sequenceDiagram
participant P as greet-demo 的 apply
participant E as Cordis 事件系统
participant T as tools 服务
participant G as greet 工具
P->>E: ctx.on 登记结果监听
P->>T: register 登记 greet
P->>T: execute 请求执行,等待结果
T->>G: 检查参数后调用 execute(args)
G-->>T: Hello, Cordis!
Note over T: 生成最终结果内容
T->>E: emit 模式通知 tools/result
Note over E: 监听器打印观察日志
T-->>P: 返回结果
Note over P: await 完成,打印调用方日志
```
Loading
Loading