@orq-ai/node 4.12.0-rc.8 → 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 (754) 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 +2 -2
  533. package/sdk/feedback.js +2 -2
  534. package/sdk/models.d.ts +0 -14
  535. package/sdk/models.d.ts.map +1 -1
  536. package/sdk/models.js +0 -20
  537. package/sdk/models.js.map +1 -1
  538. package/sdk/reporting.d.ts +3 -1
  539. package/sdk/reporting.d.ts.map +1 -1
  540. package/sdk/reporting.js +3 -1
  541. package/sdk/reporting.js.map +1 -1
  542. package/sdk/sdk.d.ts +9 -0
  543. package/sdk/sdk.d.ts.map +1 -1
  544. package/sdk/sdk.js +12 -0
  545. package/sdk/sdk.js.map +1 -1
  546. package/sdk/smartrouters.d.ts +48 -0
  547. package/sdk/smartrouters.d.ts.map +1 -0
  548. package/sdk/smartrouters.js +72 -0
  549. package/sdk/smartrouters.js.map +1 -0
  550. package/sdk/telemetry.d.ts +12 -0
  551. package/sdk/telemetry.d.ts.map +1 -0
  552. package/sdk/telemetry.js +22 -0
  553. package/sdk/telemetry.js.map +1 -0
  554. package/sdk/traces.d.ts +3 -1
  555. package/sdk/traces.d.ts.map +1 -1
  556. package/sdk/traces.js +3 -1
  557. package/sdk/traces.js.map +1 -1
  558. package/sdk/webhooks.d.ts +64 -0
  559. package/sdk/webhooks.d.ts.map +1 -0
  560. package/sdk/webhooks.js +94 -0
  561. package/sdk/webhooks.js.map +1 -0
  562. package/src/funcs/datasetsClear.ts +11 -2
  563. package/src/funcs/filesList.ts +1 -0
  564. package/src/funcs/knowledgeListDatasources.ts +1 -0
  565. package/src/funcs/notifiersList.ts +2 -0
  566. package/src/funcs/reportingQuery.ts +3 -1
  567. package/src/funcs/{modelsCreateAutorouter.ts → smartRoutersCreate.ts} +14 -15
  568. package/src/funcs/smartRoutersDelete.ts +168 -0
  569. package/src/funcs/smartRoutersGet.ts +168 -0
  570. package/src/funcs/smartRoutersList.ts +173 -0
  571. package/src/funcs/smartRoutersSetEnabled.ts +174 -0
  572. package/src/funcs/smartRoutersUpdate.ts +171 -0
  573. package/src/funcs/telemetryQuery.ts +162 -0
  574. package/src/funcs/tracesAggregate.ts +3 -1
  575. package/src/funcs/webhooksCount.ts +144 -0
  576. package/src/funcs/{budgetsCheck.ts → webhooksCreate.ts} +12 -12
  577. package/src/funcs/webhooksDelete.ts +168 -0
  578. package/src/funcs/webhooksGenerateSecret.ts +144 -0
  579. package/src/funcs/webhooksGet.ts +168 -0
  580. package/src/funcs/webhooksList.ts +175 -0
  581. package/src/funcs/webhooksQuery.ts +164 -0
  582. package/src/funcs/{modelsUpdateAutorouter.ts → webhooksUpdate.ts} +13 -14
  583. package/src/lib/config.ts +3 -3
  584. package/src/lib/http.ts +3 -1
  585. package/src/lib/security.ts +10 -5
  586. package/src/models/components/actionreviewrequestedstreamingevent.ts +3 -3
  587. package/src/models/components/agentstartedstreamingevent.ts +3 -3
  588. package/src/models/components/agenttoolinputcrud.ts +747 -0
  589. package/src/models/components/apikey.ts +6 -0
  590. package/src/models/components/autorouterconfig.ts +4 -0
  591. package/src/models/components/autorouterv2config.ts +60 -0
  592. package/src/models/components/autorouterv2creatorconfig.ts +59 -0
  593. package/src/models/components/budget.ts +6 -0
  594. package/src/models/components/budgetalert.ts +92 -0
  595. package/src/models/components/budgetalertdimension.ts +22 -0
  596. package/src/models/components/codetoolinput.ts +62 -0
  597. package/src/models/components/config.ts +44 -0
  598. package/src/models/components/countwebhooksresponse.ts +37 -0
  599. package/src/models/components/createbudgetrequest.ts +14 -0
  600. package/src/models/components/createsmartrouterrequest.ts +47 -0
  601. package/src/models/components/createsmartrouterresponse.ts +37 -0
  602. package/src/models/components/createwebhookrequest.ts +100 -0
  603. package/src/models/components/deletesmartrouterresponse.ts +27 -0
  604. package/src/models/components/deletewebhookresponse.ts +34 -0
  605. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  606. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  607. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  608. package/src/models/components/evaluatorresponsellm.ts +2 -2
  609. package/src/models/components/evaluatorresponsepython.ts +2 -2
  610. package/src/models/components/evaluatorresponseragas.ts +2 -2
  611. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  612. package/src/models/components/functiontoolinput.ts +60 -0
  613. package/src/models/components/generatewebhooksecretresponse.ts +37 -0
  614. package/src/models/components/getsmartrouterresponse.ts +37 -0
  615. package/src/models/components/httptoolinput.ts +62 -0
  616. package/src/models/components/identity.ts +15 -9
  617. package/src/models/components/index.ts +36 -4
  618. package/src/models/components/jsonschematoolinput.ts +60 -0
  619. package/src/models/components/listbudgetsresponse.ts +6 -6
  620. package/src/models/components/listsmartroutersresponse.ts +41 -0
  621. package/src/models/components/listwebhooksresponse.ts +53 -0
  622. package/src/models/components/mcptoolinput.ts +63 -0
  623. package/src/models/components/modeldocument.ts +3 -0
  624. package/src/models/components/modelsconfig.ts +1 -0
  625. package/src/models/components/providertoolinput.ts +72 -0
  626. package/src/models/components/queryparamspagination.ts +40 -0
  627. package/src/models/components/queryparamssort.ts +32 -0
  628. package/src/models/components/querytelemetrymeta.ts +38 -0
  629. package/src/models/components/querytelemetryrequest.ts +85 -0
  630. package/src/models/components/querytelemetryresponse.ts +42 -0
  631. package/src/models/components/querywebhooksrequest.ts +85 -0
  632. package/src/models/components/querywebhooksresponse.ts +34 -0
  633. package/src/models/components/reasoningpart.ts +1 -1
  634. package/src/models/components/setsmartrouterenabledrequest.ts +33 -0
  635. package/src/models/components/setsmartrouterenabledresponse.ts +37 -0
  636. package/src/models/components/smartrouter.ts +72 -0
  637. package/src/models/components/smartrouterprofile.ts +23 -0
  638. package/src/models/components/telemetryrow.ts +42 -0
  639. package/src/models/components/thinkingconfigenabledschema.ts +1 -0
  640. package/src/models/components/updatebudgetrequest.ts +21 -0
  641. package/src/models/components/updatesmartrouterrequest.ts +38 -0
  642. package/src/models/components/updatesmartrouterresponse.ts +37 -0
  643. package/src/models/components/webhook.ts +116 -0
  644. package/src/models/operations/createagentrequest.ts +998 -2311
  645. package/src/models/operations/createchatcompletion.ts +1 -0
  646. package/src/models/operations/createdataset.ts +1 -1
  647. package/src/models/operations/createdatasetitem.ts +237 -19
  648. package/src/models/operations/createdatasource.ts +78 -2
  649. package/src/models/operations/createeval.ts +179 -175
  650. package/src/models/operations/createknowledge.ts +18 -10
  651. package/src/models/operations/createprompt.ts +5 -0
  652. package/src/models/operations/createrouterresponse.ts +73 -44
  653. package/src/models/operations/createtool.ts +58 -61
  654. package/src/models/operations/deploymentgetconfig.ts +1 -0
  655. package/src/models/operations/deploymentinvoke.ts +2 -0
  656. package/src/models/operations/deployments.ts +3 -0
  657. package/src/models/operations/deploymentstream.ts +2 -0
  658. package/src/models/operations/filelist.ts +11 -0
  659. package/src/models/operations/getallmemories.ts +1 -1
  660. package/src/models/operations/getallmemorydocuments.ts +1 -1
  661. package/src/models/operations/getallmemorystores.ts +1 -1
  662. package/src/models/operations/getallprompts.ts +5 -1
  663. package/src/models/operations/getalltools.ts +11 -6
  664. package/src/models/operations/getevals.ts +1 -1
  665. package/src/models/operations/getoneprompt.ts +4 -0
  666. package/src/models/operations/getpromptversion.ts +4 -0
  667. package/src/models/operations/getv2evaluatorsidversions.ts +1 -1
  668. package/src/models/operations/getv2humanevalsets.ts +2 -2
  669. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  670. package/src/models/operations/getv2toolstoolidversions.ts +1 -1
  671. package/src/models/operations/index.ts +9 -2
  672. package/src/models/operations/listagents.ts +7 -5
  673. package/src/models/operations/listchunks.ts +1 -1
  674. package/src/models/operations/listdatasetdatapoints.ts +314 -85
  675. package/src/models/operations/listdatasets.ts +2 -2
  676. package/src/models/operations/listdatasources.ts +99 -2
  677. package/src/models/operations/listpromptversions.ts +5 -1
  678. package/src/models/operations/modelcreate.ts +2 -0
  679. package/src/models/operations/modelcreateawsbedrock.ts +2 -0
  680. package/src/models/operations/modelcreateopenailike.ts +2 -0
  681. package/src/models/operations/modelcreatevertex.ts +2 -0
  682. package/src/models/operations/modelupdate.ts +2 -0
  683. package/src/models/operations/modelupdateawsbedrock.ts +2 -0
  684. package/src/models/operations/modelupdateopenailike.ts +2 -0
  685. package/src/models/operations/notifierlist.ts +13 -0
  686. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  687. package/src/models/operations/postv2feedbackevaluation.ts +119 -11
  688. package/src/models/operations/postv2humanevalsets.ts +2 -2
  689. package/src/models/operations/retrieveagentrequest.ts +7 -5
  690. package/src/models/operations/retrievedatapoint.ts +234 -9
  691. package/src/models/operations/retrievedataset.ts +1 -1
  692. package/src/models/operations/retrievedatasource.ts +72 -2
  693. package/src/models/operations/retrieveresponse.ts +8 -8
  694. package/src/models/operations/retrievetool.ts +11 -6
  695. package/src/models/operations/runagent.ts +215 -232
  696. package/src/models/operations/smartrouterdelete.ts +36 -0
  697. package/src/models/operations/smartrouterget.ts +36 -0
  698. package/src/models/operations/smartrouterlist.ts +53 -0
  699. package/src/models/operations/smartroutersetenabled.ts +45 -0
  700. package/src/models/operations/smartrouterupdate.ts +41 -0
  701. package/src/models/operations/streamrunagent.ts +293 -328
  702. package/src/models/operations/updateagent.ts +823 -2199
  703. package/src/models/operations/updatedatapoint.ts +229 -9
  704. package/src/models/operations/updatedataset.ts +1 -1
  705. package/src/models/operations/updatedatasource.ts +72 -2
  706. package/src/models/operations/updateprompt.ts +5 -0
  707. package/src/models/operations/updatetool.ts +18 -7
  708. package/src/models/operations/webhookdelete.ts +31 -0
  709. package/src/models/operations/webhookget.ts +31 -0
  710. package/src/models/operations/webhooklist.ts +101 -0
  711. package/src/models/operations/webhookupdate.ts +84 -0
  712. package/src/sdk/budgets.ts +0 -18
  713. package/src/sdk/feedback.ts +2 -2
  714. package/src/sdk/models.ts +0 -36
  715. package/src/sdk/reporting.ts +3 -1
  716. package/src/sdk/sdk.ts +18 -0
  717. package/src/sdk/smartrouters.ts +118 -0
  718. package/src/sdk/telemetry.ts +27 -0
  719. package/src/sdk/traces.ts +3 -1
  720. package/src/sdk/webhooks.ts +152 -0
  721. package/funcs/budgetsCheck.d.ts.map +0 -1
  722. package/funcs/budgetsCheck.js.map +0 -1
  723. package/funcs/modelsCreateAutorouter.d.ts +0 -17
  724. package/funcs/modelsCreateAutorouter.d.ts.map +0 -1
  725. package/funcs/modelsCreateAutorouter.js.map +0 -1
  726. package/funcs/modelsUpdateAutorouter.d.ts +0 -17
  727. package/funcs/modelsUpdateAutorouter.d.ts.map +0 -1
  728. package/funcs/modelsUpdateAutorouter.js.map +0 -1
  729. package/models/components/budgetrejection.d.ts +0 -17
  730. package/models/components/budgetrejection.d.ts.map +0 -1
  731. package/models/components/budgetrejection.js.map +0 -1
  732. package/models/components/checkbudgetsrequest.d.ts +0 -72
  733. package/models/components/checkbudgetsrequest.d.ts.map +0 -1
  734. package/models/components/checkbudgetsrequest.js.map +0 -1
  735. package/models/components/checkbudgetsresponse.d.ts +0 -34
  736. package/models/components/checkbudgetsresponse.d.ts.map +0 -1
  737. package/models/components/checkbudgetsresponse.js.map +0 -1
  738. package/models/components/dimensioninfo.d.ts +0 -15
  739. package/models/components/dimensioninfo.d.ts.map +0 -1
  740. package/models/components/dimensioninfo.js.map +0 -1
  741. package/models/operations/modelcreateautorouter.d.ts +0 -56
  742. package/models/operations/modelcreateautorouter.d.ts.map +0 -1
  743. package/models/operations/modelcreateautorouter.js +0 -113
  744. package/models/operations/modelcreateautorouter.js.map +0 -1
  745. package/models/operations/modelupdateautorouter.d.ts +0 -71
  746. package/models/operations/modelupdateautorouter.d.ts.map +0 -1
  747. package/models/operations/modelupdateautorouter.js +0 -126
  748. package/models/operations/modelupdateautorouter.js.map +0 -1
  749. package/src/models/components/budgetrejection.ts +0 -48
  750. package/src/models/components/checkbudgetsrequest.ts +0 -111
  751. package/src/models/components/checkbudgetsresponse.ts +0 -62
  752. package/src/models/components/dimensioninfo.ts +0 -43
  753. package/src/models/operations/modelcreateautorouter.ts +0 -151
  754. package/src/models/operations/modelupdateautorouter.ts +0 -189
@@ -155,6 +155,7 @@ export type Modalities = ClosedEnum<typeof Modalities>;
155
155
  */
156
156
  export const Id1 = {
157
157
  OrqPiiDetection: "orq_pii_detection",
158
+ OrqSecretDetection: "orq_secret_detection",
158
159
  OrqSexualModeration: "orq_sexual_moderation",
159
160
  OrqHarmfulModeration: "orq_harmful_moderation",
160
161
  } as const;
@@ -632,6 +633,7 @@ export type FallbackModelConfigurationModalities = ClosedEnum<
632
633
  */
633
634
  export const CreateAgentRequestId1 = {
634
635
  OrqPiiDetection: "orq_pii_detection",
636
+ OrqSecretDetection: "orq_secret_detection",
635
637
  OrqSexualModeration: "orq_sexual_moderation",
636
638
  OrqHarmfulModeration: "orq_harmful_moderation",
637
639
  } as const;
