conversation-session-plugin-reference.json 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-reference",
  4. "spec": "./test/e2e/conversation-session/conversation-session-plugin-reference.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "plugin-reference-title",
  8. "description": "E2E_PLUGIN_REFERENCE 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "首发会触发默认 title sidecar;固定 case-local 标题响应并用首发 marker 隔离跨 case 匹配。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": [
  19. "Generate a concise title",
  20. "E2E_PLUGIN_REFERENCE"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "text": {
  26. "id": "plugin-reference-title",
  27. "inputTokens": 64,
  28. "outputTokens": 8,
  29. "text": "{\"title\":\"Plugin Reference E2E\"}"
  30. }
  31. }
  32. },
  33. {
  34. "id": "plugin-reference-reminder-tool-call",
  35. "description": "PLG01 wire 门禁:只有当请求 body 真正携带 identifiers-only 的 <plugin_reference> reminder(含 skill-creator stable id)时才放行,并驱动一次 Read 测试工具调用。",
  36. "metadata": {
  37. "kind": "main",
  38. "timingPolicy": "fast-text",
  39. "source": "synthetic",
  40. "syntheticReason": "确定性验证 provider 收到 reminder:fixture 以 bodyIncludes <plugin_reference> 作为匹配门禁,不依赖真实模型的随机偏好。"
  41. },
  42. "maxMatches": 1,
  43. "match": {
  44. "method": "POST",
  45. "pathIncludes": "/messages",
  46. "lastUserMessageIncludes": ["E2E_PLUGIN_REFERENCE"],
  47. "bodyIncludes": [
  48. "<plugin_reference>",
  49. "skill-creator@zcode-plugins-official"
  50. ],
  51. "bodyExcludes": [
  52. "Generate a concise title",
  53. "toolu_e2e_plugin_reference_read"
  54. ]
  55. },
  56. "response": {
  57. "statusCode": 200,
  58. "toolUse": {
  59. "id": "toolu_e2e_plugin_reference_read",
  60. "messageId": "msg_e2e_plugin_reference_read",
  61. "name": "Read",
  62. "input": { "file_path": "plugin-reference-e2e/note.md" }
  63. }
  64. }
  65. },
  66. {
  67. "id": "plugin-reference-final-reply",
  68. "description": "Read 工具结果回灌后的收口回复,输出时间线断言 marker。",
  69. "metadata": {
  70. "kind": "main",
  71. "timingPolicy": "fast-text",
  72. "source": "synthetic",
  73. "syntheticReason": "第二步以工具结果内容 + tool id 匹配,保证顺序确定性。"
  74. },
  75. "maxMatches": 1,
  76. "match": {
  77. "method": "POST",
  78. "pathIncludes": "/messages",
  79. "bodyIncludes": [
  80. "E2E_PLUGIN_REFERENCE",
  81. "PLUGIN_REFERENCE_NOTE_BODY",
  82. "toolu_e2e_plugin_reference_read"
  83. ],
  84. "bodyExcludes": ["Generate a concise title"]
  85. },
  86. "response": {
  87. "statusCode": 200,
  88. "text": {
  89. "id": "plugin-reference-final-reply",
  90. "inputTokens": 120,
  91. "outputTokens": 12,
  92. "text": "PLUGIN_REFERENCE_REPLY_OK"
  93. }
  94. }
  95. }
  96. ]
  97. }