conversation-session-ask-user-question-custom-enter-single-question.json 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ask-user-question-custom-enter-single-question",
  4. "spec": "./test/e2e/conversation-session/conversation-session-ask-user-question-custom-enter-single-question.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-conversation-ask-user-question-custom-enter-single-question-call",
  8. "description": "AskUserQuestion custom Enter single-question probe: 首轮返回单题问答工具调用。",
  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_SINGLE"],
  20. "bodyIncludes": [
  21. "E2E_ASK_USER_QUESTION_CUSTOM_ENTER_SINGLE",
  22. "E2E_ASK_USER_QUESTION_ENTER_SINGLE_QUESTION",
  23. "E2E_ASK_USER_QUESTION_ENTER_SINGLE_TOOL"
  24. ],
  25. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  26. },
  27. "response": {
  28. "statusCode": 200,
  29. "toolUse": {
  30. "id": "toolu_e2e_ask_user_question_custom_enter_single",
  31. "name": "AskUserQuestion",
  32. "input": {
  33. "questions": [
  34. {
  35. "question": "E2E_ASK_USER_QUESTION_ENTER_SINGLE_QUESTION: choose the single answer?",
  36. "header": "E2E",
  37. "options": [
  38. {
  39. "label": "Use single default",
  40. "description": "Continue the e2e run with the single default answer."
  41. },
  42. {
  43. "label": "Use single fallback",
  44. "description": "Continue the e2e run with the single fallback answer."
  45. }
  46. ]
  47. }
  48. ]
  49. }
  50. }
  51. }
  52. },
  53. {
  54. "id": "upstream-conversation-ask-user-question-custom-enter-single-question-final",
  55. "description": "AskUserQuestion custom Enter single-question probe: 单题回答进入下一次模型请求后的最终回复。",
  56. "metadata": {
  57. "kind": "main",
  58. "timingPolicy": "fast-text",
  59. "source": "synthetic",
  60. "syntheticReason": "该响应证明单题 custom input Enter 已提交给 agent,并允许 UI 断言已回答记录。"
  61. },
  62. "maxMatches": 1,
  63. "match": {
  64. "method": "POST",
  65. "pathIncludes": "/messages",
  66. "bodyIncludes": [
  67. "E2E_ASK_USER_QUESTION_ENTER_SINGLE_ANSWER",
  68. "E2E_ASK_USER_QUESTION_ENTER_SINGLE_TOOL",
  69. "toolu_e2e_ask_user_question_custom_enter_single"
  70. ],
  71. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  72. },
  73. "response": {
  74. "statusCode": 200,
  75. "text": "upstream-e2e-ok"
  76. }
  77. }
  78. ]
  79. }