conversation-session-bot-channel-worker.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-bot-channel-worker",
  4. "spec": "./test/e2e/conversation-session/conversation-session-bot-channel-worker.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "first-tool",
  8. "metadata": {
  9. "kind": "main",
  10. "timingPolicy": "fast-text",
  11. "source": "synthetic",
  12. "syntheticReason": "确定性触发真实 CLI ReplyToChannel 与客户端续聊,外部飞书 HTTP 被隔离。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "lastUserMessageIncludes": [
  18. "E2E_BOT_CHANNEL_FIRST"
  19. ],
  20. "bodyExcludes": [
  21. "Generate a concise title",
  22. "CRITICAL: Respond with TEXT ONLY"
  23. ]
  24. },
  25. "response": {
  26. "statusCode": 200,
  27. "toolUse": {
  28. "id": "call_first",
  29. "name": "ReplyToChannel",
  30. "input": {
  31. "parts": [
  32. {
  33. "type": "mention",
  34. "refId": "om_first:m1"
  35. },
  36. {
  37. "type": "text",
  38. "text": " E2E_NATIVE_first"
  39. }
  40. ]
  41. }
  42. }
  43. },
  44. "maxMatches": 1
  45. },
  46. {
  47. "id": "first-final",
  48. "metadata": {
  49. "kind": "main",
  50. "timingPolicy": "fast-text",
  51. "source": "synthetic",
  52. "syntheticReason": "确定性触发真实 CLI ReplyToChannel 与客户端续聊,外部飞书 HTTP 被隔离。"
  53. },
  54. "match": {
  55. "method": "POST",
  56. "pathIncludes": "/messages",
  57. "bodyExcludes": [
  58. "Generate a concise title",
  59. "CRITICAL: Respond with TEXT ONLY",
  60. "E2E_BOT_CHANNEL_FOLLOWUP"
  61. ],
  62. "bodyIncludes": [
  63. "E2E_BOT_CHANNEL_FIRST"
  64. ]
  65. },
  66. "response": {
  67. "statusCode": 200,
  68. "text": {
  69. "text": "E2E_CHANNEL_DONE_first"
  70. }
  71. }
  72. },
  73. {
  74. "id": "followup-tool",
  75. "metadata": {
  76. "kind": "main",
  77. "timingPolicy": "fast-text",
  78. "source": "synthetic",
  79. "syntheticReason": "确定性触发真实 CLI ReplyToChannel 与客户端续聊,外部飞书 HTTP 被隔离。"
  80. },
  81. "match": {
  82. "method": "POST",
  83. "pathIncludes": "/messages",
  84. "lastUserMessageIncludes": [
  85. "E2E_BOT_CHANNEL_FOLLOWUP"
  86. ],
  87. "bodyExcludes": [
  88. "Generate a concise title",
  89. "CRITICAL: Respond with TEXT ONLY"
  90. ]
  91. },
  92. "response": {
  93. "statusCode": 200,
  94. "toolUse": {
  95. "id": "call_followup",
  96. "name": "ReplyToChannel",
  97. "input": {
  98. "parts": [
  99. {
  100. "type": "mentionName",
  101. "name": "目录目标"
  102. },
  103. {
  104. "type": "text",
  105. "text": " E2E_NATIVE_followup"
  106. }
  107. ]
  108. }
  109. }
  110. },
  111. "maxMatches": 1
  112. },
  113. {
  114. "id": "followup-final",
  115. "metadata": {
  116. "kind": "main",
  117. "timingPolicy": "fast-text",
  118. "source": "synthetic",
  119. "syntheticReason": "确定性触发真实 CLI ReplyToChannel 与客户端续聊,外部飞书 HTTP 被隔离。"
  120. },
  121. "match": {
  122. "method": "POST",
  123. "pathIncludes": "/messages",
  124. "bodyExcludes": [
  125. "Generate a concise title",
  126. "CRITICAL: Respond with TEXT ONLY"
  127. ],
  128. "bodyIncludes": [
  129. "E2E_BOT_CHANNEL_FOLLOWUP"
  130. ]
  131. },
  132. "response": {
  133. "statusCode": 200,
  134. "text": {
  135. "text": "E2E_CHANNEL_DONE_followup"
  136. }
  137. }
  138. }
  139. ]
  140. }