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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ask-user-question-custom-enter-multi-question",
  4. "spec": "./test/e2e/conversation-session/conversation-session-ask-user-question-custom-enter-multi-question.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-conversation-ask-user-question-custom-enter-multi-question-call",
  8. "description": "AskUserQuestion custom Enter repro: 首轮返回两题问答工具调用。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "稳定制造 AskUserQuestion 多题等待态,复现 custom input Enter 不能提前提交整个问答。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": ["E2E_ASK_USER_QUESTION_CUSTOM_ENTER_MULTI"],
  20. "bodyIncludes": [
  21. "E2E_ASK_USER_QUESTION_CUSTOM_ENTER_MULTI",
  22. "E2E_ASK_USER_QUESTION_ENTER_MULTI_TOOL"
  23. ],
  24. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  25. },
  26. "response": {
  27. "statusCode": 200,
  28. "toolUse": {
  29. "id": "toolu_e2e_ask_user_question_custom_enter_multi",
  30. "name": "AskUserQuestion",
  31. "input": {
  32. "questions": [
  33. {
  34. "question": "E2E_ASK_USER_QUESTION_ENTER_FIRST: choose the first answer?",
  35. "header": "E2E 1",
  36. "options": [
  37. {
  38. "label": "Use first default",
  39. "description": "Continue the e2e run with the first default answer."
  40. },
  41. {
  42. "label": "Use first fallback",
  43. "description": "Continue the e2e run with the first fallback answer."
  44. }
  45. ]
  46. },
  47. {
  48. "question": "E2E_ASK_USER_QUESTION_ENTER_SECOND: choose the second answer?",
  49. "header": "E2E 2",
  50. "options": [
  51. {
  52. "label": "Use second default",
  53. "description": "Continue the e2e run with the second default answer."
  54. },
  55. {
  56. "label": "Use second fallback",
  57. "description": "Continue the e2e run with the second fallback answer."
  58. }
  59. ]
  60. }
  61. ]
  62. }
  63. }
  64. }
  65. },
  66. {
  67. "id": "upstream-conversation-ask-user-question-custom-enter-multi-question-final",
  68. "description": "AskUserQuestion custom Enter repro: 两题回答都进入下一次模型请求后的最终回复。",
  69. "metadata": {
  70. "kind": "main",
  71. "timingPolicy": "fast-text",
  72. "source": "synthetic",
  73. "syntheticReason": "该响应只证明多题回答已被 agent 消费,核心断言在 Enter 是否错误提前提交。"
  74. },
  75. "maxMatches": 1,
  76. "match": {
  77. "method": "POST",
  78. "pathIncludes": "/messages",
  79. "bodyIncludes": [
  80. "E2E_ASK_USER_QUESTION_ENTER_FIRST_ANSWER",
  81. "E2E_ASK_USER_QUESTION_ENTER_SECOND_ANSWER",
  82. "E2E_ASK_USER_QUESTION_ENTER_MULTI_TOOL",
  83. "toolu_e2e_ask_user_question_custom_enter_multi"
  84. ],
  85. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  86. },
  87. "response": {
  88. "statusCode": 200,
  89. "text": "upstream-e2e-ok"
  90. }
  91. }
  92. ]
  93. }