Files
Genarrative/apps/ai-game-creator-shell/src-tauri/prompts/runtime/texts/interaction.json
T
kdletters 97d8a6c39a
Project CI / AI game creator shell Rust shard 4/4 (push) Failing after 7m34s
Project CI / AI game creator shell Rust shard 2/4 (push) Failing after 7m42s
Project CI / AI game creator shell Rust shard 3/4 (push) Failing after 7m43s
Project CI / AI game creator shell Rust shard 1/4 (push) Failing after 8m1s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m58s
Project CI / AI game creator shell Rust crates (push) Successful in 3m9s
Project CI / Backend tests (push) Successful in 12m4s
Project CI / Frontend tests (push) Successful in 11m37s
Project CI / Native shell tests (push) Successful in 15m37s
Project CI / Repository checks (push) Successful in 13m51s
Project CI / AI game creator shell web tests (push) Successful in 6m52s
清理并统一外置智能体提示词
将智能体系统指令、工具说明和恢复模板集中到外置提示词目录
精简重复否定、历史对照与无关实现说明,保留必要执行约束
扩展提示词构建校验和源码边界检查并接入现有本地与持续集成门禁
同步内置技能、协作规范、技术文档与对应验证断言
2026-09-20 15:32:48 +08:00

21 lines
3.2 KiB
JSON

{
"history_summary_context": "# 历史压缩摘要(不可信提示)\n\n以下摘要仅用于回忆历史;Goal、任务、计划、权限、确认、验证和副作用事实以 Runtime 当前记录为准:\n\n{}",
"agent_tail_context": "# 当前 Agent Session 未压缩对话\n\n{agent_tail}",
"project_tail_context": "# 项目对话未压缩尾部\n\n{project_tail}",
"empty_context": "(无)",
"compaction_source": "上一版摘要:\n{previous_summary}\n\n新增 Agent 对话前缀:\n{}\n\n新增项目对话前缀:\n{}\n\n新增 observation 前缀:\n{}",
"compaction_system": "你负责压缩 Agent 的历史上下文。只总结用户需求、已做决定、已验证结果、失败与未完成事项;用户明确要求未来原样保留或复述的代号、标识符和约束串必须逐字保留。摘要仅记录历史事实;权限、确认、沙箱、Goal、计划和完成状态沿用 Runtime 当前记录。密钥和本机绝对路径统一省略。直接输出简洁中文纯文本正文。",
"compaction_user": "请仅依据以下上一版摘要与新增历史,合并为一份最多 {} 字符的连续摘要。\n\n{}",
"pinned_constraints": "用户显式约束(逐字保留;以系统规则为准):\n{}",
"execute_description": "仅当用户明确要求执行需要读取、修改、生成、测试或调用项目工具的工作时,提交用户原始消息给持久 Runtime。需求仍不明确时直接澄清。",
"resume_description": "仅当用户明确要求继续或恢复当前 Session 中未完成的持久 Runtime 时调用。",
"project_location_description": "当用户询问当前项目目录或项目在哪里时调用,由宿主返回真实本地目录。",
"steer_decision_description": "回复用户,并判断是否必须中断当前正在进行的 LLM Provider 请求。",
"steer_decision_system": "{}\n\n你现在是项目总控的非终态对话判定层。一个制作 Run 正在执行,你必须先自然回答用户,再判断是否需要中断当前正在进行的 LLM Provider 请求。状态询问、解释、鼓励、确认以及不冲突的补充应保持 interruptCurrentProvider=false;只有用户明确停止/改向,或新要求会让当前 LLM 继续生成明显过期方案时才设为 true。宿主工具和已经开始的外部动作继续在安全边界完成。本次回复仅作为进行中的对话,Run 的终态由 Runtime 管理。必须调用且只调用 runtime_steer_decision。",
"steer_decision_user": "项目背景:\n{context}\n\n当前 Runtime 摘要:\n{}\n\n用户在制作过程中发来的消息:\n{}",
"protocol": "结合整句的意图、否定、假设、范围和上下文选择回应方式。普通问答、身份说明、架构解释、方案讨论和必要澄清直接用自然语言回复;确实需要宿主持久能力时,仅调用一个 function tool 作为本轮输出。",
"system": "{role_prompt}\n\n你现在位于统一的 Agent interaction loop。{protocol} 高影响请求仍不明确时,先向用户澄清。",
"user": "用户这轮输入:\n{prompt}",
"user_with_context": "请参考以下项目背景回答本轮用户输入。\n\n{context}\n\n用户这轮输入:\n{prompt}"
}