conversation-session-dynamic-workflow-gray-on-demand-skill-notice.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-dynamic-workflow-gray-on-demand-skill-notice",
  4. "spec": "./test/e2e/conversation-session/workflows/conversation-session-dynamic-workflow-gray-on-demand-skill-notice.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "dwo-s-title",
  8. "metadata": {
  9. "kind": "common",
  10. "source": "synthetic",
  11. "timingPolicy": "fast-text",
  12. "syntheticReason": "固定各轮模型回答(调用 Skill 与收尾文字);onDemand 的灰度下发、技能加载、Skill 结果里的未激活提示与 /workflow 激活都走产品链路,断言读的是真实发给模型的工具结果与工具面。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "bodyExcludes": [],
  18. "bodyIncludes": ["Generate a concise title", "E2E_DWO_"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "headers": {
  23. "content-type": "application/json; charset=utf-8"
  24. },
  25. "body": "{\"id\": \"msg_upstream_e2e_text\", \"type\": \"message\", \"role\": \"assistant\", \"model\": \"deepseek-v4-flash\", \"content\": [{\"type\": \"text\", \"text\": \"{\\\"title\\\": \\\"按需工作流 E2E\\\"}\"}], \"stop_reason\": \"end_turn\", \"stop_sequence\": null, \"usage\": {\"input_tokens\": 128, \"cache_creation_input_tokens\": 0, \"cache_read_input_tokens\": 0, \"output_tokens\": 12, \"service_tier\": \"standard\"}}"
  26. }
  27. },
  28. {
  29. "id": "dwo-s1-skill",
  30. "metadata": {
  31. "kind": "main",
  32. "source": "synthetic",
  33. "timingPolicy": "fast-text",
  34. "syntheticReason": "固定各轮模型回答(调用 Skill 与收尾文字);onDemand 的灰度下发、技能加载、Skill 结果里的未激活提示与 /workflow 激活都走产品链路,断言读的是真实发给模型的工具结果与工具面。"
  35. },
  36. "match": {
  37. "method": "POST",
  38. "pathIncludes": "/messages",
  39. "bodyExcludes": [
  40. "Generate a concise title",
  41. "CRITICAL: Respond with TEXT ONLY",
  42. "toolu_dwo_s1_skill"
  43. ],
  44. "lastUserMessageIncludes": ["E2E_DWO_S1_ASK"]
  45. },
  46. "response": {
  47. "statusCode": 200,
  48. "toolUse": {
  49. "id": "toolu_dwo_s1_skill",
  50. "name": "Skill",
  51. "input": {
  52. "skill": "dynamic-workflows"
  53. }
  54. }
  55. }
  56. },
  57. {
  58. "id": "dwo-s1-told",
  59. "metadata": {
  60. "kind": "main",
  61. "source": "synthetic",
  62. "timingPolicy": "fast-text",
  63. "syntheticReason": "固定各轮模型回答(调用 Skill 与收尾文字);onDemand 的灰度下发、技能加载、Skill 结果里的未激活提示与 /workflow 激活都走产品链路,断言读的是真实发给模型的工具结果与工具面。"
  64. },
  65. "match": {
  66. "method": "POST",
  67. "pathIncludes": "/messages",
  68. "bodyExcludes": [
  69. "Generate a concise title",
  70. "CRITICAL: Respond with TEXT ONLY",
  71. "E2E_DWO_S2_ASK"
  72. ],
  73. "bodyIncludes": ["E2E_DWO_S1_ASK", "toolu_dwo_s1_skill"]
  74. },
  75. "response": {
  76. "statusCode": 200,
  77. "text": "E2E_DWO_S1_OK 本会话还没有启用工作流,请发送一条以 /workflow 开头的消息来启用。"
  78. }
  79. },
  80. {
  81. "id": "dwo-s2-skill",
  82. "metadata": {
  83. "kind": "main",
  84. "source": "synthetic",
  85. "timingPolicy": "fast-text",
  86. "syntheticReason": "固定各轮模型回答(调用 Skill 与收尾文字);onDemand 的灰度下发、技能加载、Skill 结果里的未激活提示与 /workflow 激活都走产品链路,断言读的是真实发给模型的工具结果与工具面。"
  87. },
  88. "match": {
  89. "method": "POST",
  90. "pathIncludes": "/messages",
  91. "bodyExcludes": [
  92. "Generate a concise title",
  93. "CRITICAL: Respond with TEXT ONLY",
  94. "toolu_dwo_s2_skill"
  95. ],
  96. "lastUserMessageIncludes": ["E2E_DWO_S2_ASK"]
  97. },
  98. "response": {
  99. "statusCode": 200,
  100. "toolUse": {
  101. "id": "toolu_dwo_s2_skill",
  102. "name": "Skill",
  103. "input": {
  104. "skill": "dynamic-workflows"
  105. }
  106. }
  107. }
  108. },
  109. {
  110. "id": "dwo-s2-loaded",
  111. "metadata": {
  112. "kind": "main",
  113. "source": "synthetic",
  114. "timingPolicy": "fast-text",
  115. "syntheticReason": "固定各轮模型回答(调用 Skill 与收尾文字);onDemand 的灰度下发、技能加载、Skill 结果里的未激活提示与 /workflow 激活都走产品链路,断言读的是真实发给模型的工具结果与工具面。"
  116. },
  117. "match": {
  118. "method": "POST",
  119. "pathIncludes": "/messages",
  120. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  121. "bodyIncludes": ["E2E_DWO_S2_ASK", "toolu_dwo_s2_skill"]
  122. },
  123. "response": {
  124. "statusCode": 200,
  125. "text": "E2E_DWO_S2_OK 工作流已启用。"
  126. }
  127. }
  128. ]
  129. }