@orq-ai/node 4.12.0-rc.9 → 4.13.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (756) hide show
  1. package/README.md +80 -47
  2. package/funcs/datasetsClear.d.ts +2 -1
  3. package/funcs/datasetsClear.d.ts.map +1 -1
  4. package/funcs/datasetsClear.js +6 -2
  5. package/funcs/datasetsClear.js.map +1 -1
  6. package/funcs/filesList.js +1 -0
  7. package/funcs/filesList.js.map +1 -1
  8. package/funcs/knowledgeListDatasources.js +1 -0
  9. package/funcs/knowledgeListDatasources.js.map +1 -1
  10. package/funcs/notifiersList.js +2 -0
  11. package/funcs/notifiersList.js.map +1 -1
  12. package/funcs/reportingQuery.d.ts +3 -1
  13. package/funcs/reportingQuery.d.ts.map +1 -1
  14. package/funcs/reportingQuery.js +3 -1
  15. package/funcs/reportingQuery.js.map +1 -1
  16. package/funcs/{budgetsCheck.d.ts → smartRoutersCreate.d.ts} +4 -4
  17. package/funcs/smartRoutersCreate.d.ts.map +1 -0
  18. package/funcs/{modelsCreateAutorouter.js → smartRoutersCreate.js} +10 -10
  19. package/funcs/smartRoutersCreate.js.map +1 -0
  20. package/funcs/smartRoutersDelete.d.ts +18 -0
  21. package/funcs/smartRoutersDelete.d.ts.map +1 -0
  22. package/funcs/smartRoutersDelete.js +121 -0
  23. package/funcs/smartRoutersDelete.js.map +1 -0
  24. package/funcs/smartRoutersGet.d.ts +18 -0
  25. package/funcs/smartRoutersGet.d.ts.map +1 -0
  26. package/funcs/smartRoutersGet.js +121 -0
  27. package/funcs/smartRoutersGet.js.map +1 -0
  28. package/funcs/smartRoutersList.d.ts +18 -0
  29. package/funcs/smartRoutersList.d.ts.map +1 -0
  30. package/funcs/smartRoutersList.js +124 -0
  31. package/funcs/smartRoutersList.js.map +1 -0
  32. package/funcs/smartRoutersSetEnabled.d.ts +18 -0
  33. package/funcs/smartRoutersSetEnabled.d.ts.map +1 -0
  34. package/funcs/smartRoutersSetEnabled.js +124 -0
  35. package/funcs/smartRoutersSetEnabled.js.map +1 -0
  36. package/funcs/smartRoutersUpdate.d.ts +18 -0
  37. package/funcs/smartRoutersUpdate.d.ts.map +1 -0
  38. package/funcs/smartRoutersUpdate.js +124 -0
  39. package/funcs/smartRoutersUpdate.js.map +1 -0
  40. package/funcs/telemetryQuery.d.ts +17 -0
  41. package/funcs/telemetryQuery.d.ts.map +1 -0
  42. package/funcs/telemetryQuery.js +115 -0
  43. package/funcs/telemetryQuery.js.map +1 -0
  44. package/funcs/tracesAggregate.d.ts +3 -1
  45. package/funcs/tracesAggregate.d.ts.map +1 -1
  46. package/funcs/tracesAggregate.js +3 -1
  47. package/funcs/tracesAggregate.js.map +1 -1
  48. package/funcs/webhooksCount.d.ts +17 -0
  49. package/funcs/webhooksCount.d.ts.map +1 -0
  50. package/funcs/webhooksCount.js +105 -0
  51. package/funcs/webhooksCount.js.map +1 -0
  52. package/funcs/webhooksCreate.d.ts +17 -0
  53. package/funcs/webhooksCreate.d.ts.map +1 -0
  54. package/funcs/{budgetsCheck.js → webhooksCreate.js} +9 -9
  55. package/funcs/webhooksCreate.js.map +1 -0
  56. package/funcs/webhooksDelete.d.ts +18 -0
  57. package/funcs/webhooksDelete.d.ts.map +1 -0
  58. package/funcs/webhooksDelete.js +121 -0
  59. package/funcs/webhooksDelete.js.map +1 -0
  60. package/funcs/webhooksGenerateSecret.d.ts +17 -0
  61. package/funcs/webhooksGenerateSecret.d.ts.map +1 -0
  62. package/funcs/webhooksGenerateSecret.js +105 -0
  63. package/funcs/webhooksGenerateSecret.js.map +1 -0
  64. package/funcs/webhooksGet.d.ts +18 -0
  65. package/funcs/webhooksGet.d.ts.map +1 -0
  66. package/funcs/webhooksGet.js +121 -0
  67. package/funcs/webhooksGet.js.map +1 -0
  68. package/funcs/webhooksList.d.ts +18 -0
  69. package/funcs/webhooksList.d.ts.map +1 -0
  70. package/funcs/webhooksList.js +126 -0
  71. package/funcs/webhooksList.js.map +1 -0
  72. package/funcs/webhooksQuery.d.ts +19 -0
  73. package/funcs/webhooksQuery.d.ts.map +1 -0
  74. package/funcs/webhooksQuery.js +117 -0
  75. package/funcs/webhooksQuery.js.map +1 -0
  76. package/funcs/webhooksUpdate.d.ts +17 -0
  77. package/funcs/webhooksUpdate.d.ts.map +1 -0
  78. package/funcs/{modelsUpdateAutorouter.js → webhooksUpdate.js} +9 -9
  79. package/funcs/webhooksUpdate.js.map +1 -0
  80. package/jsr.json +1 -1
  81. package/lib/config.d.ts +3 -3
  82. package/lib/config.js +3 -3
  83. package/lib/http.d.ts +1 -1
  84. package/lib/http.d.ts.map +1 -1
  85. package/lib/http.js +1 -1
  86. package/lib/http.js.map +1 -1
  87. package/lib/security.d.ts +5 -4
  88. package/lib/security.d.ts.map +1 -1
  89. package/lib/security.js +6 -7
  90. package/lib/security.js.map +1 -1
  91. package/models/components/actionreviewrequestedstreamingevent.d.ts +2 -2
  92. package/models/components/actionreviewrequestedstreamingevent.d.ts.map +1 -1
  93. package/models/components/actionreviewrequestedstreamingevent.js +1 -1
  94. package/models/components/actionreviewrequestedstreamingevent.js.map +1 -1
  95. package/models/components/agentstartedstreamingevent.d.ts +2 -2
  96. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  97. package/models/components/agentstartedstreamingevent.js +1 -1
  98. package/models/components/agentstartedstreamingevent.js.map +1 -1
  99. package/models/components/agenttoolinputcrud.d.ts +413 -0
  100. package/models/components/agenttoolinputcrud.d.ts.map +1 -0
  101. package/models/components/agenttoolinputcrud.js +287 -0
  102. package/models/components/agenttoolinputcrud.js.map +1 -0
  103. package/models/components/apikey.d.ts +5 -0
  104. package/models/components/apikey.d.ts.map +1 -1
  105. package/models/components/apikey.js +2 -0
  106. package/models/components/apikey.js.map +1 -1
  107. package/models/components/autorouterconfig.d.ts +2 -0
  108. package/models/components/autorouterconfig.d.ts.map +1 -1
  109. package/models/components/autorouterconfig.js +2 -0
  110. package/models/components/autorouterconfig.js.map +1 -1
  111. package/models/components/autorouterv2config.d.ts +27 -0
  112. package/models/components/autorouterv2config.d.ts.map +1 -1
  113. package/models/components/autorouterv2config.js +37 -0
  114. package/models/components/autorouterv2config.js.map +1 -1
  115. package/models/components/autorouterv2creatorconfig.d.ts +21 -0
  116. package/models/components/autorouterv2creatorconfig.d.ts.map +1 -0
  117. package/models/components/autorouterv2creatorconfig.js +62 -0
  118. package/models/components/autorouterv2creatorconfig.js.map +1 -0
  119. package/models/components/budget.d.ts +5 -0
  120. package/models/components/budget.d.ts.map +1 -1
  121. package/models/components/budget.js +2 -0
  122. package/models/components/budget.js.map +1 -1
  123. package/models/components/budgetalert.d.ts +41 -0
  124. package/models/components/budgetalert.d.ts.map +1 -0
  125. package/models/components/budgetalert.js +76 -0
  126. package/models/components/budgetalert.js.map +1 -0
  127. package/models/components/budgetalertdimension.d.ts +13 -0
  128. package/models/components/budgetalertdimension.d.ts.map +1 -0
  129. package/models/components/budgetalertdimension.js +50 -0
  130. package/models/components/budgetalertdimension.js.map +1 -0
  131. package/models/components/codetoolinput.d.ts +38 -0
  132. package/models/components/codetoolinput.d.ts.map +1 -0
  133. package/models/components/{checkbudgetsrequest.js → codetoolinput.js} +12 -23
  134. package/models/components/codetoolinput.js.map +1 -0
  135. package/models/components/config.d.ts +14 -0
  136. package/models/components/config.d.ts.map +1 -0
  137. package/models/components/config.js +63 -0
  138. package/models/components/config.js.map +1 -0
  139. package/models/components/countwebhooksresponse.d.ts +16 -0
  140. package/models/components/countwebhooksresponse.d.ts.map +1 -0
  141. package/models/components/countwebhooksresponse.js +50 -0
  142. package/models/components/countwebhooksresponse.js.map +1 -0
  143. package/models/components/createbudgetrequest.d.ts +9 -0
  144. package/models/components/createbudgetrequest.d.ts.map +1 -1
  145. package/models/components/createbudgetrequest.js +2 -0
  146. package/models/components/createbudgetrequest.js.map +1 -1
  147. package/models/components/createsmartrouterrequest.d.ts +23 -0
  148. package/models/components/createsmartrouterrequest.d.ts.map +1 -0
  149. package/models/components/createsmartrouterrequest.js +52 -0
  150. package/models/components/createsmartrouterrequest.js.map +1 -0
  151. package/models/components/createsmartrouterresponse.d.ts +11 -0
  152. package/models/components/createsmartrouterresponse.d.ts.map +1 -0
  153. package/models/components/{budgetrejection.js → createsmartrouterresponse.js} +9 -13
  154. package/models/components/createsmartrouterresponse.js.map +1 -0
  155. package/models/components/createwebhookrequest.d.ts +62 -0
  156. package/models/components/createwebhookrequest.d.ts.map +1 -0
  157. package/models/components/createwebhookrequest.js +71 -0
  158. package/models/components/createwebhookrequest.js.map +1 -0
  159. package/models/components/deletesmartrouterresponse.d.ts +8 -0
  160. package/models/components/deletesmartrouterresponse.d.ts.map +1 -0
  161. package/models/components/deletesmartrouterresponse.js +48 -0
  162. package/models/components/deletesmartrouterresponse.js.map +1 -0
  163. package/models/components/deletewebhookresponse.d.ts +13 -0
  164. package/models/components/deletewebhookresponse.d.ts.map +1 -0
  165. package/models/components/deletewebhookresponse.js +50 -0
  166. package/models/components/deletewebhookresponse.js.map +1 -0
  167. package/models/components/evaluatorresponsefunction.js +2 -2
  168. package/models/components/evaluatorresponsehttp.js +2 -2
  169. package/models/components/evaluatorresponsejsonschema.js +2 -2
  170. package/models/components/evaluatorresponsellm.js +2 -2
  171. package/models/components/evaluatorresponsepython.js +2 -2
  172. package/models/components/evaluatorresponseragas.js +2 -2
  173. package/models/components/evaluatorresponsetypescript.js +2 -2
  174. package/models/components/functiontoolinput.d.ts +33 -0
  175. package/models/components/functiontoolinput.d.ts.map +1 -0
  176. package/models/components/functiontoolinput.js +57 -0
  177. package/models/components/functiontoolinput.js.map +1 -0
  178. package/models/components/generatewebhooksecretresponse.d.ts +16 -0
  179. package/models/components/generatewebhooksecretresponse.d.ts.map +1 -0
  180. package/models/components/generatewebhooksecretresponse.js +50 -0
  181. package/models/components/generatewebhooksecretresponse.js.map +1 -0
  182. package/models/components/getsmartrouterresponse.d.ts +11 -0
  183. package/models/components/getsmartrouterresponse.d.ts.map +1 -0
  184. package/models/components/getsmartrouterresponse.js +56 -0
  185. package/models/components/getsmartrouterresponse.js.map +1 -0
  186. package/models/components/httptoolinput.d.ts +38 -0
  187. package/models/components/httptoolinput.d.ts.map +1 -0
  188. package/models/components/httptoolinput.js +58 -0
  189. package/models/components/httptoolinput.js.map +1 -0
  190. package/models/components/identity.d.ts +9 -4
  191. package/models/components/identity.d.ts.map +1 -1
  192. package/models/components/identity.js +8 -6
  193. package/models/components/identity.js.map +1 -1
  194. package/models/components/index.d.ts +36 -4
  195. package/models/components/index.d.ts.map +1 -1
  196. package/models/components/index.js +36 -4
  197. package/models/components/index.js.map +1 -1
  198. package/models/components/jsonschematoolinput.d.ts +33 -0
  199. package/models/components/jsonschematoolinput.d.ts.map +1 -0
  200. package/models/components/jsonschematoolinput.js +57 -0
  201. package/models/components/jsonschematoolinput.js.map +1 -0
  202. package/models/components/listbudgetsresponse.d.ts +3 -3
  203. package/models/components/listbudgetsresponse.d.ts.map +1 -1
  204. package/models/components/listbudgetsresponse.js +3 -3
  205. package/models/components/listbudgetsresponse.js.map +1 -1
  206. package/models/components/listsmartroutersresponse.d.ts +13 -0
  207. package/models/components/listsmartroutersresponse.d.ts.map +1 -0
  208. package/models/components/listsmartroutersresponse.js +58 -0
  209. package/models/components/listsmartroutersresponse.js.map +1 -0
  210. package/models/components/listwebhooksresponse.d.ts +25 -0
  211. package/models/components/listwebhooksresponse.d.ts.map +1 -0
  212. package/models/components/{checkbudgetsresponse.js → listwebhooksresponse.js} +15 -13
  213. package/models/components/listwebhooksresponse.js.map +1 -0
  214. package/models/components/mcptoolinput.d.ts +38 -0
  215. package/models/components/mcptoolinput.d.ts.map +1 -0
  216. package/models/components/mcptoolinput.js +59 -0
  217. package/models/components/mcptoolinput.js.map +1 -0
  218. package/models/components/modeldocument.d.ts +2 -0
  219. package/models/components/modeldocument.d.ts.map +1 -1
  220. package/models/components/modeldocument.js +2 -0
  221. package/models/components/modeldocument.js.map +1 -1
  222. package/models/components/modelsconfig.d.ts +1 -0
  223. package/models/components/modelsconfig.d.ts.map +1 -1
  224. package/models/components/modelsconfig.js +1 -0
  225. package/models/components/modelsconfig.js.map +1 -1
  226. package/models/components/providertoolinput.d.ts +47 -0
  227. package/models/components/providertoolinput.d.ts.map +1 -0
  228. package/models/components/providertoolinput.js +59 -0
  229. package/models/components/providertoolinput.js.map +1 -0
  230. package/models/components/queryparamspagination.d.ts +18 -0
  231. package/models/components/queryparamspagination.d.ts.map +1 -0
  232. package/models/components/queryparamspagination.js +52 -0
  233. package/models/components/queryparamspagination.js.map +1 -0
  234. package/models/components/queryparamssort.d.ts +14 -0
  235. package/models/components/queryparamssort.d.ts.map +1 -0
  236. package/models/components/queryparamssort.js +50 -0
  237. package/models/components/queryparamssort.js.map +1 -0
  238. package/models/components/querytelemetrymeta.d.ts +11 -0
  239. package/models/components/querytelemetrymeta.d.ts.map +1 -0
  240. package/models/components/{dimensioninfo.js → querytelemetrymeta.js} +9 -10
  241. package/models/components/querytelemetrymeta.js.map +1 -0
  242. package/models/components/querytelemetryrequest.d.ts +40 -0
  243. package/models/components/querytelemetryrequest.d.ts.map +1 -0
  244. package/models/components/querytelemetryrequest.js +69 -0
  245. package/models/components/querytelemetryrequest.js.map +1 -0
  246. package/models/components/querytelemetryresponse.d.ts +15 -0
  247. package/models/components/querytelemetryresponse.d.ts.map +1 -0
  248. package/models/components/querytelemetryresponse.js +55 -0
  249. package/models/components/querytelemetryresponse.js.map +1 -0
  250. package/models/components/querywebhooksrequest.d.ts +38 -0
  251. package/models/components/querywebhooksrequest.d.ts.map +1 -0
  252. package/models/components/querywebhooksrequest.js +67 -0
  253. package/models/components/querywebhooksrequest.js.map +1 -0
  254. package/models/components/querywebhooksresponse.d.ts +12 -0
  255. package/models/components/querywebhooksresponse.d.ts.map +1 -0
  256. package/models/components/querywebhooksresponse.js +52 -0
  257. package/models/components/querywebhooksresponse.js.map +1 -0
  258. package/models/components/reasoningpart.js +1 -1
  259. package/models/components/setsmartrouterenabledrequest.d.ts +12 -0
  260. package/models/components/setsmartrouterenabledrequest.d.ts.map +1 -0
  261. package/models/components/setsmartrouterenabledrequest.js +49 -0
  262. package/models/components/setsmartrouterenabledrequest.js.map +1 -0
  263. package/models/components/setsmartrouterenabledresponse.d.ts +11 -0
  264. package/models/components/setsmartrouterenabledresponse.d.ts.map +1 -0
  265. package/models/components/setsmartrouterenabledresponse.js +56 -0
  266. package/models/components/setsmartrouterenabledresponse.js.map +1 -0
  267. package/models/components/smartrouter.d.ts +33 -0
  268. package/models/components/smartrouter.d.ts.map +1 -0
  269. package/models/components/smartrouter.js +66 -0
  270. package/models/components/smartrouter.js.map +1 -0
  271. package/models/components/smartrouterprofile.d.ts +14 -0
  272. package/models/components/smartrouterprofile.d.ts.map +1 -0
  273. package/models/components/smartrouterprofile.js +51 -0
  274. package/models/components/smartrouterprofile.js.map +1 -0
  275. package/models/components/telemetryrow.d.ts +22 -0
  276. package/models/components/telemetryrow.d.ts.map +1 -0
  277. package/models/components/telemetryrow.js +53 -0
  278. package/models/components/telemetryrow.js.map +1 -0
  279. package/models/components/thinkingconfigenabledschema.d.ts +1 -0
  280. package/models/components/thinkingconfigenabledschema.d.ts.map +1 -1
  281. package/models/components/thinkingconfigenabledschema.js +1 -0
  282. package/models/components/thinkingconfigenabledschema.js.map +1 -1
  283. package/models/components/updatebudgetrequest.d.ts +14 -0
  284. package/models/components/updatebudgetrequest.d.ts.map +1 -1
  285. package/models/components/updatebudgetrequest.js +4 -0
  286. package/models/components/updatebudgetrequest.js.map +1 -1
  287. package/models/components/updatesmartrouterrequest.d.ts +15 -0
  288. package/models/components/updatesmartrouterrequest.d.ts.map +1 -0
  289. package/models/components/updatesmartrouterrequest.js +51 -0
  290. package/models/components/updatesmartrouterrequest.js.map +1 -0
  291. package/models/components/updatesmartrouterresponse.d.ts +11 -0
  292. package/models/components/updatesmartrouterresponse.d.ts.map +1 -0
  293. package/models/components/updatesmartrouterresponse.js +56 -0
  294. package/models/components/updatesmartrouterresponse.js.map +1 -0
  295. package/models/components/webhook.d.ts +74 -0
  296. package/models/components/webhook.d.ts.map +1 -0
  297. package/models/components/webhook.js +81 -0
  298. package/models/components/webhook.js.map +1 -0
  299. package/models/operations/createagentrequest.d.ts +9 -660
  300. package/models/operations/createagentrequest.d.ts.map +1 -1
  301. package/models/operations/createagentrequest.js +12 -419
  302. package/models/operations/createagentrequest.js.map +1 -1
  303. package/models/operations/createchatcompletion.d.ts +1 -0
  304. package/models/operations/createchatcompletion.d.ts.map +1 -1
  305. package/models/operations/createchatcompletion.js +1 -0
  306. package/models/operations/createchatcompletion.js.map +1 -1
  307. package/models/operations/createdataset.js +1 -1
  308. package/models/operations/createdatasetitem.d.ts +121 -8
  309. package/models/operations/createdatasetitem.d.ts.map +1 -1
  310. package/models/operations/createdatasetitem.js +97 -12
  311. package/models/operations/createdatasetitem.js.map +1 -1
  312. package/models/operations/createdatasource.d.ts +42 -0
  313. package/models/operations/createdatasource.d.ts.map +1 -1
  314. package/models/operations/createdatasource.js +26 -2
  315. package/models/operations/createdatasource.js.map +1 -1
  316. package/models/operations/createeval.d.ts +88 -88
  317. package/models/operations/createeval.d.ts.map +1 -1
  318. package/models/operations/createeval.js +78 -78
  319. package/models/operations/createeval.js.map +1 -1
  320. package/models/operations/createknowledge.d.ts +6 -6
  321. package/models/operations/createknowledge.d.ts.map +1 -1
  322. package/models/operations/createknowledge.js +6 -6
  323. package/models/operations/createknowledge.js.map +1 -1
  324. package/models/operations/createprompt.d.ts +5 -0
  325. package/models/operations/createprompt.d.ts.map +1 -1
  326. package/models/operations/createprompt.js +5 -0
  327. package/models/operations/createprompt.js.map +1 -1
  328. package/models/operations/createrouterresponse.d.ts +63 -26
  329. package/models/operations/createrouterresponse.d.ts.map +1 -1
  330. package/models/operations/createrouterresponse.js +26 -17
  331. package/models/operations/createrouterresponse.js.map +1 -1
  332. package/models/operations/createtool.d.ts +27 -18
  333. package/models/operations/createtool.d.ts.map +1 -1
  334. package/models/operations/createtool.js +30 -28
  335. package/models/operations/createtool.js.map +1 -1
  336. package/models/operations/deploymentgetconfig.d.ts +1 -0
  337. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  338. package/models/operations/deploymentgetconfig.js +1 -0
  339. package/models/operations/deploymentgetconfig.js.map +1 -1
  340. package/models/operations/deploymentinvoke.d.ts +2 -0
  341. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  342. package/models/operations/deploymentinvoke.js +2 -0
  343. package/models/operations/deploymentinvoke.js.map +1 -1
  344. package/models/operations/deployments.d.ts +3 -0
  345. package/models/operations/deployments.d.ts.map +1 -1
  346. package/models/operations/deployments.js +3 -0
  347. package/models/operations/deployments.js.map +1 -1
  348. package/models/operations/deploymentstream.d.ts +2 -0
  349. package/models/operations/deploymentstream.d.ts.map +1 -1
  350. package/models/operations/deploymentstream.js +2 -0
  351. package/models/operations/deploymentstream.js.map +1 -1
  352. package/models/operations/filelist.d.ts +10 -0
  353. package/models/operations/filelist.d.ts.map +1 -1
  354. package/models/operations/filelist.js +1 -0
  355. package/models/operations/filelist.js.map +1 -1
  356. package/models/operations/getallmemories.d.ts +1 -1
  357. package/models/operations/getallmemorydocuments.d.ts +1 -1
  358. package/models/operations/getallmemorystores.d.ts +1 -1
  359. package/models/operations/getallprompts.d.ts +5 -1
  360. package/models/operations/getallprompts.d.ts.map +1 -1
  361. package/models/operations/getallprompts.js +4 -0
  362. package/models/operations/getallprompts.js.map +1 -1
  363. package/models/operations/getalltools.d.ts +4 -0
  364. package/models/operations/getalltools.d.ts.map +1 -1
  365. package/models/operations/getalltools.js +7 -6
  366. package/models/operations/getalltools.js.map +1 -1
  367. package/models/operations/getevals.d.ts +1 -1
  368. package/models/operations/getoneprompt.d.ts +4 -0
  369. package/models/operations/getoneprompt.d.ts.map +1 -1
  370. package/models/operations/getoneprompt.js +4 -0
  371. package/models/operations/getoneprompt.js.map +1 -1
  372. package/models/operations/getpromptversion.d.ts +4 -0
  373. package/models/operations/getpromptversion.d.ts.map +1 -1
  374. package/models/operations/getpromptversion.js +4 -0
  375. package/models/operations/getpromptversion.js.map +1 -1
  376. package/models/operations/getv2evaluatorsidversions.d.ts +1 -1
  377. package/models/operations/getv2humanevalsets.js +2 -2
  378. package/models/operations/getv2humanevalsetsid.js +2 -2
  379. package/models/operations/getv2toolstoolidversions.d.ts +1 -1
  380. package/models/operations/index.d.ts +9 -2
  381. package/models/operations/index.d.ts.map +1 -1
  382. package/models/operations/index.js +9 -2
  383. package/models/operations/index.js.map +1 -1
  384. package/models/operations/listagents.d.ts +5 -3
  385. package/models/operations/listagents.d.ts.map +1 -1
  386. package/models/operations/listagents.js +4 -2
  387. package/models/operations/listagents.js.map +1 -1
  388. package/models/operations/listchunks.d.ts +1 -1
  389. package/models/operations/listdatasetdatapoints.d.ts +150 -37
  390. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  391. package/models/operations/listdatasetdatapoints.js +119 -37
  392. package/models/operations/listdatasetdatapoints.js.map +1 -1
  393. package/models/operations/listdatasets.d.ts +1 -1
  394. package/models/operations/listdatasets.js +1 -1
  395. package/models/operations/listdatasources.d.ts +48 -0
  396. package/models/operations/listdatasources.d.ts.map +1 -1
  397. package/models/operations/listdatasources.js +33 -2
  398. package/models/operations/listdatasources.js.map +1 -1
  399. package/models/operations/listpromptversions.d.ts +5 -1
  400. package/models/operations/listpromptversions.d.ts.map +1 -1
  401. package/models/operations/listpromptversions.js +4 -0
  402. package/models/operations/listpromptversions.js.map +1 -1
  403. package/models/operations/modelcreate.d.ts +1 -0
  404. package/models/operations/modelcreate.d.ts.map +1 -1
  405. package/models/operations/modelcreate.js +1 -0
  406. package/models/operations/modelcreate.js.map +1 -1
  407. package/models/operations/modelcreateawsbedrock.d.ts +1 -0
  408. package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
  409. package/models/operations/modelcreateawsbedrock.js +1 -0
  410. package/models/operations/modelcreateawsbedrock.js.map +1 -1
  411. package/models/operations/modelcreateopenailike.d.ts +1 -0
  412. package/models/operations/modelcreateopenailike.d.ts.map +1 -1
  413. package/models/operations/modelcreateopenailike.js +1 -0
  414. package/models/operations/modelcreateopenailike.js.map +1 -1
  415. package/models/operations/modelcreatevertex.d.ts +1 -0
  416. package/models/operations/modelcreatevertex.d.ts.map +1 -1
  417. package/models/operations/modelcreatevertex.js +1 -0
  418. package/models/operations/modelcreatevertex.js.map +1 -1
  419. package/models/operations/modelupdate.d.ts +1 -0
  420. package/models/operations/modelupdate.d.ts.map +1 -1
  421. package/models/operations/modelupdate.js +1 -0
  422. package/models/operations/modelupdate.js.map +1 -1
  423. package/models/operations/modelupdateawsbedrock.d.ts +1 -0
  424. package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
  425. package/models/operations/modelupdateawsbedrock.js +1 -0
  426. package/models/operations/modelupdateawsbedrock.js.map +1 -1
  427. package/models/operations/modelupdateopenailike.d.ts +1 -0
  428. package/models/operations/modelupdateopenailike.d.ts.map +1 -1
  429. package/models/operations/modelupdateopenailike.js +1 -0
  430. package/models/operations/modelupdateopenailike.js.map +1 -1
  431. package/models/operations/notifierlist.d.ts +11 -0
  432. package/models/operations/notifierlist.d.ts.map +1 -1
  433. package/models/operations/notifierlist.js +3 -0
  434. package/models/operations/notifierlist.js.map +1 -1
  435. package/models/operations/patchv2humanevalsetsid.js +2 -2
  436. package/models/operations/postv2feedbackevaluation.d.ts +68 -6
  437. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  438. package/models/operations/postv2feedbackevaluation.js +46 -6
  439. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  440. package/models/operations/postv2humanevalsets.js +2 -2
  441. package/models/operations/retrieveagentrequest.d.ts +5 -3
  442. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  443. package/models/operations/retrieveagentrequest.js +4 -2
  444. package/models/operations/retrieveagentrequest.js.map +1 -1
  445. package/models/operations/retrievedatapoint.d.ts +117 -4
  446. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  447. package/models/operations/retrievedatapoint.js +90 -8
  448. package/models/operations/retrievedatapoint.js.map +1 -1
  449. package/models/operations/retrievedataset.js +1 -1
  450. package/models/operations/retrievedatasource.d.ts +33 -0
  451. package/models/operations/retrievedatasource.d.ts.map +1 -1
  452. package/models/operations/retrievedatasource.js +25 -2
  453. package/models/operations/retrievedatasource.js.map +1 -1
  454. package/models/operations/retrieveresponse.d.ts +4 -4
  455. package/models/operations/retrieveresponse.d.ts.map +1 -1
  456. package/models/operations/retrieveresponse.js +4 -4
  457. package/models/operations/retrieveresponse.js.map +1 -1
  458. package/models/operations/retrievetool.d.ts +4 -0
  459. package/models/operations/retrievetool.d.ts.map +1 -1
  460. package/models/operations/retrievetool.js +7 -6
  461. package/models/operations/retrievetool.js.map +1 -1
  462. package/models/operations/runagent.d.ts +69 -52
  463. package/models/operations/runagent.d.ts.map +1 -1
  464. package/models/operations/runagent.js +80 -75
  465. package/models/operations/runagent.js.map +1 -1
  466. package/models/operations/smartrouterdelete.d.ts +12 -0
  467. package/models/operations/smartrouterdelete.d.ts.map +1 -0
  468. package/models/operations/smartrouterdelete.js +54 -0
  469. package/models/operations/smartrouterdelete.js.map +1 -0
  470. package/models/operations/smartrouterget.d.ts +12 -0
  471. package/models/operations/smartrouterget.d.ts.map +1 -0
  472. package/models/operations/smartrouterget.js +54 -0
  473. package/models/operations/smartrouterget.js.map +1 -0
  474. package/models/operations/smartrouterlist.d.ts +23 -0
  475. package/models/operations/smartrouterlist.d.ts.map +1 -0
  476. package/models/operations/smartrouterlist.js +61 -0
  477. package/models/operations/smartrouterlist.js.map +1 -0
  478. package/models/operations/smartroutersetenabled.d.ts +15 -0
  479. package/models/operations/smartroutersetenabled.d.ts.map +1 -0
  480. package/models/operations/smartroutersetenabled.js +57 -0
  481. package/models/operations/smartroutersetenabled.js.map +1 -0
  482. package/models/operations/smartrouterupdate.d.ts +15 -0
  483. package/models/operations/smartrouterupdate.d.ts.map +1 -0
  484. package/models/operations/smartrouterupdate.js +57 -0
  485. package/models/operations/smartrouterupdate.js.map +1 -0
  486. package/models/operations/streamrunagent.d.ts +69 -52
  487. package/models/operations/streamrunagent.d.ts.map +1 -1
  488. package/models/operations/streamrunagent.js +80 -78
  489. package/models/operations/streamrunagent.js.map +1 -1
  490. package/models/operations/updateagent.d.ts +9 -660
  491. package/models/operations/updateagent.d.ts.map +1 -1
  492. package/models/operations/updateagent.js +12 -419
  493. package/models/operations/updateagent.js.map +1 -1
  494. package/models/operations/updatedatapoint.d.ts +117 -4
  495. package/models/operations/updatedatapoint.d.ts.map +1 -1
  496. package/models/operations/updatedatapoint.js +92 -8
  497. package/models/operations/updatedatapoint.js.map +1 -1
  498. package/models/operations/updatedataset.js +1 -1
  499. package/models/operations/updatedatasource.d.ts +33 -0
  500. package/models/operations/updatedatasource.d.ts.map +1 -1
  501. package/models/operations/updatedatasource.js +25 -2
  502. package/models/operations/updatedatasource.js.map +1 -1
  503. package/models/operations/updateprompt.d.ts +5 -0
  504. package/models/operations/updateprompt.d.ts.map +1 -1
  505. package/models/operations/updateprompt.js +5 -0
  506. package/models/operations/updateprompt.js.map +1 -1
  507. package/models/operations/updatetool.d.ts +9 -0
  508. package/models/operations/updatetool.d.ts.map +1 -1
  509. package/models/operations/updatetool.js +9 -7
  510. package/models/operations/updatetool.js.map +1 -1
  511. package/models/operations/webhookdelete.d.ts +12 -0
  512. package/models/operations/webhookdelete.d.ts.map +1 -0
  513. package/models/operations/webhookdelete.js +49 -0
  514. package/models/operations/webhookdelete.js.map +1 -0
  515. package/models/operations/webhookget.d.ts +12 -0
  516. package/models/operations/webhookget.d.ts.map +1 -0
  517. package/models/operations/webhookget.js +49 -0
  518. package/models/operations/webhookget.js.map +1 -0
  519. package/models/operations/webhooklist.d.ts +70 -0
  520. package/models/operations/webhooklist.d.ts.map +1 -0
  521. package/models/operations/webhooklist.js +61 -0
  522. package/models/operations/webhooklist.js.map +1 -0
  523. package/models/operations/webhookupdate.d.ts +29 -0
  524. package/models/operations/webhookupdate.d.ts.map +1 -0
  525. package/models/operations/webhookupdate.js +68 -0
  526. package/models/operations/webhookupdate.js.map +1 -0
  527. package/package.json +8 -8
  528. package/sdk/budgets.d.ts +0 -7
  529. package/sdk/budgets.d.ts.map +1 -1
  530. package/sdk/budgets.js +0 -10
  531. package/sdk/budgets.js.map +1 -1
  532. package/sdk/feedback.d.ts +4 -1
  533. package/sdk/feedback.d.ts.map +1 -1
  534. package/sdk/feedback.js +4 -1
  535. package/sdk/feedback.js.map +1 -1
  536. package/sdk/models.d.ts +0 -14
  537. package/sdk/models.d.ts.map +1 -1
  538. package/sdk/models.js +0 -20
  539. package/sdk/models.js.map +1 -1
  540. package/sdk/reporting.d.ts +3 -1
  541. package/sdk/reporting.d.ts.map +1 -1
  542. package/sdk/reporting.js +3 -1
  543. package/sdk/reporting.js.map +1 -1
  544. package/sdk/sdk.d.ts +9 -0
  545. package/sdk/sdk.d.ts.map +1 -1
  546. package/sdk/sdk.js +12 -0
  547. package/sdk/sdk.js.map +1 -1
  548. package/sdk/smartrouters.d.ts +48 -0
  549. package/sdk/smartrouters.d.ts.map +1 -0
  550. package/sdk/smartrouters.js +72 -0
  551. package/sdk/smartrouters.js.map +1 -0
  552. package/sdk/telemetry.d.ts +12 -0
  553. package/sdk/telemetry.d.ts.map +1 -0
  554. package/sdk/telemetry.js +22 -0
  555. package/sdk/telemetry.js.map +1 -0
  556. package/sdk/traces.d.ts +3 -1
  557. package/sdk/traces.d.ts.map +1 -1
  558. package/sdk/traces.js +3 -1
  559. package/sdk/traces.js.map +1 -1
  560. package/sdk/webhooks.d.ts +64 -0
  561. package/sdk/webhooks.d.ts.map +1 -0
  562. package/sdk/webhooks.js +94 -0
  563. package/sdk/webhooks.js.map +1 -0
  564. package/src/funcs/datasetsClear.ts +11 -2
  565. package/src/funcs/filesList.ts +1 -0
  566. package/src/funcs/knowledgeListDatasources.ts +1 -0
  567. package/src/funcs/notifiersList.ts +2 -0
  568. package/src/funcs/reportingQuery.ts +3 -1
  569. package/src/funcs/{modelsCreateAutorouter.ts → smartRoutersCreate.ts} +14 -15
  570. package/src/funcs/smartRoutersDelete.ts +168 -0
  571. package/src/funcs/smartRoutersGet.ts +168 -0
  572. package/src/funcs/smartRoutersList.ts +173 -0
  573. package/src/funcs/smartRoutersSetEnabled.ts +174 -0
  574. package/src/funcs/smartRoutersUpdate.ts +171 -0
  575. package/src/funcs/telemetryQuery.ts +162 -0
  576. package/src/funcs/tracesAggregate.ts +3 -1
  577. package/src/funcs/webhooksCount.ts +144 -0
  578. package/src/funcs/{budgetsCheck.ts → webhooksCreate.ts} +12 -12
  579. package/src/funcs/webhooksDelete.ts +168 -0
  580. package/src/funcs/webhooksGenerateSecret.ts +144 -0
  581. package/src/funcs/webhooksGet.ts +168 -0
  582. package/src/funcs/webhooksList.ts +175 -0
  583. package/src/funcs/webhooksQuery.ts +164 -0
  584. package/src/funcs/{modelsUpdateAutorouter.ts → webhooksUpdate.ts} +13 -14
  585. package/src/lib/config.ts +3 -3
  586. package/src/lib/http.ts +3 -1
  587. package/src/lib/security.ts +10 -5
  588. package/src/models/components/actionreviewrequestedstreamingevent.ts +3 -3
  589. package/src/models/components/agentstartedstreamingevent.ts +3 -3
  590. package/src/models/components/agenttoolinputcrud.ts +747 -0
  591. package/src/models/components/apikey.ts +6 -0
  592. package/src/models/components/autorouterconfig.ts +4 -0
  593. package/src/models/components/autorouterv2config.ts +60 -0
  594. package/src/models/components/autorouterv2creatorconfig.ts +59 -0
  595. package/src/models/components/budget.ts +6 -0
  596. package/src/models/components/budgetalert.ts +92 -0
  597. package/src/models/components/budgetalertdimension.ts +22 -0
  598. package/src/models/components/codetoolinput.ts +62 -0
  599. package/src/models/components/config.ts +44 -0
  600. package/src/models/components/countwebhooksresponse.ts +37 -0
  601. package/src/models/components/createbudgetrequest.ts +14 -0
  602. package/src/models/components/createsmartrouterrequest.ts +47 -0
  603. package/src/models/components/createsmartrouterresponse.ts +37 -0
  604. package/src/models/components/createwebhookrequest.ts +100 -0
  605. package/src/models/components/deletesmartrouterresponse.ts +27 -0
  606. package/src/models/components/deletewebhookresponse.ts +34 -0
  607. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  608. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  609. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  610. package/src/models/components/evaluatorresponsellm.ts +2 -2
  611. package/src/models/components/evaluatorresponsepython.ts +2 -2
  612. package/src/models/components/evaluatorresponseragas.ts +2 -2
  613. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  614. package/src/models/components/functiontoolinput.ts +60 -0
  615. package/src/models/components/generatewebhooksecretresponse.ts +37 -0
  616. package/src/models/components/getsmartrouterresponse.ts +37 -0
  617. package/src/models/components/httptoolinput.ts +62 -0
  618. package/src/models/components/identity.ts +15 -9
  619. package/src/models/components/index.ts +36 -4
  620. package/src/models/components/jsonschematoolinput.ts +60 -0
  621. package/src/models/components/listbudgetsresponse.ts +6 -6
  622. package/src/models/components/listsmartroutersresponse.ts +41 -0
  623. package/src/models/components/listwebhooksresponse.ts +53 -0
  624. package/src/models/components/mcptoolinput.ts +63 -0
  625. package/src/models/components/modeldocument.ts +3 -0
  626. package/src/models/components/modelsconfig.ts +1 -0
  627. package/src/models/components/providertoolinput.ts +72 -0
  628. package/src/models/components/queryparamspagination.ts +40 -0
  629. package/src/models/components/queryparamssort.ts +32 -0
  630. package/src/models/components/querytelemetrymeta.ts +38 -0
  631. package/src/models/components/querytelemetryrequest.ts +85 -0
  632. package/src/models/components/querytelemetryresponse.ts +42 -0
  633. package/src/models/components/querywebhooksrequest.ts +85 -0
  634. package/src/models/components/querywebhooksresponse.ts +34 -0
  635. package/src/models/components/reasoningpart.ts +1 -1
  636. package/src/models/components/setsmartrouterenabledrequest.ts +33 -0
  637. package/src/models/components/setsmartrouterenabledresponse.ts +37 -0
  638. package/src/models/components/smartrouter.ts +72 -0
  639. package/src/models/components/smartrouterprofile.ts +23 -0
  640. package/src/models/components/telemetryrow.ts +42 -0
  641. package/src/models/components/thinkingconfigenabledschema.ts +1 -0
  642. package/src/models/components/updatebudgetrequest.ts +21 -0
  643. package/src/models/components/updatesmartrouterrequest.ts +38 -0
  644. package/src/models/components/updatesmartrouterresponse.ts +37 -0
  645. package/src/models/components/webhook.ts +116 -0
  646. package/src/models/operations/createagentrequest.ts +998 -2311
  647. package/src/models/operations/createchatcompletion.ts +1 -0
  648. package/src/models/operations/createdataset.ts +1 -1
  649. package/src/models/operations/createdatasetitem.ts +237 -19
  650. package/src/models/operations/createdatasource.ts +78 -2
  651. package/src/models/operations/createeval.ts +179 -175
  652. package/src/models/operations/createknowledge.ts +18 -10
  653. package/src/models/operations/createprompt.ts +5 -0
  654. package/src/models/operations/createrouterresponse.ts +73 -44
  655. package/src/models/operations/createtool.ts +58 -61
  656. package/src/models/operations/deploymentgetconfig.ts +1 -0
  657. package/src/models/operations/deploymentinvoke.ts +2 -0
  658. package/src/models/operations/deployments.ts +3 -0
  659. package/src/models/operations/deploymentstream.ts +2 -0
  660. package/src/models/operations/filelist.ts +11 -0
  661. package/src/models/operations/getallmemories.ts +1 -1
  662. package/src/models/operations/getallmemorydocuments.ts +1 -1
  663. package/src/models/operations/getallmemorystores.ts +1 -1
  664. package/src/models/operations/getallprompts.ts +5 -1
  665. package/src/models/operations/getalltools.ts +11 -6
  666. package/src/models/operations/getevals.ts +1 -1
  667. package/src/models/operations/getoneprompt.ts +4 -0
  668. package/src/models/operations/getpromptversion.ts +4 -0
  669. package/src/models/operations/getv2evaluatorsidversions.ts +1 -1
  670. package/src/models/operations/getv2humanevalsets.ts +2 -2
  671. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  672. package/src/models/operations/getv2toolstoolidversions.ts +1 -1
  673. package/src/models/operations/index.ts +9 -2
  674. package/src/models/operations/listagents.ts +7 -5
  675. package/src/models/operations/listchunks.ts +1 -1
  676. package/src/models/operations/listdatasetdatapoints.ts +314 -85
  677. package/src/models/operations/listdatasets.ts +2 -2
  678. package/src/models/operations/listdatasources.ts +99 -2
  679. package/src/models/operations/listpromptversions.ts +5 -1
  680. package/src/models/operations/modelcreate.ts +2 -0
  681. package/src/models/operations/modelcreateawsbedrock.ts +2 -0
  682. package/src/models/operations/modelcreateopenailike.ts +2 -0
  683. package/src/models/operations/modelcreatevertex.ts +2 -0
  684. package/src/models/operations/modelupdate.ts +2 -0
  685. package/src/models/operations/modelupdateawsbedrock.ts +2 -0
  686. package/src/models/operations/modelupdateopenailike.ts +2 -0
  687. package/src/models/operations/notifierlist.ts +13 -0
  688. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  689. package/src/models/operations/postv2feedbackevaluation.ts +119 -11
  690. package/src/models/operations/postv2humanevalsets.ts +2 -2
  691. package/src/models/operations/retrieveagentrequest.ts +7 -5
  692. package/src/models/operations/retrievedatapoint.ts +234 -9
  693. package/src/models/operations/retrievedataset.ts +1 -1
  694. package/src/models/operations/retrievedatasource.ts +72 -2
  695. package/src/models/operations/retrieveresponse.ts +8 -8
  696. package/src/models/operations/retrievetool.ts +11 -6
  697. package/src/models/operations/runagent.ts +215 -232
  698. package/src/models/operations/smartrouterdelete.ts +36 -0
  699. package/src/models/operations/smartrouterget.ts +36 -0
  700. package/src/models/operations/smartrouterlist.ts +53 -0
  701. package/src/models/operations/smartroutersetenabled.ts +45 -0
  702. package/src/models/operations/smartrouterupdate.ts +41 -0
  703. package/src/models/operations/streamrunagent.ts +293 -328
  704. package/src/models/operations/updateagent.ts +823 -2199
  705. package/src/models/operations/updatedatapoint.ts +229 -9
  706. package/src/models/operations/updatedataset.ts +1 -1
  707. package/src/models/operations/updatedatasource.ts +72 -2
  708. package/src/models/operations/updateprompt.ts +5 -0
  709. package/src/models/operations/updatetool.ts +18 -7
  710. package/src/models/operations/webhookdelete.ts +31 -0
  711. package/src/models/operations/webhookget.ts +31 -0
  712. package/src/models/operations/webhooklist.ts +101 -0
  713. package/src/models/operations/webhookupdate.ts +84 -0
  714. package/src/sdk/budgets.ts +0 -18
  715. package/src/sdk/feedback.ts +4 -1
  716. package/src/sdk/models.ts +0 -36
  717. package/src/sdk/reporting.ts +3 -1
  718. package/src/sdk/sdk.ts +18 -0
  719. package/src/sdk/smartrouters.ts +118 -0
  720. package/src/sdk/telemetry.ts +27 -0
  721. package/src/sdk/traces.ts +3 -1
  722. package/src/sdk/webhooks.ts +152 -0
  723. package/funcs/budgetsCheck.d.ts.map +0 -1
  724. package/funcs/budgetsCheck.js.map +0 -1
  725. package/funcs/modelsCreateAutorouter.d.ts +0 -17
  726. package/funcs/modelsCreateAutorouter.d.ts.map +0 -1
  727. package/funcs/modelsCreateAutorouter.js.map +0 -1
  728. package/funcs/modelsUpdateAutorouter.d.ts +0 -17
  729. package/funcs/modelsUpdateAutorouter.d.ts.map +0 -1
  730. package/funcs/modelsUpdateAutorouter.js.map +0 -1
  731. package/models/components/budgetrejection.d.ts +0 -17
  732. package/models/components/budgetrejection.d.ts.map +0 -1
  733. package/models/components/budgetrejection.js.map +0 -1
  734. package/models/components/checkbudgetsrequest.d.ts +0 -72
  735. package/models/components/checkbudgetsrequest.d.ts.map +0 -1
  736. package/models/components/checkbudgetsrequest.js.map +0 -1
  737. package/models/components/checkbudgetsresponse.d.ts +0 -34
  738. package/models/components/checkbudgetsresponse.d.ts.map +0 -1
  739. package/models/components/checkbudgetsresponse.js.map +0 -1
  740. package/models/components/dimensioninfo.d.ts +0 -15
  741. package/models/components/dimensioninfo.d.ts.map +0 -1
  742. package/models/components/dimensioninfo.js.map +0 -1
  743. package/models/operations/modelcreateautorouter.d.ts +0 -56
  744. package/models/operations/modelcreateautorouter.d.ts.map +0 -1
  745. package/models/operations/modelcreateautorouter.js +0 -113
  746. package/models/operations/modelcreateautorouter.js.map +0 -1
  747. package/models/operations/modelupdateautorouter.d.ts +0 -71
  748. package/models/operations/modelupdateautorouter.d.ts.map +0 -1
  749. package/models/operations/modelupdateautorouter.js +0 -126
  750. package/models/operations/modelupdateautorouter.js.map +0 -1
  751. package/src/models/components/budgetrejection.ts +0 -48
  752. package/src/models/components/checkbudgetsrequest.ts +0 -111
  753. package/src/models/components/checkbudgetsresponse.ts +0 -62
  754. package/src/models/components/dimensioninfo.ts +0 -43
  755. package/src/models/operations/modelcreateautorouter.ts +0 -151
  756. package/src/models/operations/modelupdateautorouter.ts +0 -189
