1.4 KiB
1.4 KiB
| name | description |
|---|---|
| question-escalation | 问题升级链——角色agent提问后,主agent如何列出待回答问题、能答则答、不能答则抛给客户。触发条件:项目出现待回答问题(pending)、角色缺信息提问、任务挂起等回答时。 |
问题升级链
角色 agent 缺关键信息时会提问,问题写入「待回答问题」(pipeline_agent_questions,status=pending),对应任务挂起(state=waiting)等回答。
处理流程(发现「待回答问题」> 0 时必须执行)
-
当
diagnose_project/list_tasks/check_progress显示「待回答问题」> 0 时,主动调用list_questions列出所有 pending 问题,不要只报统计数字。 -
对每个问题:
- 你能回答的 → 调用
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) → 任务恢复