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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-reference-subagent",
  4. "spec": "./test/e2e/conversation-session/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": [
  19. "Generate a concise title",
  20. "E2E_PLUGIN_REFERENCE_SUBAGENT"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "text": {
  26. "id": "plugin-reference-subagent-title",
  27. "inputTokens": 64,
  28. "outputTokens": 8,
  29. "text": "{\"title\":\"Plugin Subagent Reference\"}"
  30. }
  31. }
  32. },
  33. {
  34. "id": "plugin-reference-subagent-reminder",
  35. "description": "PLG16 wire 门禁:请求必须携带 inline Plugin stable ID 与 canonical Subagent identifier。",
  36. "metadata": {
  37. "kind": "main",
  38. "timingPolicy": "fast-text",
  39. "source": "synthetic",
  40. "syntheticReason": "确定性验证 provider 收到 reminder 中的 Subagent identifier,不依赖真实模型是否主动选择 Agent。"
  41. },
  42. "maxMatches": 1,
  43. "match": {
  44. "method": "POST",
  45. "pathIncludes": "/messages",
  46. "lastUserMessageIncludes": ["E2E_PLUGIN_REFERENCE_SUBAGENT"],
  47. "bodyIncludes": [
  48. "<plugin_reference>",
  49. "e2e-inline-lifecycle@inline",
  50. "subagents: [\"e2e-inline-lifecycle:inline-reviewer\"]"
  51. ],
  52. "bodyExcludes": ["Generate a concise title"]
  53. },
  54. "response": {
  55. "statusCode": 200,
  56. "text": {
  57. "id": "plugin-reference-subagent-reply",
  58. "inputTokens": 128,
  59. "outputTokens": 12,
  60. "text": "PLUGIN_REFERENCE_SUBAGENT_REPLY_OK"
  61. }
  62. }
  63. }
  64. ]
  65. }