conversation-session-ask-user-question-custom-enter-manual-multi-question.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ask-user-question-custom-enter-manual-multi-question",
  4. "spec": "./test/e2e/conversation-session/permissions/conversation-session-ask-user-question-custom-enter-manual-multi-question.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-ask-user-question-custom-enter-manual-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": [
  19. "Generate a concise title",
  20. "E2E_ASK_USER_QUESTION_CUSTOM_ENTER_MANUAL_MULTI"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "statusMessage": "OK",
  26. "headers": {
  27. "content-type": "application/json; charset=utf-8"
  28. },
  29. "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\"}}"
  30. }
  31. },
  32. {
  33. "id": "upstream-conversation-ask-user-question-custom-enter-manual-multi-question-call",
  34. "description": "AskUserQuestion custom Enter: 首轮返回三题合法问答工具调用。",
  35. "metadata": {
  36. "kind": "main",
  37. "timingPolicy": "fast-text",
  38. "source": "synthetic",
  39. "syntheticReason": "稳定制造三题 AskUserQuestion 等待态,避免真实模型生成非法选项数量或题目结构漂移影响 Enter 答案采集复现。"
  40. },
  41. "maxMatches": 1,
  42. "match": {
  43. "method": "POST",
  44. "pathIncludes": "/messages",
  45. "lastUserMessageIncludes": ["E2E_ASK_USER_QUESTION_CUSTOM_ENTER_MANUAL_MULTI"],
  46. "bodyIncludes": [
  47. "E2E_ASK_USER_QUESTION_CUSTOM_ENTER_MANUAL_MULTI",
  48. "E2E_ASK_USER_QUESTION_ENTER_MANUAL_MULTI_TOOL",
  49. "E2E_AQ_ENTER_MANUAL_MULTI_Q1_CUSTOM",
  50. "E2E_AQ_ENTER_MANUAL_MULTI_Q2_CUSTOM",
  51. "E2E_AQ_ENTER_MANUAL_MULTI_Q3_CUSTOM"
  52. ],
  53. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  54. },
  55. "response": {
  56. "statusCode": 200,
  57. "toolUse": {
  58. "id": "toolu_e2e_ask_user_question_custom_enter_manual_multi_question",
  59. "name": "AskUserQuestion",
  60. "input": {
  61. "questions": [
  62. {
  63. "question": "E2E_AQ_ENTER_MANUAL_MULTI_Q1_CUSTOM: Which custom release feature should be prioritized?",
  64. "header": "Enter Q1",
  65. "options": [
  66. {
  67. "label": "Use default Q1",
  68. "description": "Continue with the first default answer."
  69. },
  70. {
  71. "label": "Use fallback Q1",
  72. "description": "Continue with the first fallback answer."
  73. }
  74. ]
  75. },
  76. {
  77. "question": "E2E_AQ_ENTER_MANUAL_MULTI_Q2_CUSTOM: Which custom onboarding improvement should be prioritized?",
  78. "header": "Enter Q2",
  79. "options": [
  80. {
  81. "label": "Use default Q2",
  82. "description": "Continue with the second default answer."
  83. },
  84. {
  85. "label": "Use fallback Q2",
  86. "description": "Continue with the second fallback answer."
  87. }
  88. ]
  89. },
  90. {
  91. "question": "E2E_AQ_ENTER_MANUAL_MULTI_Q3_CUSTOM: Which custom theme color should be prioritized?",
  92. "header": "Enter Q3",
  93. "options": [
  94. {
  95. "label": "Use default Q3",
  96. "description": "Continue with the third default answer."
  97. },
  98. {
  99. "label": "Use fallback Q3",
  100. "description": "Continue with the third fallback answer."
  101. }
  102. ]
  103. }
  104. ]
  105. }
  106. }
  107. }
  108. },
  109. {
  110. "id": "upstream-conversation-ask-user-question-custom-enter-manual-multi-question-final",
  111. "description": "AskUserQuestion custom Enter: 三题自定义回答进入下一次模型请求后的最终回复。",
  112. "metadata": {
  113. "kind": "main",
  114. "timingPolicy": "fast-text",
  115. "source": "synthetic",
  116. "syntheticReason": "该响应证明三题 Enter 提交后的自定义回答已被 agent 消费,核心断言在答案采集和 UI 已回答记录。"
  117. },
  118. "maxMatches": 1,
  119. "match": {
  120. "method": "POST",
  121. "pathIncludes": "/messages",
  122. "bodyIncludes": [
  123. "E2E_AQ_ENTER_MANUAL_MULTI_A1",
  124. "E2E_AQ_ENTER_MANUAL_MULTI_A2",
  125. "E2E_AQ_ENTER_MANUAL_MULTI_A3",
  126. "E2E_ASK_USER_QUESTION_ENTER_MANUAL_MULTI_TOOL",
  127. "toolu_e2e_ask_user_question_custom_enter_manual_multi_question"
  128. ],
  129. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  130. },
  131. "response": {
  132. "statusCode": 200,
  133. "text": "upstream-e2e-ok"
  134. }
  135. }
  136. ]
  137. }