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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-remote-identity-workspace",
  4. "spec": "./test/e2e/conversation-session/plugins/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": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"chatcmpl-wpl-010-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"WPL 010 Remote Identity\\\"}\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}"
  27. }
  28. },
  29. {
  30. "id": "wpl-010-target-a",
  31. "description": "相同 /workspace 路径下 target A 的新 Session 固定回复。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "稳定建立 target A 的 session-owned Plugin catalog。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/chat/completions",
  41. "lastUserMessageIncludes": ["E2E_WPL_010_REMOTE_IDENTITY_A_FIRST_PROMPT"],
  42. "bodyExcludes": ["Generate a concise title"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "headers": {
  47. "content-type": "text/event-stream; charset=utf-8"
  48. },
  49. "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"
  50. }
  51. },
  52. {
  53. "id": "wpl-010-target-b",
  54. "description": "相同 /workspace 路径下 target B 的新 Session 固定回复。",
  55. "metadata": {
  56. "kind": "main",
  57. "timingPolicy": "fast-text",
  58. "source": "synthetic",
  59. "syntheticReason": "稳定建立 target B 的 session-owned Plugin catalog。"
  60. },
  61. "match": {
  62. "method": "POST",
  63. "pathIncludes": "/chat/completions",
  64. "lastUserMessageIncludes": ["E2E_WPL_010_REMOTE_IDENTITY_B_FIRST_PROMPT"],
  65. "bodyExcludes": ["Generate a concise title"]
  66. },
  67. "response": {
  68. "statusCode": 200,
  69. "headers": {
  70. "content-type": "text/event-stream; charset=utf-8"
  71. },
  72. "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"
  73. }
  74. }
  75. ]
  76. }