Merge pull request '隐藏策划资源读取提示中的资源名称' (#534) from opt/hide-docs-name into master
Project CI / AI game creator shell Rust smoke (push) Successful in 1m23s
Project CI / AI game creator shell Rust crates (push) Successful in 1m18s
Project CI / Backend tests (push) Successful in 3m55s
Project CI / AI game creator shell Rust lane 1/2 (push) Successful in 8m51s
Project CI / AI game creator shell Rust lane 2/2 (push) Successful in 8m6s
Project CI / Frontend tests (push) Successful in 2m15s
Project CI / Native shell tests (push) Successful in 6m6s
Project CI / AI game creator shell web tests (push) Successful in 2m3s
Project CI / Repository checks (push) Successful in 2m51s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m23s
Project CI / AI game creator shell Rust crates (push) Successful in 1m18s
Project CI / Backend tests (push) Successful in 3m55s
Project CI / AI game creator shell Rust lane 1/2 (push) Successful in 8m51s
Project CI / AI game creator shell Rust lane 2/2 (push) Successful in 8m6s
Project CI / Frontend tests (push) Successful in 2m15s
Project CI / Native shell tests (push) Successful in 6m6s
Project CI / AI game creator shell web tests (push) Successful in 2m3s
Project CI / Repository checks (push) Successful in 2m51s
Reviewed-on: #534
This commit was merged in pull request #534.
This commit is contained in:
@@ -563,10 +563,7 @@ fn design_tool_line(call: &platform_llm::LlmToolCall, error: Option<&str>) -> St
|
||||
_ => &call.name,
|
||||
};
|
||||
let args: Value = serde_json::from_str(&call.arguments).unwrap_or(Value::Null);
|
||||
let path = args
|
||||
.get("path")
|
||||
.or_else(|| args.get("resource_id"))
|
||||
.and_then(Value::as_str);
|
||||
let path = args.get("path").and_then(Value::as_str);
|
||||
let line = match (path, error) {
|
||||
(_, Some(error)) => format!("{label}失败:{error}"),
|
||||
(Some(path), None) => format!("{label}:{path}"),
|
||||
|
||||
@@ -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. 阶段与提示词注入
|
||||
|
||||
Reference in New Issue
Block a user