conversation-session-agent-step-message-scope.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-agent-step-message-scope",
  4. "spec": "./test/e2e/conversation-session/conversation-session-agent-step-message-scope.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-conversation-agent-step-message-scope-first",
  8. "description": "Agent step message scope 首轮纯文本响应,每轮固定只产生一个 generation step。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "固定为单一纯文本 content block,以便端到端精确对账每轮 generation step 数量,不依赖真实模型的 reasoning 或工具选择。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["E2E_AGENT_STEP_MESSAGE_SCOPE_FIRST_"],
  20. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  21. },
  22. "response": {
  23. "statusCode": 200,
  24. "statusMessage": "OK",
  25. "text": {
  26. "id": "upstream-e2e-agent-step-message-scope-first",
  27. "inputTokens": 96,
  28. "outputTokens": 8,
  29. "text": "agent-step-scope-first-ok"
  30. }
  31. }
  32. },
  33. {
  34. "id": "upstream-conversation-agent-step-message-scope-second",
  35. "description": "Agent step message scope 第二轮纯文本响应,用于验证 completion 不累计首轮 step。",
  36. "metadata": {
  37. "kind": "main",
  38. "timingPolicy": "fast-text",
  39. "source": "synthetic",
  40. "syntheticReason": "固定为单一纯文本 content block,以便第二轮 completion 与同 messageId 的唯一 generation step 做确定性对账。"
  41. },
  42. "maxMatches": 1,
  43. "match": {
  44. "method": "POST",
  45. "pathIncludes": "/messages",
  46. "bodyIncludes": ["E2E_AGENT_STEP_MESSAGE_SCOPE_SECOND_"],
  47. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  48. },
  49. "response": {
  50. "statusCode": 200,
  51. "statusMessage": "OK",
  52. "text": {
  53. "id": "upstream-e2e-agent-step-message-scope-second",
  54. "inputTokens": 112,
  55. "outputTokens": 8,
  56. "text": "agent-step-scope-second-ok"
  57. }
  58. }
  59. }
  60. ]
  61. }