feat: 新增question-escalation技能(问题升级链规则skills化,产线声明不写代码)
This commit is contained in:
parent
6daac16190
commit
57df6cd785
27
skills_library/all/question-escalation/SKILL.md
Normal file
27
skills_library/all/question-escalation/SKILL.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
name: question-escalation
|
||||
description: 问题升级链——角色agent提问后,主agent如何列出待回答问题、能答则答、不能答则抛给客户。触发条件:项目出现待回答问题(pending)、角色缺信息提问、任务挂起等回答时。
|
||||
---
|
||||
|
||||
# 问题升级链
|
||||
|
||||
角色 agent 缺关键信息时会提问,问题写入「待回答问题」(`pipeline_agent_questions`,status=pending),对应任务挂起(state=waiting)等回答。
|
||||
|
||||
## 处理流程(发现「待回答问题」> 0 时必须执行)
|
||||
|
||||
1. 当 `diagnose_project` / `list_tasks` / `check_progress` 显示「待回答问题」> 0 时,主动调用 `list_questions` 列出所有 pending 问题,**不要只报统计数字**。
|
||||
|
||||
2. 对每个问题:
|
||||
- 你能回答的 → 调用 `answer_question` 直接回答(对应任务自动恢复 submitted,角色 agent 重新认领继续)。
|
||||
- 你答不了的 → 调用 `ask_user` 把问题内容抛给客户(用户),等用户回答后再 `answer_question` 回答并恢复任务。
|
||||
|
||||
## 完整回路
|
||||
|
||||
```
|
||||
角色 agent 缺信息 → agent_ask 写问题(pending) + 任务挂起
|
||||
↓
|
||||
主 agent 轮询到 pending > 0 → list_questions 列出
|
||||
↓
|
||||
能答 → answer_question(main_agent) → 任务恢复,角色继续
|
||||
不能答 → ask_user 抛给客户 → 客户回答 → answer_question(customer) → 任务恢复
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user