conversation-session-v4-input-control.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-input-control",
  4. "spec": "./test/e2e/conversation-session/conversation-session-v4-input-control.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-input-control-title",
  8. "description": "E2E_V4_INPUT_CONTROL_SEED 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_V4_INPUT_CONTROL_SEED 首发会触发默认 title sidecar;固定 case-local 标题响应,避免 default replay 回退 legacy provider-basic,并用该首发 marker 隔离跨 case 匹配。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": [
  19. "Generate a concise title",
  20. "E2E_V4_INPUT_CONTROL_SEED"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "text": {
  26. "id": "v4-input-control-title",
  27. "inputTokens": 64,
  28. "outputTokens": 8,
  29. "text": "{\"title\":\"V4 Input Control E2E\"}"
  30. }
  31. }
  32. },
  33. {
  34. "id": "v4-input-control-seed",
  35. "description": "M4 setAutoDrain/setFollowupMode 门禁:首轮固定回复,建立可绑定 pane 的 session。",
  36. "metadata": {
  37. "kind": "main",
  38. "timingPolicy": "fast-text",
  39. "source": "synthetic",
  40. "syntheticReason": "输入控制开关只需一个已存在 session 即可渲染;首轮文案固定。"
  41. },
  42. "maxMatches": 1,
  43. "match": {
  44. "method": "POST",
  45. "pathIncludes": "/messages",
  46. "lastUserMessageIncludes": ["E2E_V4_INPUT_CONTROL_SEED"],
  47. "bodyExcludes": [
  48. "Generate a concise title",
  49. "CRITICAL: Respond with TEXT ONLY"
  50. ]
  51. },
  52. "response": {
  53. "statusCode": 200,
  54. "text": {
  55. "id": "v4-input-control-seed",
  56. "inputTokens": 80,
  57. "outputTokens": 8,
  58. "text": "V4_INPUT_CONTROL_SEED_OK"
  59. }
  60. }
  61. }
  62. ]
  63. }