plugin-subagent-override-cold.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "version": 1,
  3. "caseName": "plugin-subagent-override-cold",
  4. "spec": "./test/e2e/plugins/plugin-subagent-override-cold.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "plugin-override-cold-parent",
  8. "description": "父请求只负责触发已配置的官方 judge。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "确定性触发插件 child,模型与档位以实际请求为证据。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": [
  20. "E2E_PLUGIN_OVERRIDE_COLD_PARENT"
  21. ],
  22. "bodyExcludes": [
  23. "Generate a concise title",
  24. "CRITICAL: Respond with TEXT ONLY"
  25. ]
  26. },
  27. "response": {
  28. "statusCode": 200,
  29. "toolUse": {
  30. "id": "toolu_plugin_override_cold",
  31. "name": "Agent",
  32. "input": {
  33. "description": "Check plugin model override",
  34. "subagent_type": "document-skills:judge",
  35. "prompt": "E2E_PLUGIN_OVERRIDE_COLD_CHILD: Reply with exactly E2E_PLUGIN_OVERRIDE_COLD_RESULT and no other text."
  36. }
  37. }
  38. }
  39. },
  40. {
  41. "id": "plugin-override-cold-child",
  42. "description": "插件 child 确定性返回。",
  43. "metadata": {
  44. "kind": "main",
  45. "timingPolicy": "fast-text",
  46. "source": "synthetic",
  47. "syntheticReason": "检查 child 的真实模型和 high 参数,不依赖模型输出随机性。"
  48. },
  49. "maxMatches": 1,
  50. "match": {
  51. "method": "POST",
  52. "pathIncludes": "/messages",
  53. "lastUserMessageIncludes": [
  54. "E2E_PLUGIN_OVERRIDE_COLD_CHILD"
  55. ],
  56. "bodyExcludes": [
  57. "Generate a concise title",
  58. "CRITICAL: Respond with TEXT ONLY"
  59. ]
  60. },
  61. "response": {
  62. "statusCode": 200,
  63. "text": {
  64. "id": "plugin-override-cold-child",
  65. "inputTokens": 128,
  66. "outputTokens": 16,
  67. "text": "E2E_PLUGIN_OVERRIDE_COLD_RESULT"
  68. }
  69. }
  70. },
  71. {
  72. "id": "plugin-override-cold-final",
  73. "description": "父请求消费 child 结果后完成。",
  74. "metadata": {
  75. "kind": "main",
  76. "timingPolicy": "fast-text",
  77. "source": "synthetic",
  78. "syntheticReason": "验证子结果回到父执行,父 continuation 不继承 child 模型或档位。"
  79. },
  80. "maxMatches": 1,
  81. "match": {
  82. "method": "POST",
  83. "pathIncludes": "/messages",
  84. "bodyIncludes": [
  85. "E2E_PLUGIN_OVERRIDE_COLD_PARENT",
  86. "E2E_PLUGIN_OVERRIDE_COLD_RESULT"
  87. ],
  88. "bodyExcludes": [
  89. "Generate a concise title",
  90. "CRITICAL: Respond with TEXT ONLY"
  91. ]
  92. },
  93. "response": {
  94. "statusCode": 200,
  95. "text": {
  96. "id": "plugin-override-cold-final",
  97. "inputTokens": 160,
  98. "outputTokens": 12,
  99. "text": "plugin-override-cold-done"
  100. }
  101. }
  102. }
  103. ]
  104. }