@@ -166,6 +166,7 @@ export type ModelConfigurationModalities = ClosedEnum<
166
166
  */
167
167
  export const UpdateAgentId1 = {
168
168
  OrqPiiDetection: "orq_pii_detection",
169
+ OrqSecretDetection: "orq_secret_detection",
169
170
  OrqSexualModeration: "orq_sexual_moderation",
170
171
  OrqHarmfulModeration: "orq_harmful_moderation",
171
172
  } as const;
@@ -657,6 +658,7 @@ export type UpdateAgentFallbackModelConfigurationModalities = ClosedEnum<
657
658
  */
658
659
  export const UpdateAgentIdAgents1 = {
659
660
  OrqPiiDetection: "orq_pii_detection",
661
+ OrqSecretDetection: "orq_secret_detection",
660
662
  OrqSexualModeration: "orq_sexual_moderation",
661
663
  OrqHarmfulModeration: "orq_harmful_moderation",
662
664
  } as const;
@@ -1011,540 +1013,332 @@ export type UpdateAgentToolApprovalRequired = ClosedEnum<
1011
1013
  >;
1012
1014
 
1013
1015
  /**
1014
- * Provider-specific built-in tools that are passed through to the provider. Must be prefixed with the provider name (e.g., openai:web_search, anthropic:web_search_20250305, google:google_search).
1016
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1017
+ */
1018
+ export const UpdateAgentExecuteOn = {
1019
+ Input: "input",
1020
+ Output: "output",
1021
+ } as const;
1022
+ /**
1023
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1015
1024
  */
