refactor(artifacts): add option limit for role selection in AskUserQuestion

This commit is contained in:
catlog22
2025-10-24 22:35:36 +08:00
parent 20d53bbd8e
commit 642d25f161

View File

@@ -106,6 +106,7 @@ Topic: "Build real-time collaboration platform SCOPE: 100 users"
- **Tool**: `AskUserQuestion` with `multiSelect: true`
- **Question format**: "请选择 {count} 个角色参与头脑风暴分析(可多选):"
- **Options**: Each recommended role with label (role name) and description (relevance rationale)
- **⚠️ Option Limit**: Maximum 4 options per AskUserQuestion call. If count+2 > 4, split into multiple rounds
- **User interaction**: Allow user to select multiple roles (typically count roles, but flexible)
- **Storage**: Store selections to `session.selected_roles`