conversation-session-preinstalled-tools-builtin-cdn.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-preinstalled-tools-builtin-cdn",
  4. "spec": "./test/e2e/conversation-session/conversation-session-preinstalled-tools-builtin-cdn.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "preinstalled-builtin-title",
  8. "metadata": {
  9. "kind": "common",
  10. "timingPolicy": "fast-text",
  11. "source": "synthetic",
  12. "syntheticReason": "固定聊天响应,验证内置真实资源后台准备不阻塞普通聊天。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "bodyIncludes": ["Generate a concise title", "E2E_PREINSTALLED_BUILTIN"]
  18. },
  19. "response": {
  20. "statusCode": 200,
  21. "text": {
  22. "id": "preinstalled-builtin-title",
  23. "text": "{\"title\":\"Built-in preinstalled tools\"}",
  24. "inputTokens": 100,
  25. "outputTokens": 10
  26. }
  27. }
  28. },
  29. {
  30. "id": "preinstalled-builtin-chat",
  31. "metadata": {
  32. "kind": "main",
  33. "timingPolicy": "fast-text",
  34. "source": "synthetic",
  35. "syntheticReason": "固定聊天响应,验证内置真实资源后台准备不阻塞普通聊天。"
  36. },
  37. "match": {
  38. "method": "POST",
  39. "pathIncludes": "/messages",
  40. "bodyIncludes": ["E2E_PREINSTALLED_BUILTIN_CHAT", "E2E_PREINSTALLED_BUILTIN_CHAT_DONE"],
  41. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  42. },
  43. "response": {
  44. "statusCode": 200,
  45. "text": {
  46. "id": "preinstalled-builtin-chat",
  47. "text": "E2E_PREINSTALLED_BUILTIN_CHAT_DONE",
  48. "inputTokens": 100,
  49. "outputTokens": 10
  50. }
  51. }
  52. }
  53. ]
  54. }