conversation-session-dynamic-workflow-gray-fetch-failed.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-dynamic-workflow-gray-fetch-failed",
  4. "spec": "./test/e2e/conversation-session/workflows/conversation-session-dynamic-workflow-gray-fetch-failed.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "dwg24-title",
  8. "metadata": {
  9. "kind": "common",
  10. "source": "synthetic",
  11. "timingPolicy": "fast-text",
  12. "syntheticReason": "固定各轮模型回答;请求失败时的 onDemand 提供、工具面注册与 /workflow 激活都走产品链路,断言读的是真实发出的模型请求。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "bodyExcludes": [],
  18. "bodyIncludes": ["Generate a concise title", "E2E_DWG24_"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "headers": {
  23. "content-type": "application/json; charset=utf-8"
  24. },
  25. "body": "{\"id\": \"msg_upstream_e2e_text\", \"type\": \"message\", \"role\": \"assistant\", \"model\": \"deepseek-v4-flash\", \"content\": [{\"type\": \"text\", \"text\": \"{\\\"title\\\": \\\"请求失败按需工作流 E2E\\\"}\"}], \"stop_reason\": \"end_turn\", \"stop_sequence\": null, \"usage\": {\"input_tokens\": 128, \"cache_creation_input_tokens\": 0, \"cache_read_input_tokens\": 0, \"output_tokens\": 12, \"service_tier\": \"standard\"}}"
  26. }
  27. },
  28. {
  29. "id": "dwg24-f1",
  30. "metadata": {
  31. "kind": "main",
  32. "source": "synthetic",
  33. "timingPolicy": "fast-text",
  34. "syntheticReason": "固定各轮模型回答;请求失败时的 onDemand 提供、工具面注册与 /workflow 激活都走产品链路,断言读的是真实发出的模型请求。"
  35. },
  36. "match": {
  37. "method": "POST",
  38. "pathIncludes": "/messages",
  39. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  40. "lastUserMessageIncludes": ["E2E_DWG24_F1_ASK"]
  41. },
  42. "response": {
  43. "statusCode": 200,
  44. "text": "E2E_DWG24_F1_OK 收到。"
  45. }
  46. },
  47. {
  48. "id": "dwg24-f2",
  49. "metadata": {
  50. "kind": "main",
  51. "source": "synthetic",
  52. "timingPolicy": "fast-text",
  53. "syntheticReason": "固定各轮模型回答;请求失败时的 onDemand 提供、工具面注册与 /workflow 激活都走产品链路,断言读的是真实发出的模型请求。"
  54. },
  55. "match": {
  56. "method": "POST",
  57. "pathIncludes": "/messages",
  58. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  59. "lastUserMessageIncludes": ["E2E_DWG24_F2_ASK"]
  60. },
  61. "response": {
  62. "statusCode": 200,
  63. "text": "E2E_DWG24_F2_OK 收到。"
  64. }
  65. }
  66. ]
  67. }