@@ -979,545 +981,343 @@ export const ToolApprovalRequired = {
979
981
  export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
980
982
 
981
983
  /**
982
- * 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).
984
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
985
+ */
986
+ export const CreateAgentRequestExecuteOn = {
987
+ Input: "input",
988
+ Output: "output",
989
+ } as const;
990
+ /**
991
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
983
992
  */
984
- export type ProviderBuiltInTool = {
993
+ export type CreateAgentRequestExecuteOn = ClosedEnum<
994
+ typeof CreateAgentRequestExecuteOn
995
+ >;
996
+
997
+ export type Evaluators = {
985
998
  /**
986
- * Provider-prefixed tool type
999
+ * Unique key or identifier of the evaluator
987
1000
  */
988
- type: string;
1001
+ id: string;
989
1002
  /**
990
- * Whether this tool requires approval before execution
1003
+ * 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.
991
1004
  */
992
- requiresApproval?: boolean | undefined;
1005
+ sampleRate?: number | undefined;
993
1006
  /**
994
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1007
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
995
1008
  */
996
- configuration?: { [k: string]: any } | undefined;
1009
+ executeOn: CreateAgentRequestExecuteOn;
997
1010
  };
998
1011
 
999
1012
  /**
1000
- * MCP tool type
1013
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1001
1014
  */
1002
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type =
1003
- {
1004
- Mcp: "mcp",
1005
- } as const;
1015
+ export const CreateAgentRequestAgentsExecuteOn = {
1016
+ Input: "input",
1017
+ Output: "output",
1018
+ } as const;
1006
1019
  /**
1007
- * MCP tool type
1020
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1008
1021
  */
1009
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type =
1010
- ClosedEnum<
1011
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type
1012
- >;
1022
+ export type CreateAgentRequestAgentsExecuteOn = ClosedEnum<
1023
+ typeof CreateAgentRequestAgentsExecuteOn
1024
+ >;
1013
1025
 
1014
- /**
1015
- * 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".
1016
- */
1017
- export type MCPTool = {
1018
- /**
1019
- * MCP tool type
1020
- */
1021
- type?:
1022
- | CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type
1023
- | undefined;
1024
- /**
1025
- * The key of the parent MCP tool
1026
- */
1027
- key?: string | undefined;
1026
+ export type CreateAgentRequestGuardrails = {
1028
1027
  /**
1029
- * The ID of the parent MCP tool
1028
+ * Unique key or identifier of the evaluator
1030
1029
  */
1031
- id?: string | undefined;
1030
+ id: string;
1032
1031
  /**
1033
- * The ID of the specific nested tool within the MCP server
1032
+ * 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.
1034
1033
  */
1035
- toolId: string;
1034
+ sampleRate?: number | undefined;
1036
1035
  /**
1037
- * Whether this tool requires approval before execution
1036
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1038
1037
  */
1039
- requiresApproval?: boolean | undefined;
1038
+ executeOn: CreateAgentRequestAgentsExecuteOn;
1040
1039
  };
1041
1040
 
1042
1041
  /**
1043
- * JSON Schema tool type
1044
- */
1045
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type =
1046
- {
1047
- JsonSchema: "json_schema",
1048
- } as const;
1049
- /**
1050
- * JSON Schema tool type
1051
- */
1052
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type =
1053
- ClosedEnum<
1054
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type
1055
- >;
1056
-
1057
- /**
1058
- * Enforces structured output format using JSON Schema. Must reference a pre-created JSON Schema tool by key or id.
1042
+ * Configuration settings for the agent's behavior
1059
1043
  */
1060
- export type JSONSchemaTool = {
1044
+ export type Settings = {
1061
1045
  /**
1062
- * JSON Schema tool type
1046
+ * Maximum iterations(llm calls) before the agent will stop executing.
1063
1047
  */
1064
- type?:
1065
- | CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type
1066
- | undefined;
1048
+ maxIterations?: number | undefined;
1067
1049
  /**
1068
- * The key of the pre-created JSON Schema tool
1050
+ * 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.
1069
1051
  */
1070
- key?: string | undefined;
1052
+ maxExecutionTime?: number | undefined;
1071
1053
  /**
1072
- * The ID of the pre-created JSON Schema tool
1054
+ * 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
1073
1055
  */
1074
- id?: string | undefined;
1056
+ maxCost?: number | undefined;
1075
1057
  /**
1076
- * Whether this tool requires approval before execution
1058
+ * 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.
1077
1059
  */
1078
- requiresApproval?: boolean | undefined;
1079
- };
1080
-
1081
- /**
1082
- * Function tool type
1083
- */
1084
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
1085
- {
1086
- Function: "function",
1087
- } as const;
1088
- /**
1089
- * Function tool type
1090
- */
1091
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
1092
- ClosedEnum<
1093
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
1094
- >;
1095
-
1096
- /**
1097
- * Calls custom function tools defined in the agent configuration. Must reference a pre-created function tool by key or id.
1098
- */
1099
- export type FunctionTool = {
1060
+ toolApprovalRequired?: ToolApprovalRequired | undefined;
1100
1061
  /**
1101
- * Function tool type
1062
+ * When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
1102
1063
  */
1103
- type?:
1104
- | CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
1105
- | undefined;
1064
+ chatExposed?: boolean | undefined;
1106
1065
  /**
1107
- * The key of the pre-created function tool
1066
+ * Tools available to the agent. Built-in tools only need a type, while custom tools (http, code, function) must reference pre-created tools by key or id.
1108
1067
  */
1109
- key?: string | undefined;
1068
+ tools?: Array<components.AgentToolInputCRUD> | undefined;
1110
1069
  /**
1111
- * The ID of the pre-created function tool
1070
+ * Configuration for an evaluator applied to the agent
1112
1071
  */
1113
- id?: string | undefined;
1072
+ evaluators?: Array<Evaluators> | undefined;
1114
1073
  /**
1115
- * Whether this tool requires approval before execution
1074
+ * Configuration for a guardrail applied to the agent
1116
1075
  */
1117
- requiresApproval?: boolean | undefined;
1076
+ guardrails?: Array<CreateAgentRequestGuardrails> | undefined;
1118
1077
  };
1119
1078
 
1120
- /**
1121
- * Code execution tool type
1122
- */
1123
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
1124
- {
1125
- Code: "code",
1126
- } as const;
1127
- /**
1128
- * Code execution tool type
1129
- */
1130
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
1131
- ClosedEnum<
1132
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
1133
- >;
1134
-
1135
- /**
1136
- * Executes code snippets in a sandboxed environment. Must reference a pre-created code tool by key or id.
1137
- */
1138
- export type CodeExecutionTool = {
1139
- /**
1140
- * Code execution tool type
1141
- */
1142
- type?:
1143
- | CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
1144
- | undefined;
1079
+ export type KnowledgeBases = {
1145
1080
  /**
1146
- * The key of the pre-created code tool
1081
+ * Unique identifier of the knowledge base to search
1147
1082
  */
1148
- key?: string | undefined;
1083
+ knowledgeId: string;
1084
+ };
1085
+
1086
+ export type TeamOfAgents = {
1149
1087
  /**
1150
- * The ID of the pre-created code tool
1088
+ * The unique key of the agent within the workspace
1151
1089
  */
1152
- id?: string | undefined;
1090
+ key: string;
1153
1091
  /**
1154
- * Whether this tool requires approval before execution
1092
+ * 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.
1155
1093
  */
1156
- requiresApproval?: boolean | undefined;
1094
+ role?: string | undefined;
1157
1095
  };
1158
1096
 
1159
- /**
1160
- * HTTP tool type
1161
- */
1162
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
1163
- {
1164
- Http: "http",
1165
- } as const;
1166
- /**
1167
- * HTTP tool type
1168
- */
1169
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
1170
- ClosedEnum<
1171
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
1172
- >;
1097
+ export const Source = {
1098
+ Internal: "internal",
1099
+ External: "external",
1100
+ Experiment: "experiment",
1101
+ } as const;
1102
+ export type Source = ClosedEnum<typeof Source>;
1173
1103
 
1174
- /**
1175
- * Executes HTTP requests to interact with external APIs and web services. Must reference a pre-created HTTP tool by key or id.
1176
- */
1177
- export type HTTPTool = {
1104
+ export const Engine = {
1105
+ Text: "text",
1106
+ Jinja: "jinja",
1107
+ Mustache: "mustache",
1108
+ } as const;
1109
+ export type Engine = ClosedEnum<typeof Engine>;
1110
+
1111
+ export type CreateAgentRequestRequestBody = {
1178
1112
  /**
1179
- * HTTP tool type
1113
+ * Unique identifier for the agent within the workspace
1180
1114
  */
1181
- type?:
1182
- | CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
1183
- | undefined;
1115
+ key: string;
1184
1116
  /**
1185
- * The key of the pre-created HTTP tool
1117
+ * agent display name within the workspace
1186
1118
  */
1187
- key?: string | undefined;
1119
+ displayName?: string | undefined;
1188
1120
  /**
1189
- * The ID of the pre-created HTTP tool
1121
+ * The role or function of the agent
1190
1122
  */
1191
- id?: string | undefined;
1123
+ role: string;
1192
1124
  /**
1193
- * Whether this tool requires approval before execution
1125
+ * A brief description of what the agent does
1194
1126
  */
1195
- requiresApproval?: boolean | undefined;
1196
- };
1197
-
1198
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
1199
- {
1200
- CodeInterpreter: "code_interpreter",
1201
- } as const;
1202
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
1203
- ClosedEnum<
1204
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
1205
- >;
1206
-
1207
- /**
1208
- * Executes model-written Python code. Uses provider-native code execution when the model supports it, otherwise a secure orq-managed sandbox.
1209
- */
1210
- export type CodeInterpreterTool = {
1211
- type:
1212
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type;
1127
+ description: string;
1213
1128
  /**
1214
- * Whether this tool requires approval before execution
1129
+ * Detailed instructions that guide the agent's behavior
1215
1130
  */
1216
- requiresApproval?: boolean | undefined;
1131
+ instructions: string;
1217
1132
  /**
1218
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1133
+ * A custom system prompt template for the agent. If omitted, the default template is used.
1219
1134
  */
1220
- configuration?: { [k: string]: any } | undefined;
1221
- };
1222
-
1223
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
1224
- {
1225
- CurrentDate: "current_date",
1226
- } as const;
1227
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
1228
- ClosedEnum<
1229
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
1230
- >;
1231
-
1232
- /**
1233
- * Returns the current date and time
1234
- */
1235
- export type CurrentDateTool = {
1236
- type:
1237
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type;
1135
+ systemPrompt?: string | null | undefined;
1238
1136
  /**
1239
- * Whether this tool requires approval before execution
1137
+ * The path where the agent will be stored in the project structure. The first element identifies the project, followed by nested folders (auto-created as needed).
1138
+ *
1139
+ * @remarks
1140
+ *
1141
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1240
1142
  */
1241
- requiresApproval?: boolean | undefined;
1143
+ path: string;
1242
1144
  /**
1243
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1145
+ * Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
1244
1146
  */
1245
- configuration?: { [k: string]: any } | undefined;
1246
- };
1247
-
1248
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
1249
- {
1250
- QueryKnowledgeBase: "query_knowledge_base",
1251
- } as const;
1252
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
1253
- ClosedEnum<
1254
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
1255
- >;
1256
-
1257
- /**
1258
- * Queries knowledge bases for information
1259
- */
1260
- export type QueryKnowledgeBaseTool = {
1261
- type:
1262
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type;
1147
+ model: ModelConfiguration2 | string;
1263
1148
  /**
1264
- * Whether this tool requires approval before execution
1149
+ * Optional array of fallback models used when the primary model fails. Fallbacks are attempted in order. All models must support tool calling.
1265
1150
  */
1266
- requiresApproval?: boolean | undefined;
1151
+ fallbackModels?: Array<FallbackModelConfiguration2 | string> | undefined;
1267
1152
  /**
1268
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1153
+ * Configuration settings for the agent's behavior
1269
1154
  */
1270
- configuration?: { [k: string]: any } | undefined;
1271
- };
1272
-
1273
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
1274
- {
1275
- RetrieveKnowledgeBases: "retrieve_knowledge_bases",
1276
- } as const;
1277
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
1278
- ClosedEnum<
1279
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
1280
- >;
1281
-
1282
- /**
1283
- * Lists available knowledge bases
1284
- */
1285
- export type RetrieveKnowledgeBasesTool = {
1286
- type:
1287
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type;
1155
+ settings: Settings;
1288
1156
  /**
1289
- * Whether this tool requires approval before execution
1157
+ * Optional array of memory store identifiers for the agent to access. Accepts both memory store IDs and keys.
1290
1158
  */
1291
- requiresApproval?: boolean | undefined;
1159
+ memoryStores?: Array<string> | undefined;
1292
1160
  /**
1293
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1161
+ * Optional array of knowledge base configurations for the agent to access
1294
1162
  */
1295
- configuration?: { [k: string]: any } | undefined;
1296
- };
1297
-
1298
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
1299
- {
1300
- DeleteMemoryDocument: "delete_memory_document",
1301
- } as const;
1302
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
1303
- ClosedEnum<
1304
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
1305
- >;
1306
-
1307
- /**
1308
- * Deletes documents from memory stores
1309
- */
1310
- export type DeleteMemoryDocumentTool = {
1311
- type:
1312
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type;
1163
+ knowledgeBases?: Array<KnowledgeBases> | undefined;
1313
1164
  /**
1314
- * Whether this tool requires approval before execution
1165
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1315
1166
  */
1316
- requiresApproval?: boolean | undefined;
1167
+ teamOfAgents?: Array<TeamOfAgents> | undefined;
1317
1168
  /**
1318
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1169
+ * 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.
1319
1170
  */
1320
- configuration?: { [k: string]: any } | undefined;
1171
+ skills?: Array<string> | null | undefined;
1172
+ variables?: { [k: string]: any } | undefined;
1173
+ source?: Source | undefined;
1174
+ engine?: Engine | undefined;
1321
1175
  };
1322
1176
 
1323
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
1324
- {
1325
- RetrieveMemoryStores: "retrieve_memory_stores",
1326
- } as const;
1327
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
1328
- ClosedEnum<
1329
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
1330
- >;
1331
-
1332
1177
  /**
1333
- * Lists available memory stores
1178
+ * 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.
1179
+ */
1180
+ export const CreateAgentRequestStatus = {
1181
+ Live: "live",
1182
+ Draft: "draft",
1183
+ Pending: "pending",
1184
+ Published: "published",
1185
+ } as const;
1186
+ /**
1187
+ * 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.
1334
1188
  */
1335
- export type RetrieveMemoryStoresTool = {
1336
- type:
1337
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType;
1189
+ export type CreateAgentRequestStatus = ClosedEnum<
1190
+ typeof CreateAgentRequestStatus
1191
+ >;
1192
+
1193
+ export type CreateAgentRequestTeamOfAgents = {
1338
1194
  /**
1339
- * Whether this tool requires approval before execution
1195
+ * The unique key of the agent within the workspace
1340
1196
  */
1341
- requiresApproval?: boolean | undefined;
1197
+ key: string;
1342
1198
  /**
1343
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1199
+ * 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.
1344
1200
  */
1345
- configuration?: { [k: string]: any } | undefined;
1201
+ role?: string | undefined;
1346
1202
  };
1347
1203
 
1348
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
1349
- {
1350
- WriteMemoryStore: "write_memory_store",
1351
- } as const;
1352
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
1353
- ClosedEnum<
1354
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType
1355
- >;
1204
+ export type Metrics = {
1205
+ totalCost: number;
1206
+ };
1356
1207
 
1357
- /**
1358
- * Writes information to agent memory stores
1359
- */
1360
- export type WriteMemoryStoreTool = {
1361
- type:
1362
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType;
1363
- /**
1364
- * Whether this tool requires approval before execution
1365
- */
1366
- requiresApproval?: boolean | undefined;
1208
+ export type CreateAgentRequestKnowledgeBases = {
1367
1209
  /**
1368
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1210
+ * Unique identifier of the knowledge base to search
1369
1211
  */
1370
- configuration?: { [k: string]: any } | undefined;
1212
+ knowledgeId: string;
1371
1213
  };
1372
1214
 
1373
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType =
1374
- {
1375
- QueryMemoryStore: "query_memory_store",
1376
- } as const;
1377
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType =
1378
- ClosedEnum<
1379
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType
1380
- >;
1215
+ export const CreateAgentRequestSource = {
1216
+ Internal: "internal",
1217
+ External: "external",
1218
+ Experiment: "experiment",
1219
+ } as const;
1220
+ export type CreateAgentRequestSource = ClosedEnum<
1221
+ typeof CreateAgentRequestSource
1222
+ >;
1223
+
1224
+ export const CreateAgentRequestEngine = {
1225
+ Text: "text",
1226
+ Jinja: "jinja",
1227
+ Mustache: "mustache",
1228
+ } as const;
1229
+ export type CreateAgentRequestEngine = ClosedEnum<
1230
+ typeof CreateAgentRequestEngine
1231
+ >;
1381
1232
 
1382
1233
  /**
1383
- * Queries agent memory stores for context
1234
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1384
1235
  */
1385
- export type QueryMemoryStoreTool = {
1386
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType;
1387
- /**
1388
- * Whether this tool requires approval before execution
1389
- */
1390
- requiresApproval?: boolean | undefined;
1391
- /**
1392
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1393
- */
1394
- configuration?: { [k: string]: any } | undefined;
1395
- };
1396
-
1397
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestType = {
1398
- RetrieveAgents: "retrieve_agents",
1236
+ export const CreateAgentRequestType = {
1237
+ Internal: "internal",
1238
+ A2a: "a2a",
1399
1239
  } as const;
1400
- export type CreateAgentRequestAgentToolInputCRUDAgentsRequestType = ClosedEnum<
1401
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestType
1402
- >;
1240
+ /**
1241
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1242
+ */
1243
+ export type CreateAgentRequestType = ClosedEnum<typeof CreateAgentRequestType>;
1403
1244
 
1404
1245
  /**
1405
- * Retrieves available agents in the system
1246
+ * 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.
1247
+ */
1248
+ export const CreateAgentRequestToolApprovalRequired = {
1249
+ All: "all",
1250
+ RespectTool: "respect_tool",
1251
+ None: "none",
1252
+ } as const;
1253
+ /**
1254
+ * 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.
1406
1255
  */
1407
- export type RetrieveAgentsTool = {
1408
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestType;
1256
+ export type CreateAgentRequestToolApprovalRequired = ClosedEnum<
1257
+ typeof CreateAgentRequestToolApprovalRequired
1258
+ >;
1259
+
1260
+ export type Conditions = {
1409
1261
  /**
1410
- * Whether this tool requires approval before execution
1262
+ * The argument of the tool call to evaluate
1411
1263
  */
1412
- requiresApproval?: boolean | undefined;
1264
+ condition: string;
1413
1265
  /**
1414
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1266
+ * The operator to use
1415
1267
  */
1416
- configuration?: { [k: string]: any } | undefined;
1268
+ operator: string;
1269
+ /**
1270
+ * The value to compare against
1271
+ */
1272
+ value: string;
1417
1273
  };
1418
1274
 
1419
- export const CreateAgentRequestAgentToolInputCRUDAgentsType = {
1420
- CallSubAgent: "call_sub_agent",
1421
- } as const;
1422
- export type CreateAgentRequestAgentToolInputCRUDAgentsType = ClosedEnum<
1423
- typeof CreateAgentRequestAgentToolInputCRUDAgentsType
1424
- >;
1425
-
1426
- /**
1427
- * Delegates tasks to specialized sub-agents
1428
- */
1429
- export type CallSubAgentTool = {
1430
- type: CreateAgentRequestAgentToolInputCRUDAgentsType;
1275
+ export type CreateAgentRequestTools = {
1431
1276
  /**
1432
- * Whether this tool requires approval before execution
1277
+ * The id of the resource
1433
1278
  */
1434
- requiresApproval?: boolean | undefined;
1279
+ id: string;
1435
1280
  /**
1436
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1281
+ * Optional tool key for custom tools
1437
1282
  */
1438
- configuration?: { [k: string]: any } | undefined;
1439
- };
1440
-
1441
- export const CreateAgentRequestAgentToolInputCRUDType = {
1442
- WebScraper: "web_scraper",
1443
- } as const;
1444
- export type CreateAgentRequestAgentToolInputCRUDType = ClosedEnum<
1445
- typeof CreateAgentRequestAgentToolInputCRUDType
1446
- >;
1447
-
1448
- /**
1449
- * Scrapes and extracts content from web pages
1450
- */
1451
- export type WebScraperTool = {
1452
- type: CreateAgentRequestAgentToolInputCRUDType;
1283
+ key?: string | undefined;
1284
+ actionType: string;
1285
+ displayName?: string | undefined;
1453
1286
  /**
1454
- * Whether this tool requires approval before execution
1287
+ * Optional tool description
1455
1288
  */
1456
- requiresApproval?: boolean | undefined;
1289
+ description?: string | undefined;
1457
1290
  /**
1458
1291
  * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1459
1292
  */
1460
1293
  configuration?: { [k: string]: any } | undefined;
1461
- };
1462
-
1463
- export const AgentToolInputCRUDType = {
1464
- GoogleSearch: "google_search",
1465
- } as const;
1466
- export type AgentToolInputCRUDType = ClosedEnum<typeof AgentToolInputCRUDType>;
1467
-
1468
- /**
1469
- * Performs Google searches to retrieve web content
1470
- */
1471
- export type GoogleSearchTool = {
1472
- type: AgentToolInputCRUDType;
1294
+ requiresApproval: boolean;
1473
1295
  /**
1474
- * Whether this tool requires approval before execution
1296
+ * Nested tool ID for MCP tools (identifies specific tool within MCP server)
1475
1297
  */
1476
- requiresApproval?: boolean | undefined;
1298
+ toolId?: string | undefined;
1299
+ conditions?: Array<Conditions> | undefined;
1477
1300
  /**
1478
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1301
+ * Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
1479
1302
  */
1480
- configuration?: { [k: string]: any } | undefined;
1303
+ timeout?: number | undefined;
1481
1304
  };
1482
1305
 
1483
- /**
1484
- * 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.
1485
- */
1486
- export type AgentToolInputCRUD =
1487
- | GoogleSearchTool
1488
- | WebScraperTool
1489
- | CallSubAgentTool
1490
- | RetrieveAgentsTool
1491
- | QueryMemoryStoreTool
1492
- | WriteMemoryStoreTool
1493
- | RetrieveMemoryStoresTool
1494
- | DeleteMemoryDocumentTool
1495
- | RetrieveKnowledgeBasesTool
1496
- | QueryKnowledgeBaseTool
1497
- | CurrentDateTool
1498
- | CodeInterpreterTool
1499
- | MCPTool
1500
- | ProviderBuiltInTool
1501
- | HTTPTool
1502
- | CodeExecutionTool
1503
- | FunctionTool
1504
- | JSONSchemaTool;
1505
-
1506
1306
  /**
1507
1307
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1508
1308
  */
1509
- export const CreateAgentRequestExecuteOn = {
1309
+ export const CreateAgentRequestAgentsResponseExecuteOn = {
1510
1310
  Input: "input",
1511
1311
  Output: "output",
1512
1312
  } as const;
1513
1313
  /**
1514
1314
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1515
1315
  */
1516
- export type CreateAgentRequestExecuteOn = ClosedEnum<
1517
- typeof CreateAgentRequestExecuteOn
1316
+ export type CreateAgentRequestAgentsResponseExecuteOn = ClosedEnum<
1317
+ typeof CreateAgentRequestAgentsResponseExecuteOn
1518
1318
  >;
1519
1319
 
1520
- export type Evaluators = {
1320
+ export type CreateAgentRequestEvaluators = {
1521
1321
  /**
1522
1322
  * Unique key or identifier of the evaluator
1523
1323
  */
@@ -1525,28 +1325,28 @@ export type Evaluators = {
1525
1325
  /**
1526
1326
  * 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.
1527
1327
  */
1528
- sampleRate?: number | undefined;
1328
+ sampleRate: number;
1529
1329
  /**
1530
1330
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1531
1331
  */
1532
- executeOn: CreateAgentRequestExecuteOn;
1332
+ executeOn: CreateAgentRequestAgentsResponseExecuteOn;
1533
1333
  };
1534
1334
 
1535
1335
  /**
1536
1336
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1537
1337
  */
1538
- export const CreateAgentRequestAgentsExecuteOn = {
1338
+ export const CreateAgentRequestAgentsResponse201ExecuteOn = {
1539
1339
  Input: "input",
1540
1340
  Output: "output",
1541
1341
  } as const;
1542
1342
  /**
1543
1343
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1544
1344
  */
1545
- export type CreateAgentRequestAgentsExecuteOn = ClosedEnum<
1546
- typeof CreateAgentRequestAgentsExecuteOn
1345
+ export type CreateAgentRequestAgentsResponse201ExecuteOn = ClosedEnum<
1346
+ typeof CreateAgentRequestAgentsResponse201ExecuteOn
1547
1347
  >;
1548
1348
 
1549
- export type CreateAgentRequestGuardrails = {
1349
+ export type CreateAgentRequestAgentsGuardrails = {
1550
1350
  /**
1551
1351
  * Unique key or identifier of the evaluator
1552
1352
  */
@@ -1554,412 +1354,68 @@ export type CreateAgentRequestGuardrails = {
1554
1354
  /**
1555
1355
  * 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.
1556
1356
  */
1557
- sampleRate?: number | undefined;
1357
+ sampleRate: number;
1558
1358
  /**
1559
1359
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1560
1360
  */
1561
- executeOn: CreateAgentRequestAgentsExecuteOn;
1361
+ executeOn: CreateAgentRequestAgentsResponse201ExecuteOn;
1562
1362
  };
1563
1363
 
1564
- /**
1565
- * Configuration settings for the agent's behavior
1566
- */
1567
- export type Settings = {
1364
+ export type CreateAgentRequestSettings = {
1568
1365
  /**
1569
1366
  * Maximum iterations(llm calls) before the agent will stop executing.
1570
1367
  */
1571
- maxIterations?: number | undefined;
1368
+ maxIterations: number;
1572
1369
  /**
1573
1370
  * 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.
1574
1371
  */
1575
- maxExecutionTime?: number | undefined;
1372
+ maxExecutionTime: number;
1576
1373
  /**
1577
1374
  * 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
1578
1375
  */
1579
- maxCost?: number | undefined;
1376
+ maxCost: number;
1580
1377
  /**
1581
1378
  * 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.
1582
1379
  */
1583
- toolApprovalRequired?: ToolApprovalRequired | undefined;
1380
+ toolApprovalRequired: CreateAgentRequestToolApprovalRequired;
1584
1381
  /**
1585
1382
  * When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
1586
1383
  */
1587
1384
  chatExposed?: boolean | undefined;
1588
- /**
1589
- * Tools available to the agent. Built-in tools only need a type, while custom tools (http, code, function) must reference pre-created tools by key or id.
1590
- */
1591
- tools?:
1592
- | Array<
1593
- | GoogleSearchTool
1594
- | WebScraperTool
1595
- | CallSubAgentTool
1596
- | RetrieveAgentsTool
1597
- | QueryMemoryStoreTool
1598
- | WriteMemoryStoreTool
1599
- | RetrieveMemoryStoresTool
1600
- | DeleteMemoryDocumentTool
1601
- | RetrieveKnowledgeBasesTool
1602
- | QueryKnowledgeBaseTool
1603
- | CurrentDateTool
1604
- | CodeInterpreterTool
1605
- | MCPTool
1606
- | ProviderBuiltInTool
1607
- | HTTPTool
1608
- | CodeExecutionTool
1609
- | FunctionTool
1610
- | JSONSchemaTool
1611
- >
1612
- | undefined;
1385
+ tools?: Array<CreateAgentRequestTools> | undefined;
1613
1386
  /**
1614
1387
  * Configuration for an evaluator applied to the agent
1615
1388
  */
1616
- evaluators?: Array<Evaluators> | undefined;
1389
+ evaluators?: Array<CreateAgentRequestEvaluators> | undefined;
1617
1390
  /**
1618
1391
  * Configuration for a guardrail applied to the agent
1619
1392
  */
1620
- guardrails?: Array<CreateAgentRequestGuardrails> | undefined;
1621
- };
1622
-
1623
- export type KnowledgeBases = {
1624
- /**
1625
- * Unique identifier of the knowledge base to search
1626
- */
1627
- knowledgeId: string;
1628
- };
1629
-
1630
- export type TeamOfAgents = {
1631
- /**
1632
- * The unique key of the agent within the workspace
1633
- */
1634
- key: string;
1635
- /**
1636
- * 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.
1637
- */
1638
- role?: string | undefined;
1393
+ guardrails?: Array<CreateAgentRequestAgentsGuardrails> | undefined;
1639
1394
  };
1640
1395
 
1641
- export const Source = {
1642
- Internal: "internal",
1643
- External: "external",
1644
- Experiment: "experiment",
1645
- } as const;
1646
- export type Source = ClosedEnum<typeof Source>;
1647
-
1648
- export const Engine = {
1649
- Text: "text",
1650
- Jinja: "jinja",
1651
- Mustache: "mustache",
1652
- } as const;
1653
- export type Engine = ClosedEnum<typeof Engine>;
1654
-
1655
- export type CreateAgentRequestRequestBody = {
1656
- /**
1657
- * Unique identifier for the agent within the workspace
1658
- */
1659
- key: string;
1660
- /**
1661
- * agent display name within the workspace
1662
- */
1663
- displayName?: string | undefined;
1664
- /**
1665
- * The role or function of the agent
1666
- */
1667
- role: string;
1668
- /**
1669
- * A brief description of what the agent does
1670
- */
1671
- description: string;
1672
- /**
1673
- * Detailed instructions that guide the agent's behavior
1674
- */
1675
- instructions: string;
1676
- /**
1677
- * A custom system prompt template for the agent. If omitted, the default template is used.
1678
- */
1679
- systemPrompt?: string | null | undefined;
1680
- /**
1681
- * The path where the agent will be stored in the project structure. The first element identifies the project, followed by nested folders (auto-created as needed).
1682
- *
1683
- * @remarks
1684
- *
1685
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1686
- */
1687
- path: string;
1688
- /**
1689
- * Model configuration for agent execution. Can be a simple model ID string or a configuration object with optional behavior parameters and retry settings.
1690
- */
1691
- model: ModelConfiguration2 | string;
1692
- /**
1693
- * Optional array of fallback models used when the primary model fails. Fallbacks are attempted in order. All models must support tool calling.
1694
- */
1695
- fallbackModels?: Array<FallbackModelConfiguration2 | string> | undefined;
1696
- /**
1697
- * Configuration settings for the agent's behavior
1698
- */
1699
- settings: Settings;
1396
+ export type CreateAgentRequestResponseFormatAgentsResponseJsonSchema = {
1700
1397
  /**
1701
- * Optional array of memory store identifiers for the agent to access. Accepts both memory store IDs and keys.
1398
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
1702
1399
  */
1703
- memoryStores?: Array<string> | undefined;
1400
+ description?: string | undefined;
1704
1401
  /**
1705
- * Optional array of knowledge base configurations for the agent to access
1402
+ * 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.
1706
1403
  */
1707
- knowledgeBases?: Array<KnowledgeBases> | undefined;
1404
+ name: string;
1708
1405
  /**
1709
- * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1406
+ * The schema for the response format, described as a JSON Schema object.
1710
1407
  */
1711
- teamOfAgents?: Array<TeamOfAgents> | undefined;
1408
+ schema?: any | undefined;
1712
1409
  /**
1713
- * 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.
1410
+ * 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.
1714
1411
  */
1715
- skills?: Array<string> | null | undefined;
1716
- variables?: { [k: string]: any } | undefined;
1717
- source?: Source | undefined;
1718
- engine?: Engine | undefined;
1412
+ strict: boolean;
1719
1413
  };
1720
1414
 
1721
1415
  /**
1722
- * 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.
1723
- */
1724
- export const CreateAgentRequestStatus = {
1725
- Live: "live",
1726
- Draft: "draft",
1727
- Pending: "pending",
1728
- Published: "published",
1729
- } as const;
1730
- /**
1731
- * 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.
1732
- */
1733
- export type CreateAgentRequestStatus = ClosedEnum<
1734
- typeof CreateAgentRequestStatus
1735
- >;
1736
-
1737
- export type CreateAgentRequestTeamOfAgents = {
1738
- /**
1739
- * The unique key of the agent within the workspace
1740
- */
1741
- key: string;
1742
- /**
1743
- * 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.
1744
- */
1745
- role?: string | undefined;
1746
- };
1747
-
1748
- export type Metrics = {
1749
- totalCost: number;
1750
- };
1751
-
1752
- export type CreateAgentRequestKnowledgeBases = {
1753
- /**
1754
- * Unique identifier of the knowledge base to search
1755
- */
1756
- knowledgeId: string;
1757
- };
1758
-
1759
- export const CreateAgentRequestSource = {
1760
- Internal: "internal",
1761
- External: "external",
1762
- Experiment: "experiment",
1763
- } as const;
1764
- export type CreateAgentRequestSource = ClosedEnum<
1765
- typeof CreateAgentRequestSource
1766
- >;
1767
-
1768
- export const CreateAgentRequestEngine = {
1769
- Text: "text",
1770
- Jinja: "jinja",
1771
- Mustache: "mustache",
1772
- } as const;
1773
- export type CreateAgentRequestEngine = ClosedEnum<
1774
- typeof CreateAgentRequestEngine
1775
- >;
1776
-
1777
- /**
1778
- * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1779
- */
1780
- export const CreateAgentRequestType = {
1781
- Internal: "internal",
1782
- A2a: "a2a",
1783
- } as const;
1784
- /**
1785
- * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1786
- */
1787
- export type CreateAgentRequestType = ClosedEnum<typeof CreateAgentRequestType>;
1788
-
1789
- /**
1790
- * 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.
1791
- */
1792
- export const CreateAgentRequestToolApprovalRequired = {
1793
- All: "all",
1794
- RespectTool: "respect_tool",
1795
- None: "none",
1796
- } as const;
1797
- /**
1798
- * 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.
1799
- */
1800
- export type CreateAgentRequestToolApprovalRequired = ClosedEnum<
1801
- typeof CreateAgentRequestToolApprovalRequired
1802
- >;
1803
-
1804
- export type Conditions = {
1805
- /**
1806
- * The argument of the tool call to evaluate
1807
- */
1808
- condition: string;
1809
- /**
1810
- * The operator to use
1811
- */
1812
- operator: string;
1813
- /**
1814
- * The value to compare against
1815
- */
1816
- value: string;
1817
- };
1818
-
1819
- export type CreateAgentRequestTools = {
1820
- /**
1821
- * The id of the resource
1822
- */
1823
- id: string;
1824
- /**
1825
- * Optional tool key for custom tools
1826
- */
1827
- key?: string | undefined;
1828
- actionType: string;
1829
- displayName?: string | undefined;
1830
- /**
1831
- * Optional tool description
1832
- */
1833
- description?: string | undefined;
1834
- /**
1835
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
1836
- */
1837
- configuration?: { [k: string]: any } | undefined;
1838
- requiresApproval: boolean;
1839
- /**
1840
- * Nested tool ID for MCP tools (identifies specific tool within MCP server)
1841
- */
1842
- toolId?: string | undefined;
1843
- conditions?: Array<Conditions> | undefined;
1844
- /**
1845
- * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
1846
- */
1847
- timeout: number;
1848
- };
1849
-
1850
- /**
1851
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1852
- */
1853
- export const CreateAgentRequestAgentsResponseExecuteOn = {
1854
- Input: "input",
1855
- Output: "output",
1856
- } as const;
1857
- /**
1858
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1859
- */
1860
- export type CreateAgentRequestAgentsResponseExecuteOn = ClosedEnum<
1861
- typeof CreateAgentRequestAgentsResponseExecuteOn
1862
- >;
1863
-
1864
- export type CreateAgentRequestEvaluators = {
1865
- /**
1866
- * Unique key or identifier of the evaluator
1867
- */
1868
- id: string;
1869
- /**
1870
- * 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.
1871
- */
1872
- sampleRate: number;
1873
- /**
1874
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1875
- */
1876
- executeOn: CreateAgentRequestAgentsResponseExecuteOn;
1877
- };
1878
-
1879
- /**
1880
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1881
- */
1882
- export const CreateAgentRequestAgentsResponse201ExecuteOn = {
1883
- Input: "input",
1884
- Output: "output",
1885
- } as const;
1886
- /**
1887
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1888
- */
1889
- export type CreateAgentRequestAgentsResponse201ExecuteOn = ClosedEnum<
1890
- typeof CreateAgentRequestAgentsResponse201ExecuteOn
1891
- >;
1892
-
1893
- export type CreateAgentRequestAgentsGuardrails = {
1894
- /**
1895
- * Unique key or identifier of the evaluator
1896
- */
1897
- id: string;
1898
- /**
1899
- * 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.
1900
- */
1901
- sampleRate: number;
1902
- /**
1903
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1904
- */
1905
- executeOn: CreateAgentRequestAgentsResponse201ExecuteOn;
1906
- };
1907
-
1908
- export type CreateAgentRequestSettings = {
1909
- /**
1910
- * Maximum iterations(llm calls) before the agent will stop executing.
1911
- */
1912
- maxIterations: number;
1913
- /**
1914
- * 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.
1915
- */
1916
- maxExecutionTime: number;
1917
- /**
1918
- * 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
1919
- */
1920
- maxCost: number;
1921
- /**
1922
- * 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.
1923
- */
1924
- toolApprovalRequired: CreateAgentRequestToolApprovalRequired;
1925
- /**
1926
- * When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
1927
- */
1928
- chatExposed?: boolean | undefined;
1929
- tools?: Array<CreateAgentRequestTools> | undefined;
1930
- /**
1931
- * Configuration for an evaluator applied to the agent
1932
- */
1933
- evaluators?: Array<CreateAgentRequestEvaluators> | undefined;
1934
- /**
1935
- * Configuration for a guardrail applied to the agent
1936
- */
1937
- guardrails?: Array<CreateAgentRequestAgentsGuardrails> | undefined;
1938
- };
1939
-
1940
- export type CreateAgentRequestResponseFormatAgentsResponseJsonSchema = {
1941
- /**
1942
- * A description of what the response format is for, used by the model to determine how to respond in the format.
1943
- */
1944
- description?: string | undefined;
1945
- /**
1946
- * 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.
1947
- */
1948
- name: string;
1949
- /**
1950
- * The schema for the response format, described as a JSON Schema object.
1951
- */
1952
- schema?: any | undefined;
1953
- /**
1954
- * 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.
1955
- */
1956
- strict: boolean;
1957
- };
1958
-
1959
- /**
1960
- * @remarks
1961
- *
1962
- * JSON Schema response format. Used to generate structured JSON responses
1416
+ * @remarks
1417
+ *
1418
+ * JSON Schema response format. Used to generate structured JSON responses
1963
1419
  */
1964
1420
  export type CreateAgentRequestResponseFormatAgentsResponse201JSONSchema = {
1965
1421
  type: "json_schema";
@@ -2095,6 +1551,7 @@ export type CreateAgentRequestModalities = ClosedEnum<
2095
1551
  */
2096
1552
  export const CreateAgentRequestIdAgents1 = {
2097
1553
  OrqPiiDetection: "orq_pii_detection",
1554
+ OrqSecretDetection: "orq_secret_detection",
2098
1555
  OrqSexualModeration: "orq_sexual_moderation",
2099
1556
  OrqHarmfulModeration: "orq_harmful_moderation",
2100
1557
  } as const;
@@ -2570,6 +2027,7 @@ export type CreateAgentRequestFallbackModelConfigurationModalities = ClosedEnum<
2570
2027
  */
2571
2028
  export const CreateAgentRequestIdAgentsResponse1 = {
2572
2029
  OrqPiiDetection: "orq_pii_detection",
2030
+ OrqSecretDetection: "orq_secret_detection",
2573
2031
  OrqSexualModeration: "orq_sexual_moderation",
2574
2032
  OrqHarmfulModeration: "orq_harmful_moderation",
2575
2033
  } as const;
@@ -2993,7 +2451,7 @@ export type CreateAgentRequestResponseBody = {
2993
2451
  /**
2994
2452
  * 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.
2995
2453
  */
2996
- skills: Array<string>;
2454
+ skills?: Array<string> | undefined;
2997
2455
  metrics?: Metrics | undefined;
2998
2456
  /**
2999
2457
  * Extracted variables from agent instructions
@@ -3052,1115 +2510,369 @@ export type JSONSchema$Outbound = {
3052
2510
  };
3053
2511
 
3054
2512
  /** @internal */
3055
- export const JSONSchema$outboundSchema: z.ZodType<
3056
- JSONSchema$Outbound,
3057
- z.ZodTypeDef,
3058
- JSONSchema
3059
- > = z.object({
3060
- type: z.literal("json_schema"),
3061
- jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
3062
- }).transform((v) => {
3063
- return remap$(v, {
3064
- jsonSchema: "json_schema",
3065
- });
3066
- });
3067
-
3068
- export function jsonSchemaToJSON(jsonSchema: JSONSchema): string {
3069
- return JSON.stringify(JSONSchema$outboundSchema.parse(jsonSchema));
3070
- }
3071
-
3072
- /** @internal */
3073
- export type JSONObject$Outbound = {
3074
- type: "json_object";
3075
- };
3076
-
3077
- /** @internal */
3078
- export const JSONObject$outboundSchema: z.ZodType<
3079
- JSONObject$Outbound,
3080
- z.ZodTypeDef,
3081
- JSONObject
3082
- > = z.object({
3083
- type: z.literal("json_object"),
3084
- });
3085
-
3086
- export function jsonObjectToJSON(jsonObject: JSONObject): string {
3087
- return JSON.stringify(JSONObject$outboundSchema.parse(jsonObject));
3088
- }
3089
-
3090
- /** @internal */
3091
- export type Text$Outbound = {
3092
- type: "text";
3093
- };
3094
-
3095
- /** @internal */
3096
- export const Text$outboundSchema: z.ZodType<Text$Outbound, z.ZodTypeDef, Text> =
3097
- z.object({
3098
- type: z.literal("text"),
3099
- });
3100
-
3101
- export function textToJSON(text: Text): string {
3102
- return JSON.stringify(Text$outboundSchema.parse(text));
3103
- }
3104
-
3105
- /** @internal */
3106
- export type ResponseFormat$Outbound =
3107
- | Text$Outbound
3108
- | JSONObject$Outbound
3109
- | JSONSchema$Outbound;
3110
-
3111
- /** @internal */
3112
- export const ResponseFormat$outboundSchema: z.ZodType<
3113
- ResponseFormat$Outbound,
3114
- z.ZodTypeDef,
3115
- ResponseFormat
3116
- > = z.union([
3117
- z.lazy(() => Text$outboundSchema),
3118
- z.lazy(() => JSONObject$outboundSchema),
3119
- z.lazy(() => JSONSchema$outboundSchema),
3120
- ]);
3121
-
3122
- export function responseFormatToJSON(responseFormat: ResponseFormat): string {
3123
- return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
3124
- }
3125
-
3126
- /** @internal */
3127
- export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
3128
- typeof ReasoningEffort
3129
- > = z.nativeEnum(ReasoningEffort);
3130
-
3131
- /** @internal */
3132
- export type Stop$Outbound = string | Array<string>;
3133
-
3134
- /** @internal */
3135
- export const Stop$outboundSchema: z.ZodType<Stop$Outbound, z.ZodTypeDef, Stop> =
3136
- z.union([z.string(), z.array(z.string())]);
3137
-
3138
- export function stopToJSON(stop: Stop): string {
3139
- return JSON.stringify(Stop$outboundSchema.parse(stop));
3140
- }
3141
-
3142
- /** @internal */
3143
- export type Thinking$Outbound =
3144
- | components.ThinkingConfigDisabledSchema$Outbound
3145
- | components.ThinkingConfigEnabledSchema$Outbound
3146
- | components.ThinkingConfigAdaptiveSchema$Outbound;
3147
-
3148
- /** @internal */
3149
- export const Thinking$outboundSchema: z.ZodType<
3150
- Thinking$Outbound,
3151
- z.ZodTypeDef,
3152
- Thinking
3153
- > = z.union([
3154
- components.ThinkingConfigDisabledSchema$outboundSchema,
3155
- components.ThinkingConfigEnabledSchema$outboundSchema,
3156
- components.ThinkingConfigAdaptiveSchema$outboundSchema,
3157
- ]);
3158
-
3159
- export function thinkingToJSON(thinking: Thinking): string {
3160
- return JSON.stringify(Thinking$outboundSchema.parse(thinking));
3161
- }
3162
-
3163
- /** @internal */
3164
- export const ToolChoiceType$outboundSchema: z.ZodNativeEnum<
3165
- typeof ToolChoiceType
3166
- > = z.nativeEnum(ToolChoiceType);
3167
-
3168
- /** @internal */
3169
- export type ToolChoiceFunction$Outbound = {
3170
- name: string;
3171
- };
3172
-
3173
- /** @internal */
3174
- export const ToolChoiceFunction$outboundSchema: z.ZodType<
3175
- ToolChoiceFunction$Outbound,
3176
- z.ZodTypeDef,
3177
- ToolChoiceFunction
3178
- > = z.object({
3179
- name: z.string(),
3180
- });
3181
-
3182
- export function toolChoiceFunctionToJSON(
3183
- toolChoiceFunction: ToolChoiceFunction,
3184
- ): string {
3185
- return JSON.stringify(
3186
- ToolChoiceFunction$outboundSchema.parse(toolChoiceFunction),
3187
- );
3188
- }
3189
-
3190
- /** @internal */
3191
- export type ToolChoice2$Outbound = {
3192
- type?: string | undefined;
3193
- function: ToolChoiceFunction$Outbound;
3194
- };
3195
-
3196
- /** @internal */
3197
- export const ToolChoice2$outboundSchema: z.ZodType<
3198
- ToolChoice2$Outbound,
3199
- z.ZodTypeDef,
3200
- ToolChoice2
3201
- > = z.object({
3202
- type: ToolChoiceType$outboundSchema.optional(),
3203
- function: z.lazy(() => ToolChoiceFunction$outboundSchema),
3204
- });
3205
-
3206
- export function toolChoice2ToJSON(toolChoice2: ToolChoice2): string {
3207
- return JSON.stringify(ToolChoice2$outboundSchema.parse(toolChoice2));
3208
- }
3209
-
3210
- /** @internal */
3211
- export const ToolChoice1$outboundSchema: z.ZodNativeEnum<typeof ToolChoice1> = z
3212
- .nativeEnum(ToolChoice1);
3213
-
3214
- /** @internal */
3215
- export type ToolChoice$Outbound = ToolChoice2$Outbound | string;
3216
-
3217
- /** @internal */
3218
- export const ToolChoice$outboundSchema: z.ZodType<
3219
- ToolChoice$Outbound,
3220
- z.ZodTypeDef,
3221
- ToolChoice
3222
- > = z.union([
3223
- z.lazy(() => ToolChoice2$outboundSchema),
3224
- ToolChoice1$outboundSchema,
3225
- ]);
3226
-
3227
- export function toolChoiceToJSON(toolChoice: ToolChoice): string {
3228
- return JSON.stringify(ToolChoice$outboundSchema.parse(toolChoice));
3229
- }
3230
-
3231
- /** @internal */
3232
- export const Modalities$outboundSchema: z.ZodNativeEnum<typeof Modalities> = z
3233
- .nativeEnum(Modalities);
3234
-
3235
- /** @internal */
3236
- export const Id1$outboundSchema: z.ZodNativeEnum<typeof Id1> = z.nativeEnum(
3237
- Id1,
3238
- );
3239
-
3240
- /** @internal */
3241
- export type Id$Outbound = string | string;
3242
-
3243
- /** @internal */
3244
- export const Id$outboundSchema: z.ZodType<Id$Outbound, z.ZodTypeDef, Id> = z
3245
- .union([Id1$outboundSchema, z.string()]);
3246
-
3247
- export function idToJSON(id: Id): string {
3248
- return JSON.stringify(Id$outboundSchema.parse(id));
3249
- }
3250
-
3251
- /** @internal */
3252
- export const ExecuteOn$outboundSchema: z.ZodNativeEnum<typeof ExecuteOn> = z
3253
- .nativeEnum(ExecuteOn);
3254
-
3255
- /** @internal */
3256
- export type Guardrails$Outbound = {
3257
- id: string | string;
3258
- execute_on: string;
3259
- };
3260
-
3261
- /** @internal */
3262
- export const Guardrails$outboundSchema: z.ZodType<
3263
- Guardrails$Outbound,
3264
- z.ZodTypeDef,
3265
- Guardrails
3266
- > = z.object({
3267
- id: z.union([Id1$outboundSchema, z.string()]),
3268
- executeOn: ExecuteOn$outboundSchema,
3269
- }).transform((v) => {
3270
- return remap$(v, {
3271
- executeOn: "execute_on",
3272
- });
3273
- });
3274
-
3275
- export function guardrailsToJSON(guardrails: Guardrails): string {
3276
- return JSON.stringify(Guardrails$outboundSchema.parse(guardrails));
3277
- }
3278
-
3279
- /** @internal */
3280
- export type Plugins$Outbound =
3281
- | components.PIIRedactionPluginEn$Outbound
3282
- | components.PIIRedactionPluginNl$Outbound
3283
- | components.PIIRedactionPluginAuto$Outbound;
3284
-
3285
- /** @internal */
3286
- export const Plugins$outboundSchema: z.ZodType<
3287
- Plugins$Outbound,
3288
- z.ZodTypeDef,
3289
- Plugins
3290
- > = z.union([
3291
- components.PIIRedactionPluginEn$outboundSchema,
3292
- components.PIIRedactionPluginNl$outboundSchema,
3293
- components.PIIRedactionPluginAuto$outboundSchema,
3294
- ]);
3295
-
3296
- export function pluginsToJSON(plugins: Plugins): string {
3297
- return JSON.stringify(Plugins$outboundSchema.parse(plugins));
3298
- }
3299
-
3300
- /** @internal */
3301
- export type ModelConfigurationFallbacks$Outbound = {
3302
- model: string;
3303
- };
3304
-
3305
- /** @internal */
3306
- export const ModelConfigurationFallbacks$outboundSchema: z.ZodType<
3307
- ModelConfigurationFallbacks$Outbound,
3308
- z.ZodTypeDef,
3309
- ModelConfigurationFallbacks
3310
- > = z.object({
3311
- model: z.string(),
3312
- });
3313
-
3314
- export function modelConfigurationFallbacksToJSON(
3315
- modelConfigurationFallbacks: ModelConfigurationFallbacks,
3316
- ): string {
3317
- return JSON.stringify(
3318
- ModelConfigurationFallbacks$outboundSchema.parse(
3319
- modelConfigurationFallbacks,
3320
- ),
3321
- );
3322
- }
3323
-
3324
- /** @internal */
3325
- export const ModelConfigurationType$outboundSchema: z.ZodNativeEnum<
3326
- typeof ModelConfigurationType
3327
- > = z.nativeEnum(ModelConfigurationType);
3328
-
3329
- /** @internal */
3330
- export type Cache$Outbound = {
3331
- ttl: number;
3332
- type: string;
3333
- };
3334
-
3335
- /** @internal */
3336
- export const Cache$outboundSchema: z.ZodType<
3337
- Cache$Outbound,
3338
- z.ZodTypeDef,
3339
- Cache
3340
- > = z.object({
3341
- ttl: z.number().default(1800),
3342
- type: ModelConfigurationType$outboundSchema,
3343
- });
3344
-
3345
- export function cacheToJSON(cache: Cache): string {
3346
- return JSON.stringify(Cache$outboundSchema.parse(cache));
3347
- }
3348
-
3349
- /** @internal */
3350
- export const LoadBalancerType$outboundSchema: z.ZodNativeEnum<
3351
- typeof LoadBalancerType
3352
- > = z.nativeEnum(LoadBalancerType);
3353
-
3354
- /** @internal */
3355
- export type Models$Outbound = {
3356
- model: string;
3357
- weight: number;
3358
- };
3359
-
3360
- /** @internal */
3361
- export const Models$outboundSchema: z.ZodType<
3362
- Models$Outbound,
3363
- z.ZodTypeDef,
3364
- Models
3365
- > = z.object({
3366
- model: z.string(),
3367
- weight: z.number().default(0.5),
3368
- });
3369
-
3370
- export function modelsToJSON(models: Models): string {
3371
- return JSON.stringify(Models$outboundSchema.parse(models));
3372
- }
3373
-
3374
- /** @internal */
3375
- export type LoadBalancer1$Outbound = {
3376
- type: string;
3377
- models: Array<Models$Outbound>;
3378
- };
3379
-
3380
- /** @internal */
3381
- export const LoadBalancer1$outboundSchema: z.ZodType<
3382
- LoadBalancer1$Outbound,
3383
- z.ZodTypeDef,
3384
- LoadBalancer1
3385
- > = z.object({
3386
- type: LoadBalancerType$outboundSchema,
3387
- models: z.array(z.lazy(() => Models$outboundSchema)),
3388
- });
3389
-
3390
- export function loadBalancer1ToJSON(loadBalancer1: LoadBalancer1): string {
3391
- return JSON.stringify(LoadBalancer1$outboundSchema.parse(loadBalancer1));
3392
- }
3393
-
3394
- /** @internal */
3395
- export type LoadBalancer$Outbound = LoadBalancer1$Outbound;
3396
-
3397
- /** @internal */
3398
- export const LoadBalancer$outboundSchema: z.ZodType<
3399
- LoadBalancer$Outbound,
3400
- z.ZodTypeDef,
3401
- LoadBalancer
3402
- > = z.lazy(() => LoadBalancer1$outboundSchema);
3403
-
3404
- export function loadBalancerToJSON(loadBalancer: LoadBalancer): string {
3405
- return JSON.stringify(LoadBalancer$outboundSchema.parse(loadBalancer));
3406
- }
3407
-
3408
- /** @internal */
3409
- export type Timeout$Outbound = {
3410
- call_timeout: number;
3411
- };
3412
-
3413
- /** @internal */
3414
- export const Timeout$outboundSchema: z.ZodType<
3415
- Timeout$Outbound,
3416
- z.ZodTypeDef,
3417
- Timeout
3418
- > = z.object({
3419
- callTimeout: z.number(),
3420
- }).transform((v) => {
3421
- return remap$(v, {
3422
- callTimeout: "call_timeout",
3423
- });
3424
- });
3425
-
3426
- export function timeoutToJSON(timeout: Timeout): string {
3427
- return JSON.stringify(Timeout$outboundSchema.parse(timeout));
3428
- }
3429
-
3430
- /** @internal */
3431
- export const CreateAgentRequestModelConfigurationType$outboundSchema:
3432
- z.ZodNativeEnum<typeof CreateAgentRequestModelConfigurationType> = z
3433
- .nativeEnum(CreateAgentRequestModelConfigurationType);
3434
-
3435
- /** @internal */
3436
- export const ModelConfigurationTtl$outboundSchema: z.ZodNativeEnum<
3437
- typeof ModelConfigurationTtl
3438
- > = z.nativeEnum(ModelConfigurationTtl);
3439
-
3440
- /** @internal */
3441
- export type ModelConfigurationCacheControl$Outbound = {
3442
- type: string;
3443
- ttl: string;
3444
- };
3445
-
3446
- /** @internal */
3447
- export const ModelConfigurationCacheControl$outboundSchema: z.ZodType<
3448
- ModelConfigurationCacheControl$Outbound,
3449
- z.ZodTypeDef,
3450
- ModelConfigurationCacheControl
3451
- > = z.object({
3452
- type: CreateAgentRequestModelConfigurationType$outboundSchema,
3453
- ttl: ModelConfigurationTtl$outboundSchema.default("5m"),
3454
- });
3455
-
3456
- export function modelConfigurationCacheControlToJSON(
3457
- modelConfigurationCacheControl: ModelConfigurationCacheControl,
3458
- ): string {
3459
- return JSON.stringify(
3460
- ModelConfigurationCacheControl$outboundSchema.parse(
3461
- modelConfigurationCacheControl,
3462
- ),
3463
- );
3464
- }
3465
-
3466
- /** @internal */
3467
- export type ParametersT$Outbound = {
3468
- name?: string | undefined;
3469
- frequency_penalty?: number | null | undefined;
3470
- max_tokens?: number | null | undefined;
3471
- max_completion_tokens?: number | null | undefined;
3472
- presence_penalty?: number | null | undefined;
3473
- response_format?:
3474
- | Text$Outbound
3475
- | JSONObject$Outbound
3476
- | JSONSchema$Outbound
3477
- | undefined;
3478
- reasoning_effort?: string | undefined;
3479
- verbosity?: string | undefined;
3480
- seed?: number | null | undefined;
3481
- stop?: string | Array<string> | null | undefined;
3482
- thinking?:
3483
- | components.ThinkingConfigDisabledSchema$Outbound
3484
- | components.ThinkingConfigEnabledSchema$Outbound
3485
- | components.ThinkingConfigAdaptiveSchema$Outbound
3486
- | undefined;
3487
- temperature?: number | null | undefined;
3488
- top_p?: number | null | undefined;
3489
- top_k?: number | null | undefined;
3490
- tool_choice?: ToolChoice2$Outbound | string | undefined;
3491
- parallel_tool_calls?: boolean | undefined;
3492
- modalities?: Array<string> | null | undefined;
3493
- guardrails?: Array<Guardrails$Outbound> | undefined;
3494
- plugins?:
3495
- | Array<
3496
- | components.PIIRedactionPluginEn$Outbound
3497
- | components.PIIRedactionPluginNl$Outbound
3498
- | components.PIIRedactionPluginAuto$Outbound
3499
- >
3500
- | undefined;
3501
- fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
3502
- cache?: Cache$Outbound | undefined;
3503
- load_balancer?: LoadBalancer1$Outbound | undefined;
3504
- timeout?: Timeout$Outbound | undefined;
3505
- cache_control?: ModelConfigurationCacheControl$Outbound | undefined;
3506
- prompt_cache_key?: string | undefined;
3507
- };
3508
-
3509
- /** @internal */
3510
- export const ParametersT$outboundSchema: z.ZodType<
3511
- ParametersT$Outbound,
3512
- z.ZodTypeDef,
3513
- ParametersT
3514
- > = z.object({
3515
- name: z.string().optional(),
3516
- frequencyPenalty: z.nullable(z.number()).optional(),
3517
- maxTokens: z.nullable(z.number().int()).optional(),
3518
- maxCompletionTokens: z.nullable(z.number().int()).optional(),
3519
- presencePenalty: z.nullable(z.number()).optional(),
3520
- responseFormat: z.union([
3521
- z.lazy(() => Text$outboundSchema),
3522
- z.lazy(() => JSONObject$outboundSchema),
3523
- z.lazy(() => JSONSchema$outboundSchema),
3524
- ]).optional(),
3525
- reasoningEffort: ReasoningEffort$outboundSchema.optional(),
3526
- verbosity: z.string().optional(),
3527
- seed: z.nullable(z.number()).optional(),
3528
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3529
- thinking: z.union([
3530
- components.ThinkingConfigDisabledSchema$outboundSchema,
3531
- components.ThinkingConfigEnabledSchema$outboundSchema,
3532
- components.ThinkingConfigAdaptiveSchema$outboundSchema,
3533
- ]).optional(),
3534
- temperature: z.nullable(z.number()).optional(),
3535
- topP: z.nullable(z.number()).optional(),
3536
- topK: z.nullable(z.number()).optional(),
3537
- toolChoice: z.union([
3538
- z.lazy(() => ToolChoice2$outboundSchema),
3539
- ToolChoice1$outboundSchema,
3540
- ]).optional(),
3541
- parallelToolCalls: z.boolean().optional(),
3542
- modalities: z.nullable(z.array(Modalities$outboundSchema)).optional(),
3543
- guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
3544
- plugins: z.array(
3545
- z.union([
3546
- components.PIIRedactionPluginEn$outboundSchema,
3547
- components.PIIRedactionPluginNl$outboundSchema,
3548
- components.PIIRedactionPluginAuto$outboundSchema,
3549
- ]),
3550
- ).optional(),
3551
- fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
3552
- .optional(),
3553
- cache: z.lazy(() => Cache$outboundSchema).optional(),
3554
- loadBalancer: z.lazy(() => LoadBalancer1$outboundSchema).optional(),
3555
- timeout: z.lazy(() => Timeout$outboundSchema).optional(),
3556
- cacheControl: z.lazy(() => ModelConfigurationCacheControl$outboundSchema)
3557
- .optional(),
3558
- promptCacheKey: z.string().optional(),
3559
- }).transform((v) => {
3560
- return remap$(v, {
3561
- frequencyPenalty: "frequency_penalty",
3562
- maxTokens: "max_tokens",
3563
- maxCompletionTokens: "max_completion_tokens",
3564
- presencePenalty: "presence_penalty",
3565
- responseFormat: "response_format",
3566
- reasoningEffort: "reasoning_effort",
3567
- topP: "top_p",
3568
- topK: "top_k",
3569
- toolChoice: "tool_choice",
3570
- parallelToolCalls: "parallel_tool_calls",
3571
- loadBalancer: "load_balancer",
3572
- cacheControl: "cache_control",
3573
- promptCacheKey: "prompt_cache_key",
3574
- });
3575
- });
3576
-
3577
- export function parametersToJSON(parametersT: ParametersT): string {
3578
- return JSON.stringify(ParametersT$outboundSchema.parse(parametersT));
3579
- }
3580
-
3581
- /** @internal */
3582
- export type ModelConfigurationRetry$Outbound = {
3583
- count: number;
3584
- on_codes?: Array<number> | undefined;
3585
- };
3586
-
3587
- /** @internal */
3588
- export const ModelConfigurationRetry$outboundSchema: z.ZodType<
3589
- ModelConfigurationRetry$Outbound,
3590
- z.ZodTypeDef,
3591
- ModelConfigurationRetry
3592
- > = z.object({
3593
- count: z.number().default(3),
3594
- onCodes: z.array(z.number()).optional(),
3595
- }).transform((v) => {
3596
- return remap$(v, {
3597
- onCodes: "on_codes",
3598
- });
3599
- });
3600
-
3601
- export function modelConfigurationRetryToJSON(
3602
- modelConfigurationRetry: ModelConfigurationRetry,
3603
- ): string {
3604
- return JSON.stringify(
3605
- ModelConfigurationRetry$outboundSchema.parse(modelConfigurationRetry),
3606
- );
3607
- }
3608
-
3609
- /** @internal */
3610
- export type ModelConfiguration2$Outbound = {
3611
- id: string;
3612
- parameters?: ParametersT$Outbound | undefined;
3613
- retry?: ModelConfigurationRetry$Outbound | undefined;
3614
- };
3615
-
3616
- /** @internal */
3617
- export const ModelConfiguration2$outboundSchema: z.ZodType<
3618
- ModelConfiguration2$Outbound,
3619
- z.ZodTypeDef,
3620
- ModelConfiguration2
3621
- > = z.object({
3622
- id: z.string(),
3623
- parameters: z.lazy(() => ParametersT$outboundSchema).optional(),
3624
- retry: z.lazy(() => ModelConfigurationRetry$outboundSchema).optional(),
3625
- });
3626
-
3627
- export function modelConfiguration2ToJSON(
3628
- modelConfiguration2: ModelConfiguration2,
3629
- ): string {
3630
- return JSON.stringify(
3631
- ModelConfiguration2$outboundSchema.parse(modelConfiguration2),
3632
- );
3633
- }
3634
-
3635
- /** @internal */
3636
- export type ModelConfiguration$Outbound = ModelConfiguration2$Outbound | string;
3637
-
3638
- /** @internal */
3639
- export const ModelConfiguration$outboundSchema: z.ZodType<
3640
- ModelConfiguration$Outbound,
3641
- z.ZodTypeDef,
3642
- ModelConfiguration
3643
- > = z.union([z.lazy(() => ModelConfiguration2$outboundSchema), z.string()]);
3644
-
3645
- export function modelConfigurationToJSON(
3646
- modelConfiguration: ModelConfiguration,
3647
- ): string {
3648
- return JSON.stringify(
3649
- ModelConfiguration$outboundSchema.parse(modelConfiguration),
3650
- );
3651
- }
3652
-
3653
- /** @internal */
3654
- export type CreateAgentRequestResponseFormatAgentsJsonSchema$Outbound = {
3655
- description?: string | undefined;
3656
- name: string;
3657
- schema?: any | undefined;
3658
- strict: boolean;
3659
- };
3660
-
3661
- /** @internal */
3662
- export const CreateAgentRequestResponseFormatAgentsJsonSchema$outboundSchema:
3663
- z.ZodType<
3664
- CreateAgentRequestResponseFormatAgentsJsonSchema$Outbound,
3665
- z.ZodTypeDef,
3666
- CreateAgentRequestResponseFormatAgentsJsonSchema
3667
- > = z.object({
3668
- description: z.string().optional(),
3669
- name: z.string(),
3670
- schema: z.any().optional(),
3671
- strict: z.boolean().default(false),
3672
- });
3673
-
3674
- export function createAgentRequestResponseFormatAgentsJsonSchemaToJSON(
3675
- createAgentRequestResponseFormatAgentsJsonSchema:
3676
- CreateAgentRequestResponseFormatAgentsJsonSchema,
3677
- ): string {
3678
- return JSON.stringify(
3679
- CreateAgentRequestResponseFormatAgentsJsonSchema$outboundSchema.parse(
3680
- createAgentRequestResponseFormatAgentsJsonSchema,
3681
- ),
3682
- );
3683
- }
3684
-
3685
- /** @internal */
3686
- export type CreateAgentRequestResponseFormatJSONSchema$Outbound = {
3687
- type: "json_schema";
3688
- json_schema: CreateAgentRequestResponseFormatAgentsJsonSchema$Outbound;
3689
- };
3690
-
3691
- /** @internal */
3692
- export const CreateAgentRequestResponseFormatJSONSchema$outboundSchema:
3693
- z.ZodType<
3694
- CreateAgentRequestResponseFormatJSONSchema$Outbound,
3695
- z.ZodTypeDef,
3696
- CreateAgentRequestResponseFormatJSONSchema
3697
- > = z.object({
3698
- type: z.literal("json_schema"),
3699
- jsonSchema: z.lazy(() =>
3700
- CreateAgentRequestResponseFormatAgentsJsonSchema$outboundSchema
3701
- ),
3702
- }).transform((v) => {
3703
- return remap$(v, {
3704
- jsonSchema: "json_schema",
3705
- });
2513
+ export const JSONSchema$outboundSchema: z.ZodType<
2514
+ JSONSchema$Outbound,
2515
+ z.ZodTypeDef,
2516
+ JSONSchema
2517
+ > = z.object({
2518
+ type: z.literal("json_schema"),
2519
+ jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
2520
+ }).transform((v) => {
2521
+ return remap$(v, {
2522
+ jsonSchema: "json_schema",
3706
2523
  });
2524
+ });
3707
2525
 
3708
- export function createAgentRequestResponseFormatJSONSchemaToJSON(
3709
- createAgentRequestResponseFormatJSONSchema:
3710
- CreateAgentRequestResponseFormatJSONSchema,
3711
- ): string {
3712
- return JSON.stringify(
3713
- CreateAgentRequestResponseFormatJSONSchema$outboundSchema.parse(
3714
- createAgentRequestResponseFormatJSONSchema,
3715
- ),
3716
- );
2526
+ export function jsonSchemaToJSON(jsonSchema: JSONSchema): string {
2527
+ return JSON.stringify(JSONSchema$outboundSchema.parse(jsonSchema));
3717
2528
  }
3718
2529
 
3719
2530
  /** @internal */
3720
- export type ResponseFormatJSONObject$Outbound = {
2531
+ export type JSONObject$Outbound = {
3721
2532
  type: "json_object";
3722
2533
  };
3723
2534
 
3724
2535
  /** @internal */
3725
- export const ResponseFormatJSONObject$outboundSchema: z.ZodType<
3726
- ResponseFormatJSONObject$Outbound,
2536
+ export const JSONObject$outboundSchema: z.ZodType<
2537
+ JSONObject$Outbound,
3727
2538
  z.ZodTypeDef,
3728
- ResponseFormatJSONObject
2539
+ JSONObject
3729
2540
  > = z.object({
3730
2541
  type: z.literal("json_object"),
3731
2542
  });
3732
2543
 
3733
- export function responseFormatJSONObjectToJSON(
3734
- responseFormatJSONObject: ResponseFormatJSONObject,
3735
- ): string {
3736
- return JSON.stringify(
3737
- ResponseFormatJSONObject$outboundSchema.parse(responseFormatJSONObject),
3738
- );
2544
+ export function jsonObjectToJSON(jsonObject: JSONObject): string {
2545
+ return JSON.stringify(JSONObject$outboundSchema.parse(jsonObject));
3739
2546
  }
3740
2547
 
3741
2548
  /** @internal */
3742
- export type ResponseFormatText$Outbound = {
2549
+ export type Text$Outbound = {
3743
2550
  type: "text";
3744
2551
  };
3745
2552
 
3746
2553
  /** @internal */
3747
- export const ResponseFormatText$outboundSchema: z.ZodType<
3748
- ResponseFormatText$Outbound,
3749
- z.ZodTypeDef,
3750
- ResponseFormatText
3751
- > = z.object({
3752
- type: z.literal("text"),
3753
- });
2554
+ export const Text$outboundSchema: z.ZodType<Text$Outbound, z.ZodTypeDef, Text> =
2555
+ z.object({
2556
+ type: z.literal("text"),
2557
+ });
3754
2558
 
3755
- export function responseFormatTextToJSON(
3756
- responseFormatText: ResponseFormatText,
3757
- ): string {
3758
- return JSON.stringify(
3759
- ResponseFormatText$outboundSchema.parse(responseFormatText),
3760
- );
2559
+ export function textToJSON(text: Text): string {
2560
+ return JSON.stringify(Text$outboundSchema.parse(text));
3761
2561
  }
3762
2562
 
3763
2563
  /** @internal */
3764
- export type FallbackModelConfigurationResponseFormat$Outbound =
3765
- | ResponseFormatText$Outbound
3766
- | ResponseFormatJSONObject$Outbound
3767
- | CreateAgentRequestResponseFormatJSONSchema$Outbound;
2564
+ export type ResponseFormat$Outbound =
2565
+ | Text$Outbound
2566
+ | JSONObject$Outbound
2567
+ | JSONSchema$Outbound;
3768
2568
 
3769
2569
  /** @internal */
3770
- export const FallbackModelConfigurationResponseFormat$outboundSchema: z.ZodType<
3771
- FallbackModelConfigurationResponseFormat$Outbound,
2570
+ export const ResponseFormat$outboundSchema: z.ZodType<
2571
+ ResponseFormat$Outbound,
3772
2572
  z.ZodTypeDef,
3773
- FallbackModelConfigurationResponseFormat
2573
+ ResponseFormat
3774
2574
  > = z.union([
3775
- z.lazy(() => ResponseFormatText$outboundSchema),
3776
- z.lazy(() => ResponseFormatJSONObject$outboundSchema),
3777
- z.lazy(() => CreateAgentRequestResponseFormatJSONSchema$outboundSchema),
2575
+ z.lazy(() => Text$outboundSchema),
2576
+ z.lazy(() => JSONObject$outboundSchema),
2577
+ z.lazy(() => JSONSchema$outboundSchema),
3778
2578
  ]);
3779
2579
 
3780
- export function fallbackModelConfigurationResponseFormatToJSON(
3781
- fallbackModelConfigurationResponseFormat:
3782
- FallbackModelConfigurationResponseFormat,
3783
- ): string {
3784
- return JSON.stringify(
3785
- FallbackModelConfigurationResponseFormat$outboundSchema.parse(
3786
- fallbackModelConfigurationResponseFormat,
3787
- ),
3788
- );
2580
+ export function responseFormatToJSON(responseFormat: ResponseFormat): string {
2581
+ return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
3789
2582
  }
3790
2583
 
3791
2584
  /** @internal */
3792
- export const FallbackModelConfigurationReasoningEffort$outboundSchema:
3793
- z.ZodNativeEnum<typeof FallbackModelConfigurationReasoningEffort> = z
3794
- .nativeEnum(FallbackModelConfigurationReasoningEffort);
2585
+ export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
2586
+ typeof ReasoningEffort
2587
+ > = z.nativeEnum(ReasoningEffort);
3795
2588
 
3796
2589
  /** @internal */
3797
- export type FallbackModelConfigurationStop$Outbound = string | Array<string>;
2590
+ export type Stop$Outbound = string | Array<string>;
3798
2591
 
3799
2592
  /** @internal */
3800
- export const FallbackModelConfigurationStop$outboundSchema: z.ZodType<
3801
- FallbackModelConfigurationStop$Outbound,
3802
- z.ZodTypeDef,
3803
- FallbackModelConfigurationStop
3804
- > = z.union([z.string(), z.array(z.string())]);
2593
+ export const Stop$outboundSchema: z.ZodType<Stop$Outbound, z.ZodTypeDef, Stop> =
2594
+ z.union([z.string(), z.array(z.string())]);
3805
2595
 
3806
- export function fallbackModelConfigurationStopToJSON(
3807
- fallbackModelConfigurationStop: FallbackModelConfigurationStop,
3808
- ): string {
3809
- return JSON.stringify(
3810
- FallbackModelConfigurationStop$outboundSchema.parse(
3811
- fallbackModelConfigurationStop,
3812
- ),
3813
- );
2596
+ export function stopToJSON(stop: Stop): string {
2597
+ return JSON.stringify(Stop$outboundSchema.parse(stop));
3814
2598
  }
3815
2599
 
3816
2600
  /** @internal */
3817
- export type FallbackModelConfigurationThinking$Outbound =
2601
+ export type Thinking$Outbound =
3818
2602
  | components.ThinkingConfigDisabledSchema$Outbound
3819
2603
  | components.ThinkingConfigEnabledSchema$Outbound
3820
2604
  | components.ThinkingConfigAdaptiveSchema$Outbound;
3821
2605
 
3822
2606
  /** @internal */
3823
- export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
3824
- FallbackModelConfigurationThinking$Outbound,
2607
+ export const Thinking$outboundSchema: z.ZodType<
2608
+ Thinking$Outbound,
3825
2609
  z.ZodTypeDef,
3826
- FallbackModelConfigurationThinking
2610
+ Thinking
3827
2611
  > = z.union([
3828
2612
  components.ThinkingConfigDisabledSchema$outboundSchema,
3829
2613
  components.ThinkingConfigEnabledSchema$outboundSchema,
3830
2614
  components.ThinkingConfigAdaptiveSchema$outboundSchema,
3831
2615
  ]);
3832
2616
 
3833
- export function fallbackModelConfigurationThinkingToJSON(
3834
- fallbackModelConfigurationThinking: FallbackModelConfigurationThinking,
3835
- ): string {
3836
- return JSON.stringify(
3837
- FallbackModelConfigurationThinking$outboundSchema.parse(
3838
- fallbackModelConfigurationThinking,
3839
- ),
3840
- );
2617
+ export function thinkingToJSON(thinking: Thinking): string {
2618
+ return JSON.stringify(Thinking$outboundSchema.parse(thinking));
3841
2619
  }
3842
2620
 
3843
2621
  /** @internal */
3844
- export const CreateAgentRequestToolChoiceType$outboundSchema: z.ZodNativeEnum<
3845
- typeof CreateAgentRequestToolChoiceType
3846
- > = z.nativeEnum(CreateAgentRequestToolChoiceType);
2622
+ export const ToolChoiceType$outboundSchema: z.ZodNativeEnum<
2623
+ typeof ToolChoiceType
2624
+ > = z.nativeEnum(ToolChoiceType);
3847
2625
 
3848
2626
  /** @internal */
3849
- export type CreateAgentRequestToolChoiceFunction$Outbound = {
2627
+ export type ToolChoiceFunction$Outbound = {
3850
2628
  name: string;
3851
2629
  };
3852
2630
 
3853
2631
  /** @internal */
3854
- export const CreateAgentRequestToolChoiceFunction$outboundSchema: z.ZodType<
3855
- CreateAgentRequestToolChoiceFunction$Outbound,
2632
+ export const ToolChoiceFunction$outboundSchema: z.ZodType<
2633
+ ToolChoiceFunction$Outbound,
3856
2634
  z.ZodTypeDef,
3857
- CreateAgentRequestToolChoiceFunction
2635
+ ToolChoiceFunction
3858
2636
  > = z.object({
3859
2637
  name: z.string(),
3860
2638
  });
3861
2639
 
3862
- export function createAgentRequestToolChoiceFunctionToJSON(
3863
- createAgentRequestToolChoiceFunction: CreateAgentRequestToolChoiceFunction,
2640
+ export function toolChoiceFunctionToJSON(
2641
+ toolChoiceFunction: ToolChoiceFunction,
3864
2642
  ): string {
3865
2643
  return JSON.stringify(
3866
- CreateAgentRequestToolChoiceFunction$outboundSchema.parse(
3867
- createAgentRequestToolChoiceFunction,
3868
- ),
2644
+ ToolChoiceFunction$outboundSchema.parse(toolChoiceFunction),
3869
2645
  );
3870
2646
  }
3871
2647
 
3872
2648
  /** @internal */
3873
- export type CreateAgentRequestToolChoice2$Outbound = {
2649
+ export type ToolChoice2$Outbound = {
3874
2650
  type?: string | undefined;
3875
- function: CreateAgentRequestToolChoiceFunction$Outbound;
2651
+ function: ToolChoiceFunction$Outbound;
3876
2652
  };
3877
2653
 
3878
2654
  /** @internal */
3879
- export const CreateAgentRequestToolChoice2$outboundSchema: z.ZodType<
3880
- CreateAgentRequestToolChoice2$Outbound,
2655
+ export const ToolChoice2$outboundSchema: z.ZodType<
2656
+ ToolChoice2$Outbound,
3881
2657
  z.ZodTypeDef,
3882
- CreateAgentRequestToolChoice2
2658
+ ToolChoice2
3883
2659
  > = z.object({
3884
- type: CreateAgentRequestToolChoiceType$outboundSchema.optional(),
3885
- function: z.lazy(() => CreateAgentRequestToolChoiceFunction$outboundSchema),
2660
+ type: ToolChoiceType$outboundSchema.optional(),
2661
+ function: z.lazy(() => ToolChoiceFunction$outboundSchema),
3886
2662
  });
3887
2663
 
3888
- export function createAgentRequestToolChoice2ToJSON(
3889
- createAgentRequestToolChoice2: CreateAgentRequestToolChoice2,
3890
- ): string {
3891
- return JSON.stringify(
3892
- CreateAgentRequestToolChoice2$outboundSchema.parse(
3893
- createAgentRequestToolChoice2,
3894
- ),
3895
- );
2664
+ export function toolChoice2ToJSON(toolChoice2: ToolChoice2): string {
2665
+ return JSON.stringify(ToolChoice2$outboundSchema.parse(toolChoice2));
3896
2666
  }
3897
2667
 
3898
2668
  /** @internal */
3899
- export const CreateAgentRequestToolChoice1$outboundSchema: z.ZodNativeEnum<
3900
- typeof CreateAgentRequestToolChoice1
3901
- > = z.nativeEnum(CreateAgentRequestToolChoice1);
2669
+ export const ToolChoice1$outboundSchema: z.ZodNativeEnum<typeof ToolChoice1> = z
2670
+ .nativeEnum(ToolChoice1);
3902
2671
 
3903
2672
  /** @internal */
3904
- export type FallbackModelConfigurationToolChoice$Outbound =
3905
- | CreateAgentRequestToolChoice2$Outbound
3906
- | string;
2673
+ export type ToolChoice$Outbound = ToolChoice2$Outbound | string;
3907
2674
 
3908
2675
  /** @internal */
3909
- export const FallbackModelConfigurationToolChoice$outboundSchema: z.ZodType<
3910
- FallbackModelConfigurationToolChoice$Outbound,
2676
+ export const ToolChoice$outboundSchema: z.ZodType<
2677
+ ToolChoice$Outbound,
3911
2678
  z.ZodTypeDef,
3912
- FallbackModelConfigurationToolChoice
2679
+ ToolChoice
3913
2680
  > = z.union([
3914
- z.lazy(() => CreateAgentRequestToolChoice2$outboundSchema),
3915
- CreateAgentRequestToolChoice1$outboundSchema,
2681
+ z.lazy(() => ToolChoice2$outboundSchema),
2682
+ ToolChoice1$outboundSchema,
3916
2683
  ]);
3917
2684
 
3918
- export function fallbackModelConfigurationToolChoiceToJSON(
3919
- fallbackModelConfigurationToolChoice: FallbackModelConfigurationToolChoice,
3920
- ): string {
3921
- return JSON.stringify(
3922
- FallbackModelConfigurationToolChoice$outboundSchema.parse(
3923
- fallbackModelConfigurationToolChoice,
3924
- ),
3925
- );
2685
+ export function toolChoiceToJSON(toolChoice: ToolChoice): string {
2686
+ return JSON.stringify(ToolChoice$outboundSchema.parse(toolChoice));
3926
2687
  }
3927
2688
 
3928
2689
  /** @internal */
3929
- export const FallbackModelConfigurationModalities$outboundSchema:
3930
- z.ZodNativeEnum<typeof FallbackModelConfigurationModalities> = z.nativeEnum(
3931
- FallbackModelConfigurationModalities,
3932
- );
2690
+ export const Modalities$outboundSchema: z.ZodNativeEnum<typeof Modalities> = z
2691
+ .nativeEnum(Modalities);
3933
2692
 
3934
2693
  /** @internal */
3935
- export const CreateAgentRequestId1$outboundSchema: z.ZodNativeEnum<
3936
- typeof CreateAgentRequestId1
3937
- > = z.nativeEnum(CreateAgentRequestId1);
2694
+ export const Id1$outboundSchema: z.ZodNativeEnum<typeof Id1> = z.nativeEnum(
2695
+ Id1,
2696
+ );
3938
2697
 
3939
2698
  /** @internal */
3940
- export type FallbackModelConfigurationId$Outbound = string | string;
2699
+ export type Id$Outbound = string | string;
3941
2700
 
3942
2701
  /** @internal */
3943
- export const FallbackModelConfigurationId$outboundSchema: z.ZodType<
3944
- FallbackModelConfigurationId$Outbound,
3945
- z.ZodTypeDef,
3946
- FallbackModelConfigurationId
3947
- > = z.union([CreateAgentRequestId1$outboundSchema, z.string()]);
2702
+ export const Id$outboundSchema: z.ZodType<Id$Outbound, z.ZodTypeDef, Id> = z
2703
+ .union([Id1$outboundSchema, z.string()]);
3948
2704
 
3949
- export function fallbackModelConfigurationIdToJSON(
3950
- fallbackModelConfigurationId: FallbackModelConfigurationId,
3951
- ): string {
3952
- return JSON.stringify(
3953
- FallbackModelConfigurationId$outboundSchema.parse(
3954
- fallbackModelConfigurationId,
3955
- ),
3956
- );
2705
+ export function idToJSON(id: Id): string {
2706
+ return JSON.stringify(Id$outboundSchema.parse(id));
3957
2707
  }
3958
2708
 
3959
2709
  /** @internal */
3960
- export const FallbackModelConfigurationExecuteOn$outboundSchema:
3961
- z.ZodNativeEnum<typeof FallbackModelConfigurationExecuteOn> = z.nativeEnum(
3962
- FallbackModelConfigurationExecuteOn,
3963
- );
2710
+ export const ExecuteOn$outboundSchema: z.ZodNativeEnum<typeof ExecuteOn> = z
2711
+ .nativeEnum(ExecuteOn);
3964
2712
 
3965
2713
  /** @internal */
3966
- export type FallbackModelConfigurationGuardrails$Outbound = {
2714
+ export type Guardrails$Outbound = {
3967
2715
  id: string | string;
3968
2716
  execute_on: string;
3969
2717
  };
3970
2718
 
3971
2719
  /** @internal */
3972
- export const FallbackModelConfigurationGuardrails$outboundSchema: z.ZodType<
3973
- FallbackModelConfigurationGuardrails$Outbound,
2720
+ export const Guardrails$outboundSchema: z.ZodType<
2721
+ Guardrails$Outbound,
3974
2722
  z.ZodTypeDef,
3975
- FallbackModelConfigurationGuardrails
3976
- > = z.object({
3977
- id: z.union([CreateAgentRequestId1$outboundSchema, z.string()]),
3978
- executeOn: FallbackModelConfigurationExecuteOn$outboundSchema,
2723
+ Guardrails
2724
+ > = z.object({
2725
+ id: z.union([Id1$outboundSchema, z.string()]),
2726
+ executeOn: ExecuteOn$outboundSchema,
3979
2727
  }).transform((v) => {
3980
2728
  return remap$(v, {
3981
2729
  executeOn: "execute_on",
3982
2730
  });
3983
2731
  });
3984
2732
 
3985
- export function fallbackModelConfigurationGuardrailsToJSON(
3986
- fallbackModelConfigurationGuardrails: FallbackModelConfigurationGuardrails,
3987
- ): string {
3988
- return JSON.stringify(
3989
- FallbackModelConfigurationGuardrails$outboundSchema.parse(
3990
- fallbackModelConfigurationGuardrails,
3991
- ),
3992
- );
2733
+ export function guardrailsToJSON(guardrails: Guardrails): string {
2734
+ return JSON.stringify(Guardrails$outboundSchema.parse(guardrails));
3993
2735
  }
3994
2736
 
3995
2737
  /** @internal */
3996
- export type FallbackModelConfigurationPlugins$Outbound =
2738
+ export type Plugins$Outbound =
3997
2739
  | components.PIIRedactionPluginEn$Outbound
3998
2740
  | components.PIIRedactionPluginNl$Outbound
3999
2741
  | components.PIIRedactionPluginAuto$Outbound;
4000
2742
 
4001
2743
  /** @internal */
4002
- export const FallbackModelConfigurationPlugins$outboundSchema: z.ZodType<
4003
- FallbackModelConfigurationPlugins$Outbound,
2744
+ export const Plugins$outboundSchema: z.ZodType<
2745
+ Plugins$Outbound,
4004
2746
  z.ZodTypeDef,
4005
- FallbackModelConfigurationPlugins
2747
+ Plugins
4006
2748
  > = z.union([
4007
2749
  components.PIIRedactionPluginEn$outboundSchema,
4008
2750
  components.PIIRedactionPluginNl$outboundSchema,
4009
2751
  components.PIIRedactionPluginAuto$outboundSchema,
4010
2752
  ]);
4011
2753
 
4012
- export function fallbackModelConfigurationPluginsToJSON(
4013
- fallbackModelConfigurationPlugins: FallbackModelConfigurationPlugins,
4014
- ): string {
4015
- return JSON.stringify(
4016
- FallbackModelConfigurationPlugins$outboundSchema.parse(
4017
- fallbackModelConfigurationPlugins,
4018
- ),
4019
- );
2754
+ export function pluginsToJSON(plugins: Plugins): string {
2755
+ return JSON.stringify(Plugins$outboundSchema.parse(plugins));
4020
2756
  }
4021
2757
 
4022
2758
  /** @internal */
4023
- export type FallbackModelConfigurationFallbacks$Outbound = {
2759
+ export type ModelConfigurationFallbacks$Outbound = {
4024
2760
  model: string;
4025
2761
  };
4026
2762
 
4027
2763
  /** @internal */
4028
- export const FallbackModelConfigurationFallbacks$outboundSchema: z.ZodType<
4029
- FallbackModelConfigurationFallbacks$Outbound,
2764
+ export const ModelConfigurationFallbacks$outboundSchema: z.ZodType<
2765
+ ModelConfigurationFallbacks$Outbound,
4030
2766
  z.ZodTypeDef,
4031
- FallbackModelConfigurationFallbacks
2767
+ ModelConfigurationFallbacks
4032
2768
  > = z.object({
4033
2769
  model: z.string(),
4034
2770
  });
4035
2771
 
4036
- export function fallbackModelConfigurationFallbacksToJSON(
4037
- fallbackModelConfigurationFallbacks: FallbackModelConfigurationFallbacks,
2772
+ export function modelConfigurationFallbacksToJSON(
2773
+ modelConfigurationFallbacks: ModelConfigurationFallbacks,
4038
2774
  ): string {
4039
2775
  return JSON.stringify(
4040
- FallbackModelConfigurationFallbacks$outboundSchema.parse(
4041
- fallbackModelConfigurationFallbacks,
2776
+ ModelConfigurationFallbacks$outboundSchema.parse(
2777
+ modelConfigurationFallbacks,
4042
2778
  ),
4043
2779
  );
4044
2780
  }
4045
2781
 
4046
2782
  /** @internal */
4047
- export const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<
4048
- typeof FallbackModelConfigurationType
4049
- > = z.nativeEnum(FallbackModelConfigurationType);
2783
+ export const ModelConfigurationType$outboundSchema: z.ZodNativeEnum<
2784
+ typeof ModelConfigurationType
2785
+ > = z.nativeEnum(ModelConfigurationType);
4050
2786
 
4051
2787
  /** @internal */
4052
- export type FallbackModelConfigurationCache$Outbound = {
2788
+ export type Cache$Outbound = {
4053
2789
  ttl: number;
4054
2790
  type: string;
4055
2791
  };
4056
2792
 
4057
2793
  /** @internal */
4058
- export const FallbackModelConfigurationCache$outboundSchema: z.ZodType<
4059
- FallbackModelConfigurationCache$Outbound,
2794
+ export const Cache$outboundSchema: z.ZodType<
2795
+ Cache$Outbound,
4060
2796
  z.ZodTypeDef,
4061
- FallbackModelConfigurationCache
2797
+ Cache
4062
2798
  > = z.object({
4063
2799
  ttl: z.number().default(1800),
4064
- type: FallbackModelConfigurationType$outboundSchema,
2800
+ type: ModelConfigurationType$outboundSchema,
4065
2801
  });
4066
2802
 
4067
- export function fallbackModelConfigurationCacheToJSON(
4068
- fallbackModelConfigurationCache: FallbackModelConfigurationCache,
4069
- ): string {
4070
- return JSON.stringify(
4071
- FallbackModelConfigurationCache$outboundSchema.parse(
4072
- fallbackModelConfigurationCache,
4073
- ),
4074
- );
2803
+ export function cacheToJSON(cache: Cache): string {
2804
+ return JSON.stringify(Cache$outboundSchema.parse(cache));
4075
2805
  }
4076
2806
 
4077
2807
  /** @internal */
4078
- export const CreateAgentRequestLoadBalancerType$outboundSchema: z.ZodNativeEnum<
4079
- typeof CreateAgentRequestLoadBalancerType
4080
- > = z.nativeEnum(CreateAgentRequestLoadBalancerType);
2808
+ export const LoadBalancerType$outboundSchema: z.ZodNativeEnum<
2809
+ typeof LoadBalancerType
2810
+ > = z.nativeEnum(LoadBalancerType);
4081
2811
 
4082
2812
  /** @internal */
4083
- export type LoadBalancerModels$Outbound = {
2813
+ export type Models$Outbound = {
4084
2814
  model: string;
4085
2815
  weight: number;
4086
2816
  };
4087
2817
 
4088
2818
  /** @internal */
4089
- export const LoadBalancerModels$outboundSchema: z.ZodType<
4090
- LoadBalancerModels$Outbound,
2819
+ export const Models$outboundSchema: z.ZodType<
2820
+ Models$Outbound,
4091
2821
  z.ZodTypeDef,
4092
- LoadBalancerModels
2822
+ Models
4093
2823
  > = z.object({
4094
2824
  model: z.string(),
4095
2825
  weight: z.number().default(0.5),
4096
2826
  });
4097
2827
 
4098
- export function loadBalancerModelsToJSON(
4099
- loadBalancerModels: LoadBalancerModels,
4100
- ): string {
4101
- return JSON.stringify(
4102
- LoadBalancerModels$outboundSchema.parse(loadBalancerModels),
4103
- );
2828
+ export function modelsToJSON(models: Models): string {
2829
+ return JSON.stringify(Models$outboundSchema.parse(models));
4104
2830
  }
4105
2831
 
4106
2832
  /** @internal */
4107
- export type CreateAgentRequestLoadBalancer1$Outbound = {
2833
+ export type LoadBalancer1$Outbound = {
4108
2834
  type: string;
4109
- models: Array<LoadBalancerModels$Outbound>;
2835
+ models: Array<Models$Outbound>;
4110
2836
  };
4111
2837
 
4112
2838
  /** @internal */
4113
- export const CreateAgentRequestLoadBalancer1$outboundSchema: z.ZodType<
4114
- CreateAgentRequestLoadBalancer1$Outbound,
2839
+ export const LoadBalancer1$outboundSchema: z.ZodType<
2840
+ LoadBalancer1$Outbound,
4115
2841
  z.ZodTypeDef,
4116
- CreateAgentRequestLoadBalancer1
2842
+ LoadBalancer1
4117
2843
  > = z.object({
4118
- type: CreateAgentRequestLoadBalancerType$outboundSchema,
4119
- models: z.array(z.lazy(() => LoadBalancerModels$outboundSchema)),
2844
+ type: LoadBalancerType$outboundSchema,
2845
+ models: z.array(z.lazy(() => Models$outboundSchema)),
4120
2846
  });
4121
2847
 
4122
- export function createAgentRequestLoadBalancer1ToJSON(
4123
- createAgentRequestLoadBalancer1: CreateAgentRequestLoadBalancer1,
4124
- ): string {
4125
- return JSON.stringify(
4126
- CreateAgentRequestLoadBalancer1$outboundSchema.parse(
4127
- createAgentRequestLoadBalancer1,
4128
- ),
4129
- );
2848
+ export function loadBalancer1ToJSON(loadBalancer1: LoadBalancer1): string {
2849
+ return JSON.stringify(LoadBalancer1$outboundSchema.parse(loadBalancer1));
4130
2850
  }
4131
2851
 
4132
2852
  /** @internal */
4133
- export type FallbackModelConfigurationLoadBalancer$Outbound =
4134
- CreateAgentRequestLoadBalancer1$Outbound;
2853
+ export type LoadBalancer$Outbound = LoadBalancer1$Outbound;
4135
2854
 
4136
2855
  /** @internal */
4137
- export const FallbackModelConfigurationLoadBalancer$outboundSchema: z.ZodType<
4138
- FallbackModelConfigurationLoadBalancer$Outbound,
2856
+ export const LoadBalancer$outboundSchema: z.ZodType<
2857
+ LoadBalancer$Outbound,
4139
2858
  z.ZodTypeDef,
4140
- FallbackModelConfigurationLoadBalancer
4141
- > = z.lazy(() => CreateAgentRequestLoadBalancer1$outboundSchema);
2859
+ LoadBalancer
2860
+ > = z.lazy(() => LoadBalancer1$outboundSchema);
4142
2861
 
4143
- export function fallbackModelConfigurationLoadBalancerToJSON(
4144
- fallbackModelConfigurationLoadBalancer:
4145
- FallbackModelConfigurationLoadBalancer,
4146
- ): string {
4147
- return JSON.stringify(
4148
- FallbackModelConfigurationLoadBalancer$outboundSchema.parse(
4149
- fallbackModelConfigurationLoadBalancer,
4150
- ),
4151
- );
2862
+ export function loadBalancerToJSON(loadBalancer: LoadBalancer): string {
2863
+ return JSON.stringify(LoadBalancer$outboundSchema.parse(loadBalancer));
4152
2864
  }
4153
2865
 
4154
2866
  /** @internal */
4155
- export type FallbackModelConfigurationTimeout$Outbound = {
2867
+ export type Timeout$Outbound = {
4156
2868
  call_timeout: number;
4157
2869
  };
4158
2870
 
4159
2871
  /** @internal */
4160
- export const FallbackModelConfigurationTimeout$outboundSchema: z.ZodType<
4161
- FallbackModelConfigurationTimeout$Outbound,
2872
+ export const Timeout$outboundSchema: z.ZodType<
2873
+ Timeout$Outbound,
4162
2874
  z.ZodTypeDef,
4163
- FallbackModelConfigurationTimeout
2875
+ Timeout
4164
2876
  > = z.object({
4165
2877
  callTimeout: z.number(),
4166
2878
  }).transform((v) => {
@@ -4169,64 +2881,57 @@ export const FallbackModelConfigurationTimeout$outboundSchema: z.ZodType<
4169
2881
  });
4170
2882
  });
4171
2883
 
4172
- export function fallbackModelConfigurationTimeoutToJSON(
4173
- fallbackModelConfigurationTimeout: FallbackModelConfigurationTimeout,
4174
- ): string {
4175
- return JSON.stringify(
4176
- FallbackModelConfigurationTimeout$outboundSchema.parse(
4177
- fallbackModelConfigurationTimeout,
4178
- ),
4179
- );
2884
+ export function timeoutToJSON(timeout: Timeout): string {
2885
+ return JSON.stringify(Timeout$outboundSchema.parse(timeout));
4180
2886
  }
4181
2887
 
4182
2888
  /** @internal */
4183
- export const CreateAgentRequestFallbackModelConfigurationType$outboundSchema:
4184
- z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType> = z
4185
- .nativeEnum(CreateAgentRequestFallbackModelConfigurationType);
2889
+ export const CreateAgentRequestModelConfigurationType$outboundSchema:
2890
+ z.ZodNativeEnum<typeof CreateAgentRequestModelConfigurationType> = z
2891
+ .nativeEnum(CreateAgentRequestModelConfigurationType);
4186
2892
 
4187
2893
  /** @internal */
4188
- export const FallbackModelConfigurationTtl$outboundSchema: z.ZodNativeEnum<
4189
- typeof FallbackModelConfigurationTtl
4190
- > = z.nativeEnum(FallbackModelConfigurationTtl);
2894
+ export const ModelConfigurationTtl$outboundSchema: z.ZodNativeEnum<
2895
+ typeof ModelConfigurationTtl
2896
+ > = z.nativeEnum(ModelConfigurationTtl);
4191
2897
 
4192
2898
  /** @internal */
4193
- export type FallbackModelConfigurationCacheControl$Outbound = {
2899
+ export type ModelConfigurationCacheControl$Outbound = {
4194
2900
  type: string;
4195
2901
  ttl: string;
4196
2902
  };
4197
2903
 
4198
2904
  /** @internal */
4199
- export const FallbackModelConfigurationCacheControl$outboundSchema: z.ZodType<
4200
- FallbackModelConfigurationCacheControl$Outbound,
2905
+ export const ModelConfigurationCacheControl$outboundSchema: z.ZodType<
2906
+ ModelConfigurationCacheControl$Outbound,
4201
2907
  z.ZodTypeDef,
4202
- FallbackModelConfigurationCacheControl
2908
+ ModelConfigurationCacheControl
4203
2909
  > = z.object({
4204
- type: CreateAgentRequestFallbackModelConfigurationType$outboundSchema,
4205
- ttl: FallbackModelConfigurationTtl$outboundSchema.default("5m"),
2910
+ type: CreateAgentRequestModelConfigurationType$outboundSchema,
2911
+ ttl: ModelConfigurationTtl$outboundSchema.default("5m"),
4206
2912
  });
4207
2913
 
4208
- export function fallbackModelConfigurationCacheControlToJSON(
4209
- fallbackModelConfigurationCacheControl:
4210
- FallbackModelConfigurationCacheControl,
2914
+ export function modelConfigurationCacheControlToJSON(
2915
+ modelConfigurationCacheControl: ModelConfigurationCacheControl,
4211
2916
  ): string {
4212
2917
  return JSON.stringify(
4213
- FallbackModelConfigurationCacheControl$outboundSchema.parse(
4214
- fallbackModelConfigurationCacheControl,
2918
+ ModelConfigurationCacheControl$outboundSchema.parse(
2919
+ modelConfigurationCacheControl,
4215
2920
  ),
4216
2921
  );
4217
2922
  }
4218
2923
 
4219
2924
  /** @internal */
4220
- export type FallbackModelConfigurationParameters$Outbound = {
2925
+ export type ParametersT$Outbound = {
4221
2926
  name?: string | undefined;
4222
2927
  frequency_penalty?: number | null | undefined;
4223
2928
  max_tokens?: number | null | undefined;
4224
2929
  max_completion_tokens?: number | null | undefined;
4225
2930
  presence_penalty?: number | null | undefined;
4226
2931
  response_format?:
4227
- | ResponseFormatText$Outbound
4228
- | ResponseFormatJSONObject$Outbound
4229
- | CreateAgentRequestResponseFormatJSONSchema$Outbound
2932
+ | Text$Outbound
2933
+ | JSONObject$Outbound
2934
+ | JSONSchema$Outbound
4230
2935
  | undefined;
4231
2936
  reasoning_effort?: string | undefined;
4232
2937
  verbosity?: string | undefined;
@@ -4240,10 +2945,10 @@ export type FallbackModelConfigurationParameters$Outbound = {
4240
2945
  temperature?: number | null | undefined;
4241
2946
  top_p?: number | null | undefined;
4242
2947
  top_k?: number | null | undefined;
4243
- tool_choice?: CreateAgentRequestToolChoice2$Outbound | string | undefined;
2948
+ tool_choice?: ToolChoice2$Outbound | string | undefined;
4244
2949
  parallel_tool_calls?: boolean | undefined;
4245
2950
  modalities?: Array<string> | null | undefined;
4246
- guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
2951
+ guardrails?: Array<Guardrails$Outbound> | undefined;
4247
2952
  plugins?:
4248
2953
  | Array<
4249
2954
  | components.PIIRedactionPluginEn$Outbound
@@ -4251,19 +2956,19 @@ export type FallbackModelConfigurationParameters$Outbound = {
4251
2956
  | components.PIIRedactionPluginAuto$Outbound
4252
2957
  >
4253
2958
  | undefined;
4254
- fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
4255
- cache?: FallbackModelConfigurationCache$Outbound | undefined;
4256
- load_balancer?: CreateAgentRequestLoadBalancer1$Outbound | undefined;
4257
- timeout?: FallbackModelConfigurationTimeout$Outbound | undefined;
4258
- cache_control?: FallbackModelConfigurationCacheControl$Outbound | undefined;
2959
+ fallbacks?: Array<ModelConfigurationFallbacks$Outbound> | undefined;
2960
+ cache?: Cache$Outbound | undefined;
2961
+ load_balancer?: LoadBalancer1$Outbound | undefined;
2962
+ timeout?: Timeout$Outbound | undefined;
2963
+ cache_control?: ModelConfigurationCacheControl$Outbound | undefined;
4259
2964
  prompt_cache_key?: string | undefined;
4260
2965
  };
4261
2966
 
4262
2967
  /** @internal */
4263
- export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
4264
- FallbackModelConfigurationParameters$Outbound,
2968
+ export const ParametersT$outboundSchema: z.ZodType<
2969
+ ParametersT$Outbound,
4265
2970
  z.ZodTypeDef,
4266
- FallbackModelConfigurationParameters
2971
+ ParametersT
4267
2972
  > = z.object({
4268
2973
  name: z.string().optional(),
4269
2974
  frequencyPenalty: z.nullable(z.number()).optional(),
@@ -4271,12 +2976,11 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
4271
2976
  maxCompletionTokens: z.nullable(z.number().int()).optional(),
4272
2977
  presencePenalty: z.nullable(z.number()).optional(),
4273
2978
  responseFormat: z.union([
4274
- z.lazy(() => ResponseFormatText$outboundSchema),
4275
- z.lazy(() => ResponseFormatJSONObject$outboundSchema),
4276
- z.lazy(() => CreateAgentRequestResponseFormatJSONSchema$outboundSchema),
2979
+ z.lazy(() => Text$outboundSchema),
2980
+ z.lazy(() => JSONObject$outboundSchema),
2981
+ z.lazy(() => JSONSchema$outboundSchema),
4277
2982
  ]).optional(),
4278
- reasoningEffort: FallbackModelConfigurationReasoningEffort$outboundSchema
4279
- .optional(),
2983
+ reasoningEffort: ReasoningEffort$outboundSchema.optional(),
4280
2984
  verbosity: z.string().optional(),
4281
2985
  seed: z.nullable(z.number()).optional(),
4282
2986
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
@@ -4289,16 +2993,12 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
4289
2993
  topP: z.nullable(z.number()).optional(),
4290
2994
  topK: z.nullable(z.number()).optional(),
4291
2995
  toolChoice: z.union([
4292
- z.lazy(() => CreateAgentRequestToolChoice2$outboundSchema),
4293
- CreateAgentRequestToolChoice1$outboundSchema,
2996
+ z.lazy(() => ToolChoice2$outboundSchema),
2997
+ ToolChoice1$outboundSchema,
4294
2998
  ]).optional(),
4295
2999
  parallelToolCalls: z.boolean().optional(),
4296
- modalities: z.nullable(
4297
- z.array(FallbackModelConfigurationModalities$outboundSchema),
4298
- ).optional(),
4299
- guardrails: z.array(
4300
- z.lazy(() => FallbackModelConfigurationGuardrails$outboundSchema),
4301
- ).optional(),
3000
+ modalities: z.nullable(z.array(Modalities$outboundSchema)).optional(),
3001
+ guardrails: z.array(z.lazy(() => Guardrails$outboundSchema)).optional(),
4302
3002
  plugins: z.array(
4303
3003
  z.union([
4304
3004
  components.PIIRedactionPluginEn$outboundSchema,
@@ -4306,18 +3006,13 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
4306
3006
  components.PIIRedactionPluginAuto$outboundSchema,
4307
3007
  ]),
4308
3008
  ).optional(),
4309
- fallbacks: z.array(
4310
- z.lazy(() => FallbackModelConfigurationFallbacks$outboundSchema),
4311
- ).optional(),
4312
- cache: z.lazy(() => FallbackModelConfigurationCache$outboundSchema)
4313
- .optional(),
4314
- loadBalancer: z.lazy(() => CreateAgentRequestLoadBalancer1$outboundSchema)
3009
+ fallbacks: z.array(z.lazy(() => ModelConfigurationFallbacks$outboundSchema))
4315
3010
  .optional(),
4316
- timeout: z.lazy(() => FallbackModelConfigurationTimeout$outboundSchema)
3011
+ cache: z.lazy(() => Cache$outboundSchema).optional(),
3012
+ loadBalancer: z.lazy(() => LoadBalancer1$outboundSchema).optional(),
3013
+ timeout: z.lazy(() => Timeout$outboundSchema).optional(),
3014
+ cacheControl: z.lazy(() => ModelConfigurationCacheControl$outboundSchema)
4317
3015
  .optional(),
4318
- cacheControl: z.lazy(() =>
4319
- FallbackModelConfigurationCacheControl$outboundSchema
4320
- ).optional(),
4321
3016
  promptCacheKey: z.string().optional(),
4322
3017
  }).transform((v) => {
4323
3018
  return remap$(v, {
@@ -4337,27 +3032,21 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
4337
3032
  });
4338
3033
  });
4339
3034
 
4340
- export function fallbackModelConfigurationParametersToJSON(
4341
- fallbackModelConfigurationParameters: FallbackModelConfigurationParameters,
4342
- ): string {
4343
- return JSON.stringify(
4344
- FallbackModelConfigurationParameters$outboundSchema.parse(
4345
- fallbackModelConfigurationParameters,
4346
- ),
4347
- );
3035
+ export function parametersToJSON(parametersT: ParametersT): string {
3036
+ return JSON.stringify(ParametersT$outboundSchema.parse(parametersT));
4348
3037
  }
4349
3038
 
4350
3039
  /** @internal */
4351
- export type FallbackModelConfigurationRetry$Outbound = {
3040
+ export type ModelConfigurationRetry$Outbound = {
4352
3041
  count: number;
4353
3042
  on_codes?: Array<number> | undefined;
4354
3043
  };
4355
3044
 
4356
3045
  /** @internal */
4357
- export const FallbackModelConfigurationRetry$outboundSchema: z.ZodType<
4358
- FallbackModelConfigurationRetry$Outbound,
3046
+ export const ModelConfigurationRetry$outboundSchema: z.ZodType<
3047
+ ModelConfigurationRetry$Outbound,
4359
3048
  z.ZodTypeDef,
4360
- FallbackModelConfigurationRetry
3049
+ ModelConfigurationRetry
4361
3050
  > = z.object({
4362
3051
  count: z.number().default(3),
4363
3052
  onCodes: z.array(z.number()).optional(),
@@ -4367,803 +3056,843 @@ export const FallbackModelConfigurationRetry$outboundSchema: z.ZodType<
4367
3056
  });
4368
3057
  });
4369
3058
 
4370
- export function fallbackModelConfigurationRetryToJSON(
4371
- fallbackModelConfigurationRetry: FallbackModelConfigurationRetry,
3059
+ export function modelConfigurationRetryToJSON(
3060
+ modelConfigurationRetry: ModelConfigurationRetry,
4372
3061
  ): string {
4373
3062
  return JSON.stringify(
4374
- FallbackModelConfigurationRetry$outboundSchema.parse(
4375
- fallbackModelConfigurationRetry,
4376
- ),
3063
+ ModelConfigurationRetry$outboundSchema.parse(modelConfigurationRetry),
4377
3064
  );
4378
3065
  }
4379
3066
 
4380
3067
  /** @internal */
4381
- export type FallbackModelConfiguration2$Outbound = {
3068
+ export type ModelConfiguration2$Outbound = {
4382
3069
  id: string;
4383
- parameters?: FallbackModelConfigurationParameters$Outbound | undefined;
4384
- retry?: FallbackModelConfigurationRetry$Outbound | undefined;
3070
+ parameters?: ParametersT$Outbound | undefined;
3071
+ retry?: ModelConfigurationRetry$Outbound | undefined;
4385
3072
  };
4386
3073
 
4387
3074
  /** @internal */
4388
- export const FallbackModelConfiguration2$outboundSchema: z.ZodType<
4389
- FallbackModelConfiguration2$Outbound,
3075
+ export const ModelConfiguration2$outboundSchema: z.ZodType<
3076
+ ModelConfiguration2$Outbound,
4390
3077
  z.ZodTypeDef,
4391
- FallbackModelConfiguration2
3078
+ ModelConfiguration2
4392
3079
  > = z.object({
4393
3080
  id: z.string(),
4394
- parameters: z.lazy(() => FallbackModelConfigurationParameters$outboundSchema)
4395
- .optional(),
4396
- retry: z.lazy(() => FallbackModelConfigurationRetry$outboundSchema)
4397
- .optional(),
3081
+ parameters: z.lazy(() => ParametersT$outboundSchema).optional(),
3082
+ retry: z.lazy(() => ModelConfigurationRetry$outboundSchema).optional(),
4398
3083
  });
4399
3084
 
4400
- export function fallbackModelConfiguration2ToJSON(
4401
- fallbackModelConfiguration2: FallbackModelConfiguration2,
3085
+ export function modelConfiguration2ToJSON(
3086
+ modelConfiguration2: ModelConfiguration2,
4402
3087
  ): string {
4403
3088
  return JSON.stringify(
4404
- FallbackModelConfiguration2$outboundSchema.parse(
4405
- fallbackModelConfiguration2,
4406
- ),
3089
+ ModelConfiguration2$outboundSchema.parse(modelConfiguration2),
4407
3090
  );
4408
3091
  }
4409
3092
 
4410
3093
  /** @internal */
4411
- export type FallbackModelConfiguration$Outbound =
4412
- | FallbackModelConfiguration2$Outbound
4413
- | string;
3094
+ export type ModelConfiguration$Outbound = ModelConfiguration2$Outbound | string;
4414
3095
 
4415
3096
  /** @internal */
4416
- export const FallbackModelConfiguration$outboundSchema: z.ZodType<
4417
- FallbackModelConfiguration$Outbound,
3097
+ export const ModelConfiguration$outboundSchema: z.ZodType<
3098
+ ModelConfiguration$Outbound,
4418
3099
  z.ZodTypeDef,
4419
- FallbackModelConfiguration
4420
- > = z.union([
4421
- z.lazy(() => FallbackModelConfiguration2$outboundSchema),
4422
- z.string(),
4423
- ]);
3100
+ ModelConfiguration
3101
+ > = z.union([z.lazy(() => ModelConfiguration2$outboundSchema), z.string()]);
4424
3102
 
4425
- export function fallbackModelConfigurationToJSON(
4426
- fallbackModelConfiguration: FallbackModelConfiguration,
3103
+ export function modelConfigurationToJSON(
3104
+ modelConfiguration: ModelConfiguration,
4427
3105
  ): string {
4428
3106
  return JSON.stringify(
4429
- FallbackModelConfiguration$outboundSchema.parse(fallbackModelConfiguration),
3107
+ ModelConfiguration$outboundSchema.parse(modelConfiguration),
4430
3108
  );
4431
3109
  }
4432
3110
 
4433
3111
  /** @internal */
4434
- export const ToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
4435
- typeof ToolApprovalRequired
4436
- > = z.nativeEnum(ToolApprovalRequired);
3112
+ export type CreateAgentRequestResponseFormatAgentsJsonSchema$Outbound = {
3113
+ description?: string | undefined;
3114
+ name: string;
3115
+ schema?: any | undefined;
3116
+ strict: boolean;
3117
+ };
4437
3118
 
4438
3119
  /** @internal */
4439
- export type ProviderBuiltInTool$Outbound = {
4440
- type: string;
4441
- requires_approval?: boolean | undefined;
4442
- configuration?: { [k: string]: any } | undefined;
3120
+ export const CreateAgentRequestResponseFormatAgentsJsonSchema$outboundSchema:
3121
+ z.ZodType<
3122
+ CreateAgentRequestResponseFormatAgentsJsonSchema$Outbound,
3123
+ z.ZodTypeDef,
3124
+ CreateAgentRequestResponseFormatAgentsJsonSchema
3125
+ > = z.object({
3126
+ description: z.string().optional(),
3127
+ name: z.string(),
3128
+ schema: z.any().optional(),
3129
+ strict: z.boolean().default(false),
3130
+ });
3131
+
3132
+ export function createAgentRequestResponseFormatAgentsJsonSchemaToJSON(
3133
+ createAgentRequestResponseFormatAgentsJsonSchema:
3134
+ CreateAgentRequestResponseFormatAgentsJsonSchema,
3135
+ ): string {
3136
+ return JSON.stringify(
3137
+ CreateAgentRequestResponseFormatAgentsJsonSchema$outboundSchema.parse(
3138
+ createAgentRequestResponseFormatAgentsJsonSchema,
3139
+ ),
3140
+ );
3141
+ }
3142
+
3143
+ /** @internal */
3144
+ export type CreateAgentRequestResponseFormatJSONSchema$Outbound = {
3145
+ type: "json_schema";
3146
+ json_schema: CreateAgentRequestResponseFormatAgentsJsonSchema$Outbound;
4443
3147
  };
4444
3148
 
4445
3149
  /** @internal */
4446
- export const ProviderBuiltInTool$outboundSchema: z.ZodType<
4447
- ProviderBuiltInTool$Outbound,
4448
- z.ZodTypeDef,
4449
- ProviderBuiltInTool
4450
- > = z.object({
4451
- type: z.string(),
4452
- requiresApproval: z.boolean().optional(),
4453
- configuration: z.record(z.any()).optional(),
4454
- }).transform((v) => {
4455
- return remap$(v, {
4456
- requiresApproval: "requires_approval",
3150
+ export const CreateAgentRequestResponseFormatJSONSchema$outboundSchema:
3151
+ z.ZodType<
3152
+ CreateAgentRequestResponseFormatJSONSchema$Outbound,
3153
+ z.ZodTypeDef,
3154
+ CreateAgentRequestResponseFormatJSONSchema
3155
+ > = z.object({
3156
+ type: z.literal("json_schema"),
3157
+ jsonSchema: z.lazy(() =>
3158
+ CreateAgentRequestResponseFormatAgentsJsonSchema$outboundSchema
3159
+ ),
3160
+ }).transform((v) => {
3161
+ return remap$(v, {
3162
+ jsonSchema: "json_schema",
3163
+ });
4457
3164
  });
4458
- });
4459
3165
 
4460
- export function providerBuiltInToolToJSON(
4461
- providerBuiltInTool: ProviderBuiltInTool,
3166
+ export function createAgentRequestResponseFormatJSONSchemaToJSON(
3167
+ createAgentRequestResponseFormatJSONSchema:
3168
+ CreateAgentRequestResponseFormatJSONSchema,
4462
3169
  ): string {
4463
3170
  return JSON.stringify(
4464
- ProviderBuiltInTool$outboundSchema.parse(providerBuiltInTool),
3171
+ CreateAgentRequestResponseFormatJSONSchema$outboundSchema.parse(
3172
+ createAgentRequestResponseFormatJSONSchema,
3173
+ ),
4465
3174
  );
4466
3175
  }
4467
3176
 
4468
3177
  /** @internal */
4469
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type$outboundSchema:
4470
- z.ZodNativeEnum<
4471
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type
4472
- > = z.nativeEnum(
4473
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type,
3178
+ export type ResponseFormatJSONObject$Outbound = {
3179
+ type: "json_object";
3180
+ };
3181
+
3182
+ /** @internal */
3183
+ export const ResponseFormatJSONObject$outboundSchema: z.ZodType<
3184
+ ResponseFormatJSONObject$Outbound,
3185
+ z.ZodTypeDef,
3186
+ ResponseFormatJSONObject
3187
+ > = z.object({
3188
+ type: z.literal("json_object"),
3189
+ });
3190
+
3191
+ export function responseFormatJSONObjectToJSON(
3192
+ responseFormatJSONObject: ResponseFormatJSONObject,
3193
+ ): string {
3194
+ return JSON.stringify(
3195
+ ResponseFormatJSONObject$outboundSchema.parse(responseFormatJSONObject),
4474
3196
  );
3197
+ }
4475
3198
 
4476
3199
  /** @internal */
4477
- export type MCPTool$Outbound = {
4478
- type: string;
4479
- key?: string | undefined;
4480
- id?: string | undefined;
4481
- tool_id: string;
4482
- requires_approval: boolean;
3200
+ export type ResponseFormatText$Outbound = {
3201
+ type: "text";
4483
3202
  };
4484
3203
 
4485
3204
  /** @internal */
4486
- export const MCPTool$outboundSchema: z.ZodType<
4487
- MCPTool$Outbound,
3205
+ export const ResponseFormatText$outboundSchema: z.ZodType<
3206
+ ResponseFormatText$Outbound,
4488
3207
  z.ZodTypeDef,
4489
- MCPTool
3208
+ ResponseFormatText
4490
3209
  > = z.object({
4491
- type:
4492
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools17Type$outboundSchema
4493
- .default("mcp"),
4494
- key: z.string().optional(),
4495
- id: z.string().optional(),
4496
- toolId: z.string(),
4497
- requiresApproval: z.boolean().default(false),
4498
- }).transform((v) => {
4499
- return remap$(v, {
4500
- toolId: "tool_id",
4501
- requiresApproval: "requires_approval",
4502
- });
3210
+ type: z.literal("text"),
4503
3211
  });
4504
3212
 
4505
- export function mcpToolToJSON(mcpTool: MCPTool): string {
4506
- return JSON.stringify(MCPTool$outboundSchema.parse(mcpTool));
3213
+ export function responseFormatTextToJSON(
3214
+ responseFormatText: ResponseFormatText,
3215
+ ): string {
3216
+ return JSON.stringify(
3217
+ ResponseFormatText$outboundSchema.parse(responseFormatText),
3218
+ );
4507
3219
  }
4508
3220
 
4509
3221
  /** @internal */
4510
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type$outboundSchema:
4511
- z.ZodNativeEnum<
4512
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type
4513
- > = z.nativeEnum(
4514
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type,
3222
+ export type FallbackModelConfigurationResponseFormat$Outbound =
3223
+ | ResponseFormatText$Outbound
3224
+ | ResponseFormatJSONObject$Outbound
3225
+ | CreateAgentRequestResponseFormatJSONSchema$Outbound;
3226
+
3227
+ /** @internal */
3228
+ export const FallbackModelConfigurationResponseFormat$outboundSchema: z.ZodType<
3229
+ FallbackModelConfigurationResponseFormat$Outbound,
3230
+ z.ZodTypeDef,
3231
+ FallbackModelConfigurationResponseFormat
3232
+ > = z.union([
3233
+ z.lazy(() => ResponseFormatText$outboundSchema),
3234
+ z.lazy(() => ResponseFormatJSONObject$outboundSchema),
3235
+ z.lazy(() => CreateAgentRequestResponseFormatJSONSchema$outboundSchema),
3236
+ ]);
3237
+
3238
+ export function fallbackModelConfigurationResponseFormatToJSON(
3239
+ fallbackModelConfigurationResponseFormat:
3240
+ FallbackModelConfigurationResponseFormat,
3241
+ ): string {
3242
+ return JSON.stringify(
3243
+ FallbackModelConfigurationResponseFormat$outboundSchema.parse(
3244
+ fallbackModelConfigurationResponseFormat,
3245
+ ),
4515
3246
  );
3247
+ }
4516
3248
 
4517
3249
  /** @internal */
4518
- export type JSONSchemaTool$Outbound = {
4519
- type: string;
4520
- key?: string | undefined;
4521
- id?: string | undefined;
4522
- requires_approval: boolean;
4523
- };
3250
+ export const FallbackModelConfigurationReasoningEffort$outboundSchema:
3251
+ z.ZodNativeEnum<typeof FallbackModelConfigurationReasoningEffort> = z
3252
+ .nativeEnum(FallbackModelConfigurationReasoningEffort);
3253
+
3254
+ /** @internal */
3255
+ export type FallbackModelConfigurationStop$Outbound = string | Array<string>;
4524
3256
 
4525
3257
  /** @internal */
4526
- export const JSONSchemaTool$outboundSchema: z.ZodType<
4527
- JSONSchemaTool$Outbound,
3258
+ export const FallbackModelConfigurationStop$outboundSchema: z.ZodType<
3259
+ FallbackModelConfigurationStop$Outbound,
4528
3260
  z.ZodTypeDef,
4529
- JSONSchemaTool
4530
- > = z.object({
4531
- type:
4532
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools16Type$outboundSchema
4533
- .default("json_schema"),
4534
- key: z.string().optional(),
4535
- id: z.string().optional(),
4536
- requiresApproval: z.boolean().default(false),
4537
- }).transform((v) => {
4538
- return remap$(v, {
4539
- requiresApproval: "requires_approval",
4540
- });
4541
- });
3261
+ FallbackModelConfigurationStop
3262
+ > = z.union([z.string(), z.array(z.string())]);
3263
+
3264
+ export function fallbackModelConfigurationStopToJSON(
3265
+ fallbackModelConfigurationStop: FallbackModelConfigurationStop,
3266
+ ): string {
3267
+ return JSON.stringify(
3268
+ FallbackModelConfigurationStop$outboundSchema.parse(
3269
+ fallbackModelConfigurationStop,
3270
+ ),
3271
+ );
3272
+ }
3273
+
3274
+ /** @internal */
3275
+ export type FallbackModelConfigurationThinking$Outbound =
3276
+ | components.ThinkingConfigDisabledSchema$Outbound
3277
+ | components.ThinkingConfigEnabledSchema$Outbound
3278
+ | components.ThinkingConfigAdaptiveSchema$Outbound;
3279
+
3280
+ /** @internal */
3281
+ export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
3282
+ FallbackModelConfigurationThinking$Outbound,
3283
+ z.ZodTypeDef,
3284
+ FallbackModelConfigurationThinking
3285
+ > = z.union([
3286
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3287
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3288
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3289
+ ]);
4542
3290
 
4543
- export function jsonSchemaToolToJSON(jsonSchemaTool: JSONSchemaTool): string {
4544
- return JSON.stringify(JSONSchemaTool$outboundSchema.parse(jsonSchemaTool));
3291
+ export function fallbackModelConfigurationThinkingToJSON(
3292
+ fallbackModelConfigurationThinking: FallbackModelConfigurationThinking,
3293
+ ): string {
3294
+ return JSON.stringify(
3295
+ FallbackModelConfigurationThinking$outboundSchema.parse(
3296
+ fallbackModelConfigurationThinking,
3297
+ ),
3298
+ );
4545
3299
  }
4546
3300
 
4547
3301
  /** @internal */
4548
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema:
4549
- z.ZodNativeEnum<
4550
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
4551
- > = z.nativeEnum(
4552
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type,
4553
- );
3302
+ export const CreateAgentRequestToolChoiceType$outboundSchema: z.ZodNativeEnum<
3303
+ typeof CreateAgentRequestToolChoiceType
3304
+ > = z.nativeEnum(CreateAgentRequestToolChoiceType);
4554
3305
 
4555
3306
  /** @internal */
4556
- export type FunctionTool$Outbound = {
4557
- type: string;
4558
- key?: string | undefined;
4559
- id?: string | undefined;
4560
- requires_approval: boolean;
3307
+ export type CreateAgentRequestToolChoiceFunction$Outbound = {
3308
+ name: string;
4561
3309
  };
4562
3310
 
4563
3311
  /** @internal */
4564
- export const FunctionTool$outboundSchema: z.ZodType<
4565
- FunctionTool$Outbound,
3312
+ export const CreateAgentRequestToolChoiceFunction$outboundSchema: z.ZodType<
3313
+ CreateAgentRequestToolChoiceFunction$Outbound,
4566
3314
  z.ZodTypeDef,
4567
- FunctionTool
3315
+ CreateAgentRequestToolChoiceFunction
4568
3316
  > = z.object({
4569
- type:
4570
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema
4571
- .default("function"),
4572
- key: z.string().optional(),
4573
- id: z.string().optional(),
4574
- requiresApproval: z.boolean().default(false),
4575
- }).transform((v) => {
4576
- return remap$(v, {
4577
- requiresApproval: "requires_approval",
4578
- });
3317
+ name: z.string(),
4579
3318
  });
4580
3319
 
4581
- export function functionToolToJSON(functionTool: FunctionTool): string {
4582
- return JSON.stringify(FunctionTool$outboundSchema.parse(functionTool));
4583
- }
4584
-
4585
- /** @internal */
4586
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
4587
- z.ZodNativeEnum<
4588
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
4589
- > = z.nativeEnum(
4590
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type,
3320
+ export function createAgentRequestToolChoiceFunctionToJSON(
3321
+ createAgentRequestToolChoiceFunction: CreateAgentRequestToolChoiceFunction,
3322
+ ): string {
3323
+ return JSON.stringify(
3324
+ CreateAgentRequestToolChoiceFunction$outboundSchema.parse(
3325
+ createAgentRequestToolChoiceFunction,
3326
+ ),
4591
3327
  );
3328
+ }
4592
3329
 
4593
3330
  /** @internal */
4594
- export type CodeExecutionTool$Outbound = {
4595
- type: string;
4596
- key?: string | undefined;
4597
- id?: string | undefined;
4598
- requires_approval: boolean;
3331
+ export type CreateAgentRequestToolChoice2$Outbound = {
3332
+ type?: string | undefined;
3333
+ function: CreateAgentRequestToolChoiceFunction$Outbound;
4599
3334
  };
4600
3335
 
4601
3336
  /** @internal */
4602
- export const CodeExecutionTool$outboundSchema: z.ZodType<
4603
- CodeExecutionTool$Outbound,
3337
+ export const CreateAgentRequestToolChoice2$outboundSchema: z.ZodType<
3338
+ CreateAgentRequestToolChoice2$Outbound,
4604
3339
  z.ZodTypeDef,
4605
- CodeExecutionTool
3340
+ CreateAgentRequestToolChoice2
4606
3341
  > = z.object({
4607
- type:
4608
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema
4609
- .default("code"),
4610
- key: z.string().optional(),
4611
- id: z.string().optional(),
4612
- requiresApproval: z.boolean().default(false),
4613
- }).transform((v) => {
4614
- return remap$(v, {
4615
- requiresApproval: "requires_approval",
4616
- });
3342
+ type: CreateAgentRequestToolChoiceType$outboundSchema.optional(),
3343
+ function: z.lazy(() => CreateAgentRequestToolChoiceFunction$outboundSchema),
4617
3344
  });
4618
3345
 
4619
- export function codeExecutionToolToJSON(
4620
- codeExecutionTool: CodeExecutionTool,
3346
+ export function createAgentRequestToolChoice2ToJSON(
3347
+ createAgentRequestToolChoice2: CreateAgentRequestToolChoice2,
4621
3348
  ): string {
4622
3349
  return JSON.stringify(
4623
- CodeExecutionTool$outboundSchema.parse(codeExecutionTool),
3350
+ CreateAgentRequestToolChoice2$outboundSchema.parse(
3351
+ createAgentRequestToolChoice2,
3352
+ ),
4624
3353
  );
4625
3354
  }
4626
3355
 
4627
3356
  /** @internal */
4628
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
4629
- z.ZodNativeEnum<
4630
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
4631
- > = z.nativeEnum(
4632
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type,
4633
- );
3357
+ export const CreateAgentRequestToolChoice1$outboundSchema: z.ZodNativeEnum<
3358
+ typeof CreateAgentRequestToolChoice1
3359
+ > = z.nativeEnum(CreateAgentRequestToolChoice1);
4634
3360
 
4635
3361
  /** @internal */
4636
- export type HTTPTool$Outbound = {
4637
- type: string;
4638
- key?: string | undefined;
4639
- id?: string | undefined;
4640
- requires_approval: boolean;
4641
- };
3362
+ export type FallbackModelConfigurationToolChoice$Outbound =
3363
+ | CreateAgentRequestToolChoice2$Outbound
3364
+ | string;
4642
3365
 
4643
3366
  /** @internal */
4644
- export const HTTPTool$outboundSchema: z.ZodType<
4645
- HTTPTool$Outbound,
3367
+ export const FallbackModelConfigurationToolChoice$outboundSchema: z.ZodType<
3368
+ FallbackModelConfigurationToolChoice$Outbound,
4646
3369
  z.ZodTypeDef,
4647
- HTTPTool
4648
- > = z.object({
4649
- type:
4650
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema
4651
- .default("http"),
4652
- key: z.string().optional(),
4653
- id: z.string().optional(),
4654
- requiresApproval: z.boolean().default(false),
4655
- }).transform((v) => {
4656
- return remap$(v, {
4657
- requiresApproval: "requires_approval",
4658
- });
4659
- });
3370
+ FallbackModelConfigurationToolChoice
3371
+ > = z.union([
3372
+ z.lazy(() => CreateAgentRequestToolChoice2$outboundSchema),
3373
+ CreateAgentRequestToolChoice1$outboundSchema,
3374
+ ]);
4660
3375
 
4661
- export function httpToolToJSON(httpTool: HTTPTool): string {
4662
- return JSON.stringify(HTTPTool$outboundSchema.parse(httpTool));
3376
+ export function fallbackModelConfigurationToolChoiceToJSON(
3377
+ fallbackModelConfigurationToolChoice: FallbackModelConfigurationToolChoice,
3378
+ ): string {
3379
+ return JSON.stringify(
3380
+ FallbackModelConfigurationToolChoice$outboundSchema.parse(
3381
+ fallbackModelConfigurationToolChoice,
3382
+ ),
3383
+ );
4663
3384
  }
4664
3385
 
4665
3386
  /** @internal */
4666
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
4667
- z.ZodNativeEnum<
4668
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
4669
- > = z.nativeEnum(
4670
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type,
3387
+ export const FallbackModelConfigurationModalities$outboundSchema:
3388
+ z.ZodNativeEnum<typeof FallbackModelConfigurationModalities> = z.nativeEnum(
3389
+ FallbackModelConfigurationModalities,
4671
3390
  );
4672
3391
 
4673
3392
  /** @internal */
4674
- export type CodeInterpreterTool$Outbound = {
4675
- type: string;
4676
- requires_approval?: boolean | undefined;
4677
- configuration?: { [k: string]: any } | undefined;
4678
- };
3393
+ export const CreateAgentRequestId1$outboundSchema: z.ZodNativeEnum<
3394
+ typeof CreateAgentRequestId1
3395
+ > = z.nativeEnum(CreateAgentRequestId1);
3396
+
3397
+ /** @internal */
3398
+ export type FallbackModelConfigurationId$Outbound = string | string;
4679
3399
 
4680
3400
  /** @internal */
4681
- export const CodeInterpreterTool$outboundSchema: z.ZodType<
4682
- CodeInterpreterTool$Outbound,
3401
+ export const FallbackModelConfigurationId$outboundSchema: z.ZodType<
3402
+ FallbackModelConfigurationId$Outbound,
4683
3403
  z.ZodTypeDef,
4684
- CodeInterpreterTool
4685
- > = z.object({
4686
- type:
4687
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
4688
- requiresApproval: z.boolean().optional(),
4689
- configuration: z.record(z.any()).optional(),
4690
- }).transform((v) => {
4691
- return remap$(v, {
4692
- requiresApproval: "requires_approval",
4693
- });
4694
- });
3404
+ FallbackModelConfigurationId
3405
+ > = z.union([CreateAgentRequestId1$outboundSchema, z.string()]);
4695
3406
 
4696
- export function codeInterpreterToolToJSON(
4697
- codeInterpreterTool: CodeInterpreterTool,
3407
+ export function fallbackModelConfigurationIdToJSON(
3408
+ fallbackModelConfigurationId: FallbackModelConfigurationId,
4698
3409
  ): string {
4699
3410
  return JSON.stringify(
4700
- CodeInterpreterTool$outboundSchema.parse(codeInterpreterTool),
3411
+ FallbackModelConfigurationId$outboundSchema.parse(
3412
+ fallbackModelConfigurationId,
3413
+ ),
4701
3414
  );
4702
3415
  }
4703
3416
 
4704
3417
  /** @internal */
4705
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
4706
- z.ZodNativeEnum<
4707
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
4708
- > = z.nativeEnum(
4709
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type,
3418
+ export const FallbackModelConfigurationExecuteOn$outboundSchema:
3419
+ z.ZodNativeEnum<typeof FallbackModelConfigurationExecuteOn> = z.nativeEnum(
3420
+ FallbackModelConfigurationExecuteOn,
4710
3421
  );
4711
3422
 
4712
3423
  /** @internal */
4713
- export type CurrentDateTool$Outbound = {
4714
- type: string;
4715
- requires_approval?: boolean | undefined;
4716
- configuration?: { [k: string]: any } | undefined;
3424
+ export type FallbackModelConfigurationGuardrails$Outbound = {
3425
+ id: string | string;
3426
+ execute_on: string;
4717
3427
  };
4718
3428
 
4719
3429
  /** @internal */
4720
- export const CurrentDateTool$outboundSchema: z.ZodType<
4721
- CurrentDateTool$Outbound,
3430
+ export const FallbackModelConfigurationGuardrails$outboundSchema: z.ZodType<
3431
+ FallbackModelConfigurationGuardrails$Outbound,
4722
3432
  z.ZodTypeDef,
4723
- CurrentDateTool
3433
+ FallbackModelConfigurationGuardrails
4724
3434
  > = z.object({
4725
- type:
4726
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
4727
- requiresApproval: z.boolean().optional(),
4728
- configuration: z.record(z.any()).optional(),
3435
+ id: z.union([CreateAgentRequestId1$outboundSchema, z.string()]),
3436
+ executeOn: FallbackModelConfigurationExecuteOn$outboundSchema,
4729
3437
  }).transform((v) => {
4730
3438
  return remap$(v, {
4731
- requiresApproval: "requires_approval",
3439
+ executeOn: "execute_on",
4732
3440
  });
4733
3441
  });
4734
3442
 
4735
- export function currentDateToolToJSON(
4736
- currentDateTool: CurrentDateTool,
3443
+ export function fallbackModelConfigurationGuardrailsToJSON(
3444
+ fallbackModelConfigurationGuardrails: FallbackModelConfigurationGuardrails,
4737
3445
  ): string {
4738
- return JSON.stringify(CurrentDateTool$outboundSchema.parse(currentDateTool));
3446
+ return JSON.stringify(
3447
+ FallbackModelConfigurationGuardrails$outboundSchema.parse(
3448
+ fallbackModelConfigurationGuardrails,
3449
+ ),
3450
+ );
4739
3451
  }
4740
3452
 
4741
3453
  /** @internal */
4742
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
4743
- z.ZodNativeEnum<
4744
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
4745
- > = z.nativeEnum(
4746
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type,
3454
+ export type FallbackModelConfigurationPlugins$Outbound =
3455
+ | components.PIIRedactionPluginEn$Outbound
3456
+ | components.PIIRedactionPluginNl$Outbound
3457
+ | components.PIIRedactionPluginAuto$Outbound;
3458
+
3459
+ /** @internal */
3460
+ export const FallbackModelConfigurationPlugins$outboundSchema: z.ZodType<
3461
+ FallbackModelConfigurationPlugins$Outbound,
3462
+ z.ZodTypeDef,
3463
+ FallbackModelConfigurationPlugins
3464
+ > = z.union([
3465
+ components.PIIRedactionPluginEn$outboundSchema,
3466
+ components.PIIRedactionPluginNl$outboundSchema,
3467
+ components.PIIRedactionPluginAuto$outboundSchema,
3468
+ ]);
3469
+
3470
+ export function fallbackModelConfigurationPluginsToJSON(
3471
+ fallbackModelConfigurationPlugins: FallbackModelConfigurationPlugins,
3472
+ ): string {
3473
+ return JSON.stringify(
3474
+ FallbackModelConfigurationPlugins$outboundSchema.parse(
3475
+ fallbackModelConfigurationPlugins,
3476
+ ),
4747
3477
  );
3478
+ }
4748
3479
 
4749
3480
  /** @internal */
4750
- export type QueryKnowledgeBaseTool$Outbound = {
4751
- type: string;
4752
- requires_approval?: boolean | undefined;
4753
- configuration?: { [k: string]: any } | undefined;
3481
+ export type FallbackModelConfigurationFallbacks$Outbound = {
3482
+ model: string;
4754
3483
  };
4755
3484
 
4756
3485
  /** @internal */
4757
- export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
4758
- QueryKnowledgeBaseTool$Outbound,
3486
+ export const FallbackModelConfigurationFallbacks$outboundSchema: z.ZodType<
3487
+ FallbackModelConfigurationFallbacks$Outbound,
4759
3488
  z.ZodTypeDef,
4760
- QueryKnowledgeBaseTool
3489
+ FallbackModelConfigurationFallbacks
4761
3490
  > = z.object({
4762
- type:
4763
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
4764
- requiresApproval: z.boolean().optional(),
4765
- configuration: z.record(z.any()).optional(),
4766
- }).transform((v) => {
4767
- return remap$(v, {
4768
- requiresApproval: "requires_approval",
4769
- });
3491
+ model: z.string(),
4770
3492
  });
4771
3493
 
4772
- export function queryKnowledgeBaseToolToJSON(
4773
- queryKnowledgeBaseTool: QueryKnowledgeBaseTool,
3494
+ export function fallbackModelConfigurationFallbacksToJSON(
3495
+ fallbackModelConfigurationFallbacks: FallbackModelConfigurationFallbacks,
4774
3496
  ): string {
4775
3497
  return JSON.stringify(
4776
- QueryKnowledgeBaseTool$outboundSchema.parse(queryKnowledgeBaseTool),
3498
+ FallbackModelConfigurationFallbacks$outboundSchema.parse(
3499
+ fallbackModelConfigurationFallbacks,
3500
+ ),
4777
3501
  );
4778
3502
  }
4779
3503
 
4780
3504
  /** @internal */
4781
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
4782
- z.ZodNativeEnum<
4783
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
4784
- > = z.nativeEnum(
4785
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type,
4786
- );
3505
+ export const FallbackModelConfigurationType$outboundSchema: z.ZodNativeEnum<
3506
+ typeof FallbackModelConfigurationType
3507
+ > = z.nativeEnum(FallbackModelConfigurationType);
4787
3508
 
4788
3509
  /** @internal */
4789
- export type RetrieveKnowledgeBasesTool$Outbound = {
3510
+ export type FallbackModelConfigurationCache$Outbound = {
3511
+ ttl: number;
4790
3512
  type: string;
4791
- requires_approval?: boolean | undefined;
4792
- configuration?: { [k: string]: any } | undefined;
4793
3513
  };
4794
3514
 
4795
3515
  /** @internal */
4796
- export const RetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<
4797
- RetrieveKnowledgeBasesTool$Outbound,
3516
+ export const FallbackModelConfigurationCache$outboundSchema: z.ZodType<
3517
+ FallbackModelConfigurationCache$Outbound,
4798
3518
  z.ZodTypeDef,
4799
- RetrieveKnowledgeBasesTool
3519
+ FallbackModelConfigurationCache
4800
3520
  > = z.object({
4801
- type:
4802
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
4803
- requiresApproval: z.boolean().optional(),
4804
- configuration: z.record(z.any()).optional(),
4805
- }).transform((v) => {
4806
- return remap$(v, {
4807
- requiresApproval: "requires_approval",
4808
- });
3521
+ ttl: z.number().default(1800),
3522
+ type: FallbackModelConfigurationType$outboundSchema,
4809
3523
  });
4810
3524
 
4811
- export function retrieveKnowledgeBasesToolToJSON(
4812
- retrieveKnowledgeBasesTool: RetrieveKnowledgeBasesTool,
3525
+ export function fallbackModelConfigurationCacheToJSON(
3526
+ fallbackModelConfigurationCache: FallbackModelConfigurationCache,
4813
3527
  ): string {
4814
3528
  return JSON.stringify(
4815
- RetrieveKnowledgeBasesTool$outboundSchema.parse(retrieveKnowledgeBasesTool),
3529
+ FallbackModelConfigurationCache$outboundSchema.parse(
3530
+ fallbackModelConfigurationCache,
3531
+ ),
4816
3532
  );
4817
3533
  }
4818
3534
 
4819
3535
  /** @internal */
4820
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
4821
- z.ZodNativeEnum<
4822
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
4823
- > = z.nativeEnum(
4824
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type,
4825
- );
3536
+ export const CreateAgentRequestLoadBalancerType$outboundSchema: z.ZodNativeEnum<
3537
+ typeof CreateAgentRequestLoadBalancerType
3538
+ > = z.nativeEnum(CreateAgentRequestLoadBalancerType);
4826
3539
 
4827
3540
  /** @internal */
4828
- export type DeleteMemoryDocumentTool$Outbound = {
4829
- type: string;
4830
- requires_approval?: boolean | undefined;
4831
- configuration?: { [k: string]: any } | undefined;
3541
+ export type LoadBalancerModels$Outbound = {
3542
+ model: string;
3543
+ weight: number;
4832
3544
  };
4833
3545
 
4834
3546
  /** @internal */
4835
- export const DeleteMemoryDocumentTool$outboundSchema: z.ZodType<
4836
- DeleteMemoryDocumentTool$Outbound,
3547
+ export const LoadBalancerModels$outboundSchema: z.ZodType<
3548
+ LoadBalancerModels$Outbound,
4837
3549
  z.ZodTypeDef,
4838
- DeleteMemoryDocumentTool
3550
+ LoadBalancerModels
4839
3551
  > = z.object({
4840
- type:
4841
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
4842
- requiresApproval: z.boolean().optional(),
4843
- configuration: z.record(z.any()).optional(),
4844
- }).transform((v) => {
4845
- return remap$(v, {
4846
- requiresApproval: "requires_approval",
4847
- });
3552
+ model: z.string(),
3553
+ weight: z.number().default(0.5),
4848
3554
  });
4849
3555
 
4850
- export function deleteMemoryDocumentToolToJSON(
4851
- deleteMemoryDocumentTool: DeleteMemoryDocumentTool,
3556
+ export function loadBalancerModelsToJSON(
3557
+ loadBalancerModels: LoadBalancerModels,
4852
3558
  ): string {
4853
3559
  return JSON.stringify(
4854
- DeleteMemoryDocumentTool$outboundSchema.parse(deleteMemoryDocumentTool),
3560
+ LoadBalancerModels$outboundSchema.parse(loadBalancerModels),
4855
3561
  );
4856
3562
  }
4857
3563
 
4858
3564
  /** @internal */
4859
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema:
4860
- z.ZodNativeEnum<
4861
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
4862
- > = z.nativeEnum(
4863
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType,
4864
- );
4865
-
4866
- /** @internal */
4867
- export type RetrieveMemoryStoresTool$Outbound = {
3565
+ export type CreateAgentRequestLoadBalancer1$Outbound = {
4868
3566
  type: string;
4869
- requires_approval?: boolean | undefined;
4870
- configuration?: { [k: string]: any } | undefined;
3567
+ models: Array<LoadBalancerModels$Outbound>;
4871
3568
  };
4872
3569
 
4873
3570
  /** @internal */
4874
- export const RetrieveMemoryStoresTool$outboundSchema: z.ZodType<
4875
- RetrieveMemoryStoresTool$Outbound,
3571
+ export const CreateAgentRequestLoadBalancer1$outboundSchema: z.ZodType<
3572
+ CreateAgentRequestLoadBalancer1$Outbound,
4876
3573
  z.ZodTypeDef,
4877
- RetrieveMemoryStoresTool
3574
+ CreateAgentRequestLoadBalancer1
4878
3575
  > = z.object({
4879
- type:
4880
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema,
4881
- requiresApproval: z.boolean().optional(),
4882
- configuration: z.record(z.any()).optional(),
4883
- }).transform((v) => {
4884
- return remap$(v, {
4885
- requiresApproval: "requires_approval",
4886
- });
3576
+ type: CreateAgentRequestLoadBalancerType$outboundSchema,
3577
+ models: z.array(z.lazy(() => LoadBalancerModels$outboundSchema)),
4887
3578
  });
4888
3579
 
4889
- export function retrieveMemoryStoresToolToJSON(
4890
- retrieveMemoryStoresTool: RetrieveMemoryStoresTool,
3580
+ export function createAgentRequestLoadBalancer1ToJSON(
3581
+ createAgentRequestLoadBalancer1: CreateAgentRequestLoadBalancer1,
4891
3582
  ): string {
4892
3583
  return JSON.stringify(
4893
- RetrieveMemoryStoresTool$outboundSchema.parse(retrieveMemoryStoresTool),
3584
+ CreateAgentRequestLoadBalancer1$outboundSchema.parse(
3585
+ createAgentRequestLoadBalancer1,
3586
+ ),
4894
3587
  );
4895
3588
  }
4896
3589
 
4897
3590
  /** @internal */
4898
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema:
4899
- z.ZodNativeEnum<
4900
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType
4901
- > = z.nativeEnum(
4902
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType,
4903
- );
4904
-
4905
- /** @internal */
4906
- export type WriteMemoryStoreTool$Outbound = {
4907
- type: string;
4908
- requires_approval?: boolean | undefined;
4909
- configuration?: { [k: string]: any } | undefined;
4910
- };
3591
+ export type FallbackModelConfigurationLoadBalancer$Outbound =
3592
+ CreateAgentRequestLoadBalancer1$Outbound;
4911
3593
 
4912
3594
  /** @internal */
4913
- export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
4914
- WriteMemoryStoreTool$Outbound,
3595
+ export const FallbackModelConfigurationLoadBalancer$outboundSchema: z.ZodType<
3596
+ FallbackModelConfigurationLoadBalancer$Outbound,
4915
3597
  z.ZodTypeDef,
4916
- WriteMemoryStoreTool
4917
- > = z.object({
4918
- type:
4919
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema,
4920
- requiresApproval: z.boolean().optional(),
4921
- configuration: z.record(z.any()).optional(),
4922
- }).transform((v) => {
4923
- return remap$(v, {
4924
- requiresApproval: "requires_approval",
4925
- });
4926
- });
3598
+ FallbackModelConfigurationLoadBalancer
3599
+ > = z.lazy(() => CreateAgentRequestLoadBalancer1$outboundSchema);
4927
3600
 
4928
- export function writeMemoryStoreToolToJSON(
4929
- writeMemoryStoreTool: WriteMemoryStoreTool,
3601
+ export function fallbackModelConfigurationLoadBalancerToJSON(
3602
+ fallbackModelConfigurationLoadBalancer:
3603
+ FallbackModelConfigurationLoadBalancer,
4930
3604
  ): string {
4931
3605
  return JSON.stringify(
4932
- WriteMemoryStoreTool$outboundSchema.parse(writeMemoryStoreTool),
3606
+ FallbackModelConfigurationLoadBalancer$outboundSchema.parse(
3607
+ fallbackModelConfigurationLoadBalancer,
3608
+ ),
4933
3609
  );
4934
3610
  }
4935
3611
 
4936
3612
  /** @internal */
4937
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema:
4938
- z.ZodNativeEnum<
4939
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType
4940
- > = z.nativeEnum(
4941
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType,
4942
- );
4943
-
4944
- /** @internal */
4945
- export type QueryMemoryStoreTool$Outbound = {
4946
- type: string;
4947
- requires_approval?: boolean | undefined;
4948
- configuration?: { [k: string]: any } | undefined;
3613
+ export type FallbackModelConfigurationTimeout$Outbound = {
3614
+ call_timeout: number;
4949
3615
  };
4950
3616
 
4951
3617
  /** @internal */
4952
- export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
4953
- QueryMemoryStoreTool$Outbound,
3618
+ export const FallbackModelConfigurationTimeout$outboundSchema: z.ZodType<
3619
+ FallbackModelConfigurationTimeout$Outbound,
4954
3620
  z.ZodTypeDef,
4955
- QueryMemoryStoreTool
3621
+ FallbackModelConfigurationTimeout
4956
3622
  > = z.object({
4957
- type:
4958
- CreateAgentRequestAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema,
4959
- requiresApproval: z.boolean().optional(),
4960
- configuration: z.record(z.any()).optional(),
3623
+ callTimeout: z.number(),
4961
3624
  }).transform((v) => {
4962
3625
  return remap$(v, {
4963
- requiresApproval: "requires_approval",
3626
+ callTimeout: "call_timeout",
4964
3627
  });
4965
3628
  });
4966
3629
 
4967
- export function queryMemoryStoreToolToJSON(
4968
- queryMemoryStoreTool: QueryMemoryStoreTool,
3630
+ export function fallbackModelConfigurationTimeoutToJSON(
3631
+ fallbackModelConfigurationTimeout: FallbackModelConfigurationTimeout,
4969
3632
  ): string {
4970
3633
  return JSON.stringify(
4971
- QueryMemoryStoreTool$outboundSchema.parse(queryMemoryStoreTool),
3634
+ FallbackModelConfigurationTimeout$outboundSchema.parse(
3635
+ fallbackModelConfigurationTimeout,
3636
+ ),
4972
3637
  );
4973
3638
  }
4974
3639
 
4975
3640
  /** @internal */
4976
- export const CreateAgentRequestAgentToolInputCRUDAgentsRequestType$outboundSchema:
4977
- z.ZodNativeEnum<
4978
- typeof CreateAgentRequestAgentToolInputCRUDAgentsRequestType
4979
- > = z.nativeEnum(CreateAgentRequestAgentToolInputCRUDAgentsRequestType);
3641
+ export const CreateAgentRequestFallbackModelConfigurationType$outboundSchema:
3642
+ z.ZodNativeEnum<typeof CreateAgentRequestFallbackModelConfigurationType> = z
3643
+ .nativeEnum(CreateAgentRequestFallbackModelConfigurationType);
3644
+
3645
+ /** @internal */
3646
+ export const FallbackModelConfigurationTtl$outboundSchema: z.ZodNativeEnum<
3647
+ typeof FallbackModelConfigurationTtl
3648
+ > = z.nativeEnum(FallbackModelConfigurationTtl);
4980
3649
 
4981
3650
  /** @internal */
4982
- export type RetrieveAgentsTool$Outbound = {
3651
+ export type FallbackModelConfigurationCacheControl$Outbound = {
4983
3652
  type: string;
4984
- requires_approval?: boolean | undefined;
4985
- configuration?: { [k: string]: any } | undefined;
3653
+ ttl: string;
4986
3654
  };
4987
3655
 
4988
3656
  /** @internal */
4989
- export const RetrieveAgentsTool$outboundSchema: z.ZodType<
4990
- RetrieveAgentsTool$Outbound,
3657
+ export const FallbackModelConfigurationCacheControl$outboundSchema: z.ZodType<
3658
+ FallbackModelConfigurationCacheControl$Outbound,
4991
3659
  z.ZodTypeDef,
4992
- RetrieveAgentsTool
3660
+ FallbackModelConfigurationCacheControl
4993
3661
  > = z.object({
4994
- type: CreateAgentRequestAgentToolInputCRUDAgentsRequestType$outboundSchema,
4995
- requiresApproval: z.boolean().optional(),
4996
- configuration: z.record(z.any()).optional(),
4997
- }).transform((v) => {
4998
- return remap$(v, {
4999
- requiresApproval: "requires_approval",
5000
- });
3662
+ type: CreateAgentRequestFallbackModelConfigurationType$outboundSchema,
3663
+ ttl: FallbackModelConfigurationTtl$outboundSchema.default("5m"),
5001
3664
  });
5002
3665
 
5003
- export function retrieveAgentsToolToJSON(
5004
- retrieveAgentsTool: RetrieveAgentsTool,
3666
+ export function fallbackModelConfigurationCacheControlToJSON(
3667
+ fallbackModelConfigurationCacheControl:
3668
+ FallbackModelConfigurationCacheControl,
5005
3669
  ): string {
5006
3670
  return JSON.stringify(
5007
- RetrieveAgentsTool$outboundSchema.parse(retrieveAgentsTool),
3671
+ FallbackModelConfigurationCacheControl$outboundSchema.parse(
3672
+ fallbackModelConfigurationCacheControl,
3673
+ ),
5008
3674
  );
5009
3675
  }
5010
3676
 
5011
3677
  /** @internal */
5012
- export const CreateAgentRequestAgentToolInputCRUDAgentsType$outboundSchema:
5013
- z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDAgentsType> = z
5014
- .nativeEnum(CreateAgentRequestAgentToolInputCRUDAgentsType);
5015
-
5016
- /** @internal */
5017
- export type CallSubAgentTool$Outbound = {
5018
- type: string;
5019
- requires_approval?: boolean | undefined;
5020
- configuration?: { [k: string]: any } | undefined;
3678
+ export type FallbackModelConfigurationParameters$Outbound = {
3679
+ name?: string | undefined;
3680
+ frequency_penalty?: number | null | undefined;
3681
+ max_tokens?: number | null | undefined;
3682
+ max_completion_tokens?: number | null | undefined;
3683
+ presence_penalty?: number | null | undefined;
3684
+ response_format?:
3685
+ | ResponseFormatText$Outbound
3686
+ | ResponseFormatJSONObject$Outbound
3687
+ | CreateAgentRequestResponseFormatJSONSchema$Outbound
3688
+ | undefined;
3689
+ reasoning_effort?: string | undefined;
3690
+ verbosity?: string | undefined;
3691
+ seed?: number | null | undefined;
3692
+ stop?: string | Array<string> | null | undefined;
3693
+ thinking?:
3694
+ | components.ThinkingConfigDisabledSchema$Outbound
3695
+ | components.ThinkingConfigEnabledSchema$Outbound
3696
+ | components.ThinkingConfigAdaptiveSchema$Outbound
3697
+ | undefined;
3698
+ temperature?: number | null | undefined;
3699
+ top_p?: number | null | undefined;
3700
+ top_k?: number | null | undefined;
3701
+ tool_choice?: CreateAgentRequestToolChoice2$Outbound | string | undefined;
3702
+ parallel_tool_calls?: boolean | undefined;
3703
+ modalities?: Array<string> | null | undefined;
3704
+ guardrails?: Array<FallbackModelConfigurationGuardrails$Outbound> | undefined;
3705
+ plugins?:
3706
+ | Array<
3707
+ | components.PIIRedactionPluginEn$Outbound
3708
+ | components.PIIRedactionPluginNl$Outbound
3709
+ | components.PIIRedactionPluginAuto$Outbound
3710
+ >
3711
+ | undefined;
3712
+ fallbacks?: Array<FallbackModelConfigurationFallbacks$Outbound> | undefined;
3713
+ cache?: FallbackModelConfigurationCache$Outbound | undefined;
3714
+ load_balancer?: CreateAgentRequestLoadBalancer1$Outbound | undefined;
3715
+ timeout?: FallbackModelConfigurationTimeout$Outbound | undefined;
3716
+ cache_control?: FallbackModelConfigurationCacheControl$Outbound | undefined;
3717
+ prompt_cache_key?: string | undefined;
5021
3718
  };
5022
3719
 
5023
3720
  /** @internal */
5024
- export const CallSubAgentTool$outboundSchema: z.ZodType<
5025
- CallSubAgentTool$Outbound,
3721
+ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
3722
+ FallbackModelConfigurationParameters$Outbound,
5026
3723
  z.ZodTypeDef,
5027
- CallSubAgentTool
3724
+ FallbackModelConfigurationParameters
5028
3725
  > = z.object({
5029
- type: CreateAgentRequestAgentToolInputCRUDAgentsType$outboundSchema,
5030
- requiresApproval: z.boolean().optional(),
5031
- configuration: z.record(z.any()).optional(),
3726
+ name: z.string().optional(),
3727
+ frequencyPenalty: z.nullable(z.number()).optional(),
3728
+ maxTokens: z.nullable(z.number().int()).optional(),
3729
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
3730
+ presencePenalty: z.nullable(z.number()).optional(),
3731
+ responseFormat: z.union([
3732
+ z.lazy(() => ResponseFormatText$outboundSchema),
3733
+ z.lazy(() => ResponseFormatJSONObject$outboundSchema),
3734
+ z.lazy(() => CreateAgentRequestResponseFormatJSONSchema$outboundSchema),
3735
+ ]).optional(),
3736
+ reasoningEffort: FallbackModelConfigurationReasoningEffort$outboundSchema
3737
+ .optional(),
3738
+ verbosity: z.string().optional(),
3739
+ seed: z.nullable(z.number()).optional(),
3740
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3741
+ thinking: z.union([
3742
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3743
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3744
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3745
+ ]).optional(),
3746
+ temperature: z.nullable(z.number()).optional(),
3747
+ topP: z.nullable(z.number()).optional(),
3748
+ topK: z.nullable(z.number()).optional(),
3749
+ toolChoice: z.union([
3750
+ z.lazy(() => CreateAgentRequestToolChoice2$outboundSchema),
3751
+ CreateAgentRequestToolChoice1$outboundSchema,
3752
+ ]).optional(),
3753
+ parallelToolCalls: z.boolean().optional(),
3754
+ modalities: z.nullable(
3755
+ z.array(FallbackModelConfigurationModalities$outboundSchema),
3756
+ ).optional(),
3757
+ guardrails: z.array(
3758
+ z.lazy(() => FallbackModelConfigurationGuardrails$outboundSchema),
3759
+ ).optional(),
3760
+ plugins: z.array(
3761
+ z.union([
3762
+ components.PIIRedactionPluginEn$outboundSchema,
3763
+ components.PIIRedactionPluginNl$outboundSchema,
3764
+ components.PIIRedactionPluginAuto$outboundSchema,
3765
+ ]),
3766
+ ).optional(),
3767
+ fallbacks: z.array(
3768
+ z.lazy(() => FallbackModelConfigurationFallbacks$outboundSchema),
3769
+ ).optional(),
3770
+ cache: z.lazy(() => FallbackModelConfigurationCache$outboundSchema)
3771
+ .optional(),
3772
+ loadBalancer: z.lazy(() => CreateAgentRequestLoadBalancer1$outboundSchema)
3773
+ .optional(),
3774
+ timeout: z.lazy(() => FallbackModelConfigurationTimeout$outboundSchema)
3775
+ .optional(),
3776
+ cacheControl: z.lazy(() =>
3777
+ FallbackModelConfigurationCacheControl$outboundSchema
3778
+ ).optional(),
3779
+ promptCacheKey: z.string().optional(),
5032
3780
  }).transform((v) => {
5033
3781
  return remap$(v, {
5034
- requiresApproval: "requires_approval",
3782
+ frequencyPenalty: "frequency_penalty",
3783
+ maxTokens: "max_tokens",
3784
+ maxCompletionTokens: "max_completion_tokens",
3785
+ presencePenalty: "presence_penalty",
3786
+ responseFormat: "response_format",
3787
+ reasoningEffort: "reasoning_effort",
3788
+ topP: "top_p",
3789
+ topK: "top_k",
3790
+ toolChoice: "tool_choice",
3791
+ parallelToolCalls: "parallel_tool_calls",
3792
+ loadBalancer: "load_balancer",
3793
+ cacheControl: "cache_control",
3794
+ promptCacheKey: "prompt_cache_key",
5035
3795
  });
5036
3796
  });
5037
3797
 
5038
- export function callSubAgentToolToJSON(
5039
- callSubAgentTool: CallSubAgentTool,
3798
+ export function fallbackModelConfigurationParametersToJSON(
3799
+ fallbackModelConfigurationParameters: FallbackModelConfigurationParameters,
5040
3800
  ): string {
5041
3801
  return JSON.stringify(
5042
- CallSubAgentTool$outboundSchema.parse(callSubAgentTool),
3802
+ FallbackModelConfigurationParameters$outboundSchema.parse(
3803
+ fallbackModelConfigurationParameters,
3804
+ ),
5043
3805
  );
5044
3806
  }
5045
3807
 
5046
3808
  /** @internal */
5047
- export const CreateAgentRequestAgentToolInputCRUDType$outboundSchema:
5048
- z.ZodNativeEnum<typeof CreateAgentRequestAgentToolInputCRUDType> = z
5049
- .nativeEnum(CreateAgentRequestAgentToolInputCRUDType);
5050
-
5051
- /** @internal */
5052
- export type WebScraperTool$Outbound = {
5053
- type: string;
5054
- requires_approval?: boolean | undefined;
5055
- configuration?: { [k: string]: any } | undefined;
3809
+ export type FallbackModelConfigurationRetry$Outbound = {
3810
+ count: number;
3811
+ on_codes?: Array<number> | undefined;
5056
3812
  };
5057
3813
 
5058
3814
  /** @internal */
5059
- export const WebScraperTool$outboundSchema: z.ZodType<
5060
- WebScraperTool$Outbound,
3815
+ export const FallbackModelConfigurationRetry$outboundSchema: z.ZodType<
3816
+ FallbackModelConfigurationRetry$Outbound,
5061
3817
  z.ZodTypeDef,
5062
- WebScraperTool
3818
+ FallbackModelConfigurationRetry
5063
3819
  > = z.object({
5064
- type: CreateAgentRequestAgentToolInputCRUDType$outboundSchema,
5065
- requiresApproval: z.boolean().optional(),
5066
- configuration: z.record(z.any()).optional(),
3820
+ count: z.number().default(3),
3821
+ onCodes: z.array(z.number()).optional(),
5067
3822
  }).transform((v) => {
5068
3823
  return remap$(v, {
5069
- requiresApproval: "requires_approval",
3824
+ onCodes: "on_codes",
5070
3825
  });
5071
3826
  });
5072
3827
 
5073
- export function webScraperToolToJSON(webScraperTool: WebScraperTool): string {
5074
- return JSON.stringify(WebScraperTool$outboundSchema.parse(webScraperTool));
3828
+ export function fallbackModelConfigurationRetryToJSON(
3829
+ fallbackModelConfigurationRetry: FallbackModelConfigurationRetry,
3830
+ ): string {
3831
+ return JSON.stringify(
3832
+ FallbackModelConfigurationRetry$outboundSchema.parse(
3833
+ fallbackModelConfigurationRetry,
3834
+ ),
3835
+ );
5075
3836
  }
5076
3837
 
5077
3838
  /** @internal */
5078
- export const AgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<
5079
- typeof AgentToolInputCRUDType
5080
- > = z.nativeEnum(AgentToolInputCRUDType);
5081
-
5082
- /** @internal */
5083
- export type GoogleSearchTool$Outbound = {
5084
- type: string;
5085
- requires_approval?: boolean | undefined;
5086
- configuration?: { [k: string]: any } | undefined;
3839
+ export type FallbackModelConfiguration2$Outbound = {
3840
+ id: string;
3841
+ parameters?: FallbackModelConfigurationParameters$Outbound | undefined;
3842
+ retry?: FallbackModelConfigurationRetry$Outbound | undefined;
5087
3843
  };
5088
3844
 
5089
3845
  /** @internal */
5090
- export const GoogleSearchTool$outboundSchema: z.ZodType<
5091
- GoogleSearchTool$Outbound,
3846
+ export const FallbackModelConfiguration2$outboundSchema: z.ZodType<
3847
+ FallbackModelConfiguration2$Outbound,
5092
3848
  z.ZodTypeDef,
5093
- GoogleSearchTool
3849
+ FallbackModelConfiguration2
5094
3850
  > = z.object({
5095
- type: AgentToolInputCRUDType$outboundSchema,
5096
- requiresApproval: z.boolean().optional(),
5097
- configuration: z.record(z.any()).optional(),
5098
- }).transform((v) => {
5099
- return remap$(v, {
5100
- requiresApproval: "requires_approval",
5101
- });
3851
+ id: z.string(),
3852
+ parameters: z.lazy(() => FallbackModelConfigurationParameters$outboundSchema)
3853
+ .optional(),
3854
+ retry: z.lazy(() => FallbackModelConfigurationRetry$outboundSchema)
3855
+ .optional(),
5102
3856
  });
5103
3857
 
5104
- export function googleSearchToolToJSON(
5105
- googleSearchTool: GoogleSearchTool,
3858
+ export function fallbackModelConfiguration2ToJSON(
3859
+ fallbackModelConfiguration2: FallbackModelConfiguration2,
5106
3860
  ): string {
5107
3861
  return JSON.stringify(
5108
- GoogleSearchTool$outboundSchema.parse(googleSearchTool),
3862
+ FallbackModelConfiguration2$outboundSchema.parse(
3863
+ fallbackModelConfiguration2,
3864
+ ),
5109
3865
  );
5110
3866
  }
5111
3867
 
5112
3868
  /** @internal */
5113
- export type AgentToolInputCRUD$Outbound =
5114
- | GoogleSearchTool$Outbound
5115
- | WebScraperTool$Outbound
5116
- | CallSubAgentTool$Outbound
5117
- | RetrieveAgentsTool$Outbound
5118
- | QueryMemoryStoreTool$Outbound
5119
- | WriteMemoryStoreTool$Outbound
5120
- | RetrieveMemoryStoresTool$Outbound
5121
- | DeleteMemoryDocumentTool$Outbound
5122
- | RetrieveKnowledgeBasesTool$Outbound
5123
- | QueryKnowledgeBaseTool$Outbound
5124
- | CurrentDateTool$Outbound
5125
- | CodeInterpreterTool$Outbound
5126
- | MCPTool$Outbound
5127
- | ProviderBuiltInTool$Outbound
5128
- | HTTPTool$Outbound
5129
- | CodeExecutionTool$Outbound
5130
- | FunctionTool$Outbound
5131
- | JSONSchemaTool$Outbound;
5132
-
5133
- /** @internal */
5134
- export const AgentToolInputCRUD$outboundSchema: z.ZodType<
5135
- AgentToolInputCRUD$Outbound,
3869
+ export type FallbackModelConfiguration$Outbound =
3870
+ | FallbackModelConfiguration2$Outbound
3871
+ | string;
3872
+
3873
+ /** @internal */
3874
+ export const FallbackModelConfiguration$outboundSchema: z.ZodType<
3875
+ FallbackModelConfiguration$Outbound,
5136
3876
  z.ZodTypeDef,
5137
- AgentToolInputCRUD
3877
+ FallbackModelConfiguration
5138
3878
  > = z.union([
5139
- z.lazy(() => GoogleSearchTool$outboundSchema),
5140
- z.lazy(() => WebScraperTool$outboundSchema),
5141
- z.lazy(() => CallSubAgentTool$outboundSchema),
5142
- z.lazy(() => RetrieveAgentsTool$outboundSchema),
5143
- z.lazy(() => QueryMemoryStoreTool$outboundSchema),
5144
- z.lazy(() => WriteMemoryStoreTool$outboundSchema),
5145
- z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
5146
- z.lazy(() => DeleteMemoryDocumentTool$outboundSchema),
5147
- z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
5148
- z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
5149
- z.lazy(() => CurrentDateTool$outboundSchema),
5150
- z.lazy(() => CodeInterpreterTool$outboundSchema),
5151
- z.lazy(() => MCPTool$outboundSchema),
5152
- z.lazy(() => ProviderBuiltInTool$outboundSchema),
5153
- z.lazy(() => HTTPTool$outboundSchema),
5154
- z.lazy(() => CodeExecutionTool$outboundSchema),
5155
- z.lazy(() => FunctionTool$outboundSchema),
5156
- z.lazy(() => JSONSchemaTool$outboundSchema),
3879
+ z.lazy(() => FallbackModelConfiguration2$outboundSchema),
3880
+ z.string(),
5157
3881
  ]);
5158
3882
 
5159
- export function agentToolInputCRUDToJSON(
5160
- agentToolInputCRUD: AgentToolInputCRUD,
3883
+ export function fallbackModelConfigurationToJSON(
3884
+ fallbackModelConfiguration: FallbackModelConfiguration,
5161
3885
  ): string {
5162
3886
  return JSON.stringify(
5163
- AgentToolInputCRUD$outboundSchema.parse(agentToolInputCRUD),
3887
+ FallbackModelConfiguration$outboundSchema.parse(fallbackModelConfiguration),
5164
3888
  );
5165
3889
  }
5166
3890
 
3891
+ /** @internal */
3892
+ export const ToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
3893
+ typeof ToolApprovalRequired
3894
+ > = z.nativeEnum(ToolApprovalRequired);
3895
+
5167
3896
  /** @internal */
5168
3897
  export const CreateAgentRequestExecuteOn$outboundSchema: z.ZodNativeEnum<
5169
3898
  typeof CreateAgentRequestExecuteOn
@@ -5241,28 +3970,7 @@ export type Settings$Outbound = {
5241
3970
  max_cost: number;
5242
3971
  tool_approval_required: string;
5243
3972
  chat_exposed?: boolean | undefined;
5244
- tools?:
5245
- | Array<
5246
- | GoogleSearchTool$Outbound
5247
- | WebScraperTool$Outbound
5248
- | CallSubAgentTool$Outbound
5249
- | RetrieveAgentsTool$Outbound
5250
- | QueryMemoryStoreTool$Outbound
5251
- | WriteMemoryStoreTool$Outbound
5252
- | RetrieveMemoryStoresTool$Outbound
5253
- | DeleteMemoryDocumentTool$Outbound
5254
- | RetrieveKnowledgeBasesTool$Outbound
5255
- | QueryKnowledgeBaseTool$Outbound
5256
- | CurrentDateTool$Outbound
5257
- | CodeInterpreterTool$Outbound
5258
- | MCPTool$Outbound
5259
- | ProviderBuiltInTool$Outbound
5260
- | HTTPTool$Outbound
5261
- | CodeExecutionTool$Outbound
5262
- | FunctionTool$Outbound
5263
- | JSONSchemaTool$Outbound
5264
- >
5265
- | undefined;
3973
+ tools?: Array<components.AgentToolInputCRUD$Outbound> | undefined;
5266
3974
  evaluators?: Array<Evaluators$Outbound> | undefined;
5267
3975
  guardrails?: Array<CreateAgentRequestGuardrails$Outbound> | undefined;
5268
3976
  };
@@ -5280,28 +3988,7 @@ export const Settings$outboundSchema: z.ZodType<
5280
3988
  "respect_tool",
5281
3989
  ),
5282
3990
  chatExposed: z.boolean().optional(),
5283
- tools: z.array(
5284
- z.union([
5285
- z.lazy(() => GoogleSearchTool$outboundSchema),
5286
- z.lazy(() => WebScraperTool$outboundSchema),
5287
- z.lazy(() => CallSubAgentTool$outboundSchema),
5288
- z.lazy(() => RetrieveAgentsTool$outboundSchema),
5289
- z.lazy(() => QueryMemoryStoreTool$outboundSchema),
5290
- z.lazy(() => WriteMemoryStoreTool$outboundSchema),
5291
- z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
5292
- z.lazy(() => DeleteMemoryDocumentTool$outboundSchema),
5293
- z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
5294
- z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
5295
- z.lazy(() => CurrentDateTool$outboundSchema),
5296
- z.lazy(() => CodeInterpreterTool$outboundSchema),
5297
- z.lazy(() => MCPTool$outboundSchema),
5298
- z.lazy(() => ProviderBuiltInTool$outboundSchema),
5299
- z.lazy(() => HTTPTool$outboundSchema),
5300
- z.lazy(() => CodeExecutionTool$outboundSchema),
5301
- z.lazy(() => FunctionTool$outboundSchema),
5302
- z.lazy(() => JSONSchemaTool$outboundSchema),
5303
- ]),
5304
- ).optional(),
3991
+ tools: z.array(components.AgentToolInputCRUD$outboundSchema).optional(),
5305
3992
  evaluators: z.array(z.lazy(() => Evaluators$outboundSchema)).optional(),
5306
3993
  guardrails: z.array(z.lazy(() => CreateAgentRequestGuardrails$outboundSchema))
5307
3994
  .optional(),
@@ -5570,7 +4257,7 @@ export const CreateAgentRequestTools$inboundSchema: z.ZodType<
5570
4257
  requires_approval: z.boolean().default(false),
5571
4258
  tool_id: z.string().optional(),
5572
4259
  conditions: z.array(z.lazy(() => Conditions$inboundSchema)).optional(),
5573
- timeout: z.number().default(120),
4260
+ timeout: z.number().optional(),
5574
4261
  }).transform((v) => {
5575
4262
  return remap$(v, {
5576
4263
  "action_type": "actionType",
@@ -7151,7 +5838,7 @@ export const CreateAgentRequestResponseBody$inboundSchema: z.ZodType<
7151
5838
  team_of_agents: z.array(
7152
5839
  z.lazy(() => CreateAgentRequestTeamOfAgents$inboundSchema),
7153
5840
  ).optional(),
7154
- skills: z.array(z.string()),
5841
+ skills: z.array(z.string()).optional(),
7155
5842
  metrics: z.lazy(() => Metrics$inboundSchema).optional(),
7156
5843
  variables: z.record(z.any()).optional(),
7157
5844
  knowledge_bases: z.array(