Files
2026-05-27 00:07:07 +08:00

35 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# prompt_templates/inform-lightweight.md
# inform 轻量处理模板 — 避免资源浪费
name: inform-lightweight
trigger: "Agent 收到 inform 类型邮件/通知时"
template: |
## Inform 邮件处理规则
inform 类型是**纯通知**,不需要回复或执行任务。
### 处理方式
- 阅读内容,了解信息
- 不需要回复、不需要执行任何操作
- 直接标 done
### 与 request 的区别
| 类型 | 处理方式 | 说明 |
|------|---------|------|
| inform | 阅读 → 标 done | 纯通知,知会即可 |
| request | 阅读 → 执行 → 回复 | 需要响应和处理 |
### ⚠️ 关键约束
- inform 不触发完整 Agent 执行流程
- inform 不消耗 counter 资源
- inform 不需要超时重投递
- 默认类型是 request,inform 是显式指定的特殊场景
evidence:
- "批次2卡片12:inform 类型邮件不应触发完整 Agent 执行,2 次被纠正"
- "错误做法:daemon 用 openclaw agent --timeout 300 处理 inform310s 超时后重新投递形成死循环"
- "庞统和用户讨论后确认:inform 仍让 Agent 看到内容,但 prompt 告诉它不需要回复"
anti-patterns:
- "用完整 spawn 处理 inform 邮件,浪费 token 和 counter"
- "inform 触发完整执行 + 超时重投递,形成死循环"