conversation-session-automation-pause-self.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-automation-pause-self",
  4. "spec": "./test/e2e/conversation-session/automations/conversation-session-automation-pause-self.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-conversation-automation-pause-self-tool",
  8. "description": "automation 执行轮首个响应固定调用无参数 CronPauseSelf,暂停目标只能来自 Host 准入注入的本轮 automationId。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "controlled-stream",
  12. "source": "synthetic",
  13. "syntheticReason": "真实 provider 对停止条件的判断不稳定;固定首个响应为 CronPauseSelf,并延迟响应,让 UI 能先选中刚派发的运行会话。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["E2E_AUTOMATION_PAUSE_SELF"],
  20. "bodyExcludes": [
  21. "Generate a concise title",
  22. "CRITICAL: Respond with TEXT ONLY",
  23. "Paused automation"
  24. ]
  25. },
  26. "response": {
  27. "statusCode": 200,
  28. "delayMs": 3000,
  29. "toolUse": {
  30. "id": "toolu_e2e_automation_pause_self",
  31. "messageId": "msg_e2e_automation_pause_self",
  32. "name": "CronPauseSelf",
  33. "input": {}
  34. }
  35. }
  36. },
  37. {
  38. "id": "upstream-conversation-automation-pause-self-final",
  39. "description": "CronPauseSelf 成功结果进入历史后返回简短普通文本,稳定完成整轮。",
  40. "metadata": {
  41. "kind": "main",
  42. "timingPolicy": "fast-text",
  43. "source": "synthetic",
  44. "syntheticReason": "最终回复只用于结束 case,并验证工具行之外不生成卡片。"
  45. },
  46. "match": {
  47. "method": "POST",
  48. "pathIncludes": "/messages",
  49. "bodyIncludes": ["E2E_AUTOMATION_PAUSE_SELF", "Paused automation"],
  50. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  51. },
  52. "response": {
  53. "statusCode": 200,
  54. "text": {
  55. "id": "upstream-e2e-automation-pause-self-final",
  56. "inputTokens": 180,
  57. "outputTokens": 8,
  58. "text": "E2E_AUTOMATION_PAUSE_SELF_DONE"
  59. }
  60. }
  61. }
  62. ]
  63. }