feat(agent): 系统提示规定汇报格式(AGUI-3)
新增「汇报格式」一节:第一句写结论;对象用名字,不写函数名、工具名、字段名、UUID 或 hash; 不超过 10 行;列举 3 个以上资源才用表格;不写标题和 HTML。证据规则改为写对象名称和关键数值。 方案规则改为只在真有分歧时给方案,并说明方案绑定计划、选定即批准的用法;步骤标题不写工具名。 子会话与视觉子流程汇报给父会话(audience: agent),不加用户汇报格式。 加 prompt 回归测试,快照断言汇报格式的关键约束句。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
4e0e6712da
commit
2ab6d452dd
6 files changed
+112
-8
No files matched your search
@@ -77,7 +77,7 @@ describe("buildSystemPrompt", () => {
|
||||
expect(p).toContain("download.inspect");
|
||||
expect(p).toContain("思考、步骤说明和汇报都用中文");
|
||||
expect(p).toContain("【预算提醒】");
|
||||
expect(p).toContain("不要写 HTML");
|
||||
expect(p).toContain("不写 HTML");
|
||||
expect(p).toContain("- 只给方案,不执行");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user