docs(agent): 巡检 Skill 要求需要批准的检查实际调用一次,补 e16 断言(FIX-9)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
65a2ed7d49
commit
3ec2a10993
2 files changed
+6
No files matched your search
@@ -90,6 +90,11 @@ describe.skipIf(!hasPg)("E16 智能体提示评测(fake 模型)", () => {
|
||||
.filter((x) => x.type === "tool_call_start")
|
||||
.map((x) => (x.payload as { capabilityId?: string }).capabilityId);
|
||||
expect(calls).toEqual(c.calls);
|
||||
// 巡检那条:需要批准的检测实际调用一次(界面才有审批卡 /「批准并重试」),汇报里写「没做:…,需要你批准」
|
||||
if (id === "health") {
|
||||
expect(calls.filter((x) => x === "site.health_check")).toHaveLength(1);
|
||||
expect(done.get(id)!.text).toMatch(/没做:.*需要你批准/);
|
||||
}
|
||||
|
||||
// 只读调用都成功;需要批准的被拒绝
|
||||
const r = done.get(id)!;
|
||||
|
||||
@@ -38,6 +38,7 @@ sessions: [chat, patrol, investigate, child]
|
||||
## 需要批准
|
||||
|
||||
- site.health_check(实时检测站点)、site.refresh_login(重新登录)。没有授权时会被拒绝:汇报里写一句「没做:实时检测「站点名」,需要你批准」,界面会给批准按钮。
|
||||
- 需要批准的检查(如检测站点)不要只在汇报里写「需要你批准」:先实际调用一次,让审批卡 /「批准并重试」按钮出现在界面上,再在汇报里写一句「没做:…,需要你批准」。同一个检查只调用一次,被拒绝后不要重复调用。
|
||||
- 其余都是只读,不需要批准。
|
||||
|
||||
## 汇报模板
|
||||
|
||||
Reference in new issue
Block a user