conversation-session-plugin-remote-identity-workspace.json 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-remote-identity-workspace",
  4. "spec": "./test/e2e/conversation-session/conversation-session-plugin-remote-identity-workspace.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "wpl-010-title",
  8. "description": "WPL-010 两个 remote task 的标题生成固定响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不属于 remote Plugin identity 合同,只需保持 task row 稳定。"
  14. },
  15. "maxMatches": 2,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_WPL_010_REMOTE_IDENTITY"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  24. "body": "data: {\"id\":\"chatcmpl-wpl-010-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"WPL 010 Remote Identity\\\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-wpl-010-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
  25. }
  26. },
  27. {
  28. "id": "wpl-010-target-a",
  29. "description": "相同 /workspace 路径下 target A 的新 Session 固定回复。",
  30. "metadata": {
  31. "kind": "main",
  32. "timingPolicy": "fast-text",
  33. "source": "synthetic",
  34. "syntheticReason": "稳定建立 target A 的 session-owned Plugin catalog。"
  35. },
  36. "match": {
  37. "method": "POST",
  38. "pathIncludes": "/chat/completions",
  39. "lastUserMessageIncludes": ["E2E_WPL_010_REMOTE_IDENTITY_A_FIRST_PROMPT"],
  40. "bodyExcludes": ["Generate a concise title"]
  41. },
  42. "response": {
  43. "statusCode": 200,
  44. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  45. "body": "data: {\"id\":\"chatcmpl-wpl-010-a\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"WPL_010_REMOTE_IDENTITY_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-wpl-010-a\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
  46. }
  47. },
  48. {
  49. "id": "wpl-010-target-b",
  50. "description": "相同 /workspace 路径下 target B 的新 Session 固定回复。",
  51. "metadata": {
  52. "kind": "main",
  53. "timingPolicy": "fast-text",
  54. "source": "synthetic",
  55. "syntheticReason": "稳定建立 target B 的 session-owned Plugin catalog。"
  56. },
  57. "match": {
  58. "method": "POST",
  59. "pathIncludes": "/chat/completions",
  60. "lastUserMessageIncludes": ["E2E_WPL_010_REMOTE_IDENTITY_B_FIRST_PROMPT"],
  61. "bodyExcludes": ["Generate a concise title"]
  62. },
  63. "response": {
  64. "statusCode": 200,
  65. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  66. "body": "data: {\"id\":\"chatcmpl-wpl-010-b\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"WPL_010_REMOTE_IDENTITY_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-wpl-010-b\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
  67. }
  68. }
  69. ]
  70. }