隐藏策划资源读取提示中的资源名称
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m31s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 1m44s
Project CI / Backend tests (pull_request) Successful in 4m34s
Project CI / Native shell tests (pull_request) Successful in 6m30s
Project CI / Frontend tests (pull_request) Successful in 2m12s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 9m11s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 9m39s
Project CI / AI game creator shell web tests (pull_request) Successful in 1m47s
Project CI / Repository checks (pull_request) Successful in 2m27s

工具提示不再附加资源 ID,保留文件路径展示和实际读写行为。

同步策划 Agent 技术方案,说明新提示与历史消息的适用范围。
This commit is contained in:
2026-09-29 14:31:27 +08:00
parent 4cba964234
commit 5452956682
2 changed files with 3 additions and 4 deletions
@@ -229,6 +229,8 @@ get_workflow_status
`list_resources` 一次返回完整逻辑分类、资源 ID、标题和简介;`read_resource` 按一个资源 ID 读取一个文件。资源描述不增加 `required=true/false` 分类,也不增加引导同轮多次调用的说明。
`read_resource` 成功后的用户可见工具提示只显示“读取资源”,不附加资源 ID 或名称。文件工具继续显示原有路径,失败提示保持原样;资源目录、工具参数、实际读写及 Provider 收到的工具结果不变。此规则作用于新生成的工具提示,不回写已有会话消息。
`get_workflow_status` 只返回阶段列表、当前阶段、已批准阶段和待审批阶段,不修改状态。保留原型的常驻提示约束:用户口头表示批准或要求进入下一阶段时,Agent 先查询实际阶段,不能凭普通文本自行切换。现有 `agent.run_status` 的任务/委派状态不能替代这个工具。
## 6. 阶段与提示词注入