conversation-session-large-text-attachment.json 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-large-text-attachment",
  4. "spec": "./test/e2e/conversation-session/conversation-session-large-text-attachment.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "large-text-only",
  8. "description": "T18 only:4096 字节跨中文字符的大文本附件首发。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "固定回复隔离模型随机性;真实文件选择、Agent 读取和 provider 请求正文由 E2E 断言,不模拟附件读取。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["e2e-large-text-only.txt", "E2E_LARGE_TEXT_ONLY_CONTENT"],
  20. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  21. },
  22. "response": {
  23. "statusCode": 200,
  24. "text": {
  25. "id": "large-text-only",
  26. "inputTokens": 10000,
  27. "outputTokens": 8,
  28. "text": "LARGE_TEXT_ATTACHMENT_OK"
  29. }
  30. }
  31. },
  32. {
  33. "id": "large-text-with-query",
  34. "description": "T18 with-query:4096 字节跨中文字符的大文本附件首发。",
  35. "metadata": {
  36. "kind": "main",
  37. "timingPolicy": "fast-text",
  38. "source": "synthetic",
  39. "syntheticReason": "固定回复隔离模型随机性;真实文件选择、Agent 读取和 provider 请求正文由 E2E 断言,不模拟附件读取。"
  40. },
  41. "maxMatches": 1,
  42. "match": {
  43. "method": "POST",
  44. "pathIncludes": "/messages",
  45. "bodyIncludes": ["e2e-large-text-with-query.txt", "E2E_LARGE_TEXT_QUERY_CONTENT"],
  46. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  47. },
  48. "response": {
  49. "statusCode": 200,
  50. "text": {
  51. "id": "large-text-with-query",
  52. "inputTokens": 10000,
  53. "outputTokens": 8,
  54. "text": "LARGE_TEXT_ATTACHMENT_OK"
  55. }
  56. }
  57. },
  58. {
  59. "id": "large-text-gbk",
  60. "description": "T18 gbk:ASCII 前缀后的 GBK 字符跨 4096 字节采样边界,补读后排除 UTF-8。",
  61. "metadata": {
  62. "kind": "main",
  63. "timingPolicy": "fast-text",
  64. "source": "synthetic",
  65. "syntheticReason": "固定回复隔离模型随机性;真实文件选择、Agent 读取和 provider 请求正文由 E2E 断言,不模拟附件读取。"
  66. },
  67. "maxMatches": 1,
  68. "match": {
  69. "method": "POST",
  70. "pathIncludes": "/messages",
  71. "bodyIncludes": ["e2e-large-text-gbk.txt", "E2E_LARGE_TEXT_GBK_CONTENT"],
  72. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  73. },
  74. "response": {
  75. "statusCode": 200,
  76. "text": {
  77. "id": "large-text-gbk",
  78. "inputTokens": 10000,
  79. "outputTokens": 8,
  80. "text": "LARGE_TEXT_ATTACHMENT_OK"
  81. }
  82. }
  83. }
  84. ]
  85. }