conversation-session-attachment-resume.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-attachment-resume",
  4. "spec": "./test/e2e/conversation-session/attachments/conversation-session-attachment-resume.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-attachment-resume-title-sidecar",
  8. "description": "本例标题旁路响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title"]
  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": "attachment-resume-first",
  31. "description": "AR01 first: 附件冷恢复请求",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "固定回复使重启前后历史内容可比,spec 直接断言捕获的首轮 user content。"
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "bodyIncludes": ["E2E_ATTACHMENT_RESUME_FIRST"],
  43. "bodyExcludes": [
  44. "Generate a concise title",
  45. "CRITICAL: Respond with TEXT ONLY",
  46. "E2E_ATTACHMENT_RESUME_HOT",
  47. "E2E_ATTACHMENT_RESUME_COLD"
  48. ]
  49. },
  50. "response": {
  51. "statusCode": 200,
  52. "text": {
  53. "id": "attachment-resume-first",
  54. "inputTokens": 80,
  55. "outputTokens": 8,
  56. "text": "ATTACHMENT_RESUME_FIRST_OK"
  57. }
  58. }
  59. },
  60. {
  61. "id": "attachment-resume-hot",
  62. "description": "AR01 hot: 附件冷恢复请求",
  63. "metadata": {
  64. "kind": "main",
  65. "timingPolicy": "fast-text",
  66. "source": "synthetic",
  67. "syntheticReason": "固定回复使重启前后历史内容可比,spec 直接断言捕获的首轮 user content。"
  68. },
  69. "maxMatches": 1,
  70. "match": {
  71. "method": "POST",
  72. "pathIncludes": "/messages",
  73. "bodyIncludes": ["E2E_ATTACHMENT_RESUME_HOT"],
  74. "bodyExcludes": [
  75. "Generate a concise title",
  76. "CRITICAL: Respond with TEXT ONLY",
  77. "E2E_ATTACHMENT_RESUME_COLD"
  78. ]
  79. },
  80. "response": {
  81. "statusCode": 200,
  82. "text": {
  83. "id": "attachment-resume-hot",
  84. "inputTokens": 80,
  85. "outputTokens": 8,
  86. "text": "ATTACHMENT_RESUME_HOT_OK"
  87. }
  88. }
  89. },
  90. {
  91. "id": "attachment-resume-cold",
  92. "description": "AR01 cold: 附件冷恢复请求",
  93. "metadata": {
  94. "kind": "main",
  95. "timingPolicy": "fast-text",
  96. "source": "synthetic",
  97. "syntheticReason": "固定回复使重启前后历史内容可比,spec 直接断言捕获的首轮 user content。"
  98. },
  99. "maxMatches": 1,
  100. "match": {
  101. "method": "POST",
  102. "pathIncludes": "/messages",
  103. "bodyIncludes": ["E2E_ATTACHMENT_RESUME_COLD"],
  104. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  105. },
  106. "response": {
  107. "statusCode": 200,
  108. "text": {
  109. "id": "attachment-resume-cold",
  110. "inputTokens": 80,
  111. "outputTokens": 8,
  112. "text": "ATTACHMENT_RESUME_COLD_OK"
  113. }
  114. }
  115. }
  116. ]
  117. }