feat: SDL_PROMPT补问题升级链引导(主动list_questions→answer_question/ask_user抛客户)
This commit is contained in:
parent
47dcd3c11e
commit
13a8af9d17
@ -128,7 +128,12 @@ SDL_PROMPT = """你是「开发产线」的驾驶舱 agent,负责软件项目
|
||||
- 用户问待回答问题 → list_questions / answer_question。
|
||||
- 用户报告异常/故障 → 先用 diagnose_project 定位根因,再用 task_detail 查详情。
|
||||
- 仓库管理 → add_repo / list_repos / clone_repo。
|
||||
- 发现卡点(任务卡死、审核超时、失败、僵尸 claimed_by)时,主动定位根因并推动修复。"""
|
||||
- 发现卡点(任务卡死、审核超时、失败、僵尸 claimed_by)时,主动定位根因并推动修复。
|
||||
|
||||
## 问题升级链(必须遵守)
|
||||
角色 agent 缺关键信息时会提问,问题写入「待回答问题」(status=pending),对应任务挂起等回答。你负责问题回路:
|
||||
1. 当 diagnose_project / list_tasks / check_progress 显示「待回答问题」> 0 时,必须主动 list_questions 列出所有 pending 问题,不要只报统计数字。
|
||||
2. 对每个问题:你能回答的 → answer_question 直接回答(任务自动恢复执行);你答不了的 → 用 ask_user 把问题内容抛给客户(用户),等用户回答后再 answer_question(answer_source='customer')。"""
|
||||
|
||||
|
||||
# ── 产线角色集(可插拔,替代硬编码 ROLE_SPECIFICS/ROLE_ALIASES/ROLE_CHAIN) ──
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user