1016
- export type AgentToolInputCRUDProviderBuiltInTool = {
1025
+ export type UpdateAgentExecuteOn = ClosedEnum<typeof UpdateAgentExecuteOn>;
1026
+
1027
+ export type UpdateAgentEvaluators = {
1017
1028
  /**
1018
- * Provider-prefixed tool type
1029
+ * Unique key or identifier of the evaluator
1019
1030
  */
1020
- type: string;
1031
+ id: string;
1021
1032
  /**
1022
- * Whether this tool requires approval before execution
1033
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1023
1034
  */
1024
- requiresApproval?: boolean | undefined;
1035
+ sampleRate?: number | undefined;
1025
1036
  /**
1026
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1037
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1027
1038
  */
1028
- configuration?: { [k: string]: any } | undefined;
1039
+ executeOn: UpdateAgentExecuteOn;
1029
1040
  };
1030
1041
 
1031
1042
  /**
1032
- * MCP tool type
1043
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1033
1044
  */
1034
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type =
1035
- {
1036
- Mcp: "mcp",
1037
- } as const;
1045
+ export const UpdateAgentAgentsExecuteOn = {
1046
+ Input: "input",
1047
+ Output: "output",
1048
+ } as const;
1038
1049
  /**
1039
- * MCP tool type
1050
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1040
1051
  */
1041
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type =
1042
- ClosedEnum<
1043
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type
1044
- >;
1052
+ export type UpdateAgentAgentsExecuteOn = ClosedEnum<
1053
+ typeof UpdateAgentAgentsExecuteOn
1054
+ >;
1045
1055
 
1046
- /**
1047
- * Executes tools from Model Context Protocol (MCP) servers. Specify the parent MCP tool using "key" or "id", and the specific nested tool using "tool_id".
1048
- */
1049
- export type AgentToolInputCRUDMCPTool = {
1050
- /**
1051
- * MCP tool type
1052
- */
1053
- type?:
1054
- | UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type
1055
- | undefined;
1056
- /**
1057
- * The key of the parent MCP tool
1058
- */
1059
- key?: string | undefined;
1056
+ export type UpdateAgentGuardrails = {
1060
1057
  /**
1061
- * The ID of the parent MCP tool
1058
+ * Unique key or identifier of the evaluator
1062
1059
  */
1063
- id?: string | undefined;
1060
+ id: string;
1064
1061
  /**
1065
- * The ID of the specific nested tool within the MCP server
1062
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1066
1063
  */
1067
- toolId: string;
1064
+ sampleRate?: number | undefined;
1068
1065
  /**
1069
- * Whether this tool requires approval before execution
1066
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1070
1067
  */
1071
- requiresApproval?: boolean | undefined;
1068
+ executeOn: UpdateAgentAgentsExecuteOn;
1072
1069
  };
1073
1070
 
1074
- /**
1075
- * JSON Schema tool type
1076
- */
1077
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type =
1078
- {
1079
- JsonSchema: "json_schema",
1080
- } as const;
1081
- /**
1082
- * JSON Schema tool type
1083
- */
1084
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type =
1085
- ClosedEnum<
1086
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type
1087
- >;
1088
-
1089
- /**
1090
- * Enforces structured output format using JSON Schema. Must reference a pre-created JSON Schema tool by key or id.
1091
- */
1092
- export type AgentToolInputCRUDJSONSchemaTool = {
1093
- /**
1094
- * JSON Schema tool type
1095
- */
1096
- type?:
1097
- | UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type
1098
- | undefined;
1071
+ export type UpdateAgentSettings = {
1072
+ maxIterations?: number | undefined;
1073
+ maxExecutionTime?: number | undefined;
1074
+ maxCost?: number | undefined;
1075
+ toolApprovalRequired?: UpdateAgentToolApprovalRequired | undefined;
1099
1076
  /**
1100
- * The key of the pre-created JSON Schema tool
1077
+ * When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
1101
1078
  */
1102
- key?: string | undefined;
1079
+ chatExposed?: boolean | undefined;
1080
+ tools?: Array<components.AgentToolInputCRUD> | undefined;
1103
1081
  /**
1104
- * The ID of the pre-created JSON Schema tool
1082
+ * Configuration for an evaluator applied to the agent
1105
1083
  */
1106
- id?: string | undefined;
1084
+ evaluators?: Array<UpdateAgentEvaluators> | undefined;
1107
1085
  /**
1108
- * Whether this tool requires approval before execution
1086
+ * Configuration for a guardrail applied to the agent
1109
1087
  */
1110
- requiresApproval?: boolean | undefined;
1088
+ guardrails?: Array<UpdateAgentGuardrails> | undefined;
1111
1089
  };
1112
1090
 
1113
- /**
1114
- * Function tool type
1115
- */
1116
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
1117
- {
1118
- Function: "function",
1119
- } as const;
1120
- /**
1121
- * Function tool type
1122
- */
1123
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
1124
- ClosedEnum<
1125
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
1126
- >;
1127
-
1128
- /**
1129
- * Calls custom function tools defined in the agent configuration. Must reference a pre-created function tool by key or id.
1130
- */
1131
- export type AgentToolInputCRUDFunctionTool = {
1132
- /**
1133
- * Function tool type
1134
- */
1135
- type?:
1136
- | UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
1137
- | undefined;
1091
+ export type UpdateAgentKnowledgeBases = {
1138
1092
  /**
1139
- * The key of the pre-created function tool
1093
+ * Unique identifier of the knowledge base to search
1140
1094
  */
1141
- key?: string | undefined;
1095
+ knowledgeId: string;
1096
+ };
1097
+
1098
+ export type UpdateAgentTeamOfAgents = {
1142
1099
  /**
1143
- * The ID of the pre-created function tool
1100
+ * The unique key of the agent within the workspace
1144
1101
  */
1145
- id?: string | undefined;
1102
+ key: string;
1146
1103
  /**
1147
- * Whether this tool requires approval before execution
1104
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
1148
1105
  */
1149
- requiresApproval?: boolean | undefined;
1106
+ role?: string | undefined;
1150
1107
  };
1151
1108
 
1109
+ export const UpdateAgentEngine = {
1110
+ Text: "text",
1111
+ Jinja: "jinja",
1112
+ Mustache: "mustache",
1113
+ } as const;
1114
+ export type UpdateAgentEngine = ClosedEnum<typeof UpdateAgentEngine>;
1115
+
1152
1116
  /**
1153
- * Code execution tool type
1117
+ * Optional semantic version bump to create after a successful publish.
1154
1118
  */
1155
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
1156
- {
1157
- Code: "code",
1158
- } as const;
1119
+ export const UpdateAgentVersionIncrement = {
1120
+ Major: "major",
1121
+ Minor: "minor",
1122
+ Patch: "patch",
1123
+ } as const;
1159
1124
  /**
1160
- * Code execution tool type
1125
+ * Optional semantic version bump to create after a successful publish.
1161
1126
  */
1162
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
1163
- ClosedEnum<
1164
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
1165
- >;
1127
+ export type UpdateAgentVersionIncrement = ClosedEnum<
1128
+ typeof UpdateAgentVersionIncrement
1129
+ >;
1166
1130
 
1167
- /**
1168
- * Executes code snippets in a sandboxed environment. Must reference a pre-created code tool by key or id.
1169
- */
1170
- export type AgentToolInputCRUDCodeExecutionTool = {
1171
- /**
1172
- * Code execution tool type
1173
- */
1174
- type?:
1175
- | UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
1176
- | undefined;
1131
+ export type UpdateAgentRequestBody = {
1132
+ key?: string | undefined;
1133
+ displayName?: string | undefined;
1134
+ projectId?: string | undefined;
1135
+ role?: string | undefined;
1177
1136
  /**
1178
- * The key of the pre-created code tool
1137
+ * A brief description of what the agent does
1179
1138
  */
1180
- key?: string | undefined;
1139
+ description?: string | undefined;
1140
+ instructions?: string | undefined;
1181
1141
  /**
1182
- * The ID of the pre-created code tool
1142
+ * A custom system prompt template for the agent. If omitted, the default template is used.
1183
1143
  */
1184
- id?: string | undefined;
1144
+ systemPrompt?: string | null | undefined;
1185
1145
  /**
1186
- * Whether this tool requires approval before execution
1146
+ * Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
1187
1147
  */
1188
- requiresApproval?: boolean | undefined;
1189
- };
1190
-
1191
- /**
1192
- * HTTP tool type
1193
- */
1194
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
1195
- {
1196
- Http: "http",
1197
- } as const;
1198
- /**
1199
- * HTTP tool type
1200
- */
1201
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
1202
- ClosedEnum<
1203
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
1204
- >;
1205
-
1206
- /**
1207
- * Executes HTTP requests to interact with external APIs and web services. Must reference a pre-created HTTP tool by key or id.
1208
- */
1209
- export type AgentToolInputCRUDHTTPTool = {
1148
+ model?: UpdateAgentModelConfiguration2 | string | undefined;
1210
1149
  /**
1211
- * HTTP tool type
1150
+ * Optional array of fallback models used when the primary model fails. Fallbacks are attempted in order. All models must support tool calling.
1212
1151
  */
1213
- type?:
1214
- | UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
1152
+ fallbackModels?:
1153
+ | Array<UpdateAgentFallbackModelConfiguration2 | string>
1215
1154
  | undefined;
1155
+ settings?: UpdateAgentSettings | undefined;
1216
1156
  /**
1217
- * The key of the pre-created HTTP tool
1157
+ * Entity storage path.
1158
+ *
1159
+ * @remarks
1160
+ *
1161
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
1162
+ *
1163
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
1218
1164
  */
1219
- key?: string | undefined;
1165
+ path?: string | undefined;
1220
1166
  /**
1221
- * The ID of the pre-created HTTP tool
1167
+ * Array of memory store identifiers. Accepts both memory store IDs and keys.
1222
1168
  */
1223
- id?: string | undefined;
1169
+ memoryStores?: Array<string> | undefined;
1170
+ knowledgeBases?: Array<UpdateAgentKnowledgeBases> | undefined;
1224
1171
  /**
1225
- * Whether this tool requires approval before execution
1172
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1226
1173
  */
1227
- requiresApproval?: boolean | undefined;
1228
- };
1229
-
1230
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
1231
- {
1232
- CodeInterpreter: "code_interpreter",
1233
- } as const;
1234
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
1235
- ClosedEnum<
1236
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
1237
- >;
1238
-
1239
- /**
1240
- * Executes model-written Python code. Uses provider-native code execution when the model supports it, otherwise a secure orq-managed sandbox.
1241
- */
1242
- export type AgentToolInputCRUDCodeInterpreterTool = {
1243
- type:
1244
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type;
1174
+ teamOfAgents?: Array<UpdateAgentTeamOfAgents> | undefined;
1245
1175
  /**
1246
- * Whether this tool requires approval before execution
1176
+ * List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
1247
1177
  */
1248
- requiresApproval?: boolean | undefined;
1178
+ skills?: Array<string> | null | undefined;
1249
1179
  /**
1250
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1180
+ * Extracted variables from agent instructions
1251
1181
  */
1252
- configuration?: { [k: string]: any } | undefined;
1253
- };
1254
-
1255
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
1256
- {
1257
- CurrentDate: "current_date",
1258
- } as const;
1259
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
1260
- ClosedEnum<
1261
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
1262
- >;
1263
-
1264
- /**
1265
- * Returns the current date and time
1266
- */
1267
- export type AgentToolInputCRUDCurrentDateTool = {
1268
- type:
1269
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type;
1182
+ variables?: { [k: string]: any } | undefined;
1183
+ engine?: UpdateAgentEngine | undefined;
1270
1184
  /**
1271
- * Whether this tool requires approval before execution
1185
+ * Optional semantic version bump to create after a successful publish.
1272
1186
  */
1273
- requiresApproval?: boolean | undefined;
1187
+ versionIncrement?: UpdateAgentVersionIncrement | undefined;
1274
1188
  /**
1275
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1189
+ * Optional description stored with the created version.
1276
1190
  */
1277
- configuration?: { [k: string]: any } | undefined;
1191
+ versionDescription?: string | undefined;
1278
1192
  };
1279
1193
 
1280
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
1281
- {
1282
- QueryKnowledgeBase: "query_knowledge_base",
1283
- } as const;
1284
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
1285
- ClosedEnum<
1286
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
1287
- >;
1288
-
1289
- /**
1290
- * Queries knowledge bases for information
1291
- */
1292
- export type AgentToolInputCRUDQueryKnowledgeBaseTool = {
1293
- type:
1294
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type;
1295
- /**
1296
- * Whether this tool requires approval before execution
1297
- */
1298
- requiresApproval?: boolean | undefined;
1194
+ export type UpdateAgentRequest = {
1299
1195
  /**
1300
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1196
+ * The unique key of the agent to update
1301
1197
  */
1302
- configuration?: { [k: string]: any } | undefined;
1198
+ agentKey: string;
1199
+ requestBody: UpdateAgentRequestBody;
1303
1200
  };
1304
1201
 
1305
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
1306
- {
1307
- RetrieveKnowledgeBases: "retrieve_knowledge_bases",
1308
- } as const;
1309
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
1310
- ClosedEnum<
1311
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
1312
- >;
1313
-
1314
1202
  /**
1315
- * Lists available knowledge bases
1203
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1316
1204
  */
1317
- export type AgentToolInputCRUDRetrieveKnowledgeBasesTool = {
1318
- type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type;
1319
- /**
1320
- * Whether this tool requires approval before execution
1321
- */
1322
- requiresApproval?: boolean | undefined;
1323
- /**
1324
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1325
- */
1326
- configuration?: { [k: string]: any } | undefined;
1327
- };
1328
-
1329
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
1330
- {
1331
- DeleteMemoryDocument: "delete_memory_document",
1332
- } as const;
1333
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
1334
- ClosedEnum<
1335
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
1336
- >;
1337
-
1205
+ export const UpdateAgentStatus = {
1206
+ Live: "live",
1207
+ Draft: "draft",
1208
+ Pending: "pending",
1209
+ Published: "published",
1210
+ } as const;
1338
1211
  /**
1339
- * Deletes documents from memory stores
1212
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1340
1213
  */
1341
- export type AgentToolInputCRUDDeleteMemoryDocumentTool = {
1342
- type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type;
1214
+ export type UpdateAgentStatus = ClosedEnum<typeof UpdateAgentStatus>;
1215
+
1216
+ export type UpdateAgentAgentsTeamOfAgents = {
1343
1217
  /**
1344
- * Whether this tool requires approval before execution
1218
+ * The unique key of the agent within the workspace
1345
1219
  */
1346
- requiresApproval?: boolean | undefined;
1220
+ key: string;
1347
1221
  /**
1348
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1222
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
1349
1223
  */
1350
- configuration?: { [k: string]: any } | undefined;
1224
+ role?: string | undefined;
1351
1225
  };
1352
1226
 
1353
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type =
1354
- {
1355
- RetrieveMemoryStores: "retrieve_memory_stores",
1356
- } as const;
1357
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type =
1358
- ClosedEnum<
1359
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
1360
- >;
1227
+ export type UpdateAgentMetrics = {
1228
+ totalCost: number;
1229
+ };
1361
1230
 
1362
- /**
1363
- * Lists available memory stores
1364
- */
1365
- export type AgentToolInputCRUDRetrieveMemoryStoresTool = {
1366
- type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type;
1367
- /**
1368
- * Whether this tool requires approval before execution
1369
- */
1370
- requiresApproval?: boolean | undefined;
1231
+ export type UpdateAgentAgentsKnowledgeBases = {
1371
1232
  /**
1372
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1233
+ * Unique identifier of the knowledge base to search
1373
1234
  */
1374
- configuration?: { [k: string]: any } | undefined;
1235
+ knowledgeId: string;
1375
1236
  };
1376
1237
 
1377
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
1378
- {
1379
- WriteMemoryStore: "write_memory_store",
1380
- } as const;
1381
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
1382
- ClosedEnum<
1383
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
1384
- >;
1238
+ export const UpdateAgentSource = {
1239
+ Internal: "internal",
1240
+ External: "external",
1241
+ Experiment: "experiment",
1242
+ } as const;
1243
+ export type UpdateAgentSource = ClosedEnum<typeof UpdateAgentSource>;
1244
+
1245
+ export const UpdateAgentAgentsEngine = {
1246
+ Text: "text",
1247
+ Jinja: "jinja",
1248
+ Mustache: "mustache",
1249
+ } as const;
1250
+ export type UpdateAgentAgentsEngine = ClosedEnum<
1251
+ typeof UpdateAgentAgentsEngine
1252
+ >;
1385
1253
 
1386
1254
  /**
1387
- * Writes information to agent memory stores
1255
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1388
1256
  */
1389
- export type AgentToolInputCRUDWriteMemoryStoreTool = {
1390
- type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType;
1391
- /**
1392
- * Whether this tool requires approval before execution
1393
- */
1394
- requiresApproval?: boolean | undefined;
1395
- /**
1396
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1397
- */
1398
- configuration?: { [k: string]: any } | undefined;
1399
- };
1400
-
1401
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
1402
- {
1403
- QueryMemoryStore: "query_memory_store",
1404
- } as const;
1405
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
1406
- ClosedEnum<
1407
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
1408
- >;
1409
-
1257
+ export const UpdateAgentType = {
1258
+ Internal: "internal",
1259
+ A2a: "a2a",
1260
+ } as const;
1410
1261
  /**
1411
- * Queries agent memory stores for context
1262
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1412
1263
  */
1413
- export type AgentToolInputCRUDQueryMemoryStoreTool = {
1414
- type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType;
1415
- /**
1416
- * Whether this tool requires approval before execution
1417
- */
1418
- requiresApproval?: boolean | undefined;
1419
- /**
1420
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1421
- */
1422
- configuration?: { [k: string]: any } | undefined;
1423
- };
1264
+ export type UpdateAgentType = ClosedEnum<typeof UpdateAgentType>;
1424
1265
 
1425
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType = {
1426
- RetrieveAgents: "retrieve_agents",
1266
+ /**
1267
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1268
+ */
1269
+ export const UpdateAgentAgentsToolApprovalRequired = {
1270
+ All: "all",
1271
+ RespectTool: "respect_tool",
1272
+ None: "none",
1427
1273
  } as const;
1428
- export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType =
1429
- ClosedEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType>;
1430
-
1431
1274
  /**
1432
- * Retrieves available agents in the system
1275
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1433
1276
  */
1434
- export type AgentToolInputCRUDRetrieveAgentsTool = {
1435
- type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType;
1277
+ export type UpdateAgentAgentsToolApprovalRequired = ClosedEnum<
1278
+ typeof UpdateAgentAgentsToolApprovalRequired
1279
+ >;
1280
+
1281
+ export type UpdateAgentConditions = {
1282
+ /**
1283
+ * The argument of the tool call to evaluate
1284
+ */
1285
+ condition: string;
1436
1286
  /**
1437
- * Whether this tool requires approval before execution
1287
+ * The operator to use
1438
1288
  */
1439
- requiresApproval?: boolean | undefined;
1289
+ operator: string;
1440
1290
  /**
1441
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1291
+ * The value to compare against
1442
1292
  */
1443
- configuration?: { [k: string]: any } | undefined;
1293
+ value: string;
1444
1294
  };
1445
1295
 
1446
- export const UpdateAgentAgentToolInputCRUDAgentsRequestType = {
1447
- CallSubAgent: "call_sub_agent",
1448
- } as const;
1449
- export type UpdateAgentAgentToolInputCRUDAgentsRequestType = ClosedEnum<
1450
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestType
1451
- >;
1452
-
1453
- /**
1454
- * Delegates tasks to specialized sub-agents
1455
- */
1456
- export type AgentToolInputCRUDCallSubAgentTool = {
1457
- type: UpdateAgentAgentToolInputCRUDAgentsRequestType;
1296
+ export type UpdateAgentTools = {
1458
1297
  /**
1459
- * Whether this tool requires approval before execution
1298
+ * The id of the resource
1460
1299
  */
1461
- requiresApproval?: boolean | undefined;
1300
+ id: string;
1462
1301
  /**
1463
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1302
+ * Optional tool key for custom tools
1464
1303
  */
1465
- configuration?: { [k: string]: any } | undefined;
1466
- };
1467
-
1468
- export const UpdateAgentAgentToolInputCRUDAgentsType = {
1469
- WebScraper: "web_scraper",
1470
- } as const;
1471
- export type UpdateAgentAgentToolInputCRUDAgentsType = ClosedEnum<
1472
- typeof UpdateAgentAgentToolInputCRUDAgentsType
1473
- >;
1474
-
1475
- /**
1476
- * Scrapes and extracts content from web pages
1477
- */
1478
- export type AgentToolInputCRUDWebScraperTool = {
1479
- type: UpdateAgentAgentToolInputCRUDAgentsType;
1304
+ key?: string | undefined;
1305
+ actionType: string;
1306
+ displayName?: string | undefined;
1480
1307
  /**
1481
- * Whether this tool requires approval before execution
1308
+ * Optional tool description
1482
1309
  */
1483
- requiresApproval?: boolean | undefined;
1310
+ description?: string | undefined;
1484
1311
  /**
1485
1312
  * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1486
1313
  */
1487
1314
  configuration?: { [k: string]: any } | undefined;
1488
- };
1489
-
1490
- export const UpdateAgentAgentToolInputCRUDType = {
1491
- GoogleSearch: "google_search",
1492
- } as const;
1493
- export type UpdateAgentAgentToolInputCRUDType = ClosedEnum<
1494
- typeof UpdateAgentAgentToolInputCRUDType
1495
- >;
1496
-
1497
- /**
1498
- * Performs Google searches to retrieve web content
1499
- */
1500
- export type AgentToolInputCRUDGoogleSearchTool = {
1501
- type: UpdateAgentAgentToolInputCRUDType;
1315
+ requiresApproval: boolean;
1502
1316
  /**
1503
- * Whether this tool requires approval before execution
1317
+ * Nested tool ID for MCP tools (identifies specific tool within MCP server)
1504
1318
  */
1505
- requiresApproval?: boolean | undefined;
1319
+ toolId?: string | undefined;
1320
+ conditions?: Array<UpdateAgentConditions> | undefined;
1506
1321
  /**
1507
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1322
+ * Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
1508
1323
  */
1509
- configuration?: { [k: string]: any } | undefined;
1324
+ timeout?: number | undefined;
1510
1325
  };
1511
1326
 
1512
- /**
1513
- * Tool configuration for agent create/update operations. Built-in tools only require a type, while custom tools (HTTP, Code, Function, JSON Schema, MCP) must reference pre-created tools by key or id. Provider-prefixed tools (e.g., openai:web_search) are passed through to the provider.
1514
- */
1515
- export type UpdateAgentAgentToolInputCRUD =
1516
- | AgentToolInputCRUDGoogleSearchTool
1517
- | AgentToolInputCRUDWebScraperTool
1518
- | AgentToolInputCRUDCallSubAgentTool
1519
- | AgentToolInputCRUDRetrieveAgentsTool
1520
- | AgentToolInputCRUDQueryMemoryStoreTool
1521
- | AgentToolInputCRUDWriteMemoryStoreTool
1522
- | AgentToolInputCRUDRetrieveMemoryStoresTool
1523
- | AgentToolInputCRUDDeleteMemoryDocumentTool
1524
- | AgentToolInputCRUDRetrieveKnowledgeBasesTool
1525
- | AgentToolInputCRUDQueryKnowledgeBaseTool
1526
- | AgentToolInputCRUDCurrentDateTool
1527
- | AgentToolInputCRUDCodeInterpreterTool
1528
- | AgentToolInputCRUDMCPTool
1529
- | AgentToolInputCRUDProviderBuiltInTool
1530
- | AgentToolInputCRUDHTTPTool
1531
- | AgentToolInputCRUDCodeExecutionTool
1532
- | AgentToolInputCRUDFunctionTool
1533
- | AgentToolInputCRUDJSONSchemaTool;
1534
-
1535
1327
  /**
1536
1328
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1537
1329
  */
1538
- export const UpdateAgentExecuteOn = {
1330
+ export const UpdateAgentAgentsResponseExecuteOn = {
1539
1331
  Input: "input",
1540
1332
  Output: "output",
1541
1333
  } as const;
1542
1334
  /**
1543
1335
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1544
1336
  */
1545
- export type UpdateAgentExecuteOn = ClosedEnum<typeof UpdateAgentExecuteOn>;
1337
+ export type UpdateAgentAgentsResponseExecuteOn = ClosedEnum<
1338
+ typeof UpdateAgentAgentsResponseExecuteOn
1339
+ >;
1546
1340
 
1547
- export type UpdateAgentEvaluators = {
1341
+ export type UpdateAgentAgentsEvaluators = {
1548
1342
  /**
1549
1343
  * Unique key or identifier of the evaluator
1550
1344
  */
@@ -1552,28 +1346,28 @@ export type UpdateAgentEvaluators = {
1552
1346
  /**
1553
1347
  * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1554
1348
  */
1555
- sampleRate?: number | undefined;
1349
+ sampleRate: number;
1556
1350
  /**
1557
1351
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1558
1352
  */
1559
- executeOn: UpdateAgentExecuteOn;
1353
+ executeOn: UpdateAgentAgentsResponseExecuteOn;
1560
1354
  };
1561
1355
 
1562
1356
  /**
1563
1357
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1564
1358
  */
1565
- export const UpdateAgentAgentsExecuteOn = {
1359
+ export const UpdateAgentAgentsResponse200ExecuteOn = {
1566
1360
  Input: "input",
1567
1361
  Output: "output",
1568
1362
  } as const;
1569
1363
  /**
1570
1364
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1571
1365
  */
1572
- export type UpdateAgentAgentsExecuteOn = ClosedEnum<
1573
- typeof UpdateAgentAgentsExecuteOn
1366
+ export type UpdateAgentAgentsResponse200ExecuteOn = ClosedEnum<
1367
+ typeof UpdateAgentAgentsResponse200ExecuteOn
1574
1368
  >;
1575
1369
 
1576
- export type UpdateAgentGuardrails = {
1370
+ export type UpdateAgentAgentsGuardrails = {
1577
1371
  /**
1578
1372
  * Unique key or identifier of the evaluator
1579
1373
  */
@@ -1581,413 +1375,78 @@ export type UpdateAgentGuardrails = {
1581
1375
  /**
1582
1376
  * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1583
1377
  */
1584
- sampleRate?: number | undefined;
1378
+ sampleRate: number;
1585
1379
  /**
1586
1380
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1587
1381
  */
1588
- executeOn: UpdateAgentAgentsExecuteOn;
1382
+ executeOn: UpdateAgentAgentsResponse200ExecuteOn;
1589
1383
  };
1590
1384
 
1591
- export type UpdateAgentSettings = {
1592
- maxIterations?: number | undefined;
1593
- maxExecutionTime?: number | undefined;
1594
- maxCost?: number | undefined;
1595
- toolApprovalRequired?: UpdateAgentToolApprovalRequired | undefined;
1385
+ export type UpdateAgentAgentsSettings = {
1596
1386
  /**
1597
- * When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
1387
+ * Maximum iterations(llm calls) before the agent will stop executing.
1598
1388
  */
1599
- chatExposed?: boolean | undefined;
1600
- tools?:
1601
- | Array<
1602
- | AgentToolInputCRUDGoogleSearchTool
1603
- | AgentToolInputCRUDWebScraperTool
1604
- | AgentToolInputCRUDCallSubAgentTool
1605
- | AgentToolInputCRUDRetrieveAgentsTool
1606
- | AgentToolInputCRUDQueryMemoryStoreTool
1607
- | AgentToolInputCRUDWriteMemoryStoreTool
1608
- | AgentToolInputCRUDRetrieveMemoryStoresTool
1609
- | AgentToolInputCRUDDeleteMemoryDocumentTool
1610
- | AgentToolInputCRUDRetrieveKnowledgeBasesTool
1611
- | AgentToolInputCRUDQueryKnowledgeBaseTool
1612
- | AgentToolInputCRUDCurrentDateTool
1613
- | AgentToolInputCRUDCodeInterpreterTool
1614
- | AgentToolInputCRUDMCPTool
1615
- | AgentToolInputCRUDProviderBuiltInTool
1616
- | AgentToolInputCRUDHTTPTool
1617
- | AgentToolInputCRUDCodeExecutionTool
1618
- | AgentToolInputCRUDFunctionTool
1619
- | AgentToolInputCRUDJSONSchemaTool
1620
- >
1621
- | undefined;
1389
+ maxIterations: number;
1622
1390
  /**
1623
- * Configuration for an evaluator applied to the agent
1391
+ * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
1624
1392
  */
1625
- evaluators?: Array<UpdateAgentEvaluators> | undefined;
1393
+ maxExecutionTime: number;
1626
1394
  /**
1627
- * Configuration for a guardrail applied to the agent
1395
+ * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
1628
1396
  */
1629
- guardrails?: Array<UpdateAgentGuardrails> | undefined;
1630
- };
1631
-
1632
- export type UpdateAgentKnowledgeBases = {
1397
+ maxCost: number;
1633
1398
  /**
1634
- * Unique identifier of the knowledge base to search
1399
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1635
1400
  */
1636
- knowledgeId: string;
1637
- };
1638
-
1639
- export type UpdateAgentTeamOfAgents = {
1401
+ toolApprovalRequired: UpdateAgentAgentsToolApprovalRequired;
1640
1402
  /**
1641
- * The unique key of the agent within the workspace
1403
+ * When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
1642
1404
  */
1643
- key: string;
1405
+ chatExposed?: boolean | undefined;
1406
+ tools?: Array<UpdateAgentTools> | undefined;
1644
1407
  /**
1645
- * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
1408
+ * Configuration for an evaluator applied to the agent
1646
1409
  */
1647
- role?: string | undefined;
1410
+ evaluators?: Array<UpdateAgentAgentsEvaluators> | undefined;
1411
+ /**
1412
+ * Configuration for a guardrail applied to the agent
1413
+ */
1414
+ guardrails?: Array<UpdateAgentAgentsGuardrails> | undefined;
1648
1415
  };
1649
1416
 
1650
- export const UpdateAgentEngine = {
1651
- Text: "text",
1652
- Jinja: "jinja",
1653
- Mustache: "mustache",
1654
- } as const;
1655
- export type UpdateAgentEngine = ClosedEnum<typeof UpdateAgentEngine>;
1656
-
1657
- /**
1658
- * Optional semantic version bump to create after a successful publish.
1659
- */
1660
- export const UpdateAgentVersionIncrement = {
1661
- Major: "major",
1662
- Minor: "minor",
1663
- Patch: "patch",
1664
- } as const;
1665
- /**
1666
- * Optional semantic version bump to create after a successful publish.
1667
- */
1668
- export type UpdateAgentVersionIncrement = ClosedEnum<
1669
- typeof UpdateAgentVersionIncrement
1670
- >;
1671
-
1672
- export type UpdateAgentRequestBody = {
1673
- key?: string | undefined;
1674
- displayName?: string | undefined;
1675
- projectId?: string | undefined;
1676
- role?: string | undefined;
1417
+ export type UpdateAgentResponseFormatAgentsResponseJsonSchema = {
1677
1418
  /**
1678
- * A brief description of what the agent does
1419
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
1679
1420
  */
1680
1421
  description?: string | undefined;
1681
- instructions?: string | undefined;
1682
- /**
1683
- * A custom system prompt template for the agent. If omitted, the default template is used.
1684
- */
1685
- systemPrompt?: string | null | undefined;
1686
- /**
1687
- * Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
1688
- */
1689
- model?: UpdateAgentModelConfiguration2 | string | undefined;
1690
- /**
1691
- * Optional array of fallback models used when the primary model fails. Fallbacks are attempted in order. All models must support tool calling.
1692
- */
1693
- fallbackModels?:
1694
- | Array<UpdateAgentFallbackModelConfiguration2 | string>
1695
- | undefined;
1696
- settings?: UpdateAgentSettings | undefined;
1697
- /**
1698
- * Entity storage path.
1699
- *
1700
- * @remarks
1701
- *
1702
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
1703
- *
1704
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
1705
- */
1706
- path?: string | undefined;
1707
- /**
1708
- * Array of memory store identifiers. Accepts both memory store IDs and keys.
1709
- */
1710
- memoryStores?: Array<string> | undefined;
1711
- knowledgeBases?: Array<UpdateAgentKnowledgeBases> | undefined;
1712
- /**
1713
- * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1714
- */
1715
- teamOfAgents?: Array<UpdateAgentTeamOfAgents> | undefined;
1716
- /**
1717
- * List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
1718
- */
1719
- skills?: Array<string> | null | undefined;
1720
1422
  /**
1721
- * Extracted variables from agent instructions
1423
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1722
1424
  */
1723
- variables?: { [k: string]: any } | undefined;
1724
- engine?: UpdateAgentEngine | undefined;
1425
+ name: string;
1725
1426
  /**
1726
- * Optional semantic version bump to create after a successful publish.
1427
+ * The schema for the response format, described as a JSON Schema object.
1727
1428
  */
1728
- versionIncrement?: UpdateAgentVersionIncrement | undefined;
1429
+ schema?: any | undefined;
1729
1430
  /**
1730
- * Optional description stored with the created version.
1431
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
1731
1432
  */
1732
- versionDescription?: string | undefined;
1433
+ strict: boolean;
1733
1434
  };
1734
1435
 
1735
- export type UpdateAgentRequest = {
1736
- /**
1737
- * The unique key of the agent to update
1738
- */
1739
- agentKey: string;
1740
- requestBody: UpdateAgentRequestBody;
1436
+ /**
1437
+ * @remarks
1438
+ *
1439
+ * JSON Schema response format. Used to generate structured JSON responses
1440
+ */
1441
+ export type UpdateAgentResponseFormatAgentsResponse200JSONSchema = {
1442
+ type: "json_schema";
1443
+ jsonSchema: UpdateAgentResponseFormatAgentsResponseJsonSchema;
1741
1444
  };
1742
1445
 
1743
1446
  /**
1744
- * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1745
- */
1746
- export const UpdateAgentStatus = {
1747
- Live: "live",
1748
- Draft: "draft",
1749
- Pending: "pending",
1750
- Published: "published",
1751
- } as const;
1752
- /**
1753
- * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1754
- */
1755
- export type UpdateAgentStatus = ClosedEnum<typeof UpdateAgentStatus>;
1756
-
1757
- export type UpdateAgentAgentsTeamOfAgents = {
1758
- /**
1759
- * The unique key of the agent within the workspace
1760
- */
1761
- key: string;
1762
- /**
1763
- * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
1764
- */
1765
- role?: string | undefined;
1766
- };
1767
-
1768
- export type UpdateAgentMetrics = {
1769
- totalCost: number;
1770
- };
1771
-
1772
- export type UpdateAgentAgentsKnowledgeBases = {
1773
- /**
1774
- * Unique identifier of the knowledge base to search
1775
- */
1776
- knowledgeId: string;
1777
- };
1778
-
1779
- export const UpdateAgentSource = {
1780
- Internal: "internal",
1781
- External: "external",
1782
- Experiment: "experiment",
1783
- } as const;
1784
- export type UpdateAgentSource = ClosedEnum<typeof UpdateAgentSource>;
1785
-
1786
- export const UpdateAgentAgentsEngine = {
1787
- Text: "text",
1788
- Jinja: "jinja",
1789
- Mustache: "mustache",
1790
- } as const;
1791
- export type UpdateAgentAgentsEngine = ClosedEnum<
1792
- typeof UpdateAgentAgentsEngine
1793
- >;
1794
-
1795
- /**
1796
- * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1797
- */
1798
- export const UpdateAgentType = {
1799
- Internal: "internal",
1800
- A2a: "a2a",
1801
- } as const;
1802
- /**
1803
- * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1804
- */
1805
- export type UpdateAgentType = ClosedEnum<typeof UpdateAgentType>;
1806
-
1807
- /**
1808
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1809
- */
1810
- export const UpdateAgentAgentsToolApprovalRequired = {
1811
- All: "all",
1812
- RespectTool: "respect_tool",
1813
- None: "none",
1814
- } as const;
1815
- /**
1816
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1817
- */
1818
- export type UpdateAgentAgentsToolApprovalRequired = ClosedEnum<
1819
- typeof UpdateAgentAgentsToolApprovalRequired
1820
- >;
1821
-
1822
- export type UpdateAgentConditions = {
1823
- /**
1824
- * The argument of the tool call to evaluate
1825
- */
1826
- condition: string;
1827
- /**
1828
- * The operator to use
1829
- */
1830
- operator: string;
1831
- /**
1832
- * The value to compare against
1833
- */
1834
- value: string;
1835
- };
1836
-
1837
- export type UpdateAgentTools = {
1838
- /**
1839
- * The id of the resource
1840
- */
1841
- id: string;
1842
- /**
1843
- * Optional tool key for custom tools
1844
- */
1845
- key?: string | undefined;
1846
- actionType: string;
1847
- displayName?: string | undefined;
1848
- /**
1849
- * Optional tool description
1850
- */
1851
- description?: string | undefined;
1852
- /**
1853
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1854
- */
1855
- configuration?: { [k: string]: any } | undefined;
1856
- requiresApproval: boolean;
1857
- /**
1858
- * Nested tool ID for MCP tools (identifies specific tool within MCP server)
1859
- */
1860
- toolId?: string | undefined;
1861
- conditions?: Array<UpdateAgentConditions> | undefined;
1862
- /**
1863
- * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
1864
- */
1865
- timeout: number;
1866
- };
1867
-
1868
- /**
1869
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1870
- */
1871
- export const UpdateAgentAgentsResponseExecuteOn = {
1872
- Input: "input",
1873
- Output: "output",
1874
- } as const;
1875
- /**
1876
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1877
- */
1878
- export type UpdateAgentAgentsResponseExecuteOn = ClosedEnum<
1879
- typeof UpdateAgentAgentsResponseExecuteOn
1880
- >;
1881
-
1882
- export type UpdateAgentAgentsEvaluators = {
1883
- /**
1884
- * Unique key or identifier of the evaluator
1885
- */
1886
- id: string;
1887
- /**
1888
- * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1889
- */
1890
- sampleRate: number;
1891
- /**
1892
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1893
- */
1894
- executeOn: UpdateAgentAgentsResponseExecuteOn;
1895
- };
1896
-
1897
- /**
1898
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1899
- */
1900
- export const UpdateAgentAgentsResponse200ExecuteOn = {
1901
- Input: "input",
1902
- Output: "output",
1903
- } as const;
1904
- /**
1905
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1906
- */
1907
- export type UpdateAgentAgentsResponse200ExecuteOn = ClosedEnum<
1908
- typeof UpdateAgentAgentsResponse200ExecuteOn
1909
- >;
1910
-
1911
- export type UpdateAgentAgentsGuardrails = {
1912
- /**
1913
- * Unique key or identifier of the evaluator
1914
- */
1915
- id: string;
1916
- /**
1917
- * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1918
- */
1919
- sampleRate: number;
1920
- /**
1921
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1922
- */
1923
- executeOn: UpdateAgentAgentsResponse200ExecuteOn;
1924
- };
1925
-
1926
- export type UpdateAgentAgentsSettings = {
1927
- /**
1928
- * Maximum iterations(llm calls) before the agent will stop executing.
1929
- */
1930
- maxIterations: number;
1931
- /**
1932
- * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
1933
- */
1934
- maxExecutionTime: number;
1935
- /**
1936
- * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
1937
- */
1938
- maxCost: number;
1939
- /**
1940
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1941
- */
1942
- toolApprovalRequired: UpdateAgentAgentsToolApprovalRequired;
1943
- /**
1944
- * When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
1945
- */
1946
- chatExposed?: boolean | undefined;
1947
- tools?: Array<UpdateAgentTools> | undefined;
1948
- /**
1949
- * Configuration for an evaluator applied to the agent
1950
- */
1951
- evaluators?: Array<UpdateAgentAgentsEvaluators> | undefined;
1952
- /**
1953
- * Configuration for a guardrail applied to the agent
1954
- */
1955
- guardrails?: Array<UpdateAgentAgentsGuardrails> | undefined;
1956
- };
1957
-
1958
- export type UpdateAgentResponseFormatAgentsResponseJsonSchema = {
1959
- /**
1960
- * A description of what the response format is for, used by the model to determine how to respond in the format.
1961
- */
1962
- description?: string | undefined;
1963
- /**
1964
- * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1965
- */
1966
- name: string;
1967
- /**
1968
- * The schema for the response format, described as a JSON Schema object.
1969
- */
1970
- schema?: any | undefined;
1971
- /**
1972
- * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
1973
- */
1974
- strict: boolean;
1975
- };
1976
-
1977
- /**
1978
- * @remarks
1979
- *
1980
- * JSON Schema response format. Used to generate structured JSON responses
1981
- */
1982
- export type UpdateAgentResponseFormatAgentsResponse200JSONSchema = {
1983
- type: "json_schema";
1984
- jsonSchema: UpdateAgentResponseFormatAgentsResponseJsonSchema;
1985
- };
1986
-
1987
- /**
1988
- * @remarks
1989
- *
1990
- * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
1447
+ * @remarks
1448
+ *
1449
+ * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
1991
1450
  */
1992
1451
  export type UpdateAgentResponseFormatAgentsResponseJSONObject = {
1993
1452
  type: "json_object";
@@ -2111,6 +1570,7 @@ export type UpdateAgentModalities = ClosedEnum<typeof UpdateAgentModalities>;
2111
1570
  */
2112
1571
  export const UpdateAgentIdAgentsResponse1 = {
2113
1572
  OrqPiiDetection: "orq_pii_detection",
1573
+ OrqSecretDetection: "orq_secret_detection",
2114
1574
  OrqSexualModeration: "orq_sexual_moderation",
2115
1575
  OrqHarmfulModeration: "orq_harmful_moderation",
2116
1576
  } as const;
@@ -2580,6 +2040,7 @@ export type UpdateAgentFallbackModelConfigurationAgentsModalities = ClosedEnum<
2580
2040
  */
2581
2041
  export const UpdateAgentIdAgentsResponse2001 = {
2582
2042
  OrqPiiDetection: "orq_pii_detection",
2043
+ OrqSecretDetection: "orq_secret_detection",
2583
2044
  OrqSexualModeration: "orq_sexual_moderation",
2584
2045
  OrqHarmfulModeration: "orq_harmful_moderation",
2585
2046
  } as const;
@@ -3000,7 +2461,7 @@ export type UpdateAgentResponseBody = {
3000
2461
  /**
3001
2462
  * List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
3002
2463
  */
3003
- skills: Array<string>;
2464
+ skills?: Array<string> | undefined;
3004
2465
  metrics?: UpdateAgentMetrics | undefined;
3005
2466
  /**
3006
2467
  * Extracted variables from agent instructions
@@ -3785,1650 +3246,855 @@ export function updateAgentModelConfigurationToJSON(
3785
3246
  updateAgentModelConfiguration: UpdateAgentModelConfiguration,
3786
3247
  ): string {
3787
3248
  return JSON.stringify(
3788
- UpdateAgentModelConfiguration$outboundSchema.parse(
3789
- updateAgentModelConfiguration,
3790
- ),
3791
- );
3792
- }
3793
-
3794
- /** @internal */
3795
- export type UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
3796
- {
3797
- description?: string | undefined;
3798
- name: string;
3799
- schema?: any | undefined;
3800
- strict: boolean;
3801
- };
3802
-
3803
- /** @internal */
3804
- export const UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema:
3805
- z.ZodType<
3806
- UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound,
3807
- z.ZodTypeDef,
3808
- UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema
3809
- > = z.object({
3810
- description: z.string().optional(),
3811
- name: z.string(),
3812
- schema: z.any().optional(),
3813
- strict: z.boolean().default(false),
3814
- });
3815
-
3816
- export function updateAgentResponseFormatAgentsRequestRequestBodyJsonSchemaToJSON(
3817
- updateAgentResponseFormatAgentsRequestRequestBodyJsonSchema:
3818
- UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema,
3819
- ): string {
3820
- return JSON.stringify(
3821
- UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema
3822
- .parse(updateAgentResponseFormatAgentsRequestRequestBodyJsonSchema),
3823
- );
3824
- }
3825
-
3826
- /** @internal */
3827
- export type UpdateAgentResponseFormatAgentsRequestJSONSchema$Outbound = {
3828
- type: "json_schema";
3829
- json_schema:
3830
- UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound;
3831
- };
3832
-
3833
- /** @internal */
3834
- export const UpdateAgentResponseFormatAgentsRequestJSONSchema$outboundSchema:
3835
- z.ZodType<
3836
- UpdateAgentResponseFormatAgentsRequestJSONSchema$Outbound,
3837
- z.ZodTypeDef,
3838
- UpdateAgentResponseFormatAgentsRequestJSONSchema
3839
- > = z.object({
3840
- type: z.literal("json_schema"),
3841
- jsonSchema: z.lazy(() =>
3842
- UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema
3843
- ),
3844
- }).transform((v) => {
3845
- return remap$(v, {
3846
- jsonSchema: "json_schema",
3847
- });
3848
- });
3849
-
3850
- export function updateAgentResponseFormatAgentsRequestJSONSchemaToJSON(
3851
- updateAgentResponseFormatAgentsRequestJSONSchema:
3852
- UpdateAgentResponseFormatAgentsRequestJSONSchema,
3853
- ): string {
3854
- return JSON.stringify(
3855
- UpdateAgentResponseFormatAgentsRequestJSONSchema$outboundSchema.parse(
3856
- updateAgentResponseFormatAgentsRequestJSONSchema,
3857
- ),
3858
- );
3859
- }
3860
-
3861
- /** @internal */
3862
- export type UpdateAgentResponseFormatAgentsJSONObject$Outbound = {
3863
- type: "json_object";
3864
- };
3865
-
3866
- /** @internal */
3867
- export const UpdateAgentResponseFormatAgentsJSONObject$outboundSchema:
3868
- z.ZodType<
3869
- UpdateAgentResponseFormatAgentsJSONObject$Outbound,
3870
- z.ZodTypeDef,
3871
- UpdateAgentResponseFormatAgentsJSONObject
3872
- > = z.object({
3873
- type: z.literal("json_object"),
3874
- });
3875
-
3876
- export function updateAgentResponseFormatAgentsJSONObjectToJSON(
3877
- updateAgentResponseFormatAgentsJSONObject:
3878
- UpdateAgentResponseFormatAgentsJSONObject,
3879
- ): string {
3880
- return JSON.stringify(
3881
- UpdateAgentResponseFormatAgentsJSONObject$outboundSchema.parse(
3882
- updateAgentResponseFormatAgentsJSONObject,
3883
- ),
3884
- );
3885
- }
3886
-
3887
- /** @internal */
3888
- export type UpdateAgentResponseFormatAgentsText$Outbound = {
3889
- type: "text";
3890
- };
3891
-
3892
- /** @internal */
3893
- export const UpdateAgentResponseFormatAgentsText$outboundSchema: z.ZodType<
3894
- UpdateAgentResponseFormatAgentsText$Outbound,
3895
- z.ZodTypeDef,
3896
- UpdateAgentResponseFormatAgentsText
3897
- > = z.object({
3898
- type: z.literal("text"),
3899
- });
3900
-
3901
- export function updateAgentResponseFormatAgentsTextToJSON(
3902
- updateAgentResponseFormatAgentsText: UpdateAgentResponseFormatAgentsText,
3903
- ): string {
3904
- return JSON.stringify(
3905
- UpdateAgentResponseFormatAgentsText$outboundSchema.parse(
3906
- updateAgentResponseFormatAgentsText,
3907
- ),
3908
- );
3909
- }
3910
-
3911
- /** @internal */
3912
- export type UpdateAgentFallbackModelConfigurationResponseFormat$Outbound =
3913
- | UpdateAgentResponseFormatAgentsText$Outbound
3914
- | UpdateAgentResponseFormatAgentsJSONObject$Outbound
3915
- | UpdateAgentResponseFormatAgentsRequestJSONSchema$Outbound;
3916
-
3917
- /** @internal */
3918
- export const UpdateAgentFallbackModelConfigurationResponseFormat$outboundSchema:
3919
- z.ZodType<
3920
- UpdateAgentFallbackModelConfigurationResponseFormat$Outbound,
3921
- z.ZodTypeDef,
3922
- UpdateAgentFallbackModelConfigurationResponseFormat
3923
- > = z.union([
3924
- z.lazy(() => UpdateAgentResponseFormatAgentsText$outboundSchema),
3925
- z.lazy(() => UpdateAgentResponseFormatAgentsJSONObject$outboundSchema),
3926
- z.lazy(() =>
3927
- UpdateAgentResponseFormatAgentsRequestJSONSchema$outboundSchema
3928
- ),
3929
- ]);
3930
-
3931
- export function updateAgentFallbackModelConfigurationResponseFormatToJSON(
3932
- updateAgentFallbackModelConfigurationResponseFormat:
3933
- UpdateAgentFallbackModelConfigurationResponseFormat,
3934
- ): string {
3935
- return JSON.stringify(
3936
- UpdateAgentFallbackModelConfigurationResponseFormat$outboundSchema.parse(
3937
- updateAgentFallbackModelConfigurationResponseFormat,
3938
- ),
3939
- );
3940
- }
3941
-
3942
- /** @internal */
3943
- export const UpdateAgentFallbackModelConfigurationReasoningEffort$outboundSchema:
3944
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationReasoningEffort> =
3945
- z.nativeEnum(UpdateAgentFallbackModelConfigurationReasoningEffort);
3946
-
3947
- /** @internal */
3948
- export type UpdateAgentFallbackModelConfigurationStop$Outbound =
3949
- | string
3950
- | Array<string>;
3951
-
3952
- /** @internal */
3953
- export const UpdateAgentFallbackModelConfigurationStop$outboundSchema:
3954
- z.ZodType<
3955
- UpdateAgentFallbackModelConfigurationStop$Outbound,
3956
- z.ZodTypeDef,
3957
- UpdateAgentFallbackModelConfigurationStop
3958
- > = z.union([z.string(), z.array(z.string())]);
3959
-
3960
- export function updateAgentFallbackModelConfigurationStopToJSON(
3961
- updateAgentFallbackModelConfigurationStop:
3962
- UpdateAgentFallbackModelConfigurationStop,
3963
- ): string {
3964
- return JSON.stringify(
3965
- UpdateAgentFallbackModelConfigurationStop$outboundSchema.parse(
3966
- updateAgentFallbackModelConfigurationStop,
3967
- ),
3968
- );
3969
- }
3970
-
3971
- /** @internal */
3972
- export type UpdateAgentFallbackModelConfigurationThinking$Outbound =
3973
- | components.ThinkingConfigDisabledSchema$Outbound
3974
- | components.ThinkingConfigEnabledSchema$Outbound
3975
- | components.ThinkingConfigAdaptiveSchema$Outbound;
3976
-
3977
- /** @internal */
3978
- export const UpdateAgentFallbackModelConfigurationThinking$outboundSchema:
3979
- z.ZodType<
3980
- UpdateAgentFallbackModelConfigurationThinking$Outbound,
3981
- z.ZodTypeDef,
3982
- UpdateAgentFallbackModelConfigurationThinking
3983
- > = z.union([
3984
- components.ThinkingConfigDisabledSchema$outboundSchema,
3985
- components.ThinkingConfigEnabledSchema$outboundSchema,
3986
- components.ThinkingConfigAdaptiveSchema$outboundSchema,
3987
- ]);
3988
-
3989
- export function updateAgentFallbackModelConfigurationThinkingToJSON(
3990
- updateAgentFallbackModelConfigurationThinking:
3991
- UpdateAgentFallbackModelConfigurationThinking,
3992
- ): string {
3993
- return JSON.stringify(
3994
- UpdateAgentFallbackModelConfigurationThinking$outboundSchema.parse(
3995
- updateAgentFallbackModelConfigurationThinking,
3996
- ),
3997
- );
3998
- }
3999
-
4000
- /** @internal */
4001
- export const UpdateAgentToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<
4002
- typeof UpdateAgentToolChoiceAgentsType
4003
- > = z.nativeEnum(UpdateAgentToolChoiceAgentsType);
4004
-
4005
- /** @internal */
4006
- export type UpdateAgentToolChoiceAgentsFunction$Outbound = {
4007
- name: string;
4008
- };
4009
-
4010
- /** @internal */
4011
- export const UpdateAgentToolChoiceAgentsFunction$outboundSchema: z.ZodType<
4012
- UpdateAgentToolChoiceAgentsFunction$Outbound,
4013
- z.ZodTypeDef,
4014
- UpdateAgentToolChoiceAgentsFunction
4015
- > = z.object({
4016
- name: z.string(),
4017
- });
4018
-
4019
- export function updateAgentToolChoiceAgentsFunctionToJSON(
4020
- updateAgentToolChoiceAgentsFunction: UpdateAgentToolChoiceAgentsFunction,
4021
- ): string {
4022
- return JSON.stringify(
4023
- UpdateAgentToolChoiceAgentsFunction$outboundSchema.parse(
4024
- updateAgentToolChoiceAgentsFunction,
4025
- ),
4026
- );
4027
- }
4028
-
4029
- /** @internal */
4030
- export type UpdateAgentToolChoiceAgents2$Outbound = {
4031
- type?: string | undefined;
4032
- function: UpdateAgentToolChoiceAgentsFunction$Outbound;
4033
- };
4034
-
4035
- /** @internal */
4036
- export const UpdateAgentToolChoiceAgents2$outboundSchema: z.ZodType<
4037
- UpdateAgentToolChoiceAgents2$Outbound,
4038
- z.ZodTypeDef,
4039
- UpdateAgentToolChoiceAgents2
4040
- > = z.object({
4041
- type: UpdateAgentToolChoiceAgentsType$outboundSchema.optional(),
4042
- function: z.lazy(() => UpdateAgentToolChoiceAgentsFunction$outboundSchema),
4043
- });
4044
-
4045
- export function updateAgentToolChoiceAgents2ToJSON(
4046
- updateAgentToolChoiceAgents2: UpdateAgentToolChoiceAgents2,
4047
- ): string {
4048
- return JSON.stringify(
4049
- UpdateAgentToolChoiceAgents2$outboundSchema.parse(
4050
- updateAgentToolChoiceAgents2,
4051
- ),
4052
- );
4053
- }
4054
-
4055
- /** @internal */
4056
- export const UpdateAgentToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<
4057
- typeof UpdateAgentToolChoiceAgents1
4058
- > = z.nativeEnum(UpdateAgentToolChoiceAgents1);
4059
-
4060
- /** @internal */
4061
- export type UpdateAgentFallbackModelConfigurationToolChoice$Outbound =
4062
- | UpdateAgentToolChoiceAgents2$Outbound
4063
- | string;
4064
-
4065
- /** @internal */
4066
- export const UpdateAgentFallbackModelConfigurationToolChoice$outboundSchema:
4067
- z.ZodType<
4068
- UpdateAgentFallbackModelConfigurationToolChoice$Outbound,
4069
- z.ZodTypeDef,
4070
- UpdateAgentFallbackModelConfigurationToolChoice
4071
- > = z.union([
4072
- z.lazy(() => UpdateAgentToolChoiceAgents2$outboundSchema),
4073
- UpdateAgentToolChoiceAgents1$outboundSchema,
4074
- ]);
4075
-
4076
- export function updateAgentFallbackModelConfigurationToolChoiceToJSON(
4077
- updateAgentFallbackModelConfigurationToolChoice:
4078
- UpdateAgentFallbackModelConfigurationToolChoice,
4079
- ): string {
4080
- return JSON.stringify(
4081
- UpdateAgentFallbackModelConfigurationToolChoice$outboundSchema.parse(
4082
- updateAgentFallbackModelConfigurationToolChoice,
4083
- ),
4084
- );
4085
- }
4086
-
4087
- /** @internal */
4088
- export const UpdateAgentFallbackModelConfigurationModalities$outboundSchema:
4089
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationModalities> = z
4090
- .nativeEnum(UpdateAgentFallbackModelConfigurationModalities);
4091
-
4092
- /** @internal */
4093
- export const UpdateAgentIdAgents1$outboundSchema: z.ZodNativeEnum<
4094
- typeof UpdateAgentIdAgents1
4095
- > = z.nativeEnum(UpdateAgentIdAgents1);
4096
-
4097
- /** @internal */
4098
- export type UpdateAgentFallbackModelConfigurationId$Outbound = string | string;
4099
-
4100
- /** @internal */
4101
- export const UpdateAgentFallbackModelConfigurationId$outboundSchema: z.ZodType<
4102
- UpdateAgentFallbackModelConfigurationId$Outbound,
4103
- z.ZodTypeDef,
4104
- UpdateAgentFallbackModelConfigurationId
4105
- > = z.union([UpdateAgentIdAgents1$outboundSchema, z.string()]);
4106
-
4107
- export function updateAgentFallbackModelConfigurationIdToJSON(
4108
- updateAgentFallbackModelConfigurationId:
4109
- UpdateAgentFallbackModelConfigurationId,
4110
- ): string {
4111
- return JSON.stringify(
4112
- UpdateAgentFallbackModelConfigurationId$outboundSchema.parse(
4113
- updateAgentFallbackModelConfigurationId,
4114
- ),
4115
- );
4116
- }
4117
-
4118
- /** @internal */
4119
- export const UpdateAgentFallbackModelConfigurationExecuteOn$outboundSchema:
4120
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationExecuteOn> = z
4121
- .nativeEnum(UpdateAgentFallbackModelConfigurationExecuteOn);
4122
-
4123
- /** @internal */
4124
- export type UpdateAgentFallbackModelConfigurationGuardrails$Outbound = {
4125
- id: string | string;
4126
- execute_on: string;
4127
- };
4128
-
4129
- /** @internal */
4130
- export const UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema:
4131
- z.ZodType<
4132
- UpdateAgentFallbackModelConfigurationGuardrails$Outbound,
4133
- z.ZodTypeDef,
4134
- UpdateAgentFallbackModelConfigurationGuardrails
4135
- > = z.object({
4136
- id: z.union([UpdateAgentIdAgents1$outboundSchema, z.string()]),
4137
- executeOn: UpdateAgentFallbackModelConfigurationExecuteOn$outboundSchema,
4138
- }).transform((v) => {
4139
- return remap$(v, {
4140
- executeOn: "execute_on",
4141
- });
4142
- });
4143
-
4144
- export function updateAgentFallbackModelConfigurationGuardrailsToJSON(
4145
- updateAgentFallbackModelConfigurationGuardrails:
4146
- UpdateAgentFallbackModelConfigurationGuardrails,
4147
- ): string {
4148
- return JSON.stringify(
4149
- UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema.parse(
4150
- updateAgentFallbackModelConfigurationGuardrails,
4151
- ),
4152
- );
4153
- }
4154
-
4155
- /** @internal */
4156
- export type UpdateAgentFallbackModelConfigurationPlugins$Outbound =
4157
- | components.PIIRedactionPluginEn$Outbound
4158
- | components.PIIRedactionPluginNl$Outbound
4159
- | components.PIIRedactionPluginAuto$Outbound;
4160
-
4161
- /** @internal */
4162
- export const UpdateAgentFallbackModelConfigurationPlugins$outboundSchema:
4163
- z.ZodType<
4164
- UpdateAgentFallbackModelConfigurationPlugins$Outbound,
4165
- z.ZodTypeDef,
4166
- UpdateAgentFallbackModelConfigurationPlugins
4167
- > = z.union([
4168
- components.PIIRedactionPluginEn$outboundSchema,
4169
- components.PIIRedactionPluginNl$outboundSchema,
4170
- components.PIIRedactionPluginAuto$outboundSchema,
4171
- ]);
4172
-
4173
- export function updateAgentFallbackModelConfigurationPluginsToJSON(
4174
- updateAgentFallbackModelConfigurationPlugins:
4175
- UpdateAgentFallbackModelConfigurationPlugins,
4176
- ): string {
4177
- return JSON.stringify(
4178
- UpdateAgentFallbackModelConfigurationPlugins$outboundSchema.parse(
4179
- updateAgentFallbackModelConfigurationPlugins,
4180
- ),
4181
- );
4182
- }
4183
-
4184
- /** @internal */
4185
- export type UpdateAgentFallbackModelConfigurationFallbacks$Outbound = {
4186
- model: string;
4187
- };
4188
-
4189
- /** @internal */
4190
- export const UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema:
4191
- z.ZodType<
4192
- UpdateAgentFallbackModelConfigurationFallbacks$Outbound,
4193
- z.ZodTypeDef,
4194
- UpdateAgentFallbackModelConfigurationFallbacks
4195
- > = z.object({
4196
- model: z.string(),
4197
- });
4198
-
4199
- export function updateAgentFallbackModelConfigurationFallbacksToJSON(
4200
- updateAgentFallbackModelConfigurationFallbacks:
4201
- UpdateAgentFallbackModelConfigurationFallbacks,
4202
- ): string {
4203
- return JSON.stringify(
4204
- UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema.parse(
4205
- updateAgentFallbackModelConfigurationFallbacks,
4206
- ),
4207
- );
4208
- }
4209
-
4210
- /** @internal */
4211
- export const UpdateAgentFallbackModelConfigurationType$outboundSchema:
4212
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> = z
4213
- .nativeEnum(UpdateAgentFallbackModelConfigurationType);
4214
-
4215
- /** @internal */
4216
- export type UpdateAgentFallbackModelConfigurationCache$Outbound = {
4217
- ttl: number;
4218
- type: string;
4219
- };
4220
-
4221
- /** @internal */
4222
- export const UpdateAgentFallbackModelConfigurationCache$outboundSchema:
4223
- z.ZodType<
4224
- UpdateAgentFallbackModelConfigurationCache$Outbound,
4225
- z.ZodTypeDef,
4226
- UpdateAgentFallbackModelConfigurationCache
4227
- > = z.object({
4228
- ttl: z.number().default(1800),
4229
- type: UpdateAgentFallbackModelConfigurationType$outboundSchema,
4230
- });
4231
-
4232
- export function updateAgentFallbackModelConfigurationCacheToJSON(
4233
- updateAgentFallbackModelConfigurationCache:
4234
- UpdateAgentFallbackModelConfigurationCache,
4235
- ): string {
4236
- return JSON.stringify(
4237
- UpdateAgentFallbackModelConfigurationCache$outboundSchema.parse(
4238
- updateAgentFallbackModelConfigurationCache,
4239
- ),
4240
- );
4241
- }
4242
-
4243
- /** @internal */
4244
- export const UpdateAgentLoadBalancerAgentsType$outboundSchema: z.ZodNativeEnum<
4245
- typeof UpdateAgentLoadBalancerAgentsType
4246
- > = z.nativeEnum(UpdateAgentLoadBalancerAgentsType);
4247
-
4248
- /** @internal */
4249
- export type UpdateAgentLoadBalancerAgentsModels$Outbound = {
4250
- model: string;
4251
- weight: number;
4252
- };
4253
-
4254
- /** @internal */
4255
- export const UpdateAgentLoadBalancerAgentsModels$outboundSchema: z.ZodType<
4256
- UpdateAgentLoadBalancerAgentsModels$Outbound,
4257
- z.ZodTypeDef,
4258
- UpdateAgentLoadBalancerAgentsModels
4259
- > = z.object({
4260
- model: z.string(),
4261
- weight: z.number().default(0.5),
4262
- });
4263
-
4264
- export function updateAgentLoadBalancerAgentsModelsToJSON(
4265
- updateAgentLoadBalancerAgentsModels: UpdateAgentLoadBalancerAgentsModels,
4266
- ): string {
4267
- return JSON.stringify(
4268
- UpdateAgentLoadBalancerAgentsModels$outboundSchema.parse(
4269
- updateAgentLoadBalancerAgentsModels,
4270
- ),
4271
- );
4272
- }
4273
-
4274
- /** @internal */
4275
- export type UpdateAgentLoadBalancerAgents1$Outbound = {
4276
- type: string;
4277
- models: Array<UpdateAgentLoadBalancerAgentsModels$Outbound>;
4278
- };
4279
-
4280
- /** @internal */
4281
- export const UpdateAgentLoadBalancerAgents1$outboundSchema: z.ZodType<
4282
- UpdateAgentLoadBalancerAgents1$Outbound,
4283
- z.ZodTypeDef,
4284
- UpdateAgentLoadBalancerAgents1
4285
- > = z.object({
4286
- type: UpdateAgentLoadBalancerAgentsType$outboundSchema,
4287
- models: z.array(
4288
- z.lazy(() => UpdateAgentLoadBalancerAgentsModels$outboundSchema),
4289
- ),
4290
- });
4291
-
4292
- export function updateAgentLoadBalancerAgents1ToJSON(
4293
- updateAgentLoadBalancerAgents1: UpdateAgentLoadBalancerAgents1,
4294
- ): string {
4295
- return JSON.stringify(
4296
- UpdateAgentLoadBalancerAgents1$outboundSchema.parse(
4297
- updateAgentLoadBalancerAgents1,
4298
- ),
4299
- );
4300
- }
4301
-
4302
- /** @internal */
4303
- export type UpdateAgentFallbackModelConfigurationLoadBalancer$Outbound =
4304
- UpdateAgentLoadBalancerAgents1$Outbound;
4305
-
4306
- /** @internal */
4307
- export const UpdateAgentFallbackModelConfigurationLoadBalancer$outboundSchema:
4308
- z.ZodType<
4309
- UpdateAgentFallbackModelConfigurationLoadBalancer$Outbound,
4310
- z.ZodTypeDef,
4311
- UpdateAgentFallbackModelConfigurationLoadBalancer
4312
- > = z.lazy(() => UpdateAgentLoadBalancerAgents1$outboundSchema);
4313
-
4314
- export function updateAgentFallbackModelConfigurationLoadBalancerToJSON(
4315
- updateAgentFallbackModelConfigurationLoadBalancer:
4316
- UpdateAgentFallbackModelConfigurationLoadBalancer,
4317
- ): string {
4318
- return JSON.stringify(
4319
- UpdateAgentFallbackModelConfigurationLoadBalancer$outboundSchema.parse(
4320
- updateAgentFallbackModelConfigurationLoadBalancer,
4321
- ),
4322
- );
4323
- }
4324
-
4325
- /** @internal */
4326
- export type UpdateAgentFallbackModelConfigurationTimeout$Outbound = {
4327
- call_timeout: number;
4328
- };
4329
-
4330
- /** @internal */
4331
- export const UpdateAgentFallbackModelConfigurationTimeout$outboundSchema:
4332
- z.ZodType<
4333
- UpdateAgentFallbackModelConfigurationTimeout$Outbound,
4334
- z.ZodTypeDef,
4335
- UpdateAgentFallbackModelConfigurationTimeout
4336
- > = z.object({
4337
- callTimeout: z.number(),
4338
- }).transform((v) => {
4339
- return remap$(v, {
4340
- callTimeout: "call_timeout",
4341
- });
4342
- });
4343
-
4344
- export function updateAgentFallbackModelConfigurationTimeoutToJSON(
4345
- updateAgentFallbackModelConfigurationTimeout:
4346
- UpdateAgentFallbackModelConfigurationTimeout,
4347
- ): string {
4348
- return JSON.stringify(
4349
- UpdateAgentFallbackModelConfigurationTimeout$outboundSchema.parse(
4350
- updateAgentFallbackModelConfigurationTimeout,
4351
- ),
4352
- );
4353
- }
4354
-
4355
- /** @internal */
4356
- export const UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema:
4357
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
4358
- .nativeEnum(UpdateAgentFallbackModelConfigurationAgentsType);
4359
-
4360
- /** @internal */
4361
- export const UpdateAgentFallbackModelConfigurationTtl$outboundSchema:
4362
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationTtl> = z
4363
- .nativeEnum(UpdateAgentFallbackModelConfigurationTtl);
4364
-
4365
- /** @internal */
4366
- export type UpdateAgentFallbackModelConfigurationCacheControl$Outbound = {
4367
- type: string;
4368
- ttl: string;
4369
- };
4370
-
4371
- /** @internal */
4372
- export const UpdateAgentFallbackModelConfigurationCacheControl$outboundSchema:
4373
- z.ZodType<
4374
- UpdateAgentFallbackModelConfigurationCacheControl$Outbound,
4375
- z.ZodTypeDef,
4376
- UpdateAgentFallbackModelConfigurationCacheControl
4377
- > = z.object({
4378
- type: UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema,
4379
- ttl: UpdateAgentFallbackModelConfigurationTtl$outboundSchema.default("5m"),
4380
- });
4381
-
4382
- export function updateAgentFallbackModelConfigurationCacheControlToJSON(
4383
- updateAgentFallbackModelConfigurationCacheControl:
4384
- UpdateAgentFallbackModelConfigurationCacheControl,
4385
- ): string {
4386
- return JSON.stringify(
4387
- UpdateAgentFallbackModelConfigurationCacheControl$outboundSchema.parse(
4388
- updateAgentFallbackModelConfigurationCacheControl,
4389
- ),
4390
- );
4391
- }
4392
-
4393
- /** @internal */
4394
- export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
4395
- name?: string | undefined;
4396
- frequency_penalty?: number | null | undefined;
4397
- max_tokens?: number | null | undefined;
4398
- max_completion_tokens?: number | null | undefined;
4399
- presence_penalty?: number | null | undefined;
4400
- response_format?:
4401
- | UpdateAgentResponseFormatAgentsText$Outbound
4402
- | UpdateAgentResponseFormatAgentsJSONObject$Outbound
4403
- | UpdateAgentResponseFormatAgentsRequestJSONSchema$Outbound
4404
- | undefined;
4405
- reasoning_effort?: string | undefined;
4406
- verbosity?: string | undefined;
4407
- seed?: number | null | undefined;
4408
- stop?: string | Array<string> | null | undefined;
4409
- thinking?:
4410
- | components.ThinkingConfigDisabledSchema$Outbound
4411
- | components.ThinkingConfigEnabledSchema$Outbound
4412
- | components.ThinkingConfigAdaptiveSchema$Outbound
4413
- | undefined;
4414
- temperature?: number | null | undefined;
4415
- top_p?: number | null | undefined;
4416
- top_k?: number | null | undefined;
4417
- tool_choice?: UpdateAgentToolChoiceAgents2$Outbound | string | undefined;
4418
- parallel_tool_calls?: boolean | undefined;
4419
- modalities?: Array<string> | null | undefined;
4420
- guardrails?:
4421
- | Array<UpdateAgentFallbackModelConfigurationGuardrails$Outbound>
4422
- | undefined;
4423
- plugins?:
4424
- | Array<
4425
- | components.PIIRedactionPluginEn$Outbound
4426
- | components.PIIRedactionPluginNl$Outbound
4427
- | components.PIIRedactionPluginAuto$Outbound
4428
- >
4429
- | undefined;
4430
- fallbacks?:
4431
- | Array<UpdateAgentFallbackModelConfigurationFallbacks$Outbound>
4432
- | undefined;
4433
- cache?: UpdateAgentFallbackModelConfigurationCache$Outbound | undefined;
4434
- load_balancer?: UpdateAgentLoadBalancerAgents1$Outbound | undefined;
4435
- timeout?: UpdateAgentFallbackModelConfigurationTimeout$Outbound | undefined;
4436
- cache_control?:
4437
- | UpdateAgentFallbackModelConfigurationCacheControl$Outbound
4438
- | undefined;
4439
- prompt_cache_key?: string | undefined;
4440
- };
4441
-
4442
- /** @internal */
4443
- export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
4444
- z.ZodType<
4445
- UpdateAgentFallbackModelConfigurationParameters$Outbound,
4446
- z.ZodTypeDef,
4447
- UpdateAgentFallbackModelConfigurationParameters
4448
- > = z.object({
4449
- name: z.string().optional(),
4450
- frequencyPenalty: z.nullable(z.number()).optional(),
4451
- maxTokens: z.nullable(z.number().int()).optional(),
4452
- maxCompletionTokens: z.nullable(z.number().int()).optional(),
4453
- presencePenalty: z.nullable(z.number()).optional(),
4454
- responseFormat: z.union([
4455
- z.lazy(() => UpdateAgentResponseFormatAgentsText$outboundSchema),
4456
- z.lazy(() => UpdateAgentResponseFormatAgentsJSONObject$outboundSchema),
4457
- z.lazy(() =>
4458
- UpdateAgentResponseFormatAgentsRequestJSONSchema$outboundSchema
4459
- ),
4460
- ]).optional(),
4461
- reasoningEffort:
4462
- UpdateAgentFallbackModelConfigurationReasoningEffort$outboundSchema
4463
- .optional(),
4464
- verbosity: z.string().optional(),
4465
- seed: z.nullable(z.number()).optional(),
4466
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
4467
- thinking: z.union([
4468
- components.ThinkingConfigDisabledSchema$outboundSchema,
4469
- components.ThinkingConfigEnabledSchema$outboundSchema,
4470
- components.ThinkingConfigAdaptiveSchema$outboundSchema,
4471
- ]).optional(),
4472
- temperature: z.nullable(z.number()).optional(),
4473
- topP: z.nullable(z.number()).optional(),
4474
- topK: z.nullable(z.number()).optional(),
4475
- toolChoice: z.union([
4476
- z.lazy(() => UpdateAgentToolChoiceAgents2$outboundSchema),
4477
- UpdateAgentToolChoiceAgents1$outboundSchema,
4478
- ]).optional(),
4479
- parallelToolCalls: z.boolean().optional(),
4480
- modalities: z.nullable(
4481
- z.array(UpdateAgentFallbackModelConfigurationModalities$outboundSchema),
4482
- ).optional(),
4483
- guardrails: z.array(
4484
- z.lazy(() =>
4485
- UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema
4486
- ),
4487
- ).optional(),
4488
- plugins: z.array(
4489
- z.union([
4490
- components.PIIRedactionPluginEn$outboundSchema,
4491
- components.PIIRedactionPluginNl$outboundSchema,
4492
- components.PIIRedactionPluginAuto$outboundSchema,
4493
- ]),
4494
- ).optional(),
4495
- fallbacks: z.array(
4496
- z.lazy(() =>
4497
- UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema
4498
- ),
4499
- ).optional(),
4500
- cache: z.lazy(() =>
4501
- UpdateAgentFallbackModelConfigurationCache$outboundSchema
4502
- ).optional(),
4503
- loadBalancer: z.lazy(() => UpdateAgentLoadBalancerAgents1$outboundSchema)
4504
- .optional(),
4505
- timeout: z.lazy(() =>
4506
- UpdateAgentFallbackModelConfigurationTimeout$outboundSchema
4507
- ).optional(),
4508
- cacheControl: z.lazy(() =>
4509
- UpdateAgentFallbackModelConfigurationCacheControl$outboundSchema
4510
- ).optional(),
4511
- promptCacheKey: z.string().optional(),
4512
- }).transform((v) => {
4513
- return remap$(v, {
4514
- frequencyPenalty: "frequency_penalty",
4515
- maxTokens: "max_tokens",
4516
- maxCompletionTokens: "max_completion_tokens",
4517
- presencePenalty: "presence_penalty",
4518
- responseFormat: "response_format",
4519
- reasoningEffort: "reasoning_effort",
4520
- topP: "top_p",
4521
- topK: "top_k",
4522
- toolChoice: "tool_choice",
4523
- parallelToolCalls: "parallel_tool_calls",
4524
- loadBalancer: "load_balancer",
4525
- cacheControl: "cache_control",
4526
- promptCacheKey: "prompt_cache_key",
4527
- });
4528
- });
4529
-
4530
- export function updateAgentFallbackModelConfigurationParametersToJSON(
4531
- updateAgentFallbackModelConfigurationParameters:
4532
- UpdateAgentFallbackModelConfigurationParameters,
4533
- ): string {
4534
- return JSON.stringify(
4535
- UpdateAgentFallbackModelConfigurationParameters$outboundSchema.parse(
4536
- updateAgentFallbackModelConfigurationParameters,
4537
- ),
4538
- );
4539
- }
4540
-
4541
- /** @internal */
4542
- export type UpdateAgentFallbackModelConfigurationRetry$Outbound = {
4543
- count: number;
4544
- on_codes?: Array<number> | undefined;
4545
- };
4546
-
4547
- /** @internal */
4548
- export const UpdateAgentFallbackModelConfigurationRetry$outboundSchema:
4549
- z.ZodType<
4550
- UpdateAgentFallbackModelConfigurationRetry$Outbound,
4551
- z.ZodTypeDef,
4552
- UpdateAgentFallbackModelConfigurationRetry
4553
- > = z.object({
4554
- count: z.number().default(3),
4555
- onCodes: z.array(z.number()).optional(),
4556
- }).transform((v) => {
4557
- return remap$(v, {
4558
- onCodes: "on_codes",
4559
- });
4560
- });
4561
-
4562
- export function updateAgentFallbackModelConfigurationRetryToJSON(
4563
- updateAgentFallbackModelConfigurationRetry:
4564
- UpdateAgentFallbackModelConfigurationRetry,
4565
- ): string {
4566
- return JSON.stringify(
4567
- UpdateAgentFallbackModelConfigurationRetry$outboundSchema.parse(
4568
- updateAgentFallbackModelConfigurationRetry,
4569
- ),
4570
- );
4571
- }
4572
-
4573
- /** @internal */
4574
- export type UpdateAgentFallbackModelConfiguration2$Outbound = {
4575
- id: string;
4576
- parameters?:
4577
- | UpdateAgentFallbackModelConfigurationParameters$Outbound
4578
- | undefined;
4579
- retry?: UpdateAgentFallbackModelConfigurationRetry$Outbound | undefined;
4580
- };
4581
-
4582
- /** @internal */
4583
- export const UpdateAgentFallbackModelConfiguration2$outboundSchema: z.ZodType<
4584
- UpdateAgentFallbackModelConfiguration2$Outbound,
4585
- z.ZodTypeDef,
4586
- UpdateAgentFallbackModelConfiguration2
4587
- > = z.object({
4588
- id: z.string(),
4589
- parameters: z.lazy(() =>
4590
- UpdateAgentFallbackModelConfigurationParameters$outboundSchema
4591
- ).optional(),
4592
- retry: z.lazy(() => UpdateAgentFallbackModelConfigurationRetry$outboundSchema)
4593
- .optional(),
4594
- });
4595
-
4596
- export function updateAgentFallbackModelConfiguration2ToJSON(
4597
- updateAgentFallbackModelConfiguration2:
4598
- UpdateAgentFallbackModelConfiguration2,
4599
- ): string {
4600
- return JSON.stringify(
4601
- UpdateAgentFallbackModelConfiguration2$outboundSchema.parse(
4602
- updateAgentFallbackModelConfiguration2,
3249
+ UpdateAgentModelConfiguration$outboundSchema.parse(
3250
+ updateAgentModelConfiguration,
4603
3251
  ),
4604
3252
  );
4605
3253
  }
4606
3254
 
4607
3255
  /** @internal */
4608
- export type UpdateAgentFallbackModelConfiguration$Outbound =
4609
- | UpdateAgentFallbackModelConfiguration2$Outbound
4610
- | string;
3256
+ export type UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
3257
+ {
3258
+ description?: string | undefined;
3259
+ name: string;
3260
+ schema?: any | undefined;
3261
+ strict: boolean;
3262
+ };
4611
3263
 
4612
3264
  /** @internal */
4613
- export const UpdateAgentFallbackModelConfiguration$outboundSchema: z.ZodType<
4614
- UpdateAgentFallbackModelConfiguration$Outbound,
4615
- z.ZodTypeDef,
4616
- UpdateAgentFallbackModelConfiguration
4617
- > = z.union([
4618
- z.lazy(() => UpdateAgentFallbackModelConfiguration2$outboundSchema),
4619
- z.string(),
4620
- ]);
3265
+ export const UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema:
3266
+ z.ZodType<
3267
+ UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound,
3268
+ z.ZodTypeDef,
3269
+ UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema
3270
+ > = z.object({
3271
+ description: z.string().optional(),
3272
+ name: z.string(),
3273
+ schema: z.any().optional(),
3274
+ strict: z.boolean().default(false),
3275
+ });
4621
3276
 
4622
- export function updateAgentFallbackModelConfigurationToJSON(
4623
- updateAgentFallbackModelConfiguration: UpdateAgentFallbackModelConfiguration,
3277
+ export function updateAgentResponseFormatAgentsRequestRequestBodyJsonSchemaToJSON(
3278
+ updateAgentResponseFormatAgentsRequestRequestBodyJsonSchema:
3279
+ UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema,
4624
3280
  ): string {
4625
3281
  return JSON.stringify(
4626
- UpdateAgentFallbackModelConfiguration$outboundSchema.parse(
4627
- updateAgentFallbackModelConfiguration,
4628
- ),
3282
+ UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema
3283
+ .parse(updateAgentResponseFormatAgentsRequestRequestBodyJsonSchema),
4629
3284
  );
4630
3285
  }
4631
3286
 
4632
3287
  /** @internal */
4633
- export const UpdateAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
4634
- typeof UpdateAgentToolApprovalRequired
4635
- > = z.nativeEnum(UpdateAgentToolApprovalRequired);
4636
-
4637
- /** @internal */
4638
- export type AgentToolInputCRUDProviderBuiltInTool$Outbound = {
4639
- type: string;
4640
- requires_approval?: boolean | undefined;
4641
- configuration?: { [k: string]: any } | undefined;
3288
+ export type UpdateAgentResponseFormatAgentsRequestJSONSchema$Outbound = {
3289
+ type: "json_schema";
3290
+ json_schema:
3291
+ UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound;
4642
3292
  };
4643
3293
 
4644
3294
  /** @internal */
4645
- export const AgentToolInputCRUDProviderBuiltInTool$outboundSchema: z.ZodType<
4646
- AgentToolInputCRUDProviderBuiltInTool$Outbound,
4647
- z.ZodTypeDef,
4648
- AgentToolInputCRUDProviderBuiltInTool
4649
- > = z.object({
4650
- type: z.string(),
4651
- requiresApproval: z.boolean().optional(),
4652
- configuration: z.record(z.any()).optional(),
4653
- }).transform((v) => {
4654
- return remap$(v, {
4655
- requiresApproval: "requires_approval",
3295
+ export const UpdateAgentResponseFormatAgentsRequestJSONSchema$outboundSchema:
3296
+ z.ZodType<
3297
+ UpdateAgentResponseFormatAgentsRequestJSONSchema$Outbound,
3298
+ z.ZodTypeDef,
3299
+ UpdateAgentResponseFormatAgentsRequestJSONSchema
3300
+ > = z.object({
3301
+ type: z.literal("json_schema"),
3302
+ jsonSchema: z.lazy(() =>
3303
+ UpdateAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema
3304
+ ),
3305
+ }).transform((v) => {
3306
+ return remap$(v, {
3307
+ jsonSchema: "json_schema",
3308
+ });
4656
3309
  });
4657
- });
4658
3310
 
4659
- export function agentToolInputCRUDProviderBuiltInToolToJSON(
4660
- agentToolInputCRUDProviderBuiltInTool: AgentToolInputCRUDProviderBuiltInTool,
3311
+ export function updateAgentResponseFormatAgentsRequestJSONSchemaToJSON(
3312
+ updateAgentResponseFormatAgentsRequestJSONSchema:
3313
+ UpdateAgentResponseFormatAgentsRequestJSONSchema,
4661
3314
  ): string {
4662
3315
  return JSON.stringify(
4663
- AgentToolInputCRUDProviderBuiltInTool$outboundSchema.parse(
4664
- agentToolInputCRUDProviderBuiltInTool,
3316
+ UpdateAgentResponseFormatAgentsRequestJSONSchema$outboundSchema.parse(
3317
+ updateAgentResponseFormatAgentsRequestJSONSchema,
4665
3318
  ),
4666
3319
  );
4667
3320
  }
4668
3321
 
4669
3322
  /** @internal */
4670
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type$outboundSchema:
4671
- z.ZodNativeEnum<
4672
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type
4673
- > = z.nativeEnum(
4674
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type,
4675
- );
4676
-
4677
- /** @internal */
4678
- export type AgentToolInputCRUDMCPTool$Outbound = {
4679
- type: string;
4680
- key?: string | undefined;
4681
- id?: string | undefined;
4682
- tool_id: string;
4683
- requires_approval: boolean;
3323
+ export type UpdateAgentResponseFormatAgentsJSONObject$Outbound = {
3324
+ type: "json_object";
4684
3325
  };
4685
3326
 
4686
3327
  /** @internal */
4687
- export const AgentToolInputCRUDMCPTool$outboundSchema: z.ZodType<
4688
- AgentToolInputCRUDMCPTool$Outbound,
4689
- z.ZodTypeDef,
4690
- AgentToolInputCRUDMCPTool
4691
- > = z.object({
4692
- type:
4693
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type$outboundSchema
4694
- .default("mcp"),
4695
- key: z.string().optional(),
4696
- id: z.string().optional(),
4697
- toolId: z.string(),
4698
- requiresApproval: z.boolean().default(false),
4699
- }).transform((v) => {
4700
- return remap$(v, {
4701
- toolId: "tool_id",
4702
- requiresApproval: "requires_approval",
3328
+ export const UpdateAgentResponseFormatAgentsJSONObject$outboundSchema:
3329
+ z.ZodType<
3330
+ UpdateAgentResponseFormatAgentsJSONObject$Outbound,
3331
+ z.ZodTypeDef,
3332
+ UpdateAgentResponseFormatAgentsJSONObject
3333
+ > = z.object({
3334
+ type: z.literal("json_object"),
4703
3335
  });
4704
- });
4705
3336
 
4706
- export function agentToolInputCRUDMCPToolToJSON(
4707
- agentToolInputCRUDMCPTool: AgentToolInputCRUDMCPTool,
3337
+ export function updateAgentResponseFormatAgentsJSONObjectToJSON(
3338
+ updateAgentResponseFormatAgentsJSONObject:
3339
+ UpdateAgentResponseFormatAgentsJSONObject,
4708
3340
  ): string {
4709
3341
  return JSON.stringify(
4710
- AgentToolInputCRUDMCPTool$outboundSchema.parse(agentToolInputCRUDMCPTool),
3342
+ UpdateAgentResponseFormatAgentsJSONObject$outboundSchema.parse(
3343
+ updateAgentResponseFormatAgentsJSONObject,
3344
+ ),
4711
3345
  );
4712
3346
  }
4713
3347
 
4714
3348
  /** @internal */
4715
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type$outboundSchema:
4716
- z.ZodNativeEnum<
4717
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type
4718
- > = z.nativeEnum(
4719
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type,
4720
- );
4721
-
4722
- /** @internal */
4723
- export type AgentToolInputCRUDJSONSchemaTool$Outbound = {
4724
- type: string;
4725
- key?: string | undefined;
4726
- id?: string | undefined;
4727
- requires_approval: boolean;
3349
+ export type UpdateAgentResponseFormatAgentsText$Outbound = {
3350
+ type: "text";
4728
3351
  };
4729
3352
 
4730
3353
  /** @internal */
4731
- export const AgentToolInputCRUDJSONSchemaTool$outboundSchema: z.ZodType<
4732
- AgentToolInputCRUDJSONSchemaTool$Outbound,
3354
+ export const UpdateAgentResponseFormatAgentsText$outboundSchema: z.ZodType<
3355
+ UpdateAgentResponseFormatAgentsText$Outbound,
4733
3356
  z.ZodTypeDef,
4734
- AgentToolInputCRUDJSONSchemaTool
3357
+ UpdateAgentResponseFormatAgentsText
4735
3358
  > = z.object({
4736
- type:
4737
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type$outboundSchema
4738
- .default("json_schema"),
4739
- key: z.string().optional(),
4740
- id: z.string().optional(),
4741
- requiresApproval: z.boolean().default(false),
4742
- }).transform((v) => {
4743
- return remap$(v, {
4744
- requiresApproval: "requires_approval",
4745
- });
3359
+ type: z.literal("text"),
4746
3360
  });
4747
3361
 
4748
- export function agentToolInputCRUDJSONSchemaToolToJSON(
4749
- agentToolInputCRUDJSONSchemaTool: AgentToolInputCRUDJSONSchemaTool,
3362
+ export function updateAgentResponseFormatAgentsTextToJSON(
3363
+ updateAgentResponseFormatAgentsText: UpdateAgentResponseFormatAgentsText,
4750
3364
  ): string {
4751
3365
  return JSON.stringify(
4752
- AgentToolInputCRUDJSONSchemaTool$outboundSchema.parse(
4753
- agentToolInputCRUDJSONSchemaTool,
3366
+ UpdateAgentResponseFormatAgentsText$outboundSchema.parse(
3367
+ updateAgentResponseFormatAgentsText,
4754
3368
  ),
4755
3369
  );
4756
3370
  }
4757
3371
 
4758
3372
  /** @internal */
4759
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema:
4760
- z.ZodNativeEnum<
4761
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
4762
- > = z.nativeEnum(
4763
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type,
4764
- );
4765
-
4766
- /** @internal */
4767
- export type AgentToolInputCRUDFunctionTool$Outbound = {
4768
- type: string;
4769
- key?: string | undefined;
4770
- id?: string | undefined;
4771
- requires_approval: boolean;
4772
- };
3373
+ export type UpdateAgentFallbackModelConfigurationResponseFormat$Outbound =
3374
+ | UpdateAgentResponseFormatAgentsText$Outbound
3375
+ | UpdateAgentResponseFormatAgentsJSONObject$Outbound
3376
+ | UpdateAgentResponseFormatAgentsRequestJSONSchema$Outbound;
4773
3377
 
4774
3378
  /** @internal */
4775
- export const AgentToolInputCRUDFunctionTool$outboundSchema: z.ZodType<
4776
- AgentToolInputCRUDFunctionTool$Outbound,
4777
- z.ZodTypeDef,
4778
- AgentToolInputCRUDFunctionTool
4779
- > = z.object({
4780
- type:
4781
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema
4782
- .default("function"),
4783
- key: z.string().optional(),
4784
- id: z.string().optional(),
4785
- requiresApproval: z.boolean().default(false),
4786
- }).transform((v) => {
4787
- return remap$(v, {
4788
- requiresApproval: "requires_approval",
4789
- });
4790
- });
3379
+ export const UpdateAgentFallbackModelConfigurationResponseFormat$outboundSchema:
3380
+ z.ZodType<
3381
+ UpdateAgentFallbackModelConfigurationResponseFormat$Outbound,
3382
+ z.ZodTypeDef,
3383
+ UpdateAgentFallbackModelConfigurationResponseFormat
3384
+ > = z.union([
3385
+ z.lazy(() => UpdateAgentResponseFormatAgentsText$outboundSchema),
3386
+ z.lazy(() => UpdateAgentResponseFormatAgentsJSONObject$outboundSchema),
3387
+ z.lazy(() =>
3388
+ UpdateAgentResponseFormatAgentsRequestJSONSchema$outboundSchema
3389
+ ),
3390
+ ]);
4791
3391
 
4792
- export function agentToolInputCRUDFunctionToolToJSON(
4793
- agentToolInputCRUDFunctionTool: AgentToolInputCRUDFunctionTool,
3392
+ export function updateAgentFallbackModelConfigurationResponseFormatToJSON(
3393
+ updateAgentFallbackModelConfigurationResponseFormat:
3394
+ UpdateAgentFallbackModelConfigurationResponseFormat,
4794
3395
  ): string {
4795
3396
  return JSON.stringify(
4796
- AgentToolInputCRUDFunctionTool$outboundSchema.parse(
4797
- agentToolInputCRUDFunctionTool,
3397
+ UpdateAgentFallbackModelConfigurationResponseFormat$outboundSchema.parse(
3398
+ updateAgentFallbackModelConfigurationResponseFormat,
4798
3399
  ),
4799
3400
  );
4800
3401
  }
4801
3402
 
4802
3403
  /** @internal */
4803
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
4804
- z.ZodNativeEnum<
4805
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
4806
- > = z.nativeEnum(
4807
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type,
4808
- );
3404
+ export const UpdateAgentFallbackModelConfigurationReasoningEffort$outboundSchema:
3405
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationReasoningEffort> =
3406
+ z.nativeEnum(UpdateAgentFallbackModelConfigurationReasoningEffort);
4809
3407
 
4810
3408
  /** @internal */
4811
- export type AgentToolInputCRUDCodeExecutionTool$Outbound = {
4812
- type: string;
4813
- key?: string | undefined;
4814
- id?: string | undefined;
4815
- requires_approval: boolean;
4816
- };
3409
+ export type UpdateAgentFallbackModelConfigurationStop$Outbound =
3410
+ | string
3411
+ | Array<string>;
4817
3412
 
4818
3413
  /** @internal */
4819
- export const AgentToolInputCRUDCodeExecutionTool$outboundSchema: z.ZodType<
4820
- AgentToolInputCRUDCodeExecutionTool$Outbound,
4821
- z.ZodTypeDef,
4822
- AgentToolInputCRUDCodeExecutionTool
4823
- > = z.object({
4824
- type:
4825
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema
4826
- .default("code"),
4827
- key: z.string().optional(),
4828
- id: z.string().optional(),
4829
- requiresApproval: z.boolean().default(false),
4830
- }).transform((v) => {
4831
- return remap$(v, {
4832
- requiresApproval: "requires_approval",
4833
- });
4834
- });
3414
+ export const UpdateAgentFallbackModelConfigurationStop$outboundSchema:
3415
+ z.ZodType<
3416
+ UpdateAgentFallbackModelConfigurationStop$Outbound,
3417
+ z.ZodTypeDef,
3418
+ UpdateAgentFallbackModelConfigurationStop
3419
+ > = z.union([z.string(), z.array(z.string())]);
4835
3420
 
4836
- export function agentToolInputCRUDCodeExecutionToolToJSON(
4837
- agentToolInputCRUDCodeExecutionTool: AgentToolInputCRUDCodeExecutionTool,
3421
+ export function updateAgentFallbackModelConfigurationStopToJSON(
3422
+ updateAgentFallbackModelConfigurationStop:
3423
+ UpdateAgentFallbackModelConfigurationStop,
4838
3424
  ): string {
4839
3425
  return JSON.stringify(
4840
- AgentToolInputCRUDCodeExecutionTool$outboundSchema.parse(
4841
- agentToolInputCRUDCodeExecutionTool,
3426
+ UpdateAgentFallbackModelConfigurationStop$outboundSchema.parse(
3427
+ updateAgentFallbackModelConfigurationStop,
4842
3428
  ),
4843
3429
  );
4844
3430
  }
4845
3431
 
4846
3432
  /** @internal */
4847
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
4848
- z.ZodNativeEnum<
4849
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
4850
- > = z.nativeEnum(
4851
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type,
3433
+ export type UpdateAgentFallbackModelConfigurationThinking$Outbound =
3434
+ | components.ThinkingConfigDisabledSchema$Outbound
3435
+ | components.ThinkingConfigEnabledSchema$Outbound
3436
+ | components.ThinkingConfigAdaptiveSchema$Outbound;
3437
+
3438
+ /** @internal */
3439
+ export const UpdateAgentFallbackModelConfigurationThinking$outboundSchema:
3440
+ z.ZodType<
3441
+ UpdateAgentFallbackModelConfigurationThinking$Outbound,
3442
+ z.ZodTypeDef,
3443
+ UpdateAgentFallbackModelConfigurationThinking
3444
+ > = z.union([
3445
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3446
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3447
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3448
+ ]);
3449
+
3450
+ export function updateAgentFallbackModelConfigurationThinkingToJSON(
3451
+ updateAgentFallbackModelConfigurationThinking:
3452
+ UpdateAgentFallbackModelConfigurationThinking,
3453
+ ): string {
3454
+ return JSON.stringify(
3455
+ UpdateAgentFallbackModelConfigurationThinking$outboundSchema.parse(
3456
+ updateAgentFallbackModelConfigurationThinking,
3457
+ ),
4852
3458
  );
3459
+ }
4853
3460
 
4854
3461
  /** @internal */
4855
- export type AgentToolInputCRUDHTTPTool$Outbound = {
4856
- type: string;
4857
- key?: string | undefined;
4858
- id?: string | undefined;
4859
- requires_approval: boolean;
3462
+ export const UpdateAgentToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<
3463
+ typeof UpdateAgentToolChoiceAgentsType
3464
+ > = z.nativeEnum(UpdateAgentToolChoiceAgentsType);
3465
+
3466
+ /** @internal */
3467
+ export type UpdateAgentToolChoiceAgentsFunction$Outbound = {
3468
+ name: string;
4860
3469
  };
4861
3470
 
4862
3471
  /** @internal */
4863
- export const AgentToolInputCRUDHTTPTool$outboundSchema: z.ZodType<
4864
- AgentToolInputCRUDHTTPTool$Outbound,
3472
+ export const UpdateAgentToolChoiceAgentsFunction$outboundSchema: z.ZodType<
3473
+ UpdateAgentToolChoiceAgentsFunction$Outbound,
4865
3474
  z.ZodTypeDef,
4866
- AgentToolInputCRUDHTTPTool
3475
+ UpdateAgentToolChoiceAgentsFunction
4867
3476
  > = z.object({
4868
- type:
4869
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema
4870
- .default("http"),
4871
- key: z.string().optional(),
4872
- id: z.string().optional(),
4873
- requiresApproval: z.boolean().default(false),
4874
- }).transform((v) => {
4875
- return remap$(v, {
4876
- requiresApproval: "requires_approval",
4877
- });
3477
+ name: z.string(),
4878
3478
  });
4879
3479
 
4880
- export function agentToolInputCRUDHTTPToolToJSON(
4881
- agentToolInputCRUDHTTPTool: AgentToolInputCRUDHTTPTool,
3480
+ export function updateAgentToolChoiceAgentsFunctionToJSON(
3481
+ updateAgentToolChoiceAgentsFunction: UpdateAgentToolChoiceAgentsFunction,
4882
3482
  ): string {
4883
3483
  return JSON.stringify(
4884
- AgentToolInputCRUDHTTPTool$outboundSchema.parse(agentToolInputCRUDHTTPTool),
3484
+ UpdateAgentToolChoiceAgentsFunction$outboundSchema.parse(
3485
+ updateAgentToolChoiceAgentsFunction,
3486
+ ),
4885
3487
  );
4886
3488
  }
4887
3489
 
4888
3490
  /** @internal */
4889
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
4890
- z.ZodNativeEnum<
4891
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
4892
- > = z.nativeEnum(
4893
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type,
4894
- );
4895
-
4896
- /** @internal */
4897
- export type AgentToolInputCRUDCodeInterpreterTool$Outbound = {
4898
- type: string;
4899
- requires_approval?: boolean | undefined;
4900
- configuration?: { [k: string]: any } | undefined;
3491
+ export type UpdateAgentToolChoiceAgents2$Outbound = {
3492
+ type?: string | undefined;
3493
+ function: UpdateAgentToolChoiceAgentsFunction$Outbound;
4901
3494
  };
4902
3495
 
4903
3496
  /** @internal */
4904
- export const AgentToolInputCRUDCodeInterpreterTool$outboundSchema: z.ZodType<
4905
- AgentToolInputCRUDCodeInterpreterTool$Outbound,
4906
- z.ZodTypeDef,
4907
- AgentToolInputCRUDCodeInterpreterTool
4908
- > = z.object({
4909
- type:
4910
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
4911
- requiresApproval: z.boolean().optional(),
4912
- configuration: z.record(z.any()).optional(),
4913
- }).transform((v) => {
4914
- return remap$(v, {
4915
- requiresApproval: "requires_approval",
4916
- });
3497
+ export const UpdateAgentToolChoiceAgents2$outboundSchema: z.ZodType<
3498
+ UpdateAgentToolChoiceAgents2$Outbound,
3499
+ z.ZodTypeDef,
3500
+ UpdateAgentToolChoiceAgents2
3501
+ > = z.object({
3502
+ type: UpdateAgentToolChoiceAgentsType$outboundSchema.optional(),
3503
+ function: z.lazy(() => UpdateAgentToolChoiceAgentsFunction$outboundSchema),
4917
3504
  });
4918
3505
 
4919
- export function agentToolInputCRUDCodeInterpreterToolToJSON(
4920
- agentToolInputCRUDCodeInterpreterTool: AgentToolInputCRUDCodeInterpreterTool,
3506
+ export function updateAgentToolChoiceAgents2ToJSON(
3507
+ updateAgentToolChoiceAgents2: UpdateAgentToolChoiceAgents2,
4921
3508
  ): string {
4922
3509
  return JSON.stringify(
4923
- AgentToolInputCRUDCodeInterpreterTool$outboundSchema.parse(
4924
- agentToolInputCRUDCodeInterpreterTool,
3510
+ UpdateAgentToolChoiceAgents2$outboundSchema.parse(
3511
+ updateAgentToolChoiceAgents2,
4925
3512
  ),
4926
3513
  );
4927
3514
  }
4928
3515
 
4929
3516
  /** @internal */
4930
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
4931
- z.ZodNativeEnum<
4932
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
4933
- > = z.nativeEnum(
4934
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type,
4935
- );
3517
+ export const UpdateAgentToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<
3518
+ typeof UpdateAgentToolChoiceAgents1
3519
+ > = z.nativeEnum(UpdateAgentToolChoiceAgents1);
4936
3520
 
4937
3521
  /** @internal */
4938
- export type AgentToolInputCRUDCurrentDateTool$Outbound = {
4939
- type: string;
4940
- requires_approval?: boolean | undefined;
4941
- configuration?: { [k: string]: any } | undefined;
4942
- };
3522
+ export type UpdateAgentFallbackModelConfigurationToolChoice$Outbound =
3523
+ | UpdateAgentToolChoiceAgents2$Outbound
3524
+ | string;
4943
3525
 
4944
3526
  /** @internal */
4945
- export const AgentToolInputCRUDCurrentDateTool$outboundSchema: z.ZodType<
4946
- AgentToolInputCRUDCurrentDateTool$Outbound,
4947
- z.ZodTypeDef,
4948
- AgentToolInputCRUDCurrentDateTool
4949
- > = z.object({
4950
- type:
4951
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
4952
- requiresApproval: z.boolean().optional(),
4953
- configuration: z.record(z.any()).optional(),
4954
- }).transform((v) => {
4955
- return remap$(v, {
4956
- requiresApproval: "requires_approval",
4957
- });
4958
- });
3527
+ export const UpdateAgentFallbackModelConfigurationToolChoice$outboundSchema:
3528
+ z.ZodType<
3529
+ UpdateAgentFallbackModelConfigurationToolChoice$Outbound,
3530
+ z.ZodTypeDef,
3531
+ UpdateAgentFallbackModelConfigurationToolChoice
3532
+ > = z.union([
3533
+ z.lazy(() => UpdateAgentToolChoiceAgents2$outboundSchema),
3534
+ UpdateAgentToolChoiceAgents1$outboundSchema,
3535
+ ]);
4959
3536
 
4960
- export function agentToolInputCRUDCurrentDateToolToJSON(
4961
- agentToolInputCRUDCurrentDateTool: AgentToolInputCRUDCurrentDateTool,
3537
+ export function updateAgentFallbackModelConfigurationToolChoiceToJSON(
3538
+ updateAgentFallbackModelConfigurationToolChoice:
3539
+ UpdateAgentFallbackModelConfigurationToolChoice,
4962
3540
  ): string {
4963
3541
  return JSON.stringify(
4964
- AgentToolInputCRUDCurrentDateTool$outboundSchema.parse(
4965
- agentToolInputCRUDCurrentDateTool,
3542
+ UpdateAgentFallbackModelConfigurationToolChoice$outboundSchema.parse(
3543
+ updateAgentFallbackModelConfigurationToolChoice,
4966
3544
  ),
4967
3545
  );
4968
3546
  }
4969
3547
 
4970
3548
  /** @internal */
4971
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
4972
- z.ZodNativeEnum<
4973
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
4974
- > = z.nativeEnum(
4975
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type,
4976
- );
3549
+ export const UpdateAgentFallbackModelConfigurationModalities$outboundSchema:
3550
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationModalities> = z
3551
+ .nativeEnum(UpdateAgentFallbackModelConfigurationModalities);
4977
3552
 
4978
3553
  /** @internal */
4979
- export type AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound = {
4980
- type: string;
4981
- requires_approval?: boolean | undefined;
4982
- configuration?: { [k: string]: any } | undefined;
4983
- };
3554
+ export const UpdateAgentIdAgents1$outboundSchema: z.ZodNativeEnum<
3555
+ typeof UpdateAgentIdAgents1
3556
+ > = z.nativeEnum(UpdateAgentIdAgents1);
4984
3557
 
4985
3558
  /** @internal */
4986
- export const AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
4987
- AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound,
3559
+ export type UpdateAgentFallbackModelConfigurationId$Outbound = string | string;
3560
+
3561
+ /** @internal */
3562
+ export const UpdateAgentFallbackModelConfigurationId$outboundSchema: z.ZodType<
3563
+ UpdateAgentFallbackModelConfigurationId$Outbound,
4988
3564
  z.ZodTypeDef,
4989
- AgentToolInputCRUDQueryKnowledgeBaseTool
4990
- > = z.object({
4991
- type:
4992
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
4993
- requiresApproval: z.boolean().optional(),
4994
- configuration: z.record(z.any()).optional(),
4995
- }).transform((v) => {
4996
- return remap$(v, {
4997
- requiresApproval: "requires_approval",
4998
- });
4999
- });
3565
+ UpdateAgentFallbackModelConfigurationId
3566
+ > = z.union([UpdateAgentIdAgents1$outboundSchema, z.string()]);
5000
3567
 
5001
- export function agentToolInputCRUDQueryKnowledgeBaseToolToJSON(
5002
- agentToolInputCRUDQueryKnowledgeBaseTool:
5003
- AgentToolInputCRUDQueryKnowledgeBaseTool,
3568
+ export function updateAgentFallbackModelConfigurationIdToJSON(
3569
+ updateAgentFallbackModelConfigurationId:
3570
+ UpdateAgentFallbackModelConfigurationId,
5004
3571
  ): string {
5005
3572
  return JSON.stringify(
5006
- AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema.parse(
5007
- agentToolInputCRUDQueryKnowledgeBaseTool,
3573
+ UpdateAgentFallbackModelConfigurationId$outboundSchema.parse(
3574
+ updateAgentFallbackModelConfigurationId,
5008
3575
  ),
5009
3576
  );
5010
3577
  }
5011
3578
 
5012
3579
  /** @internal */
5013
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
5014
- z.ZodNativeEnum<
5015
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
5016
- > = z.nativeEnum(
5017
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type,
5018
- );
3580
+ export const UpdateAgentFallbackModelConfigurationExecuteOn$outboundSchema:
3581
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationExecuteOn> = z
3582
+ .nativeEnum(UpdateAgentFallbackModelConfigurationExecuteOn);
5019
3583
 
5020
3584
  /** @internal */
5021
- export type AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound = {
5022
- type: string;
5023
- requires_approval?: boolean | undefined;
5024
- configuration?: { [k: string]: any } | undefined;
3585
+ export type UpdateAgentFallbackModelConfigurationGuardrails$Outbound = {
3586
+ id: string | string;
3587
+ execute_on: string;
5025
3588
  };
5026
3589
 
5027
3590
  /** @internal */
5028
- export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema:
3591
+ export const UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema:
5029
3592
  z.ZodType<
5030
- AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound,
3593
+ UpdateAgentFallbackModelConfigurationGuardrails$Outbound,
5031
3594
  z.ZodTypeDef,
5032
- AgentToolInputCRUDRetrieveKnowledgeBasesTool
3595
+ UpdateAgentFallbackModelConfigurationGuardrails
5033
3596
  > = z.object({
5034
- type:
5035
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
5036
- requiresApproval: z.boolean().optional(),
5037
- configuration: z.record(z.any()).optional(),
3597
+ id: z.union([UpdateAgentIdAgents1$outboundSchema, z.string()]),
3598
+ executeOn: UpdateAgentFallbackModelConfigurationExecuteOn$outboundSchema,
5038
3599
  }).transform((v) => {
5039
3600
  return remap$(v, {
5040
- requiresApproval: "requires_approval",
3601
+ executeOn: "execute_on",
5041
3602
  });
5042
3603
  });
5043
3604
 
5044
- export function agentToolInputCRUDRetrieveKnowledgeBasesToolToJSON(
5045
- agentToolInputCRUDRetrieveKnowledgeBasesTool:
5046
- AgentToolInputCRUDRetrieveKnowledgeBasesTool,
3605
+ export function updateAgentFallbackModelConfigurationGuardrailsToJSON(
3606
+ updateAgentFallbackModelConfigurationGuardrails:
3607
+ UpdateAgentFallbackModelConfigurationGuardrails,
5047
3608
  ): string {
5048
3609
  return JSON.stringify(
5049
- AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema.parse(
5050
- agentToolInputCRUDRetrieveKnowledgeBasesTool,
3610
+ UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema.parse(
3611
+ updateAgentFallbackModelConfigurationGuardrails,
5051
3612
  ),
5052
3613
  );
5053
3614
  }
5054
3615
 
5055
3616
  /** @internal */
5056
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
5057
- z.ZodNativeEnum<
5058
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
5059
- > = z.nativeEnum(
5060
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type,
3617
+ export type UpdateAgentFallbackModelConfigurationPlugins$Outbound =
3618
+ | components.PIIRedactionPluginEn$Outbound
3619
+ | components.PIIRedactionPluginNl$Outbound
3620
+ | components.PIIRedactionPluginAuto$Outbound;
3621
+
3622
+ /** @internal */
3623
+ export const UpdateAgentFallbackModelConfigurationPlugins$outboundSchema:
3624
+ z.ZodType<
3625
+ UpdateAgentFallbackModelConfigurationPlugins$Outbound,
3626
+ z.ZodTypeDef,
3627
+ UpdateAgentFallbackModelConfigurationPlugins
3628
+ > = z.union([
3629
+ components.PIIRedactionPluginEn$outboundSchema,
3630
+ components.PIIRedactionPluginNl$outboundSchema,
3631
+ components.PIIRedactionPluginAuto$outboundSchema,
3632
+ ]);
3633
+
3634
+ export function updateAgentFallbackModelConfigurationPluginsToJSON(
3635
+ updateAgentFallbackModelConfigurationPlugins:
3636
+ UpdateAgentFallbackModelConfigurationPlugins,
3637
+ ): string {
3638
+ return JSON.stringify(
3639
+ UpdateAgentFallbackModelConfigurationPlugins$outboundSchema.parse(
3640
+ updateAgentFallbackModelConfigurationPlugins,
3641
+ ),
5061
3642
  );
3643
+ }
5062
3644
 
5063
3645
  /** @internal */
5064
- export type AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound = {
5065
- type: string;
5066
- requires_approval?: boolean | undefined;
5067
- configuration?: { [k: string]: any } | undefined;
3646
+ export type UpdateAgentFallbackModelConfigurationFallbacks$Outbound = {
3647
+ model: string;
5068
3648
  };
5069
3649
 
5070
3650
  /** @internal */
5071
- export const AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema:
3651
+ export const UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema:
5072
3652
  z.ZodType<
5073
- AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound,
3653
+ UpdateAgentFallbackModelConfigurationFallbacks$Outbound,
5074
3654
  z.ZodTypeDef,
5075
- AgentToolInputCRUDDeleteMemoryDocumentTool
3655
+ UpdateAgentFallbackModelConfigurationFallbacks
5076
3656
  > = z.object({
5077
- type:
5078
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
5079
- requiresApproval: z.boolean().optional(),
5080
- configuration: z.record(z.any()).optional(),
5081
- }).transform((v) => {
5082
- return remap$(v, {
5083
- requiresApproval: "requires_approval",
5084
- });
3657
+ model: z.string(),
5085
3658
  });
5086
3659
 
5087
- export function agentToolInputCRUDDeleteMemoryDocumentToolToJSON(
5088
- agentToolInputCRUDDeleteMemoryDocumentTool:
5089
- AgentToolInputCRUDDeleteMemoryDocumentTool,
3660
+ export function updateAgentFallbackModelConfigurationFallbacksToJSON(
3661
+ updateAgentFallbackModelConfigurationFallbacks:
3662
+ UpdateAgentFallbackModelConfigurationFallbacks,
5090
3663
  ): string {
5091
3664
  return JSON.stringify(
5092
- AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema.parse(
5093
- agentToolInputCRUDDeleteMemoryDocumentTool,
3665
+ UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema.parse(
3666
+ updateAgentFallbackModelConfigurationFallbacks,
5094
3667
  ),
5095
3668
  );
5096
3669
  }
5097
3670
 
5098
3671
  /** @internal */
5099
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
5100
- z.ZodNativeEnum<
5101
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
5102
- > = z.nativeEnum(
5103
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type,
5104
- );
3672
+ export const UpdateAgentFallbackModelConfigurationType$outboundSchema:
3673
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> = z
3674
+ .nativeEnum(UpdateAgentFallbackModelConfigurationType);
5105
3675
 
5106
3676
  /** @internal */
5107
- export type AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound = {
3677
+ export type UpdateAgentFallbackModelConfigurationCache$Outbound = {
3678
+ ttl: number;
5108
3679
  type: string;
5109
- requires_approval?: boolean | undefined;
5110
- configuration?: { [k: string]: any } | undefined;
5111
3680
  };
5112
3681
 
5113
3682
  /** @internal */
5114
- export const AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema:
3683
+ export const UpdateAgentFallbackModelConfigurationCache$outboundSchema:
5115
3684
  z.ZodType<
5116
- AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound,
3685
+ UpdateAgentFallbackModelConfigurationCache$Outbound,
5117
3686
  z.ZodTypeDef,
5118
- AgentToolInputCRUDRetrieveMemoryStoresTool
3687
+ UpdateAgentFallbackModelConfigurationCache
5119
3688
  > = z.object({
5120
- type:
5121
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
5122
- requiresApproval: z.boolean().optional(),
5123
- configuration: z.record(z.any()).optional(),
5124
- }).transform((v) => {
5125
- return remap$(v, {
5126
- requiresApproval: "requires_approval",
5127
- });
3689
+ ttl: z.number().default(1800),
3690
+ type: UpdateAgentFallbackModelConfigurationType$outboundSchema,
5128
3691
  });
5129
3692
 
5130
- export function agentToolInputCRUDRetrieveMemoryStoresToolToJSON(
5131
- agentToolInputCRUDRetrieveMemoryStoresTool:
5132
- AgentToolInputCRUDRetrieveMemoryStoresTool,
3693
+ export function updateAgentFallbackModelConfigurationCacheToJSON(
3694
+ updateAgentFallbackModelConfigurationCache:
3695
+ UpdateAgentFallbackModelConfigurationCache,
5133
3696
  ): string {
5134
3697
  return JSON.stringify(
5135
- AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema.parse(
5136
- agentToolInputCRUDRetrieveMemoryStoresTool,
3698
+ UpdateAgentFallbackModelConfigurationCache$outboundSchema.parse(
3699
+ updateAgentFallbackModelConfigurationCache,
5137
3700
  ),
5138
3701
  );
5139
3702
  }
5140
3703
 
5141
3704
  /** @internal */
5142
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema:
5143
- z.ZodNativeEnum<
5144
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
5145
- > = z.nativeEnum(
5146
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType,
3705
+ export const UpdateAgentLoadBalancerAgentsType$outboundSchema: z.ZodNativeEnum<
3706
+ typeof UpdateAgentLoadBalancerAgentsType
3707
+ > = z.nativeEnum(UpdateAgentLoadBalancerAgentsType);
3708
+
3709
+ /** @internal */
3710
+ export type UpdateAgentLoadBalancerAgentsModels$Outbound = {
3711
+ model: string;
3712
+ weight: number;
3713
+ };
3714
+
3715
+ /** @internal */
3716
+ export const UpdateAgentLoadBalancerAgentsModels$outboundSchema: z.ZodType<
3717
+ UpdateAgentLoadBalancerAgentsModels$Outbound,
3718
+ z.ZodTypeDef,
3719
+ UpdateAgentLoadBalancerAgentsModels
3720
+ > = z.object({
3721
+ model: z.string(),
3722
+ weight: z.number().default(0.5),
3723
+ });
3724
+
3725
+ export function updateAgentLoadBalancerAgentsModelsToJSON(
3726
+ updateAgentLoadBalancerAgentsModels: UpdateAgentLoadBalancerAgentsModels,
3727
+ ): string {
3728
+ return JSON.stringify(
3729
+ UpdateAgentLoadBalancerAgentsModels$outboundSchema.parse(
3730
+ updateAgentLoadBalancerAgentsModels,
3731
+ ),
5147
3732
  );
3733
+ }
5148
3734
 
5149
3735
  /** @internal */
5150
- export type AgentToolInputCRUDWriteMemoryStoreTool$Outbound = {
3736
+ export type UpdateAgentLoadBalancerAgents1$Outbound = {
5151
3737
  type: string;
5152
- requires_approval?: boolean | undefined;
5153
- configuration?: { [k: string]: any } | undefined;
3738
+ models: Array<UpdateAgentLoadBalancerAgentsModels$Outbound>;
5154
3739
  };
5155
3740
 
5156
3741
  /** @internal */
5157
- export const AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema: z.ZodType<
5158
- AgentToolInputCRUDWriteMemoryStoreTool$Outbound,
3742
+ export const UpdateAgentLoadBalancerAgents1$outboundSchema: z.ZodType<
3743
+ UpdateAgentLoadBalancerAgents1$Outbound,
5159
3744
  z.ZodTypeDef,
5160
- AgentToolInputCRUDWriteMemoryStoreTool
3745
+ UpdateAgentLoadBalancerAgents1
5161
3746
  > = z.object({
5162
- type:
5163
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema,
5164
- requiresApproval: z.boolean().optional(),
5165
- configuration: z.record(z.any()).optional(),
5166
- }).transform((v) => {
5167
- return remap$(v, {
5168
- requiresApproval: "requires_approval",
5169
- });
3747
+ type: UpdateAgentLoadBalancerAgentsType$outboundSchema,
3748
+ models: z.array(
3749
+ z.lazy(() => UpdateAgentLoadBalancerAgentsModels$outboundSchema),
3750
+ ),
5170
3751
  });
5171
3752
 
5172
- export function agentToolInputCRUDWriteMemoryStoreToolToJSON(
5173
- agentToolInputCRUDWriteMemoryStoreTool:
5174
- AgentToolInputCRUDWriteMemoryStoreTool,
3753
+ export function updateAgentLoadBalancerAgents1ToJSON(
3754
+ updateAgentLoadBalancerAgents1: UpdateAgentLoadBalancerAgents1,
5175
3755
  ): string {
5176
3756
  return JSON.stringify(
5177
- AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema.parse(
5178
- agentToolInputCRUDWriteMemoryStoreTool,
3757
+ UpdateAgentLoadBalancerAgents1$outboundSchema.parse(
3758
+ updateAgentLoadBalancerAgents1,
5179
3759
  ),
5180
3760
  );
5181
3761
  }
5182
3762
 
5183
3763
  /** @internal */
5184
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema:
5185
- z.ZodNativeEnum<
5186
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
5187
- > = z.nativeEnum(
5188
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType,
3764
+ export type UpdateAgentFallbackModelConfigurationLoadBalancer$Outbound =
3765
+ UpdateAgentLoadBalancerAgents1$Outbound;
3766
+
3767
+ /** @internal */
3768
+ export const UpdateAgentFallbackModelConfigurationLoadBalancer$outboundSchema:
3769
+ z.ZodType<
3770
+ UpdateAgentFallbackModelConfigurationLoadBalancer$Outbound,
3771
+ z.ZodTypeDef,
3772
+ UpdateAgentFallbackModelConfigurationLoadBalancer
3773
+ > = z.lazy(() => UpdateAgentLoadBalancerAgents1$outboundSchema);
3774
+
3775
+ export function updateAgentFallbackModelConfigurationLoadBalancerToJSON(
3776
+ updateAgentFallbackModelConfigurationLoadBalancer:
3777
+ UpdateAgentFallbackModelConfigurationLoadBalancer,
3778
+ ): string {
3779
+ return JSON.stringify(
3780
+ UpdateAgentFallbackModelConfigurationLoadBalancer$outboundSchema.parse(
3781
+ updateAgentFallbackModelConfigurationLoadBalancer,
3782
+ ),
5189
3783
  );
3784
+ }
5190
3785
 
5191
3786
  /** @internal */
5192
- export type AgentToolInputCRUDQueryMemoryStoreTool$Outbound = {
5193
- type: string;
5194
- requires_approval?: boolean | undefined;
5195
- configuration?: { [k: string]: any } | undefined;
3787
+ export type UpdateAgentFallbackModelConfigurationTimeout$Outbound = {
3788
+ call_timeout: number;
5196
3789
  };
5197
3790
 
5198
3791
  /** @internal */
5199
- export const AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema: z.ZodType<
5200
- AgentToolInputCRUDQueryMemoryStoreTool$Outbound,
5201
- z.ZodTypeDef,
5202
- AgentToolInputCRUDQueryMemoryStoreTool
5203
- > = z.object({
5204
- type:
5205
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema,
5206
- requiresApproval: z.boolean().optional(),
5207
- configuration: z.record(z.any()).optional(),
5208
- }).transform((v) => {
5209
- return remap$(v, {
5210
- requiresApproval: "requires_approval",
3792
+ export const UpdateAgentFallbackModelConfigurationTimeout$outboundSchema:
3793
+ z.ZodType<
3794
+ UpdateAgentFallbackModelConfigurationTimeout$Outbound,
3795
+ z.ZodTypeDef,
3796
+ UpdateAgentFallbackModelConfigurationTimeout
3797
+ > = z.object({
3798
+ callTimeout: z.number(),
3799
+ }).transform((v) => {
3800
+ return remap$(v, {
3801
+ callTimeout: "call_timeout",
3802
+ });
5211
3803
  });
5212
- });
5213
3804
 
5214
- export function agentToolInputCRUDQueryMemoryStoreToolToJSON(
5215
- agentToolInputCRUDQueryMemoryStoreTool:
5216
- AgentToolInputCRUDQueryMemoryStoreTool,
3805
+ export function updateAgentFallbackModelConfigurationTimeoutToJSON(
3806
+ updateAgentFallbackModelConfigurationTimeout:
3807
+ UpdateAgentFallbackModelConfigurationTimeout,
5217
3808
  ): string {
5218
3809
  return JSON.stringify(
5219
- AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema.parse(
5220
- agentToolInputCRUDQueryMemoryStoreTool,
3810
+ UpdateAgentFallbackModelConfigurationTimeout$outboundSchema.parse(
3811
+ updateAgentFallbackModelConfigurationTimeout,
5221
3812
  ),
5222
3813
  );
5223
3814
  }
5224
3815
 
5225
3816
  /** @internal */
5226
- export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema:
5227
- z.ZodNativeEnum<
5228
- typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType
5229
- > = z.nativeEnum(UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType);
3817
+ export const UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema:
3818
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
3819
+ .nativeEnum(UpdateAgentFallbackModelConfigurationAgentsType);
3820
+
3821
+ /** @internal */
3822
+ export const UpdateAgentFallbackModelConfigurationTtl$outboundSchema:
3823
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationTtl> = z
3824
+ .nativeEnum(UpdateAgentFallbackModelConfigurationTtl);
5230
3825
 
5231
3826
  /** @internal */
5232
- export type AgentToolInputCRUDRetrieveAgentsTool$Outbound = {
3827
+ export type UpdateAgentFallbackModelConfigurationCacheControl$Outbound = {
5233
3828
  type: string;
5234
- requires_approval?: boolean | undefined;
5235
- configuration?: { [k: string]: any } | undefined;
3829
+ ttl: string;
5236
3830
  };
5237
3831
 
5238
3832
  /** @internal */
5239
- export const AgentToolInputCRUDRetrieveAgentsTool$outboundSchema: z.ZodType<
5240
- AgentToolInputCRUDRetrieveAgentsTool$Outbound,
5241
- z.ZodTypeDef,
5242
- AgentToolInputCRUDRetrieveAgentsTool
5243
- > = z.object({
5244
- type:
5245
- UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema,
5246
- requiresApproval: z.boolean().optional(),
5247
- configuration: z.record(z.any()).optional(),
5248
- }).transform((v) => {
5249
- return remap$(v, {
5250
- requiresApproval: "requires_approval",
3833
+ export const UpdateAgentFallbackModelConfigurationCacheControl$outboundSchema:
3834
+ z.ZodType<
3835
+ UpdateAgentFallbackModelConfigurationCacheControl$Outbound,
3836
+ z.ZodTypeDef,
3837
+ UpdateAgentFallbackModelConfigurationCacheControl
3838
+ > = z.object({
3839
+ type: UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema,
3840
+ ttl: UpdateAgentFallbackModelConfigurationTtl$outboundSchema.default("5m"),
5251
3841
  });
5252
- });
5253
3842
 
5254
- export function agentToolInputCRUDRetrieveAgentsToolToJSON(
5255
- agentToolInputCRUDRetrieveAgentsTool: AgentToolInputCRUDRetrieveAgentsTool,
3843
+ export function updateAgentFallbackModelConfigurationCacheControlToJSON(
3844
+ updateAgentFallbackModelConfigurationCacheControl:
3845
+ UpdateAgentFallbackModelConfigurationCacheControl,
5256
3846
  ): string {
5257
3847
  return JSON.stringify(
5258
- AgentToolInputCRUDRetrieveAgentsTool$outboundSchema.parse(
5259
- agentToolInputCRUDRetrieveAgentsTool,
3848
+ UpdateAgentFallbackModelConfigurationCacheControl$outboundSchema.parse(
3849
+ updateAgentFallbackModelConfigurationCacheControl,
5260
3850
  ),
5261
3851
  );
5262
3852
  }
5263
3853
 
5264
3854
  /** @internal */
5265
- export const UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema:
5266
- z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestType> = z
5267
- .nativeEnum(UpdateAgentAgentToolInputCRUDAgentsRequestType);
5268
-
5269
- /** @internal */
5270
- export type AgentToolInputCRUDCallSubAgentTool$Outbound = {
5271
- type: string;
5272
- requires_approval?: boolean | undefined;
5273
- configuration?: { [k: string]: any } | undefined;
3855
+ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
3856
+ name?: string | undefined;
3857
+ frequency_penalty?: number | null | undefined;
3858
+ max_tokens?: number | null | undefined;
3859
+ max_completion_tokens?: number | null | undefined;
3860
+ presence_penalty?: number | null | undefined;
3861
+ response_format?:
3862
+ | UpdateAgentResponseFormatAgentsText$Outbound
3863
+ | UpdateAgentResponseFormatAgentsJSONObject$Outbound
3864
+ | UpdateAgentResponseFormatAgentsRequestJSONSchema$Outbound
3865
+ | undefined;
3866
+ reasoning_effort?: string | undefined;
3867
+ verbosity?: string | undefined;
3868
+ seed?: number | null | undefined;
3869
+ stop?: string | Array<string> | null | undefined;
3870
+ thinking?:
3871
+ | components.ThinkingConfigDisabledSchema$Outbound
3872
+ | components.ThinkingConfigEnabledSchema$Outbound
3873
+ | components.ThinkingConfigAdaptiveSchema$Outbound
3874
+ | undefined;
3875
+ temperature?: number | null | undefined;
3876
+ top_p?: number | null | undefined;
3877
+ top_k?: number | null | undefined;
3878
+ tool_choice?: UpdateAgentToolChoiceAgents2$Outbound | string | undefined;
3879
+ parallel_tool_calls?: boolean | undefined;
3880
+ modalities?: Array<string> | null | undefined;
3881
+ guardrails?:
3882
+ | Array<UpdateAgentFallbackModelConfigurationGuardrails$Outbound>
3883
+ | undefined;
3884
+ plugins?:
3885
+ | Array<
3886
+ | components.PIIRedactionPluginEn$Outbound
3887
+ | components.PIIRedactionPluginNl$Outbound
3888
+ | components.PIIRedactionPluginAuto$Outbound
3889
+ >
3890
+ | undefined;
3891
+ fallbacks?:
3892
+ | Array<UpdateAgentFallbackModelConfigurationFallbacks$Outbound>
3893
+ | undefined;
3894
+ cache?: UpdateAgentFallbackModelConfigurationCache$Outbound | undefined;
3895
+ load_balancer?: UpdateAgentLoadBalancerAgents1$Outbound | undefined;
3896
+ timeout?: UpdateAgentFallbackModelConfigurationTimeout$Outbound | undefined;
3897
+ cache_control?:
3898
+ | UpdateAgentFallbackModelConfigurationCacheControl$Outbound
3899
+ | undefined;
3900
+ prompt_cache_key?: string | undefined;
5274
3901
  };
5275
3902
 
5276
3903
  /** @internal */
5277
- export const AgentToolInputCRUDCallSubAgentTool$outboundSchema: z.ZodType<
5278
- AgentToolInputCRUDCallSubAgentTool$Outbound,
5279
- z.ZodTypeDef,
5280
- AgentToolInputCRUDCallSubAgentTool
5281
- > = z.object({
5282
- type: UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema,
5283
- requiresApproval: z.boolean().optional(),
5284
- configuration: z.record(z.any()).optional(),
5285
- }).transform((v) => {
5286
- return remap$(v, {
5287
- requiresApproval: "requires_approval",
3904
+ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
3905
+ z.ZodType<
3906
+ UpdateAgentFallbackModelConfigurationParameters$Outbound,
3907
+ z.ZodTypeDef,
3908
+ UpdateAgentFallbackModelConfigurationParameters
3909
+ > = z.object({
3910
+ name: z.string().optional(),
3911
+ frequencyPenalty: z.nullable(z.number()).optional(),
3912
+ maxTokens: z.nullable(z.number().int()).optional(),
3913
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
3914
+ presencePenalty: z.nullable(z.number()).optional(),
3915
+ responseFormat: z.union([
3916
+ z.lazy(() => UpdateAgentResponseFormatAgentsText$outboundSchema),
3917
+ z.lazy(() => UpdateAgentResponseFormatAgentsJSONObject$outboundSchema),
3918
+ z.lazy(() =>
3919
+ UpdateAgentResponseFormatAgentsRequestJSONSchema$outboundSchema
3920
+ ),
3921
+ ]).optional(),
3922
+ reasoningEffort:
3923
+ UpdateAgentFallbackModelConfigurationReasoningEffort$outboundSchema
3924
+ .optional(),
3925
+ verbosity: z.string().optional(),
3926
+ seed: z.nullable(z.number()).optional(),
3927
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3928
+ thinking: z.union([
3929
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3930
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3931
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3932
+ ]).optional(),
3933
+ temperature: z.nullable(z.number()).optional(),
3934
+ topP: z.nullable(z.number()).optional(),
3935
+ topK: z.nullable(z.number()).optional(),
3936
+ toolChoice: z.union([
3937
+ z.lazy(() => UpdateAgentToolChoiceAgents2$outboundSchema),
3938
+ UpdateAgentToolChoiceAgents1$outboundSchema,
3939
+ ]).optional(),
3940
+ parallelToolCalls: z.boolean().optional(),
3941
+ modalities: z.nullable(
3942
+ z.array(UpdateAgentFallbackModelConfigurationModalities$outboundSchema),
3943
+ ).optional(),
3944
+ guardrails: z.array(
3945
+ z.lazy(() =>
3946
+ UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema
3947
+ ),
3948
+ ).optional(),
3949
+ plugins: z.array(
3950
+ z.union([
3951
+ components.PIIRedactionPluginEn$outboundSchema,
3952
+ components.PIIRedactionPluginNl$outboundSchema,
3953
+ components.PIIRedactionPluginAuto$outboundSchema,
3954
+ ]),
3955
+ ).optional(),
3956
+ fallbacks: z.array(
3957
+ z.lazy(() =>
3958
+ UpdateAgentFallbackModelConfigurationFallbacks$outboundSchema
3959
+ ),
3960
+ ).optional(),
3961
+ cache: z.lazy(() =>
3962
+ UpdateAgentFallbackModelConfigurationCache$outboundSchema
3963
+ ).optional(),
3964
+ loadBalancer: z.lazy(() => UpdateAgentLoadBalancerAgents1$outboundSchema)
3965
+ .optional(),
3966
+ timeout: z.lazy(() =>
3967
+ UpdateAgentFallbackModelConfigurationTimeout$outboundSchema
3968
+ ).optional(),
3969
+ cacheControl: z.lazy(() =>
3970
+ UpdateAgentFallbackModelConfigurationCacheControl$outboundSchema
3971
+ ).optional(),
3972
+ promptCacheKey: z.string().optional(),
3973
+ }).transform((v) => {
3974
+ return remap$(v, {
3975
+ frequencyPenalty: "frequency_penalty",
3976
+ maxTokens: "max_tokens",
3977
+ maxCompletionTokens: "max_completion_tokens",
3978
+ presencePenalty: "presence_penalty",
3979
+ responseFormat: "response_format",
3980
+ reasoningEffort: "reasoning_effort",
3981
+ topP: "top_p",
3982
+ topK: "top_k",
3983
+ toolChoice: "tool_choice",
3984
+ parallelToolCalls: "parallel_tool_calls",
3985
+ loadBalancer: "load_balancer",
3986
+ cacheControl: "cache_control",
3987
+ promptCacheKey: "prompt_cache_key",
3988
+ });
5288
3989
  });
5289
- });
5290
3990
 
5291
- export function agentToolInputCRUDCallSubAgentToolToJSON(
5292
- agentToolInputCRUDCallSubAgentTool: AgentToolInputCRUDCallSubAgentTool,
3991
+ export function updateAgentFallbackModelConfigurationParametersToJSON(
3992
+ updateAgentFallbackModelConfigurationParameters:
3993
+ UpdateAgentFallbackModelConfigurationParameters,
5293
3994
  ): string {
5294
3995
  return JSON.stringify(
5295
- AgentToolInputCRUDCallSubAgentTool$outboundSchema.parse(
5296
- agentToolInputCRUDCallSubAgentTool,
3996
+ UpdateAgentFallbackModelConfigurationParameters$outboundSchema.parse(
3997
+ updateAgentFallbackModelConfigurationParameters,
5297
3998
  ),
5298
3999
  );
5299
4000
  }
5300
4001
 
5301
4002
  /** @internal */
5302
- export const UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema:
5303
- z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsType> = z
5304
- .nativeEnum(UpdateAgentAgentToolInputCRUDAgentsType);
5305
-
5306
- /** @internal */
5307
- export type AgentToolInputCRUDWebScraperTool$Outbound = {
5308
- type: string;
5309
- requires_approval?: boolean | undefined;
5310
- configuration?: { [k: string]: any } | undefined;
4003
+ export type UpdateAgentFallbackModelConfigurationRetry$Outbound = {
4004
+ count: number;
4005
+ on_codes?: Array<number> | undefined;
5311
4006
  };
5312
4007
 
5313
4008
  /** @internal */
5314
- export const AgentToolInputCRUDWebScraperTool$outboundSchema: z.ZodType<
5315
- AgentToolInputCRUDWebScraperTool$Outbound,
5316
- z.ZodTypeDef,
5317
- AgentToolInputCRUDWebScraperTool
5318
- > = z.object({
5319
- type: UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema,
5320
- requiresApproval: z.boolean().optional(),
5321
- configuration: z.record(z.any()).optional(),
5322
- }).transform((v) => {
5323
- return remap$(v, {
5324
- requiresApproval: "requires_approval",
4009
+ export const UpdateAgentFallbackModelConfigurationRetry$outboundSchema:
4010
+ z.ZodType<
4011
+ UpdateAgentFallbackModelConfigurationRetry$Outbound,
4012
+ z.ZodTypeDef,
4013
+ UpdateAgentFallbackModelConfigurationRetry
4014
+ > = z.object({
4015
+ count: z.number().default(3),
4016
+ onCodes: z.array(z.number()).optional(),
4017
+ }).transform((v) => {
4018
+ return remap$(v, {
4019
+ onCodes: "on_codes",
4020
+ });
5325
4021
  });
5326
- });
5327
4022
 
5328
- export function agentToolInputCRUDWebScraperToolToJSON(
5329
- agentToolInputCRUDWebScraperTool: AgentToolInputCRUDWebScraperTool,
4023
+ export function updateAgentFallbackModelConfigurationRetryToJSON(
4024
+ updateAgentFallbackModelConfigurationRetry:
4025
+ UpdateAgentFallbackModelConfigurationRetry,
5330
4026
  ): string {
5331
4027
  return JSON.stringify(
5332
- AgentToolInputCRUDWebScraperTool$outboundSchema.parse(
5333
- agentToolInputCRUDWebScraperTool,
4028
+ UpdateAgentFallbackModelConfigurationRetry$outboundSchema.parse(
4029
+ updateAgentFallbackModelConfigurationRetry,
5334
4030
  ),
5335
4031
  );
5336
4032
  }
5337
4033
 
5338
4034
  /** @internal */
5339
- export const UpdateAgentAgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<
5340
- typeof UpdateAgentAgentToolInputCRUDType
5341
- > = z.nativeEnum(UpdateAgentAgentToolInputCRUDType);
5342
-
5343
- /** @internal */
5344
- export type AgentToolInputCRUDGoogleSearchTool$Outbound = {
5345
- type: string;
5346
- requires_approval?: boolean | undefined;
5347
- configuration?: { [k: string]: any } | undefined;
4035
+ export type UpdateAgentFallbackModelConfiguration2$Outbound = {
4036
+ id: string;
4037
+ parameters?:
4038
+ | UpdateAgentFallbackModelConfigurationParameters$Outbound
4039
+ | undefined;
4040
+ retry?: UpdateAgentFallbackModelConfigurationRetry$Outbound | undefined;
5348
4041
  };
5349
4042
 
5350
4043
  /** @internal */
5351
- export const AgentToolInputCRUDGoogleSearchTool$outboundSchema: z.ZodType<
5352
- AgentToolInputCRUDGoogleSearchTool$Outbound,
4044
+ export const UpdateAgentFallbackModelConfiguration2$outboundSchema: z.ZodType<
4045
+ UpdateAgentFallbackModelConfiguration2$Outbound,
5353
4046
  z.ZodTypeDef,
5354
- AgentToolInputCRUDGoogleSearchTool
4047
+ UpdateAgentFallbackModelConfiguration2
5355
4048
  > = z.object({
5356
- type: UpdateAgentAgentToolInputCRUDType$outboundSchema,
5357
- requiresApproval: z.boolean().optional(),
5358
- configuration: z.record(z.any()).optional(),
5359
- }).transform((v) => {
5360
- return remap$(v, {
5361
- requiresApproval: "requires_approval",
5362
- });
4049
+ id: z.string(),
4050
+ parameters: z.lazy(() =>
4051
+ UpdateAgentFallbackModelConfigurationParameters$outboundSchema
4052
+ ).optional(),
4053
+ retry: z.lazy(() => UpdateAgentFallbackModelConfigurationRetry$outboundSchema)
4054
+ .optional(),
5363
4055
  });
5364
4056
 
5365
- export function agentToolInputCRUDGoogleSearchToolToJSON(
5366
- agentToolInputCRUDGoogleSearchTool: AgentToolInputCRUDGoogleSearchTool,
4057
+ export function updateAgentFallbackModelConfiguration2ToJSON(
4058
+ updateAgentFallbackModelConfiguration2:
4059
+ UpdateAgentFallbackModelConfiguration2,
5367
4060
  ): string {
5368
4061
  return JSON.stringify(
5369
- AgentToolInputCRUDGoogleSearchTool$outboundSchema.parse(
5370
- agentToolInputCRUDGoogleSearchTool,
4062
+ UpdateAgentFallbackModelConfiguration2$outboundSchema.parse(
4063
+ updateAgentFallbackModelConfiguration2,
5371
4064
  ),
5372
4065
  );
5373
4066
  }
5374
4067
 
5375
4068
  /** @internal */
5376
- export type UpdateAgentAgentToolInputCRUD$Outbound =
5377
- | AgentToolInputCRUDGoogleSearchTool$Outbound
5378
- | AgentToolInputCRUDWebScraperTool$Outbound
5379
- | AgentToolInputCRUDCallSubAgentTool$Outbound
5380
- | AgentToolInputCRUDRetrieveAgentsTool$Outbound
5381
- | AgentToolInputCRUDQueryMemoryStoreTool$Outbound
5382
- | AgentToolInputCRUDWriteMemoryStoreTool$Outbound
5383
- | AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound
5384
- | AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound
5385
- | AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound
5386
- | AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
5387
- | AgentToolInputCRUDCurrentDateTool$Outbound
5388
- | AgentToolInputCRUDCodeInterpreterTool$Outbound
5389
- | AgentToolInputCRUDMCPTool$Outbound
5390
- | AgentToolInputCRUDProviderBuiltInTool$Outbound
5391
- | AgentToolInputCRUDHTTPTool$Outbound
5392
- | AgentToolInputCRUDCodeExecutionTool$Outbound
5393
- | AgentToolInputCRUDFunctionTool$Outbound
5394
- | AgentToolInputCRUDJSONSchemaTool$Outbound;
5395
-
5396
- /** @internal */
5397
- export const UpdateAgentAgentToolInputCRUD$outboundSchema: z.ZodType<
5398
- UpdateAgentAgentToolInputCRUD$Outbound,
4069
+ export type UpdateAgentFallbackModelConfiguration$Outbound =
4070
+ | UpdateAgentFallbackModelConfiguration2$Outbound
4071
+ | string;
4072
+
4073
+ /** @internal */
4074
+ export const UpdateAgentFallbackModelConfiguration$outboundSchema: z.ZodType<
4075
+ UpdateAgentFallbackModelConfiguration$Outbound,
5399
4076
  z.ZodTypeDef,
5400
- UpdateAgentAgentToolInputCRUD
4077
+ UpdateAgentFallbackModelConfiguration
5401
4078
  > = z.union([
5402
- z.lazy(() => AgentToolInputCRUDGoogleSearchTool$outboundSchema),
5403
- z.lazy(() => AgentToolInputCRUDWebScraperTool$outboundSchema),
5404
- z.lazy(() => AgentToolInputCRUDCallSubAgentTool$outboundSchema),
5405
- z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$outboundSchema),
5406
- z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema),
5407
- z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema),
5408
- z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema),
5409
- z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema),
5410
- z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema),
5411
- z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
5412
- z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
5413
- z.lazy(() => AgentToolInputCRUDCodeInterpreterTool$outboundSchema),
5414
- z.lazy(() => AgentToolInputCRUDMCPTool$outboundSchema),
5415
- z.lazy(() => AgentToolInputCRUDProviderBuiltInTool$outboundSchema),
5416
- z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
5417
- z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
5418
- z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
5419
- z.lazy(() => AgentToolInputCRUDJSONSchemaTool$outboundSchema),
4079
+ z.lazy(() => UpdateAgentFallbackModelConfiguration2$outboundSchema),
4080
+ z.string(),
5420
4081
  ]);
5421
4082
 
5422
- export function updateAgentAgentToolInputCRUDToJSON(
5423
- updateAgentAgentToolInputCRUD: UpdateAgentAgentToolInputCRUD,
4083
+ export function updateAgentFallbackModelConfigurationToJSON(
4084
+ updateAgentFallbackModelConfiguration: UpdateAgentFallbackModelConfiguration,
5424
4085
  ): string {
5425
4086
  return JSON.stringify(
5426
- UpdateAgentAgentToolInputCRUD$outboundSchema.parse(
5427
- updateAgentAgentToolInputCRUD,
4087
+ UpdateAgentFallbackModelConfiguration$outboundSchema.parse(
4088
+ updateAgentFallbackModelConfiguration,
5428
4089
  ),
5429
4090
  );
5430
4091
  }
5431
4092
 
4093
+ /** @internal */
4094
+ export const UpdateAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
4095
+ typeof UpdateAgentToolApprovalRequired
4096
+ > = z.nativeEnum(UpdateAgentToolApprovalRequired);
4097
+
5432
4098
  /** @internal */
5433
4099
  export const UpdateAgentExecuteOn$outboundSchema: z.ZodNativeEnum<
5434
4100
  typeof UpdateAgentExecuteOn
@@ -5508,28 +4174,7 @@ export type UpdateAgentSettings$Outbound = {
5508
4174
  max_cost?: number | undefined;
5509
4175
  tool_approval_required?: string | undefined;
5510
4176
  chat_exposed?: boolean | undefined;
5511
- tools?:
5512
- | Array<
5513
- | AgentToolInputCRUDGoogleSearchTool$Outbound
5514
- | AgentToolInputCRUDWebScraperTool$Outbound
5515
- | AgentToolInputCRUDCallSubAgentTool$Outbound
5516
- | AgentToolInputCRUDRetrieveAgentsTool$Outbound
5517
- | AgentToolInputCRUDQueryMemoryStoreTool$Outbound
5518
- | AgentToolInputCRUDWriteMemoryStoreTool$Outbound
5519
- | AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound
5520
- | AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound
5521
- | AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound
5522
- | AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
5523
- | AgentToolInputCRUDCurrentDateTool$Outbound
5524
- | AgentToolInputCRUDCodeInterpreterTool$Outbound
5525
- | AgentToolInputCRUDMCPTool$Outbound
5526
- | AgentToolInputCRUDProviderBuiltInTool$Outbound
5527
- | AgentToolInputCRUDHTTPTool$Outbound
5528
- | AgentToolInputCRUDCodeExecutionTool$Outbound
5529
- | AgentToolInputCRUDFunctionTool$Outbound
5530
- | AgentToolInputCRUDJSONSchemaTool$Outbound
5531
- >
5532
- | undefined;
4177
+ tools?: Array<components.AgentToolInputCRUD$Outbound> | undefined;
5533
4178
  evaluators?: Array<UpdateAgentEvaluators$Outbound> | undefined;
5534
4179
  guardrails?: Array<UpdateAgentGuardrails$Outbound> | undefined;
5535
4180
  };
@@ -5546,28 +4191,7 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
5546
4191
  toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema
5547
4192
  .optional(),
5548
4193
  chatExposed: z.boolean().optional(),
5549
- tools: z.array(
5550
- z.union([
5551
- z.lazy(() => AgentToolInputCRUDGoogleSearchTool$outboundSchema),
5552
- z.lazy(() => AgentToolInputCRUDWebScraperTool$outboundSchema),
5553
- z.lazy(() => AgentToolInputCRUDCallSubAgentTool$outboundSchema),
5554
- z.lazy(() => AgentToolInputCRUDRetrieveAgentsTool$outboundSchema),
5555
- z.lazy(() => AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema),
5556
- z.lazy(() => AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema),
5557
- z.lazy(() => AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema),
5558
- z.lazy(() => AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema),
5559
- z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema),
5560
- z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
5561
- z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
5562
- z.lazy(() => AgentToolInputCRUDCodeInterpreterTool$outboundSchema),
5563
- z.lazy(() => AgentToolInputCRUDMCPTool$outboundSchema),
5564
- z.lazy(() => AgentToolInputCRUDProviderBuiltInTool$outboundSchema),
5565
- z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
5566
- z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
5567
- z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
5568
- z.lazy(() => AgentToolInputCRUDJSONSchemaTool$outboundSchema),
5569
- ]),
5570
- ).optional(),
4194
+ tools: z.array(components.AgentToolInputCRUD$outboundSchema).optional(),
5571
4195
  evaluators: z.array(z.lazy(() => UpdateAgentEvaluators$outboundSchema))
5572
4196
  .optional(),
5573
4197
  guardrails: z.array(z.lazy(() => UpdateAgentGuardrails$outboundSchema))
@@ -5889,7 +4513,7 @@ export const UpdateAgentTools$inboundSchema: z.ZodType<
5889
4513
  tool_id: z.string().optional(),
5890
4514
  conditions: z.array(z.lazy(() => UpdateAgentConditions$inboundSchema))
5891
4515
  .optional(),
5892
- timeout: z.number().default(120),
4516
+ timeout: z.number().optional(),
5893
4517
  }).transform((v) => {
5894
4518
  return remap$(v, {
5895
4519
  "action_type": "actionType",
@@ -7486,7 +6110,7 @@ export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
7486
6110
  team_of_agents: z.array(
7487
6111
  z.lazy(() => UpdateAgentAgentsTeamOfAgents$inboundSchema),
7488
6112
  ).optional(),
7489
- skills: z.array(z.string()),
6113
+ skills: z.array(z.string()).optional(),
7490
6114
  metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
7491
6115
  variables: z.record(z.any()).optional(),
7492
6116
  knowledge_bases: z.array(