conversation-session-ask-user-question-answer-visible.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ask-user-question-answer-visible",
  4. "spec": "./test/e2e/conversation-session/conversation-session-ask-user-question-answer-visible.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-conversation-ask-user-question-answer-visible-call",
  8. "description": "AskUserQuestion answer visible repro: 首轮返回单题问答工具调用。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "稳定制造 AskUserQuestion 单题等待态,避免真实模型是否提问影响 UI 投影复现。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": ["E2E_ASK_USER_QUESTION_ANSWER_VISIBLE"],
  20. "bodyIncludes": [
  21. "E2E_ASK_USER_QUESTION_ANSWER_VISIBLE",
  22. "E2E_TOOL_CROSS_PRODUCT_ASK_USER_QUESTION"
  23. ],
  24. "bodyExcludes": [
  25. "Generate a concise title",
  26. "CRITICAL: Respond with TEXT ONLY"
  27. ]
  28. },
  29. "response": {
  30. "statusCode": 200,
  31. "toolUse": {
  32. "id": "toolu_e2e_tool_cross_product_ask_user_question",
  33. "name": "AskUserQuestion",
  34. "input": {
  35. "questions": [
  36. {
  37. "question": "E2E_TOOL_CROSS_PRODUCT_ASK_USER_QUESTION: choose an answer?",
  38. "header": "E2E",
  39. "options": [
  40. {
  41. "label": "Use default",
  42. "description": "Continue the e2e run with the default answer."
  43. },
  44. {
  45. "label": "Use fallback",
  46. "description": "Continue the e2e run with the fallback answer."
  47. }
  48. ]
  49. }
  50. ]
  51. }
  52. }
  53. }
  54. },
  55. {
  56. "id": "upstream-conversation-ask-user-question-answer-visible-final",
  57. "description": "AskUserQuestion answer visible repro: 用户回答进入下一次模型请求后的最终回复。",
  58. "metadata": {
  59. "kind": "main",
  60. "timingPolicy": "fast-text",
  61. "source": "synthetic",
  62. "syntheticReason": "该响应只证明问答回答已被 agent 消费,核心断言在 UI 是否保留用户可见记录。"
  63. },
  64. "maxMatches": 1,
  65. "match": {
  66. "method": "POST",
  67. "pathIncludes": "/messages",
  68. "bodyIncludes": [
  69. "E2E_ASK_USER_QUESTION_CUSTOM_ANSWER",
  70. "E2E_TOOL_CROSS_PRODUCT_ASK_USER_QUESTION",
  71. "toolu_e2e_tool_cross_product_ask_user_question"
  72. ],
  73. "bodyExcludes": [
  74. "Generate a concise title",
  75. "CRITICAL: Respond with TEXT ONLY"
  76. ]
  77. },
  78. "response": {
  79. "statusCode": 200,
  80. "text": "upstream-e2e-ok"
  81. }
  82. }
  83. ]
  84. }