conversation-session-ask-user-question-custom-click-multi-question.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ask-user-question-custom-click-multi-question",
  4. "spec": "./test/e2e/conversation-session/conversation-session-ask-user-question-custom-click-multi-question.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-conversation-ask-user-question-custom-click-multi-question-call",
  8. "description": "AskUserQuestion custom mouse click: 首轮返回三题合法问答工具调用。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "稳定制造三题 AskUserQuestion 等待态,避免真实模型生成非法选项数量或题目结构漂移影响鼠标点击答案采集复现。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": ["E2E_ASK_USER_QUESTION_CUSTOM_CLICK_MULTI"],
  20. "bodyIncludes": [
  21. "E2E_ASK_USER_QUESTION_CUSTOM_CLICK_MULTI",
  22. "E2E_ASK_USER_QUESTION_CLICK_MULTI_TOOL",
  23. "E2E_AQ_CLICK_MULTI_Q1_CUSTOM",
  24. "E2E_AQ_CLICK_MULTI_Q2_CUSTOM",
  25. "E2E_AQ_CLICK_MULTI_Q3_CUSTOM"
  26. ],
  27. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  28. },
  29. "response": {
  30. "statusCode": 200,
  31. "toolUse": {
  32. "id": "toolu_e2e_ask_user_question_custom_click_multi_question",
  33. "name": "AskUserQuestion",
  34. "input": {
  35. "questions": [
  36. {
  37. "question": "E2E_AQ_CLICK_MULTI_Q1_CUSTOM: Which custom dashboard feature should be prioritized?",
  38. "header": "Click Q1",
  39. "options": [
  40. {
  41. "label": "Use default Q1",
  42. "description": "Continue with the first default answer."
  43. },
  44. {
  45. "label": "Use fallback Q1",
  46. "description": "Continue with the first fallback answer."
  47. }
  48. ]
  49. },
  50. {
  51. "question": "E2E_AQ_CLICK_MULTI_Q2_CUSTOM: Which custom notification path should be prioritized?",
  52. "header": "Click Q2",
  53. "options": [
  54. {
  55. "label": "Use default Q2",
  56. "description": "Continue with the second default answer."
  57. },
  58. {
  59. "label": "Use fallback Q2",
  60. "description": "Continue with the second fallback answer."
  61. }
  62. ]
  63. },
  64. {
  65. "question": "E2E_AQ_CLICK_MULTI_Q3_CUSTOM: Which custom theme update should be prioritized?",
  66. "header": "Click Q3",
  67. "options": [
  68. {
  69. "label": "Use default Q3",
  70. "description": "Continue with the third default answer."
  71. },
  72. {
  73. "label": "Use fallback Q3",
  74. "description": "Continue with the third fallback answer."
  75. }
  76. ]
  77. }
  78. ]
  79. }
  80. }
  81. }
  82. },
  83. {
  84. "id": "upstream-conversation-ask-user-question-custom-click-multi-question-final",
  85. "description": "AskUserQuestion custom mouse click: 三题自定义回答进入下一次模型请求后的最终回复。",
  86. "metadata": {
  87. "kind": "main",
  88. "timingPolicy": "fast-text",
  89. "source": "synthetic",
  90. "syntheticReason": "该响应证明三题鼠标点击提交后的自定义回答已被 agent 消费,核心断言在答案采集和 UI 已回答记录。"
  91. },
  92. "maxMatches": 1,
  93. "match": {
  94. "method": "POST",
  95. "pathIncludes": "/messages",
  96. "bodyIncludes": [
  97. "E2E_AQ_CLICK_MULTI_A1",
  98. "E2E_AQ_CLICK_MULTI_A2",
  99. "E2E_AQ_CLICK_MULTI_A3",
  100. "E2E_ASK_USER_QUESTION_CLICK_MULTI_TOOL",
  101. "toolu_e2e_ask_user_question_custom_click_multi_question"
  102. ],
  103. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  104. },
  105. "response": {
  106. "statusCode": 200,
  107. "text": "upstream-e2e-ok"
  108. }
  109. }
  110. ]
  111. }