conversation-session-plugin-reference-subagent.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-reference-subagent",
  4. "spec": "./test/e2e/conversation-session/plugins/conversation-session-plugin-reference-subagent.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "plugin-reference-subagent-title",
  8. "description": "PLG16 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "首发会触发默认 title sidecar;固定标题响应,避免标题请求命中业务 fixture。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_PLUGIN_REFERENCE_SUBAGENT"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "plugin-reference-subagent-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"Plugin Subagent Reference\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "plugin-reference-subagent-reminder",
  32. "description": "PLG16 wire 门禁:请求必须携带 inline Plugin stable ID 与 canonical Subagent identifier。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "确定性验证 provider 收到 reminder 中的 Subagent identifier,不依赖真实模型是否主动选择 Agent。"
  38. },
  39. "maxMatches": 1,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "lastUserMessageIncludes": ["E2E_PLUGIN_REFERENCE_SUBAGENT"],
  44. "bodyIncludes": [
  45. "<plugin_reference>",
  46. "e2e-inline-lifecycle@inline",
  47. "subagents: [\"e2e-inline-lifecycle:inline-reviewer\"]"
  48. ],
  49. "bodyExcludes": ["Generate a concise title"]
  50. },
  51. "response": {
  52. "statusCode": 200,
  53. "text": {
  54. "id": "plugin-reference-subagent-reply",
  55. "inputTokens": 128,
  56. "outputTokens": 12,
  57. "text": "PLUGIN_REFERENCE_SUBAGENT_REPLY_OK"
  58. }
  59. }
  60. }
  61. ]
  62. }