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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ask-user-question-custom-click-multi-question",
  4. "spec": "./test/e2e/conversation-session/permissions/conversation-session-ask-user-question-custom-click-multi-question.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-ask-user-question-custom-click-multi-question-title-sidecar",
  8. "description": "多题问答的独立标题响应,正文与答案断言保持不变。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "隔离回放抓包确认标题旁路缺少响应;为本例提供非流式 JSON 标题,避免 Missing Fixture 或依赖共享旧池。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_ASK_USER_QUESTION_CUSTOM_CLICK_MULTI"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  27. }
  28. },
  29. {
  30. "id": "upstream-conversation-ask-user-question-custom-click-multi-question-call",
  31. "description": "AskUserQuestion custom mouse click: 首轮返回三题合法问答工具调用。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "稳定制造三题 AskUserQuestion 等待态,避免真实模型生成非法选项数量或题目结构漂移影响鼠标点击答案采集复现。"
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "lastUserMessageIncludes": ["E2E_ASK_USER_QUESTION_CUSTOM_CLICK_MULTI"],
  43. "bodyIncludes": [
  44. "E2E_ASK_USER_QUESTION_CUSTOM_CLICK_MULTI",
  45. "E2E_ASK_USER_QUESTION_CLICK_MULTI_TOOL",
  46. "E2E_AQ_CLICK_MULTI_Q1_CUSTOM",
  47. "E2E_AQ_CLICK_MULTI_Q2_CUSTOM",
  48. "E2E_AQ_CLICK_MULTI_Q3_CUSTOM"
  49. ],
  50. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  51. },
  52. "response": {
  53. "statusCode": 200,
  54. "toolUse": {
  55. "id": "toolu_e2e_ask_user_question_custom_click_multi_question",
  56. "name": "AskUserQuestion",
  57. "input": {
  58. "questions": [
  59. {
  60. "question": "E2E_AQ_CLICK_MULTI_Q1_CUSTOM: Which custom dashboard feature should be prioritized?",
  61. "header": "Click Q1",
  62. "options": [
  63. {
  64. "label": "Use default Q1",
  65. "description": "Continue with the first default answer."
  66. },
  67. {
  68. "label": "Use fallback Q1",
  69. "description": "Continue with the first fallback answer."
  70. }
  71. ]
  72. },
  73. {
  74. "question": "E2E_AQ_CLICK_MULTI_Q2_CUSTOM: Which custom notification path should be prioritized?",
  75. "header": "Click Q2",
  76. "options": [
  77. {
  78. "label": "Use default Q2",
  79. "description": "Continue with the second default answer."
  80. },
  81. {
  82. "label": "Use fallback Q2",
  83. "description": "Continue with the second fallback answer."
  84. }
  85. ]
  86. },
  87. {
  88. "question": "E2E_AQ_CLICK_MULTI_Q3_CUSTOM: Which custom theme update should be prioritized?",
  89. "header": "Click Q3",
  90. "options": [
  91. {
  92. "label": "Use default Q3",
  93. "description": "Continue with the third default answer."
  94. },
  95. {
  96. "label": "Use fallback Q3",
  97. "description": "Continue with the third fallback answer."
  98. }
  99. ]
  100. }
  101. ]
  102. }
  103. }
  104. }
  105. },
  106. {
  107. "id": "upstream-conversation-ask-user-question-custom-click-multi-question-final",
  108. "description": "AskUserQuestion custom mouse click: 三题自定义回答进入下一次模型请求后的最终回复。",
  109. "metadata": {
  110. "kind": "main",
  111. "timingPolicy": "fast-text",
  112. "source": "synthetic",
  113. "syntheticReason": "该响应证明三题鼠标点击提交后的自定义回答已被 agent 消费,核心断言在答案采集和 UI 已回答记录。"
  114. },
  115. "maxMatches": 1,
  116. "match": {
  117. "method": "POST",
  118. "pathIncludes": "/messages",
  119. "bodyIncludes": [
  120. "E2E_AQ_CLICK_MULTI_A1",
  121. "E2E_AQ_CLICK_MULTI_A2",
  122. "E2E_AQ_CLICK_MULTI_A3",
  123. "E2E_ASK_USER_QUESTION_CLICK_MULTI_TOOL",
  124. "toolu_e2e_ask_user_question_custom_click_multi_question"
  125. ],
  126. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  127. },
  128. "response": {
  129. "statusCode": 200,
  130. "text": "upstream-e2e-ok"
  131. }
  132. }
  133. ]
  134. }