provider-conversation-tool-cross-product.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. {
  2. "version": 1,
  3. "fixtures": [
  4. {
  5. "id": "upstream-tool-cross-product-read-call",
  6. "description": "Conversation tool cross product: Read tool_use.",
  7. "match": {
  8. "method": "POST",
  9. "pathIncludes": "/messages",
  10. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_READ"],
  11. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_READ"],
  12. "bodyExcludes": [
  13. "Generate a concise title",
  14. "CRITICAL: Respond with TEXT ONLY"
  15. ]
  16. },
  17. "response": {
  18. "statusCode": 200,
  19. "toolUse": {
  20. "id": "toolu_e2e_tool_cross_product_read",
  21. "name": "Read",
  22. "input": {
  23. "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product/read-fixture.txt"
  24. }
  25. }
  26. }
  27. },
  28. {
  29. "id": "upstream-tool-cross-product-write-call",
  30. "description": "Conversation tool cross product: Write tool_use.",
  31. "match": {
  32. "method": "POST",
  33. "pathIncludes": "/messages",
  34. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_WRITE"],
  35. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_WRITE"],
  36. "bodyExcludes": [
  37. "Generate a concise title",
  38. "CRITICAL: Respond with TEXT ONLY"
  39. ]
  40. },
  41. "response": {
  42. "statusCode": 200,
  43. "toolUse": {
  44. "id": "toolu_e2e_tool_cross_product_write",
  45. "name": "Write",
  46. "input": {
  47. "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product/write-output.txt",
  48. "content": "E2E_TOOL_RESULT_WRITE\n"
  49. }
  50. }
  51. }
  52. },
  53. {
  54. "id": "upstream-tool-cross-product-edit-call",
  55. "description": "Conversation tool cross product: Edit tool_use.",
  56. "match": {
  57. "method": "POST",
  58. "pathIncludes": "/messages",
  59. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_EDIT"],
  60. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_EDIT"],
  61. "bodyExcludes": [
  62. "Generate a concise title",
  63. "CRITICAL: Respond with TEXT ONLY"
  64. ]
  65. },
  66. "response": {
  67. "statusCode": 200,
  68. "toolUse": {
  69. "id": "toolu_e2e_tool_cross_product_edit",
  70. "name": "Edit",
  71. "input": {
  72. "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product/edit-output.txt",
  73. "old_string": "",
  74. "new_string": "E2E_TOOL_RESULT_EDIT\n"
  75. }
  76. }
  77. }
  78. },
  79. {
  80. "id": "upstream-tool-cross-product-bash-call",
  81. "description": "Conversation tool cross product: Bash tool_use.",
  82. "match": {
  83. "method": "POST",
  84. "pathIncludes": "/messages",
  85. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_BASH"],
  86. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_BASH"],
  87. "bodyExcludes": [
  88. "Generate a concise title",
  89. "CRITICAL: Respond with TEXT ONLY"
  90. ]
  91. },
  92. "response": {
  93. "statusCode": 200,
  94. "toolUse": {
  95. "id": "toolu_e2e_tool_cross_product_bash",
  96. "name": "Bash",
  97. "input": {
  98. "command": "printf 'E2E_TOOL_RESULT_BASH\\n'"
  99. }
  100. }
  101. }
  102. },
  103. {
  104. "id": "upstream-tool-cross-product-glob-call",
  105. "description": "Conversation tool cross product: Glob tool_use.",
  106. "match": {
  107. "method": "POST",
  108. "pathIncludes": "/messages",
  109. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_GLOB"],
  110. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_GLOB"],
  111. "bodyExcludes": [
  112. "Generate a concise title",
  113. "CRITICAL: Respond with TEXT ONLY"
  114. ]
  115. },
  116. "response": {
  117. "statusCode": 200,
  118. "toolUse": {
  119. "id": "toolu_e2e_tool_cross_product_glob",
  120. "name": "Glob",
  121. "input": {
  122. "path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product",
  123. "pattern": "*.e2e"
  124. }
  125. }
  126. }
  127. },
  128. {
  129. "id": "upstream-tool-cross-product-grep-call",
  130. "description": "Conversation tool cross product: Grep tool_use.",
  131. "match": {
  132. "method": "POST",
  133. "pathIncludes": "/messages",
  134. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_GREP"],
  135. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_GREP"],
  136. "bodyExcludes": [
  137. "Generate a concise title",
  138. "CRITICAL: Respond with TEXT ONLY"
  139. ]
  140. },
  141. "response": {
  142. "statusCode": 200,
  143. "toolUse": {
  144. "id": "toolu_e2e_tool_cross_product_grep",
  145. "name": "Grep",
  146. "input": {
  147. "path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product",
  148. "pattern": "E2E_TOOL_RESULT_GREP",
  149. "output_mode": "content"
  150. }
  151. }
  152. }
  153. },
  154. {
  155. "id": "upstream-tool-cross-product-webfetch-call",
  156. "description": "Conversation tool cross product: WebFetch controlled fast-fail tool_use.",
  157. "match": {
  158. "method": "POST",
  159. "pathIncludes": "/messages",
  160. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_WEBFETCH"],
  161. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_WEBFETCH"],
  162. "bodyExcludes": [
  163. "Generate a concise title",
  164. "CRITICAL: Respond with TEXT ONLY"
  165. ]
  166. },
  167. "response": {
  168. "statusCode": 200,
  169. "toolUse": {
  170. "id": "toolu_e2e_tool_cross_product_webfetch",
  171. "name": "WebFetch",
  172. "input": {
  173. "url": "http://127.0.0.1:9/zcode-e2e-tool-cross-product",
  174. "prompt": "Return E2E_TOOL_RESULT_WEBFETCH"
  175. }
  176. }
  177. }
  178. },
  179. {
  180. "id": "upstream-tool-cross-product-todo-read-call",
  181. "description": "Conversation tool cross product: TodoRead tool_use.",
  182. "match": {
  183. "method": "POST",
  184. "pathIncludes": "/messages",
  185. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_TODO_READ"],
  186. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_TODO_READ"],
  187. "bodyExcludes": [
  188. "Generate a concise title",
  189. "CRITICAL: Respond with TEXT ONLY"
  190. ]
  191. },
  192. "response": {
  193. "statusCode": 200,
  194. "toolUse": {
  195. "id": "toolu_e2e_tool_cross_product_todo_read",
  196. "name": "TodoRead",
  197. "input": {}
  198. }
  199. }
  200. },
  201. {
  202. "id": "upstream-tool-cross-product-todo-write-call",
  203. "description": "Conversation tool cross product: TodoWrite tool_use.",
  204. "match": {
  205. "method": "POST",
  206. "pathIncludes": "/messages",
  207. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_TODO_WRITE"],
  208. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_TODO_WRITE"],
  209. "bodyExcludes": [
  210. "Generate a concise title",
  211. "CRITICAL: Respond with TEXT ONLY"
  212. ]
  213. },
  214. "response": {
  215. "statusCode": 200,
  216. "toolUse": {
  217. "id": "toolu_e2e_tool_cross_product_todo_write",
  218. "name": "TodoWrite",
  219. "input": {
  220. "todos": [
  221. {
  222. "content": "E2E_TOOL_RESULT_TODO_WRITE",
  223. "status": "completed",
  224. "priority": "low"
  225. }
  226. ]
  227. }
  228. }
  229. }
  230. },
  231. {
  232. "id": "upstream-tool-cross-product-goal-read-call",
  233. "description": "Conversation tool cross product: GoalRead tool_use.",
  234. "match": {
  235. "method": "POST",
  236. "pathIncludes": "/messages",
  237. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_GOAL_READ"],
  238. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_GOAL_READ"],
  239. "bodyExcludes": [
  240. "Generate a concise title",
  241. "CRITICAL: Respond with TEXT ONLY"
  242. ]
  243. },
  244. "response": {
  245. "statusCode": 200,
  246. "toolUse": {
  247. "id": "toolu_e2e_tool_cross_product_goal_read",
  248. "name": "GoalRead",
  249. "input": {}
  250. }
  251. }
  252. },
  253. {
  254. "id": "upstream-tool-cross-product-enter-plan-mode-call",
  255. "description": "Conversation tool cross product: EnterPlanMode tool_use.",
  256. "match": {
  257. "method": "POST",
  258. "pathIncludes": "/messages",
  259. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_ENTER_PLAN_MODE"],
  260. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_ENTER_PLAN_MODE"],
  261. "bodyExcludes": [
  262. "Generate a concise title",
  263. "CRITICAL: Respond with TEXT ONLY"
  264. ]
  265. },
  266. "response": {
  267. "statusCode": 200,
  268. "toolUse": {
  269. "id": "toolu_e2e_tool_cross_product_enter_plan_mode",
  270. "name": "EnterPlanMode",
  271. "input": {}
  272. }
  273. }
  274. },
  275. {
  276. "id": "upstream-tool-cross-product-exit-plan-mode-call",
  277. "description": "Conversation tool cross product: ExitPlanMode fast-fail tool_use.",
  278. "match": {
  279. "method": "POST",
  280. "pathIncludes": "/messages",
  281. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_EXIT_PLAN_MODE"],
  282. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_EXIT_PLAN_MODE"],
  283. "bodyExcludes": [
  284. "Generate a concise title",
  285. "CRITICAL: Respond with TEXT ONLY"
  286. ]
  287. },
  288. "response": {
  289. "statusCode": 200,
  290. "toolUse": {
  291. "id": "toolu_e2e_tool_cross_product_exit_plan_mode",
  292. "name": "ExitPlanMode",
  293. "input": {
  294. "plan": "E2E_TOOL_RESULT_EXIT_PLAN_MODE"
  295. }
  296. }
  297. }
  298. },
  299. {
  300. "id": "upstream-tool-cross-product-ask-user-question-call",
  301. "description": "Conversation tool cross product: AskUserQuestion tool_use.",
  302. "match": {
  303. "method": "POST",
  304. "pathIncludes": "/messages",
  305. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_ASK_USER_QUESTION"],
  306. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_ASK_USER_QUESTION"],
  307. "bodyExcludes": [
  308. "Generate a concise title",
  309. "CRITICAL: Respond with TEXT ONLY"
  310. ]
  311. },
  312. "response": {
  313. "statusCode": 200,
  314. "toolUse": {
  315. "id": "toolu_e2e_tool_cross_product_ask_user_question",
  316. "name": "AskUserQuestion",
  317. "input": {
  318. "questions": [
  319. {
  320. "question": "E2E_TOOL_CROSS_PRODUCT_ASK_USER_QUESTION: choose an answer?",
  321. "header": "E2E",
  322. "options": [
  323. {
  324. "label": "Use default",
  325. "description": "Continue the e2e run with the default answer."
  326. },
  327. {
  328. "label": "Use fallback",
  329. "description": "Continue the e2e run with the fallback answer."
  330. }
  331. ]
  332. }
  333. ]
  334. }
  335. }
  336. }
  337. },
  338. {
  339. "id": "upstream-tool-cross-product-send-message-call",
  340. "description": "Conversation tool cross product: SendMessage conditional tool_use.",
  341. "match": {
  342. "method": "POST",
  343. "pathIncludes": "/messages",
  344. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_SEND_MESSAGE"],
  345. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_SEND_MESSAGE"],
  346. "bodyExcludes": [
  347. "Generate a concise title",
  348. "CRITICAL: Respond with TEXT ONLY"
  349. ]
  350. },
  351. "response": {
  352. "statusCode": 200,
  353. "toolUse": {
  354. "id": "toolu_e2e_tool_cross_product_sendmessage",
  355. "name": "SendMessage",
  356. "input": {
  357. "to": "agent_e2e_missing_tool_cross_product",
  358. "summary": "E2E_TOOL_RESULT_SEND_MESSAGE",
  359. "message": "E2E_TOOL_RESULT_SEND_MESSAGE"
  360. }
  361. }
  362. }
  363. },
  364. {
  365. "id": "upstream-tool-cross-product-agent-call",
  366. "description": "Conversation tool cross product: Agent fast-fail tool_use.",
  367. "match": {
  368. "method": "POST",
  369. "pathIncludes": "/messages",
  370. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_AGENT"],
  371. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_AGENT"],
  372. "bodyExcludes": [
  373. "Generate a concise title",
  374. "CRITICAL: Respond with TEXT ONLY"
  375. ]
  376. },
  377. "response": {
  378. "statusCode": 200,
  379. "toolUse": {
  380. "id": "toolu_e2e_tool_cross_product_agent",
  381. "name": "Agent",
  382. "input": {
  383. "description": "E2E fast fail",
  384. "prompt": "E2E_TOOL_RESULT_AGENT",
  385. "subagent_type": "Missing"
  386. }
  387. }
  388. }
  389. },
  390. {
  391. "id": "upstream-tool-cross-product-skill-call",
  392. "description": "Conversation tool cross product: Skill fast-fail tool_use.",
  393. "match": {
  394. "method": "POST",
  395. "pathIncludes": "/messages",
  396. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_SKILL"],
  397. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_SKILL"],
  398. "bodyExcludes": [
  399. "Generate a concise title",
  400. "CRITICAL: Respond with TEXT ONLY"
  401. ]
  402. },
  403. "response": {
  404. "statusCode": 200,
  405. "toolUse": {
  406. "id": "toolu_e2e_tool_cross_product_skill",
  407. "name": "Skill",
  408. "input": {
  409. "skill": "zcode-e2e-missing-skill"
  410. }
  411. }
  412. }
  413. },
  414. {
  415. "id": "upstream-tool-cross-product-workflow-call",
  416. "description": "Conversation tool cross product: Workflow fast-fail tool_use.",
  417. "match": {
  418. "method": "POST",
  419. "pathIncludes": "/messages",
  420. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_WORKFLOW"],
  421. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_WORKFLOW"],
  422. "bodyExcludes": [
  423. "Generate a concise title",
  424. "CRITICAL: Respond with TEXT ONLY"
  425. ]
  426. },
  427. "response": {
  428. "statusCode": 200,
  429. "toolUse": {
  430. "id": "toolu_e2e_tool_cross_product_workflow",
  431. "name": "Workflow",
  432. "input": {}
  433. }
  434. }
  435. },
  436. {
  437. "id": "upstream-tool-cross-product-tool-final",
  438. "description": "Conversation tool cross product: final text after any tool_result.",
  439. "match": {
  440. "method": "POST",
  441. "pathIncludes": "/messages",
  442. "bodyIncludes": [
  443. "E2E_TOOL_CROSS_PRODUCT",
  444. "toolu_e2e_tool_cross_product"
  445. ],
  446. "bodyExcludes": [
  447. "Generate a concise title",
  448. "CRITICAL: Respond with TEXT ONLY",
  449. "E2E_TOOL_CROSS_PRODUCT_GOAL_OBJECTIVE"
  450. ]
  451. },
  452. "response": {
  453. "statusCode": 200,
  454. "text": "upstream-e2e-ok"
  455. }
  456. },
  457. {
  458. "id": "upstream-tool-cross-product-goal-final",
  459. "description": "Conversation tool cross product: final text for goal continuation.",
  460. "match": {
  461. "method": "POST",
  462. "pathIncludes": "/messages",
  463. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_GOAL_OBJECTIVE"],
  464. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_GOAL_OBJECTIVE"],
  465. "bodyExcludes": [
  466. "Generate a concise title",
  467. "CRITICAL: Respond with TEXT ONLY"
  468. ]
  469. },
  470. "response": {
  471. "statusCode": 200,
  472. "text": "upstream-e2e-ok"
  473. }
  474. }
  475. ]
  476. }