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

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