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

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-attachment-only-wire-padding",
  4. "spec": "./test/e2e/conversation-session/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 精确补单个空格。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "matcher 以文本附件内容定位唯一主请求;spec 再对 network capture 结构化断言 user content parts 含精确空格。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": [
  20. "e2e-attachment-wire-padding.txt",
  21. "E2E_ATTACHMENT_WIRE_CONTEXT"
  22. ],
  23. "bodyExcludes": [
  24. "Generate a concise title",
  25. "CRITICAL: Respond with TEXT ONLY"
  26. ]
  27. },
  28. "response": {
  29. "statusCode": 200,
  30. "text": {
  31. "id": "attachment-only-wire-padding",
  32. "inputTokens": 80,
  33. "outputTokens": 8,
  34. "text": "ATTACHMENT_WIRE_PADDING_OK"
  35. }
  36. }
  37. }
  38. ]
  39. }