conversation-session-attachment-only-wire-padding.json 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-attachment-only-wire-padding",
  4. "spec": "./test/e2e/conversation-session/attachments/conversation-session-attachment-only-wire-padding.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "attachment-only-wire-padding",
  8. "description": "T06W:文本附件拆为 prompt reminder 后 session 事实保持空正文,Anthropic provider wire user content 精确补固定 (no content)。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "matcher 以文本附件内容定位唯一主请求;spec 再对 network capture 结构化断言 user content parts 含精确 (no content)。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["e2e-attachment-wire-padding.txt", "E2E_ATTACHMENT_WIRE_CONTEXT"],
  20. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  21. },
  22. "response": {
  23. "statusCode": 200,
  24. "text": {
  25. "id": "attachment-only-wire-padding",
  26. "inputTokens": 80,
  27. "outputTokens": 8,
  28. "text": "ATTACHMENT_WIRE_PADDING_OK"
  29. }
  30. }
  31. }
  32. ]
  33. }