conversation-session-v4-attachment.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-attachment",
  4. "spec": "./test/e2e/conversation-session/attachments/conversation-session-v4-attachment.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-attachment-only-send",
  8. "description": "T06:空正文与两个 ready AttachmentRef 经 createSession.firstInput 到达 provider。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "两个文件名 placeholder 同时出现,证明 attachment-only 首发没有被空正文校验拦截。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": [
  20. "[Attached image/png: e2e-remove-me.png]",
  21. "[Attached image/png: e2e-keep-me.png]"
  22. ],
  23. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  24. },
  25. "response": {
  26. "statusCode": 200,
  27. "text": {
  28. "id": "v4-attachment-only-send",
  29. "inputTokens": 80,
  30. "outputTokens": 8,
  31. "text": "V4_ATTACHMENT_ONLY_SEND_OK"
  32. }
  33. }
  34. },
  35. {
  36. "id": "v4-attachment-edit-one",
  37. "description": "D12:same-session edit 删除第一个 ref 后,provider 只看到剩余附件。",
  38. "metadata": {
  39. "kind": "main",
  40. "timingPolicy": "fast-text",
  41. "source": "synthetic",
  42. "syntheticReason": "bodyIncludes kept placeholder 且 bodyExcludes removed placeholder,直接约束 branch-cut 后 provider-visible attachments。"
  43. },
  44. "maxMatches": 1,
  45. "match": {
  46. "method": "POST",
  47. "pathIncludes": "/messages",
  48. "bodyIncludes": ["[Attached image/png: e2e-keep-me.png]"],
  49. "bodyExcludes": [
  50. "[Attached image/png: e2e-remove-me.png]",
  51. "Generate a concise title",
  52. "CRITICAL: Respond with TEXT ONLY"
  53. ]
  54. },
  55. "response": {
  56. "statusCode": 200,
  57. "text": {
  58. "id": "v4-attachment-edit-one",
  59. "inputTokens": 80,
  60. "outputTokens": 8,
  61. "text": "V4_ATTACHMENT_EDIT_ONE_OK"
  62. }
  63. }
  64. }
  65. ]
  66. }