@orq-ai/node 4.1.0 → 4.1.3

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 (669) hide show
  1. package/README.md +49 -36
  2. package/_speakeasy/.github/action-inputs-config.json +53 -0
  3. package/_speakeasy/.github/action-security-config.json +88 -0
  4. package/bin/mcp-server.js +50175 -28131
  5. package/bin/mcp-server.js.map +302 -120
  6. package/examples/package-lock.json +2 -2
  7. package/funcs/conversationsGenerateName.d.ts +18 -0
  8. package/funcs/conversationsGenerateName.d.ts.map +1 -0
  9. package/funcs/conversationsGenerateName.js +128 -0
  10. package/funcs/conversationsGenerateName.js.map +1 -0
  11. package/funcs/conversationsList.js +2 -2
  12. package/funcs/conversationsList.js.map +1 -1
  13. package/funcs/{budgetsDelete.d.ts → evaluatorsGetV2EvaluatorsIdVersions.d.ts} +5 -4
  14. package/funcs/evaluatorsGetV2EvaluatorsIdVersions.d.ts.map +1 -0
  15. package/funcs/{budgetsGet.js → evaluatorsGetV2EvaluatorsIdVersions.js} +19 -9
  16. package/funcs/evaluatorsGetV2EvaluatorsIdVersions.js.map +1 -0
  17. package/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.d.ts +18 -0
  18. package/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.d.ts.map +1 -0
  19. package/funcs/{budgetsUpdate.js → evaluatorsGetV2EvaluatorsIdVersionsVersionId.js} +20 -13
  20. package/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.js.map +1 -0
  21. package/funcs/routerChatCompletions.d.ts +23 -0
  22. package/funcs/routerChatCompletions.d.ts.map +1 -0
  23. package/funcs/routerChatCompletions.js +121 -0
  24. package/funcs/routerChatCompletions.js.map +1 -0
  25. package/funcs/{budgetsList.d.ts → routerImagesGenerate.d.ts} +4 -4
  26. package/funcs/routerImagesGenerate.d.ts.map +1 -0
  27. package/funcs/{budgetsCreate.js → routerImagesGenerate.js} +10 -10
  28. package/funcs/routerImagesGenerate.js.map +1 -0
  29. package/funcs/{budgetsUpdate.d.ts → toolsGetV2ToolsToolIdVersions.d.ts} +5 -4
  30. package/funcs/toolsGetV2ToolsToolIdVersions.d.ts.map +1 -0
  31. package/funcs/{budgetsList.js → toolsGetV2ToolsToolIdVersions.js} +23 -16
  32. package/funcs/toolsGetV2ToolsToolIdVersions.js.map +1 -0
  33. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts +18 -0
  34. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +1 -0
  35. package/funcs/{budgetsDelete.js → toolsGetV2ToolsToolIdVersionsVersionId.js} +21 -14
  36. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js.map +1 -0
  37. package/jsr.json +1 -1
  38. package/lib/config.d.ts +3 -3
  39. package/lib/config.js +3 -3
  40. package/lib/config.js.map +1 -1
  41. package/lib/event-streams.js +1 -1
  42. package/lib/event-streams.js.map +1 -1
  43. package/mcp-server/mcp-server.js +1 -1
  44. package/mcp-server/prompts.d.ts +3 -3
  45. package/mcp-server/prompts.d.ts.map +1 -1
  46. package/mcp-server/prompts.js.map +1 -1
  47. package/mcp-server/resources.d.ts +3 -3
  48. package/mcp-server/resources.d.ts.map +1 -1
  49. package/mcp-server/resources.js.map +1 -1
  50. package/mcp-server/server.d.ts.map +1 -1
  51. package/mcp-server/server.js +15 -11
  52. package/mcp-server/server.js.map +1 -1
  53. package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
  54. package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
  55. package/mcp-server/tools/conversationsGenerateName.js +66 -0
  56. package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
  57. package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.d.ts +8 -0
  58. package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.d.ts.map +1 -0
  59. package/mcp-server/tools/{budgetsCreate.js → evaluatorsGetV2EvaluatorsIdVersions.js} +9 -9
  60. package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.js.map +1 -0
  61. package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.d.ts +8 -0
  62. package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.d.ts.map +1 -0
  63. package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.js +64 -0
  64. package/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.js.map +1 -0
  65. package/mcp-server/tools/routerChatCompletions.d.ts +8 -0
  66. package/mcp-server/tools/routerChatCompletions.d.ts.map +1 -0
  67. package/mcp-server/tools/{budgetsList.js → routerChatCompletions.js} +9 -9
  68. package/mcp-server/tools/routerChatCompletions.js.map +1 -0
  69. package/mcp-server/tools/routerImagesGenerate.d.ts +8 -0
  70. package/mcp-server/tools/routerImagesGenerate.d.ts.map +1 -0
  71. package/mcp-server/tools/{budgetsGet.js → routerImagesGenerate.js} +9 -9
  72. package/mcp-server/tools/routerImagesGenerate.js.map +1 -0
  73. package/mcp-server/tools/toolsGetV2ToolsToolIdVersions.d.ts +8 -0
  74. package/mcp-server/tools/toolsGetV2ToolsToolIdVersions.d.ts.map +1 -0
  75. package/mcp-server/tools/{budgetsUpdate.js → toolsGetV2ToolsToolIdVersions.js} +9 -9
  76. package/mcp-server/tools/toolsGetV2ToolsToolIdVersions.js.map +1 -0
  77. package/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.d.ts +8 -0
  78. package/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +1 -0
  79. package/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.js +64 -0
  80. package/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.js.map +1 -0
  81. package/mcp-server/tools.d.ts +3 -3
  82. package/mcp-server/tools.d.ts.map +1 -1
  83. package/mcp-server/tools.js.map +1 -1
  84. package/models/components/agentresponsemessage.d.ts +56 -0
  85. package/models/components/agentresponsemessage.d.ts.map +1 -0
  86. package/models/components/agentresponsemessage.js +116 -0
  87. package/models/components/agentresponsemessage.js.map +1 -0
  88. package/models/components/agentstartedstreamingevent.d.ts +6 -6
  89. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  90. package/models/components/agentstartedstreamingevent.js +11 -12
  91. package/models/components/agentstartedstreamingevent.js.map +1 -1
  92. package/models/components/conversationresponse.d.ts +34 -0
  93. package/models/components/conversationresponse.d.ts.map +1 -1
  94. package/models/components/conversationresponse.js +25 -3
  95. package/models/components/conversationresponse.js.map +1 -1
  96. package/models/components/createagentresponse.d.ts +124 -0
  97. package/models/components/createagentresponse.d.ts.map +1 -0
  98. package/models/components/createagentresponse.js +191 -0
  99. package/models/components/createagentresponse.js.map +1 -0
  100. package/models/components/index.d.ts +5 -0
  101. package/models/components/index.d.ts.map +1 -1
  102. package/models/components/index.js +5 -0
  103. package/models/components/index.js.map +1 -1
  104. package/models/components/invokedeploymentrequest.d.ts +12 -12
  105. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  106. package/models/components/invokedeploymentrequest.js +17 -15
  107. package/models/components/invokedeploymentrequest.js.map +1 -1
  108. package/models/components/partdoneevent.js +2 -2
  109. package/models/components/publiccontact.d.ts +52 -0
  110. package/models/components/publiccontact.d.ts.map +1 -0
  111. package/models/components/publiccontact.js +79 -0
  112. package/models/components/publiccontact.js.map +1 -0
  113. package/models/components/reasoningpart.js +2 -2
  114. package/models/components/responsedoneevent.d.ts +24 -24
  115. package/models/components/responsedoneevent.d.ts.map +1 -1
  116. package/models/components/responsedoneevent.js +31 -32
  117. package/models/components/responsedoneevent.js.map +1 -1
  118. package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
  119. package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
  120. package/models/{operations/deletebudget.js → components/thinkingconfigdisabledschema.js} +12 -12
  121. package/models/components/thinkingconfigdisabledschema.js.map +1 -0
  122. package/models/components/thinkingconfigenabledschema.d.ts +49 -0
  123. package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
  124. package/models/components/thinkingconfigenabledschema.js +84 -0
  125. package/models/components/thinkingconfigenabledschema.js.map +1 -0
  126. package/models/errors/generateconversationname.d.ts +55 -0
  127. package/models/errors/generateconversationname.d.ts.map +1 -0
  128. package/models/errors/generateconversationname.js +106 -0
  129. package/models/errors/generateconversationname.js.map +1 -0
  130. package/models/errors/getv2evaluatorsidversions.d.ts +29 -0
  131. package/models/errors/getv2evaluatorsidversions.d.ts.map +1 -0
  132. package/models/errors/getv2evaluatorsidversions.js +74 -0
  133. package/models/errors/getv2evaluatorsidversions.js.map +1 -0
  134. package/models/errors/getv2evaluatorsidversionsversionid.d.ts +29 -0
  135. package/models/errors/getv2evaluatorsidversionsversionid.d.ts.map +1 -0
  136. package/models/errors/getv2evaluatorsidversionsversionid.js +74 -0
  137. package/models/errors/getv2evaluatorsidversionsversionid.js.map +1 -0
  138. package/models/errors/getv2toolstoolidversions.d.ts +29 -0
  139. package/models/errors/getv2toolstoolidversions.d.ts.map +1 -0
  140. package/{mcp-server/tools/budgetsDelete.js → models/errors/getv2toolstoolidversions.js} +36 -25
  141. package/models/errors/getv2toolstoolidversions.js.map +1 -0
  142. package/models/errors/getv2toolstoolidversionsversionid.d.ts +29 -0
  143. package/models/errors/getv2toolstoolidversionsversionid.d.ts.map +1 -0
  144. package/models/errors/getv2toolstoolidversionsversionid.js +74 -0
  145. package/models/errors/getv2toolstoolidversionsversionid.js.map +1 -0
  146. package/models/errors/index.d.ts +5 -0
  147. package/models/errors/index.d.ts.map +1 -1
  148. package/models/errors/index.js +5 -0
  149. package/models/errors/index.js.map +1 -1
  150. package/models/operations/createagentrequest.d.ts +675 -282
  151. package/models/operations/createagentrequest.d.ts.map +1 -1
  152. package/models/operations/createagentrequest.js +635 -260
  153. package/models/operations/createagentrequest.js.map +1 -1
  154. package/models/operations/createagentresponserequest.d.ts +22 -166
  155. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  156. package/models/operations/createagentresponserequest.js +35 -228
  157. package/models/operations/createagentresponserequest.js.map +1 -1
  158. package/models/operations/createchatcompletion.d.ts +3154 -0
  159. package/models/operations/createchatcompletion.d.ts.map +1 -0
  160. package/models/operations/createchatcompletion.js +3400 -0
  161. package/models/operations/createchatcompletion.js.map +1 -0
  162. package/models/operations/createcontact.js +2 -2
  163. package/models/operations/createconversation.d.ts +56 -2
  164. package/models/operations/createconversation.d.ts.map +1 -1
  165. package/models/operations/createconversation.js +49 -5
  166. package/models/operations/createconversation.js.map +1 -1
  167. package/models/operations/createdataset.js +2 -2
  168. package/models/operations/createdatasetitem.d.ts +4 -4
  169. package/models/operations/createdatasetitem.d.ts.map +1 -1
  170. package/models/operations/createdatasetitem.js +12 -12
  171. package/models/operations/createdatasetitem.js.map +1 -1
  172. package/models/operations/createdatasource.js +2 -2
  173. package/models/operations/createeval.d.ts +44 -0
  174. package/models/operations/createeval.d.ts.map +1 -1
  175. package/models/operations/createeval.js +248 -28
  176. package/models/operations/createeval.js.map +1 -1
  177. package/models/operations/createimage.d.ts +433 -0
  178. package/models/operations/createimage.d.ts.map +1 -0
  179. package/models/operations/createimage.js +455 -0
  180. package/models/operations/createimage.js.map +1 -0
  181. package/models/operations/creatememory.d.ts +4 -1
  182. package/models/operations/creatememory.d.ts.map +1 -1
  183. package/models/operations/creatememory.js.map +1 -1
  184. package/models/operations/creatememorydocument.d.ts +5 -2
  185. package/models/operations/creatememorydocument.d.ts.map +1 -1
  186. package/models/operations/creatememorydocument.js.map +1 -1
  187. package/models/operations/createprompt.d.ts +24 -22
  188. package/models/operations/createprompt.d.ts.map +1 -1
  189. package/models/operations/createprompt.js +28 -26
  190. package/models/operations/createprompt.js.map +1 -1
  191. package/models/operations/createtool.js +12 -12
  192. package/models/operations/deploymentcreatemetric.d.ts +4 -4
  193. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  194. package/models/operations/deploymentcreatemetric.js +4 -4
  195. package/models/operations/deploymentcreatemetric.js.map +1 -1
  196. package/models/operations/deploymentgetconfig.d.ts +4 -4
  197. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  198. package/models/operations/deploymentgetconfig.js +4 -4
  199. package/models/operations/deploymentgetconfig.js.map +1 -1
  200. package/models/operations/deploymentinvoke.d.ts +38 -6
  201. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  202. package/models/operations/deploymentinvoke.js +71 -11
  203. package/models/operations/deploymentinvoke.js.map +1 -1
  204. package/models/operations/deployments.d.ts +2 -0
  205. package/models/operations/deployments.d.ts.map +1 -1
  206. package/models/operations/deployments.js +2 -0
  207. package/models/operations/deployments.js.map +1 -1
  208. package/models/operations/deploymentstream.d.ts +42 -10
  209. package/models/operations/deploymentstream.d.ts.map +1 -1
  210. package/models/operations/deploymentstream.js +77 -17
  211. package/models/operations/deploymentstream.js.map +1 -1
  212. package/models/operations/fileget.js +2 -2
  213. package/models/operations/filelist.js +2 -2
  214. package/models/operations/fileupload.js +2 -2
  215. package/models/operations/generateconversationname.d.ts +136 -0
  216. package/models/operations/generateconversationname.d.ts.map +1 -0
  217. package/models/operations/generateconversationname.js +157 -0
  218. package/models/operations/generateconversationname.js.map +1 -0
  219. package/models/operations/getallmemories.d.ts +3 -0
  220. package/models/operations/getallmemories.d.ts.map +1 -1
  221. package/models/operations/getallmemories.js.map +1 -1
  222. package/models/operations/getallmemorydocuments.d.ts +3 -0
  223. package/models/operations/getallmemorydocuments.d.ts.map +1 -1
  224. package/models/operations/getallmemorydocuments.js.map +1 -1
  225. package/models/operations/getallprompts.d.ts +10 -8
  226. package/models/operations/getallprompts.d.ts.map +1 -1
  227. package/models/operations/getallprompts.js +13 -12
  228. package/models/operations/getallprompts.js.map +1 -1
  229. package/models/operations/getalltools.js +12 -12
  230. package/models/operations/getevals.d.ts +28 -0
  231. package/models/operations/getevals.d.ts.map +1 -1
  232. package/models/operations/getevals.js +168 -28
  233. package/models/operations/getevals.js.map +1 -1
  234. package/models/operations/getoneprompt.d.ts +2 -0
  235. package/models/operations/getoneprompt.d.ts.map +1 -1
  236. package/models/operations/getoneprompt.js +2 -0
  237. package/models/operations/getoneprompt.js.map +1 -1
  238. package/models/operations/getpromptversion.d.ts +2 -0
  239. package/models/operations/getpromptversion.d.ts.map +1 -1
  240. package/models/operations/getpromptversion.js +2 -0
  241. package/models/operations/getpromptversion.js.map +1 -1
  242. package/models/operations/getv2evaluatorsidversions.d.ts +100 -0
  243. package/models/operations/getv2evaluatorsidversions.d.ts.map +1 -0
  244. package/models/operations/getv2evaluatorsidversions.js +166 -0
  245. package/models/operations/getv2evaluatorsidversions.js.map +1 -0
  246. package/models/operations/getv2evaluatorsidversionsversionid.d.ts +61 -0
  247. package/models/operations/getv2evaluatorsidversionsversionid.d.ts.map +1 -0
  248. package/models/operations/getv2evaluatorsidversionsversionid.js +125 -0
  249. package/models/operations/getv2evaluatorsidversionsversionid.js.map +1 -0
  250. package/models/operations/getv2toolstoolidversions.d.ts +100 -0
  251. package/models/operations/getv2toolstoolidversions.d.ts.map +1 -0
  252. package/models/operations/getv2toolstoolidversions.js +168 -0
  253. package/models/operations/getv2toolstoolidversions.js.map +1 -0
  254. package/models/operations/getv2toolstoolidversionsversionid.d.ts +61 -0
  255. package/models/operations/getv2toolstoolidversionsversionid.d.ts.map +1 -0
  256. package/models/operations/getv2toolstoolidversionsversionid.js +127 -0
  257. package/models/operations/getv2toolstoolidversionsversionid.js.map +1 -0
  258. package/models/operations/index.d.ts +7 -5
  259. package/models/operations/index.d.ts.map +1 -1
  260. package/models/operations/index.js +7 -5
  261. package/models/operations/index.js.map +1 -1
  262. package/models/operations/invokeagent.d.ts +6 -6
  263. package/models/operations/invokeagent.d.ts.map +1 -1
  264. package/models/operations/invokeagent.js +10 -9
  265. package/models/operations/invokeagent.js.map +1 -1
  266. package/models/operations/invokeeval.d.ts +5 -5
  267. package/models/operations/invokeeval.d.ts.map +1 -1
  268. package/models/operations/invokeeval.js +7 -7
  269. package/models/operations/invokeeval.js.map +1 -1
  270. package/models/operations/listagents.d.ts +231 -106
  271. package/models/operations/listagents.d.ts.map +1 -1
  272. package/models/operations/listagents.js +212 -91
  273. package/models/operations/listagents.js.map +1 -1
  274. package/models/operations/listcontacts.js +2 -2
  275. package/models/operations/listconversations.d.ts +4 -4
  276. package/models/operations/listconversations.d.ts.map +1 -1
  277. package/models/operations/listconversations.js +2 -12
  278. package/models/operations/listconversations.js.map +1 -1
  279. package/models/operations/listdatasetdatapoints.d.ts +2 -2
  280. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  281. package/models/operations/listdatasetdatapoints.js +10 -10
  282. package/models/operations/listdatasetdatapoints.js.map +1 -1
  283. package/models/operations/listdatasets.js +2 -2
  284. package/models/operations/listdatasources.js +2 -2
  285. package/models/operations/listpromptversions.d.ts +2 -0
  286. package/models/operations/listpromptversions.d.ts.map +1 -1
  287. package/models/operations/listpromptversions.js +2 -0
  288. package/models/operations/listpromptversions.js.map +1 -1
  289. package/models/operations/retrieveagentrequest.d.ts +231 -106
  290. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  291. package/models/operations/retrieveagentrequest.js +213 -91
  292. package/models/operations/retrieveagentrequest.js.map +1 -1
  293. package/models/operations/retrievecontact.js +2 -2
  294. package/models/operations/retrieveconversation.d.ts +34 -0
  295. package/models/operations/retrieveconversation.d.ts.map +1 -1
  296. package/models/operations/retrieveconversation.js +26 -3
  297. package/models/operations/retrieveconversation.js.map +1 -1
  298. package/models/operations/retrievedatapoint.d.ts +2 -2
  299. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  300. package/models/operations/retrievedatapoint.js +10 -10
  301. package/models/operations/retrievedatapoint.js.map +1 -1
  302. package/models/operations/retrievedataset.js +2 -2
  303. package/models/operations/retrievedatasource.js +2 -2
  304. package/models/operations/retrievememory.d.ts +3 -0
  305. package/models/operations/retrievememory.d.ts.map +1 -1
  306. package/models/operations/retrievememory.js.map +1 -1
  307. package/models/operations/retrievememorydocument.d.ts +3 -0
  308. package/models/operations/retrievememorydocument.d.ts.map +1 -1
  309. package/models/operations/retrievememorydocument.js.map +1 -1
  310. package/models/operations/retrievetool.js +12 -12
  311. package/models/operations/runagent.d.ts +230 -106
  312. package/models/operations/runagent.d.ts.map +1 -1
  313. package/models/operations/runagent.js +218 -98
  314. package/models/operations/runagent.js.map +1 -1
  315. package/models/operations/streamrunagent.d.ts +230 -106
  316. package/models/operations/streamrunagent.d.ts.map +1 -1
  317. package/models/operations/streamrunagent.js +215 -97
  318. package/models/operations/streamrunagent.js.map +1 -1
  319. package/models/operations/updateagent.d.ts +642 -246
  320. package/models/operations/updateagent.d.ts.map +1 -1
  321. package/models/operations/updateagent.js +581 -215
  322. package/models/operations/updateagent.js.map +1 -1
  323. package/models/operations/updatecontact.js +2 -2
  324. package/models/operations/updateconversation.d.ts +57 -0
  325. package/models/operations/updateconversation.d.ts.map +1 -1
  326. package/models/operations/updateconversation.js +47 -3
  327. package/models/operations/updateconversation.js.map +1 -1
  328. package/models/operations/updatedatapoint.d.ts +4 -4
  329. package/models/operations/updatedatapoint.d.ts.map +1 -1
  330. package/models/operations/updatedatapoint.js +12 -12
  331. package/models/operations/updatedatapoint.js.map +1 -1
  332. package/models/operations/updatedataset.js +2 -2
  333. package/models/operations/updatedatasource.js +2 -2
  334. package/models/operations/updateeval.d.ts +44 -0
  335. package/models/operations/updateeval.d.ts.map +1 -1
  336. package/models/operations/updateeval.js +248 -28
  337. package/models/operations/updateeval.js.map +1 -1
  338. package/models/operations/updatememory.d.ts +4 -1
  339. package/models/operations/updatememory.d.ts.map +1 -1
  340. package/models/operations/updatememory.js.map +1 -1
  341. package/models/operations/updatememorydocument.d.ts +5 -2
  342. package/models/operations/updatememorydocument.d.ts.map +1 -1
  343. package/models/operations/updatememorydocument.js.map +1 -1
  344. package/models/operations/updatememorystore.d.ts +2 -0
  345. package/models/operations/updatememorystore.d.ts.map +1 -1
  346. package/models/operations/updatememorystore.js +2 -0
  347. package/models/operations/updatememorystore.js.map +1 -1
  348. package/models/operations/updateprompt.d.ts +6 -2
  349. package/models/operations/updateprompt.d.ts.map +1 -1
  350. package/models/operations/updateprompt.js +6 -2
  351. package/models/operations/updateprompt.js.map +1 -1
  352. package/models/operations/updatetool.js +14 -14
  353. package/package.json +2 -2
  354. package/packages/orq-rc/examples/package-lock.json +2 -2
  355. package/packages/orq-rc/jsr.json +1 -1
  356. package/packages/orq-rc/package-lock.json +603 -98
  357. package/packages/orq-rc/package.json +2 -2
  358. package/{src/funcs/budgetsUpdate.ts → packages/orq-rc/src/funcs/conversationsGenerateName.ts} +45 -18
  359. package/packages/orq-rc/src/funcs/conversationsList.ts +2 -2
  360. package/{src/funcs/budgetsGet.ts → packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts} +32 -15
  361. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +190 -0
  362. package/{src/funcs/budgetsCreate.ts → packages/orq-rc/src/funcs/routerChatCompletions.ts} +29 -17
  363. package/{src/funcs/budgetsDelete.ts → packages/orq-rc/src/funcs/routerImagesGenerate.ts} +19 -26
  364. package/packages/orq-rc/src/funcs/{budgetsList.ts → toolsGetV2ToolsToolIdVersions.ts} +34 -21
  365. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +190 -0
  366. package/packages/orq-rc/src/lib/config.ts +3 -3
  367. package/packages/orq-rc/src/lib/event-streams.ts +1 -1
  368. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  369. package/packages/orq-rc/src/mcp-server/prompts.ts +7 -3
  370. package/packages/orq-rc/src/mcp-server/resources.ts +7 -3
  371. package/packages/orq-rc/src/mcp-server/server.ts +15 -11
  372. package/packages/orq-rc/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
  373. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +39 -0
  374. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +40 -0
  375. package/packages/orq-rc/src/mcp-server/tools/routerChatCompletions.ts +37 -0
  376. package/packages/orq-rc/src/mcp-server/tools/{budgetsUpdate.ts → routerImagesGenerate.ts} +7 -7
  377. package/{src/mcp-server/tools/budgetsGet.ts → packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersions.ts} +7 -7
  378. package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +39 -0
  379. package/packages/orq-rc/src/mcp-server/tools.ts +7 -3
  380. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +185 -0
  381. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +30 -21
  382. package/packages/orq-rc/src/models/components/conversationresponse.ts +68 -2
  383. package/packages/orq-rc/src/models/components/createagentresponse.ts +340 -0
  384. package/packages/orq-rc/src/models/components/index.ts +5 -0
  385. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +34 -26
  386. package/packages/orq-rc/src/models/components/partdoneevent.ts +2 -2
  387. package/packages/orq-rc/src/models/components/publiccontact.ts +99 -0
  388. package/packages/orq-rc/src/models/components/reasoningpart.ts +2 -2
  389. package/packages/orq-rc/src/models/components/responsedoneevent.ts +93 -68
  390. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  391. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
  392. package/packages/orq-rc/src/models/errors/generateconversationname.ts +132 -0
  393. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +67 -0
  394. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversionsversionid.ts +69 -0
  395. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +67 -0
  396. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +69 -0
  397. package/packages/orq-rc/src/models/errors/index.ts +5 -0
  398. package/packages/orq-rc/src/models/operations/createagentrequest.ts +1561 -542
  399. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +72 -513
  400. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +8948 -0
  401. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  402. package/packages/orq-rc/src/models/operations/createconversation.ts +141 -6
  403. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  404. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +16 -16
  405. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  406. package/packages/orq-rc/src/models/operations/createeval.ts +292 -28
  407. package/packages/orq-rc/src/models/operations/createimage.ts +966 -0
  408. package/packages/orq-rc/src/models/operations/creatememory.ts +4 -1
  409. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +5 -2
  410. package/packages/orq-rc/src/models/operations/createprompt.ts +54 -52
  411. package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
  412. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -8
  413. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +9 -9
  414. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +141 -16
  415. package/packages/orq-rc/src/models/operations/deployments.ts +2 -0
  416. package/packages/orq-rc/src/models/operations/deploymentstream.ts +171 -26
  417. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  418. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  419. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  420. package/packages/orq-rc/src/models/operations/generateconversationname.ts +319 -0
  421. package/packages/orq-rc/src/models/operations/getallmemories.ts +3 -0
  422. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +3 -0
  423. package/packages/orq-rc/src/models/operations/getallprompts.ts +47 -38
  424. package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
  425. package/packages/orq-rc/src/models/operations/getevals.ts +196 -28
  426. package/packages/orq-rc/src/models/operations/getoneprompt.ts +2 -0
  427. package/packages/orq-rc/src/models/operations/getpromptversion.ts +2 -0
  428. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +274 -0
  429. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversionsversionid.ts +193 -0
  430. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +276 -0
  431. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +194 -0
  432. package/packages/orq-rc/src/models/operations/index.ts +7 -5
  433. package/packages/orq-rc/src/models/operations/invokeagent.ts +19 -26
  434. package/packages/orq-rc/src/models/operations/invokeeval.ts +11 -10
  435. package/packages/orq-rc/src/models/operations/listagents.ts +502 -194
  436. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  437. package/packages/orq-rc/src/models/operations/listconversations.ts +6 -16
  438. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +12 -12
  439. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  440. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  441. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2 -0
  442. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +532 -202
  443. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  444. package/packages/orq-rc/src/models/operations/retrieveconversation.ts +75 -2
  445. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +12 -12
  446. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  447. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  448. package/packages/orq-rc/src/models/operations/retrievememory.ts +3 -0
  449. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +3 -0
  450. package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
  451. package/packages/orq-rc/src/models/operations/runagent.ts +505 -202
  452. package/packages/orq-rc/src/models/operations/streamrunagent.ts +532 -209
  453. package/packages/orq-rc/src/models/operations/updateagent.ts +1491 -465
  454. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  455. package/packages/orq-rc/src/models/operations/updateconversation.ts +140 -2
  456. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +16 -16
  457. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  458. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  459. package/packages/orq-rc/src/models/operations/updateeval.ts +292 -28
  460. package/packages/orq-rc/src/models/operations/updatememory.ts +4 -1
  461. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +5 -2
  462. package/packages/orq-rc/src/models/operations/updatememorystore.ts +2 -0
  463. package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -4
  464. package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
  465. package/packages/orq-rc/src/sdk/conversations.ts +20 -0
  466. package/packages/orq-rc/src/sdk/evaluators.ts +45 -0
  467. package/packages/orq-rc/src/sdk/router.ts +52 -0
  468. package/packages/orq-rc/src/sdk/sdk.ts +12 -6
  469. package/packages/orq-rc/src/sdk/tools.ts +36 -0
  470. package/sdk/conversations.d.ts +7 -0
  471. package/sdk/conversations.d.ts.map +1 -1
  472. package/sdk/conversations.js +10 -0
  473. package/sdk/conversations.js.map +1 -1
  474. package/sdk/evaluators.d.ts +19 -0
  475. package/sdk/evaluators.d.ts.map +1 -0
  476. package/sdk/evaluators.js +32 -0
  477. package/sdk/evaluators.js.map +1 -0
  478. package/sdk/router.d.ts +23 -0
  479. package/sdk/router.d.ts.map +1 -0
  480. package/sdk/router.js +34 -0
  481. package/sdk/router.js.map +1 -0
  482. package/sdk/sdk.d.ts +6 -3
  483. package/sdk/sdk.d.ts.map +1 -1
  484. package/sdk/sdk.js +8 -4
  485. package/sdk/sdk.js.map +1 -1
  486. package/sdk/tools.d.ts +14 -0
  487. package/sdk/tools.d.ts.map +1 -1
  488. package/sdk/tools.js +20 -0
  489. package/sdk/tools.js.map +1 -1
  490. package/{packages/orq-rc/src/funcs/budgetsUpdate.ts → src/funcs/conversationsGenerateName.ts} +45 -18
  491. package/src/funcs/conversationsList.ts +2 -2
  492. package/{packages/orq-rc/src/funcs/budgetsGet.ts → src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts} +32 -15
  493. package/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +190 -0
  494. package/{packages/orq-rc/src/funcs/budgetsCreate.ts → src/funcs/routerChatCompletions.ts} +29 -17
  495. package/{packages/orq-rc/src/funcs/budgetsDelete.ts → src/funcs/routerImagesGenerate.ts} +19 -26
  496. package/src/funcs/{budgetsList.ts → toolsGetV2ToolsToolIdVersions.ts} +34 -21
  497. package/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +190 -0
  498. package/src/lib/config.ts +3 -3
  499. package/src/lib/event-streams.ts +1 -1
  500. package/src/mcp-server/mcp-server.ts +1 -1
  501. package/src/mcp-server/prompts.ts +7 -3
  502. package/src/mcp-server/resources.ts +7 -3
  503. package/src/mcp-server/server.ts +15 -11
  504. package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
  505. package/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +39 -0
  506. package/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +40 -0
  507. package/src/mcp-server/tools/routerChatCompletions.ts +37 -0
  508. package/{packages/orq-rc/src/mcp-server/tools/budgetsGet.ts → src/mcp-server/tools/routerImagesGenerate.ts} +7 -7
  509. package/src/mcp-server/tools/{budgetsUpdate.ts → toolsGetV2ToolsToolIdVersions.ts} +7 -7
  510. package/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +39 -0
  511. package/src/mcp-server/tools.ts +7 -3
  512. package/src/models/components/agentresponsemessage.ts +185 -0
  513. package/src/models/components/agentstartedstreamingevent.ts +30 -21
  514. package/src/models/components/conversationresponse.ts +68 -2
  515. package/src/models/components/createagentresponse.ts +340 -0
  516. package/src/models/components/index.ts +5 -0
  517. package/src/models/components/invokedeploymentrequest.ts +33 -25
  518. package/src/models/components/partdoneevent.ts +2 -2
  519. package/src/models/components/publiccontact.ts +99 -0
  520. package/src/models/components/reasoningpart.ts +2 -2
  521. package/src/models/components/responsedoneevent.ts +93 -68
  522. package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  523. package/src/models/components/thinkingconfigenabledschema.ts +106 -0
  524. package/src/models/errors/generateconversationname.ts +132 -0
  525. package/src/models/errors/getv2evaluatorsidversions.ts +67 -0
  526. package/src/models/errors/getv2evaluatorsidversionsversionid.ts +69 -0
  527. package/src/models/errors/getv2toolstoolidversions.ts +67 -0
  528. package/src/models/errors/getv2toolstoolidversionsversionid.ts +69 -0
  529. package/src/models/errors/index.ts +5 -0
  530. package/src/models/operations/createagentrequest.ts +1561 -542
  531. package/src/models/operations/createagentresponserequest.ts +72 -513
  532. package/src/models/operations/createchatcompletion.ts +8948 -0
  533. package/src/models/operations/createcontact.ts +2 -2
  534. package/src/models/operations/createconversation.ts +141 -6
  535. package/src/models/operations/createdataset.ts +2 -2
  536. package/src/models/operations/createdatasetitem.ts +16 -16
  537. package/src/models/operations/createdatasource.ts +2 -2
  538. package/src/models/operations/createeval.ts +292 -28
  539. package/src/models/operations/createimage.ts +966 -0
  540. package/src/models/operations/creatememory.ts +4 -1
  541. package/src/models/operations/creatememorydocument.ts +5 -2
  542. package/src/models/operations/createprompt.ts +54 -52
  543. package/src/models/operations/createtool.ts +12 -12
  544. package/src/models/operations/deploymentcreatemetric.ts +8 -8
  545. package/src/models/operations/deploymentgetconfig.ts +8 -8
  546. package/src/models/operations/deploymentinvoke.ts +141 -16
  547. package/src/models/operations/deployments.ts +2 -0
  548. package/src/models/operations/deploymentstream.ts +170 -25
  549. package/src/models/operations/fileget.ts +2 -2
  550. package/src/models/operations/filelist.ts +2 -2
  551. package/src/models/operations/fileupload.ts +2 -2
  552. package/src/models/operations/generateconversationname.ts +319 -0
  553. package/src/models/operations/getallmemories.ts +3 -0
  554. package/src/models/operations/getallmemorydocuments.ts +3 -0
  555. package/src/models/operations/getallprompts.ts +47 -38
  556. package/src/models/operations/getalltools.ts +12 -12
  557. package/src/models/operations/getevals.ts +196 -28
  558. package/src/models/operations/getoneprompt.ts +2 -0
  559. package/src/models/operations/getpromptversion.ts +2 -0
  560. package/src/models/operations/getv2evaluatorsidversions.ts +274 -0
  561. package/src/models/operations/getv2evaluatorsidversionsversionid.ts +193 -0
  562. package/src/models/operations/getv2toolstoolidversions.ts +276 -0
  563. package/src/models/operations/getv2toolstoolidversionsversionid.ts +194 -0
  564. package/src/models/operations/index.ts +7 -5
  565. package/src/models/operations/invokeagent.ts +19 -26
  566. package/src/models/operations/invokeeval.ts +11 -10
  567. package/src/models/operations/listagents.ts +502 -194
  568. package/src/models/operations/listcontacts.ts +2 -2
  569. package/src/models/operations/listconversations.ts +6 -16
  570. package/src/models/operations/listdatasetdatapoints.ts +12 -12
  571. package/src/models/operations/listdatasets.ts +2 -2
  572. package/src/models/operations/listdatasources.ts +2 -2
  573. package/src/models/operations/listpromptversions.ts +2 -0
  574. package/src/models/operations/retrieveagentrequest.ts +532 -202
  575. package/src/models/operations/retrievecontact.ts +2 -2
  576. package/src/models/operations/retrieveconversation.ts +75 -2
  577. package/src/models/operations/retrievedatapoint.ts +12 -12
  578. package/src/models/operations/retrievedataset.ts +2 -2
  579. package/src/models/operations/retrievedatasource.ts +2 -2
  580. package/src/models/operations/retrievememory.ts +3 -0
  581. package/src/models/operations/retrievememorydocument.ts +3 -0
  582. package/src/models/operations/retrievetool.ts +12 -12
  583. package/src/models/operations/runagent.ts +505 -202
  584. package/src/models/operations/streamrunagent.ts +532 -209
  585. package/src/models/operations/updateagent.ts +1491 -465
  586. package/src/models/operations/updatecontact.ts +2 -2
  587. package/src/models/operations/updateconversation.ts +140 -2
  588. package/src/models/operations/updatedatapoint.ts +16 -16
  589. package/src/models/operations/updatedataset.ts +2 -2
  590. package/src/models/operations/updatedatasource.ts +2 -2
  591. package/src/models/operations/updateeval.ts +292 -28
  592. package/src/models/operations/updatememory.ts +4 -1
  593. package/src/models/operations/updatememorydocument.ts +5 -2
  594. package/src/models/operations/updatememorystore.ts +2 -0
  595. package/src/models/operations/updateprompt.ts +8 -4
  596. package/src/models/operations/updatetool.ts +14 -14
  597. package/src/sdk/conversations.ts +20 -0
  598. package/src/sdk/evaluators.ts +45 -0
  599. package/src/sdk/router.ts +52 -0
  600. package/src/sdk/sdk.ts +12 -6
  601. package/src/sdk/tools.ts +36 -0
  602. package/funcs/budgetsCreate.d.ts +0 -17
  603. package/funcs/budgetsCreate.d.ts.map +0 -1
  604. package/funcs/budgetsCreate.js.map +0 -1
  605. package/funcs/budgetsDelete.d.ts.map +0 -1
  606. package/funcs/budgetsDelete.js.map +0 -1
  607. package/funcs/budgetsGet.d.ts +0 -17
  608. package/funcs/budgetsGet.d.ts.map +0 -1
  609. package/funcs/budgetsGet.js.map +0 -1
  610. package/funcs/budgetsList.d.ts.map +0 -1
  611. package/funcs/budgetsList.js.map +0 -1
  612. package/funcs/budgetsUpdate.d.ts.map +0 -1
  613. package/funcs/budgetsUpdate.js.map +0 -1
  614. package/mcp-server/tools/budgetsCreate.d.ts +0 -8
  615. package/mcp-server/tools/budgetsCreate.d.ts.map +0 -1
  616. package/mcp-server/tools/budgetsCreate.js.map +0 -1
  617. package/mcp-server/tools/budgetsDelete.d.ts +0 -8
  618. package/mcp-server/tools/budgetsDelete.d.ts.map +0 -1
  619. package/mcp-server/tools/budgetsDelete.js.map +0 -1
  620. package/mcp-server/tools/budgetsGet.d.ts +0 -8
  621. package/mcp-server/tools/budgetsGet.d.ts.map +0 -1
  622. package/mcp-server/tools/budgetsGet.js.map +0 -1
  623. package/mcp-server/tools/budgetsList.d.ts +0 -8
  624. package/mcp-server/tools/budgetsList.d.ts.map +0 -1
  625. package/mcp-server/tools/budgetsList.js.map +0 -1
  626. package/mcp-server/tools/budgetsUpdate.d.ts +0 -8
  627. package/mcp-server/tools/budgetsUpdate.d.ts.map +0 -1
  628. package/mcp-server/tools/budgetsUpdate.js.map +0 -1
  629. package/models/operations/createbudget.d.ts +0 -315
  630. package/models/operations/createbudget.d.ts.map +0 -1
  631. package/models/operations/createbudget.js +0 -314
  632. package/models/operations/createbudget.js.map +0 -1
  633. package/models/operations/deletebudget.d.ts +0 -20
  634. package/models/operations/deletebudget.d.ts.map +0 -1
  635. package/models/operations/deletebudget.js.map +0 -1
  636. package/models/operations/getbudget.d.ts +0 -171
  637. package/models/operations/getbudget.d.ts.map +0 -1
  638. package/models/operations/getbudget.js +0 -191
  639. package/models/operations/getbudget.js.map +0 -1
  640. package/models/operations/listbudgets.d.ts +0 -234
  641. package/models/operations/listbudgets.d.ts.map +0 -1
  642. package/models/operations/listbudgets.js +0 -257
  643. package/models/operations/listbudgets.js.map +0 -1
  644. package/models/operations/updatebudget.d.ts +0 -235
  645. package/models/operations/updatebudget.d.ts.map +0 -1
  646. package/models/operations/updatebudget.js +0 -260
  647. package/models/operations/updatebudget.js.map +0 -1
  648. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
  649. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
  650. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
  651. package/packages/orq-rc/src/models/operations/createbudget.ts +0 -653
  652. package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -54
  653. package/packages/orq-rc/src/models/operations/getbudget.ts +0 -366
  654. package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -503
  655. package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -511
  656. package/packages/orq-rc/src/sdk/budgets.ts +0 -99
  657. package/sdk/budgets.d.ts +0 -40
  658. package/sdk/budgets.d.ts.map +0 -1
  659. package/sdk/budgets.js +0 -62
  660. package/sdk/budgets.js.map +0 -1
  661. package/src/mcp-server/tools/budgetsCreate.ts +0 -37
  662. package/src/mcp-server/tools/budgetsDelete.ts +0 -35
  663. package/src/mcp-server/tools/budgetsList.ts +0 -37
  664. package/src/models/operations/createbudget.ts +0 -653
  665. package/src/models/operations/deletebudget.ts +0 -54
  666. package/src/models/operations/getbudget.ts +0 -366
  667. package/src/models/operations/listbudgets.ts +0 -503
  668. package/src/models/operations/updatebudget.ts +0 -511
  669. package/src/sdk/budgets.ts +0 -99
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
12
13
  /**
@@ -113,6 +114,42 @@ export type ModelConfigurationResponseFormat =
113
114
  | UpdateAgentResponseFormatJSONObject
114
115
  | UpdateAgentResponseFormatJSONSchema;
115
116
 
117
+ /**
118
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
119
+ *
120
+ * @remarks
121
+ *
122
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
123
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
124
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
125
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
126
+ *
127
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
128
+ */
129
+ export const ModelConfigurationReasoningEffort = {
130
+ None: "none",
131
+ Minimal: "minimal",
132
+ Low: "low",
133
+ Medium: "medium",
134
+ High: "high",
135
+ Xhigh: "xhigh",
136
+ } as const;
137
+ /**
138
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
139
+ *
140
+ * @remarks
141
+ *
142
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
143
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
144
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
145
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
146
+ *
147
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
148
+ */
149
+ export type ModelConfigurationReasoningEffort = ClosedEnum<
150
+ typeof ModelConfigurationReasoningEffort
151
+ >;
152
+
116
153
  /**
117
154
  * Up to 4 sequences where the API will stop generating further tokens.
118
155
  */
@@ -128,48 +165,9 @@ export type ModelConfigurationStreamOptions = {
128
165
  includeUsage?: boolean | undefined;
129
166
  };
130
167
 
131
- /**
132
- * Enables or disables the thinking mode capability
133
- */
134
- export const UpdateAgentModelConfigurationType = {
135
- Enabled: "enabled",
136
- Disabled: "disabled",
137
- } as const;
138
- /**
139
- * Enables or disables the thinking mode capability
140
- */
141
- export type UpdateAgentModelConfigurationType = ClosedEnum<
142
- typeof UpdateAgentModelConfigurationType
143
- >;
144
-
145
- /**
146
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
147
- */
148
- export const ModelConfigurationThinkingLevel = {
149
- Low: "low",
150
- High: "high",
151
- } as const;
152
- /**
153
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
154
- */
155
- export type ModelConfigurationThinkingLevel = ClosedEnum<
156
- typeof ModelConfigurationThinkingLevel
157
- >;
158
-
159
- export type ModelConfigurationThinking = {
160
- /**
161
- * Enables or disables the thinking mode capability
162
- */
163
- type: UpdateAgentModelConfigurationType;
164
- /**
165
- * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
166
- */
167
- budgetTokens: number;
168
- /**
169
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
170
- */
171
- thinkingLevel?: ModelConfigurationThinkingLevel | undefined;
172
- };
168
+ export type ModelConfigurationThinking =
169
+ | components.ThinkingConfigDisabledSchema
170
+ | components.ThinkingConfigEnabledSchema;
173
171
 
174
172
  /**
175
173
  * The type of the tool. Currently, only function is supported.
@@ -221,6 +219,43 @@ export type ModelConfigurationModalities = ClosedEnum<
221
219
  typeof ModelConfigurationModalities
222
220
  >;
223
221
 
222
+ /**
223
+ * The key of the guardrail.
224
+ */
225
+ export const UpdateAgentId1 = {
226
+ OrqPiiDetection: "orq_pii_detection",
227
+ OrqSexualModeration: "orq_sexual_moderation",
228
+ OrqHarmfulModeration: "orq_harmful_moderation",
229
+ } as const;
230
+ /**
231
+ * The key of the guardrail.
232
+ */
233
+ export type UpdateAgentId1 = ClosedEnum<typeof UpdateAgentId1>;
234
+
235
+ export type ModelConfigurationId = UpdateAgentId1 | string;
236
+
237
+ /**
238
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
239
+ */
240
+ export const ModelConfigurationExecuteOn = {
241
+ Input: "input",
242
+ Output: "output",
243
+ } as const;
244
+ /**
245
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
246
+ */
247
+ export type ModelConfigurationExecuteOn = ClosedEnum<
248
+ typeof ModelConfigurationExecuteOn
249
+ >;
250
+
251
+ export type ModelConfigurationGuardrails = {
252
+ id: UpdateAgentId1 | string;
253
+ /**
254
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
255
+ */
256
+ executeOn: ModelConfigurationExecuteOn;
257
+ };
258
+
224
259
  /**
225
260
  * Model behavior parameters that control how the model generates responses. Common parameters: `temperature` (0-1, randomness), `max_completion_tokens` (max output length), `top_p` (sampling diversity). Advanced: `frequency_penalty`, `presence_penalty`, `response_format` (JSON/structured), `reasoning_effort`, `seed` (reproducibility). Support varies by model - consult AI Gateway documentation.
226
261
  */
@@ -270,9 +305,18 @@ export type ModelConfigurationParameters = {
270
305
  | UpdateAgentResponseFormatJSONSchema
271
306
  | undefined;
272
307
  /**
273
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
308
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
309
+ *
310
+ * @remarks
311
+ *
312
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
313
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
314
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
315
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
316
+ *
317
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
274
318
  */
275
- reasoningEffort?: string | undefined;
319
+ reasoningEffort?: ModelConfigurationReasoningEffort | undefined;
276
320
  /**
277
321
  * Adjusts response verbosity. Lower levels yield shorter answers.
278
322
  */
@@ -289,7 +333,10 @@ export type ModelConfigurationParameters = {
289
333
  * Options for streaming response. Only set this when you set stream: true.
290
334
  */
291
335
  streamOptions?: ModelConfigurationStreamOptions | null | undefined;
292
- thinking?: ModelConfigurationThinking | undefined;
336
+ thinking?:
337
+ | components.ThinkingConfigDisabledSchema
338
+ | components.ThinkingConfigEnabledSchema
339
+ | undefined;
293
340
  /**
294
341
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
295
342
  */
@@ -314,6 +361,10 @@ export type ModelConfigurationParameters = {
314
361
  * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
315
362
  */
316
363
  modalities?: Array<ModelConfigurationModalities> | null | undefined;
364
+ /**
365
+ * A list of guardrails to apply to the request.
366
+ */
367
+ guardrails?: Array<ModelConfigurationGuardrails> | undefined;
317
368
  };
318
369
 
319
370
  /**
@@ -461,6 +512,42 @@ export type UpdateAgentFallbackModelConfigurationResponseFormat =
461
512
  | UpdateAgentResponseFormatAgentsJSONObject
462
513
  | UpdateAgentResponseFormatAgentsRequestJSONSchema;
463
514
 
515
+ /**
516
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
517
+ *
518
+ * @remarks
519
+ *
520
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
521
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
522
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
523
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
524
+ *
525
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
526
+ */
527
+ export const UpdateAgentFallbackModelConfigurationReasoningEffort = {
528
+ None: "none",
529
+ Minimal: "minimal",
530
+ Low: "low",
531
+ Medium: "medium",
532
+ High: "high",
533
+ Xhigh: "xhigh",
534
+ } as const;
535
+ /**
536
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
537
+ *
538
+ * @remarks
539
+ *
540
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
541
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
542
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
543
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
544
+ *
545
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
546
+ */
547
+ export type UpdateAgentFallbackModelConfigurationReasoningEffort = ClosedEnum<
548
+ typeof UpdateAgentFallbackModelConfigurationReasoningEffort
549
+ >;
550
+
464
551
  /**
465
552
  * Up to 4 sequences where the API will stop generating further tokens.
466
553
  */
@@ -476,50 +563,9 @@ export type UpdateAgentFallbackModelConfigurationStreamOptions = {
476
563
  includeUsage?: boolean | undefined;
477
564
  };
478
565
 
479
- /**
480
- * Enables or disables the thinking mode capability
481
- */
482
- export const UpdateAgentFallbackModelConfigurationType = {
483
- Enabled: "enabled",
484
- Disabled: "disabled",
485
- } as const;
486
- /**
487
- * Enables or disables the thinking mode capability
488
- */
489
- export type UpdateAgentFallbackModelConfigurationType = ClosedEnum<
490
- typeof UpdateAgentFallbackModelConfigurationType
491
- >;
492
-
493
- /**
494
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
495
- */
496
- export const UpdateAgentFallbackModelConfigurationThinkingLevel = {
497
- Low: "low",
498
- High: "high",
499
- } as const;
500
- /**
501
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
502
- */
503
- export type UpdateAgentFallbackModelConfigurationThinkingLevel = ClosedEnum<
504
- typeof UpdateAgentFallbackModelConfigurationThinkingLevel
505
- >;
506
-
507
- export type UpdateAgentFallbackModelConfigurationThinking = {
508
- /**
509
- * Enables or disables the thinking mode capability
510
- */
511
- type: UpdateAgentFallbackModelConfigurationType;
512
- /**
513
- * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
514
- */
515
- budgetTokens: number;
516
- /**
517
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
518
- */
519
- thinkingLevel?:
520
- | UpdateAgentFallbackModelConfigurationThinkingLevel
521
- | undefined;
522
- };
566
+ export type UpdateAgentFallbackModelConfigurationThinking =
567
+ | components.ThinkingConfigDisabledSchema
568
+ | components.ThinkingConfigEnabledSchema;
523
569
 
524
570
  /**
525
571
  * The type of the tool. Currently, only function is supported.
@@ -573,6 +619,45 @@ export type UpdateAgentFallbackModelConfigurationModalities = ClosedEnum<
573
619
  typeof UpdateAgentFallbackModelConfigurationModalities
574
620
  >;
575
621
 
622
+ /**
623
+ * The key of the guardrail.
624
+ */
625
+ export const UpdateAgentIdAgents1 = {
626
+ OrqPiiDetection: "orq_pii_detection",
627
+ OrqSexualModeration: "orq_sexual_moderation",
628
+ OrqHarmfulModeration: "orq_harmful_moderation",
629
+ } as const;
630
+ /**
631
+ * The key of the guardrail.
632
+ */
633
+ export type UpdateAgentIdAgents1 = ClosedEnum<typeof UpdateAgentIdAgents1>;
634
+
635
+ export type UpdateAgentFallbackModelConfigurationId =
636
+ | UpdateAgentIdAgents1
637
+ | string;
638
+
639
+ /**
640
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
641
+ */
642
+ export const UpdateAgentFallbackModelConfigurationExecuteOn = {
643
+ Input: "input",
644
+ Output: "output",
645
+ } as const;
646
+ /**
647
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
648
+ */
649
+ export type UpdateAgentFallbackModelConfigurationExecuteOn = ClosedEnum<
650
+ typeof UpdateAgentFallbackModelConfigurationExecuteOn
651
+ >;
652
+
653
+ export type UpdateAgentFallbackModelConfigurationGuardrails = {
654
+ id: UpdateAgentIdAgents1 | string;
655
+ /**
656
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
657
+ */
658
+ executeOn: UpdateAgentFallbackModelConfigurationExecuteOn;
659
+ };
660
+
576
661
  /**
577
662
  * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
578
663
  */
@@ -622,9 +707,20 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
622
707
  | UpdateAgentResponseFormatAgentsRequestJSONSchema
623
708
  | undefined;
624
709
  /**
625
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
710
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
711
+ *
712
+ * @remarks
713
+ *
714
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
715
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
716
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
717
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
718
+ *
719
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
626
720
  */
627
- reasoningEffort?: string | undefined;
721
+ reasoningEffort?:
722
+ | UpdateAgentFallbackModelConfigurationReasoningEffort
723
+ | undefined;
628
724
  /**
629
725
  * Adjusts response verbosity. Lower levels yield shorter answers.
630
726
  */
@@ -644,7 +740,10 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
644
740
  | UpdateAgentFallbackModelConfigurationStreamOptions
645
741
  | null
646
742
  | undefined;
647
- thinking?: UpdateAgentFallbackModelConfigurationThinking | undefined;
743
+ thinking?:
744
+ | components.ThinkingConfigDisabledSchema
745
+ | components.ThinkingConfigEnabledSchema
746
+ | undefined;
648
747
  /**
649
748
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
650
749
  */
@@ -675,6 +774,12 @@ export type UpdateAgentFallbackModelConfigurationParameters = {
675
774
  | Array<UpdateAgentFallbackModelConfigurationModalities>
676
775
  | null
677
776
  | undefined;
777
+ /**
778
+ * A list of guardrails to apply to the request.
779
+ */
780
+ guardrails?:
781
+ | Array<UpdateAgentFallbackModelConfigurationGuardrails>
782
+ | undefined;
678
783
  };
679
784
 
680
785
  /**
@@ -713,6 +818,21 @@ export type UpdateAgentToolApprovalRequired = ClosedEnum<
713
818
  typeof UpdateAgentToolApprovalRequired
714
819
  >;
715
820
 
821
+ /**
822
+ * MCP tool type
823
+ */
824
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
825
+ {
826
+ Mcp: "mcp",
827
+ } as const;
828
+ /**
829
+ * MCP tool type
830
+ */
831
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type =
832
+ ClosedEnum<
833
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
834
+ >;
835
+
716
836
  /**
717
837
  * 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".
718
838
  */
@@ -720,7 +840,9 @@ export type AgentToolInputCRUDMCPTool = {
720
840
  /**
721
841
  * MCP tool type
722
842
  */
723
- type: "mcp";
843
+ type?:
844
+ | UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
845
+ | undefined;
724
846
  /**
725
847
  * The key of the parent MCP tool
726
848
  */
@@ -739,6 +861,21 @@ export type AgentToolInputCRUDMCPTool = {
739
861
  requiresApproval?: boolean | undefined;
740
862
  };
741
863
 
864
+ /**
865
+ * Function tool type
866
+ */
867
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
868
+ {
869
+ Function: "function",
870
+ } as const;
871
+ /**
872
+ * Function tool type
873
+ */
874
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
875
+ ClosedEnum<
876
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
877
+ >;
878
+
742
879
  /**
743
880
  * Calls custom function tools defined in the agent configuration. Must reference a pre-created function tool by key or id.
744
881
  */
@@ -746,7 +883,9 @@ export type AgentToolInputCRUDFunctionTool = {
746
883
  /**
747
884
  * Function tool type
748
885
  */
749
- type: "function";
886
+ type?:
887
+ | UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
888
+ | undefined;
750
889
  /**
751
890
  * The key of the pre-created function tool
752
891
  */
@@ -761,6 +900,21 @@ export type AgentToolInputCRUDFunctionTool = {
761
900
  requiresApproval?: boolean | undefined;
762
901
  };
763
902
 
903
+ /**
904
+ * Code execution tool type
905
+ */
906
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
907
+ {
908
+ Code: "code",
909
+ } as const;
910
+ /**
911
+ * Code execution tool type
912
+ */
913
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
914
+ ClosedEnum<
915
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
916
+ >;
917
+
764
918
  /**
765
919
  * Executes code snippets in a sandboxed environment. Must reference a pre-created code tool by key or id.
766
920
  */
@@ -768,7 +922,9 @@ export type AgentToolInputCRUDCodeExecutionTool = {
768
922
  /**
769
923
  * Code execution tool type
770
924
  */
771
- type: "code";
925
+ type?:
926
+ | UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
927
+ | undefined;
772
928
  /**
773
929
  * The key of the pre-created code tool
774
930
  */
@@ -783,6 +939,21 @@ export type AgentToolInputCRUDCodeExecutionTool = {
783
939
  requiresApproval?: boolean | undefined;
784
940
  };
785
941
 
942
+ /**
943
+ * HTTP tool type
944
+ */
945
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
946
+ {
947
+ Http: "http",
948
+ } as const;
949
+ /**
950
+ * HTTP tool type
951
+ */
952
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
953
+ ClosedEnum<
954
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
955
+ >;
956
+
786
957
  /**
787
958
  * Executes HTTP requests to interact with external APIs and web services. Must reference a pre-created HTTP tool by key or id.
788
959
  */
@@ -790,7 +961,9 @@ export type AgentToolInputCRUDHTTPTool = {
790
961
  /**
791
962
  * HTTP tool type
792
963
  */
793
- type: "http";
964
+ type?:
965
+ | UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
966
+ | undefined;
794
967
  /**
795
968
  * The key of the pre-created HTTP tool
796
969
  */
@@ -805,121 +978,213 @@ export type AgentToolInputCRUDHTTPTool = {
805
978
  requiresApproval?: boolean | undefined;
806
979
  };
807
980
 
981
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
982
+ {
983
+ CurrentDate: "current_date",
984
+ } as const;
985
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
986
+ ClosedEnum<
987
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
988
+ >;
989
+
808
990
  /**
809
991
  * Returns the current date and time
810
992
  */
811
993
  export type AgentToolInputCRUDCurrentDateTool = {
812
- type: "current_date";
994
+ type:
995
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type;
813
996
  /**
814
997
  * Whether this tool requires approval before execution
815
998
  */
816
999
  requiresApproval?: boolean | undefined;
817
1000
  };
818
1001
 
1002
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
1003
+ {
1004
+ QueryKnowledgeBase: "query_knowledge_base",
1005
+ } as const;
1006
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
1007
+ ClosedEnum<
1008
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
1009
+ >;
1010
+
819
1011
  /**
820
1012
  * Queries knowledge bases for information
821
1013
  */
822
1014
  export type AgentToolInputCRUDQueryKnowledgeBaseTool = {
823
- type: "query_knowledge_base";
1015
+ type:
1016
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type;
824
1017
  /**
825
1018
  * Whether this tool requires approval before execution
826
1019
  */
827
1020
  requiresApproval?: boolean | undefined;
828
1021
  };
829
1022
 
1023
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
1024
+ {
1025
+ RetrieveKnowledgeBases: "retrieve_knowledge_bases",
1026
+ } as const;
1027
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
1028
+ ClosedEnum<
1029
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
1030
+ >;
1031
+
830
1032
  /**
831
1033
  * Lists available knowledge bases
832
1034
  */
833
1035
  export type AgentToolInputCRUDRetrieveKnowledgeBasesTool = {
834
- type: "retrieve_knowledge_bases";
1036
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type;
835
1037
  /**
836
1038
  * Whether this tool requires approval before execution
837
1039
  */
838
1040
  requiresApproval?: boolean | undefined;
839
1041
  };
840
1042
 
1043
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
1044
+ {
1045
+ DeleteMemoryDocument: "delete_memory_document",
1046
+ } as const;
1047
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
1048
+ ClosedEnum<
1049
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
1050
+ >;
1051
+
841
1052
  /**
842
1053
  * Deletes documents from memory stores
843
1054
  */
844
1055
  export type AgentToolInputCRUDDeleteMemoryDocumentTool = {
845
- type: "delete_memory_document";
1056
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type;
846
1057
  /**
847
1058
  * Whether this tool requires approval before execution
848
1059
  */
849
1060
  requiresApproval?: boolean | undefined;
850
1061
  };
851
1062
 
1063
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type =
1064
+ {
1065
+ RetrieveMemoryStores: "retrieve_memory_stores",
1066
+ } as const;
1067
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type =
1068
+ ClosedEnum<
1069
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
1070
+ >;
1071
+
852
1072
  /**
853
1073
  * Lists available memory stores
854
1074
  */
855
1075
  export type AgentToolInputCRUDRetrieveMemoryStoresTool = {
856
- type: "retrieve_memory_stores";
1076
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type;
857
1077
  /**
858
1078
  * Whether this tool requires approval before execution
859
1079
  */
860
1080
  requiresApproval?: boolean | undefined;
861
1081
  };
862
1082
 
1083
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
1084
+ {
1085
+ WriteMemoryStore: "write_memory_store",
1086
+ } as const;
1087
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
1088
+ ClosedEnum<
1089
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
1090
+ >;
1091
+
863
1092
  /**
864
1093
  * Writes information to agent memory stores
865
1094
  */
866
1095
  export type AgentToolInputCRUDWriteMemoryStoreTool = {
867
- type: "write_memory_store";
1096
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType;
868
1097
  /**
869
1098
  * Whether this tool requires approval before execution
870
1099
  */
871
1100
  requiresApproval?: boolean | undefined;
872
1101
  };
873
1102
 
1103
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
1104
+ {
1105
+ QueryMemoryStore: "query_memory_store",
1106
+ } as const;
1107
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
1108
+ ClosedEnum<
1109
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
1110
+ >;
1111
+
874
1112
  /**
875
1113
  * Queries agent memory stores for context
876
1114
  */
877
1115
  export type AgentToolInputCRUDQueryMemoryStoreTool = {
878
- type: "query_memory_store";
1116
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType;
879
1117
  /**
880
1118
  * Whether this tool requires approval before execution
881
1119
  */
882
1120
  requiresApproval?: boolean | undefined;
883
1121
  };
884
1122
 
1123
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType = {
1124
+ RetrieveAgents: "retrieve_agents",
1125
+ } as const;
1126
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType =
1127
+ ClosedEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType>;
1128
+
885
1129
  /**
886
1130
  * Retrieves available agents in the system
887
1131
  */
888
1132
  export type AgentToolInputCRUDRetrieveAgentsTool = {
889
- type: "retrieve_agents";
1133
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType;
890
1134
  /**
891
1135
  * Whether this tool requires approval before execution
892
1136
  */
893
1137
  requiresApproval?: boolean | undefined;
894
1138
  };
895
1139
 
1140
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestType = {
1141
+ CallSubAgent: "call_sub_agent",
1142
+ } as const;
1143
+ export type UpdateAgentAgentToolInputCRUDAgentsRequestType = ClosedEnum<
1144
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestType
1145
+ >;
1146
+
896
1147
  /**
897
1148
  * Delegates tasks to specialized sub-agents
898
1149
  */
899
1150
  export type AgentToolInputCRUDCallSubAgentTool = {
900
- type: "call_sub_agent";
1151
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestType;
901
1152
  /**
902
1153
  * Whether this tool requires approval before execution
903
1154
  */
904
1155
  requiresApproval?: boolean | undefined;
905
1156
  };
906
1157
 
1158
+ export const UpdateAgentAgentToolInputCRUDAgentsType = {
1159
+ WebScraper: "web_scraper",
1160
+ } as const;
1161
+ export type UpdateAgentAgentToolInputCRUDAgentsType = ClosedEnum<
1162
+ typeof UpdateAgentAgentToolInputCRUDAgentsType
1163
+ >;
1164
+
907
1165
  /**
908
1166
  * Scrapes and extracts content from web pages
909
1167
  */
910
1168
  export type AgentToolInputCRUDWebScraperTool = {
911
- type: "web_scraper";
1169
+ type: UpdateAgentAgentToolInputCRUDAgentsType;
912
1170
  /**
913
1171
  * Whether this tool requires approval before execution
914
1172
  */
915
1173
  requiresApproval?: boolean | undefined;
916
1174
  };
917
1175
 
1176
+ export const UpdateAgentAgentToolInputCRUDType = {
1177
+ GoogleSearch: "google_search",
1178
+ } as const;
1179
+ export type UpdateAgentAgentToolInputCRUDType = ClosedEnum<
1180
+ typeof UpdateAgentAgentToolInputCRUDType
1181
+ >;
1182
+
918
1183
  /**
919
1184
  * Performs Google searches to retrieve web content
920
1185
  */
921
1186
  export type AgentToolInputCRUDGoogleSearchTool = {
922
- type: "google_search";
1187
+ type: UpdateAgentAgentToolInputCRUDType;
923
1188
  /**
924
1189
  * Whether this tool requires approval before execution
925
1190
  */
@@ -941,10 +1206,10 @@ export type UpdateAgentAgentToolInputCRUD =
941
1206
  | AgentToolInputCRUDRetrieveKnowledgeBasesTool
942
1207
  | AgentToolInputCRUDQueryKnowledgeBaseTool
943
1208
  | AgentToolInputCRUDCurrentDateTool
1209
+ | AgentToolInputCRUDMCPTool
944
1210
  | AgentToolInputCRUDHTTPTool
945
1211
  | AgentToolInputCRUDCodeExecutionTool
946
- | AgentToolInputCRUDFunctionTool
947
- | AgentToolInputCRUDMCPTool;
1212
+ | AgentToolInputCRUDFunctionTool;
948
1213
 
949
1214
  /**
950
1215
  * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
@@ -1031,10 +1296,10 @@ export type UpdateAgentSettings = {
1031
1296
  | AgentToolInputCRUDRetrieveKnowledgeBasesTool
1032
1297
  | AgentToolInputCRUDQueryKnowledgeBaseTool
1033
1298
  | AgentToolInputCRUDCurrentDateTool
1299
+ | AgentToolInputCRUDMCPTool
1034
1300
  | AgentToolInputCRUDHTTPTool
1035
1301
  | AgentToolInputCRUDCodeExecutionTool
1036
1302
  | AgentToolInputCRUDFunctionTool
1037
- | AgentToolInputCRUDMCPTool
1038
1303
  >
1039
1304
  | undefined;
1040
1305
  /**
@@ -1073,6 +1338,9 @@ export type UpdateAgentUpdateAgentRequest = {
1073
1338
  displayName?: string | undefined;
1074
1339
  projectId?: string | undefined;
1075
1340
  role?: string | undefined;
1341
+ /**
1342
+ * A brief description of what the agent does
1343
+ */
1076
1344
  description?: string | undefined;
1077
1345
  instructions?: string | undefined;
1078
1346
  /**
@@ -1376,6 +1644,42 @@ export type UpdateAgentResponseFormat =
1376
1644
  | UpdateAgentResponseFormatAgentsResponseJSONObject
1377
1645
  | UpdateAgentResponseFormatAgentsResponse200JSONSchema;
1378
1646
 
1647
+ /**
1648
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1649
+ *
1650
+ * @remarks
1651
+ *
1652
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
1653
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
1654
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1655
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1656
+ *
1657
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1658
+ */
1659
+ export const UpdateAgentReasoningEffort = {
1660
+ None: "none",
1661
+ Minimal: "minimal",
1662
+ Low: "low",
1663
+ Medium: "medium",
1664
+ High: "high",
1665
+ Xhigh: "xhigh",
1666
+ } as const;
1667
+ /**
1668
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1669
+ *
1670
+ * @remarks
1671
+ *
1672
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
1673
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
1674
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1675
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1676
+ *
1677
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1678
+ */
1679
+ export type UpdateAgentReasoningEffort = ClosedEnum<
1680
+ typeof UpdateAgentReasoningEffort
1681
+ >;
1682
+
1379
1683
  /**
1380
1684
  * Up to 4 sequences where the API will stop generating further tokens.
1381
1685
  */
@@ -1391,46 +1695,9 @@ export type UpdateAgentStreamOptions = {
1391
1695
  includeUsage?: boolean | undefined;
1392
1696
  };
1393
1697
 
1394
- /**
1395
- * Enables or disables the thinking mode capability
1396
- */
1397
- export const UpdateAgentType = {
1398
- Enabled: "enabled",
1399
- Disabled: "disabled",
1400
- } as const;
1401
- /**
1402
- * Enables or disables the thinking mode capability
1403
- */
1404
- export type UpdateAgentType = ClosedEnum<typeof UpdateAgentType>;
1405
-
1406
- /**
1407
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1408
- */
1409
- export const UpdateAgentThinkingLevel = {
1410
- Low: "low",
1411
- High: "high",
1412
- } as const;
1413
- /**
1414
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1415
- */
1416
- export type UpdateAgentThinkingLevel = ClosedEnum<
1417
- typeof UpdateAgentThinkingLevel
1418
- >;
1419
-
1420
- export type UpdateAgentThinking = {
1421
- /**
1422
- * Enables or disables the thinking mode capability
1423
- */
1424
- type: UpdateAgentType;
1425
- /**
1426
- * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
1427
- */
1428
- budgetTokens: number;
1429
- /**
1430
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1431
- */
1432
- thinkingLevel?: UpdateAgentThinkingLevel | undefined;
1433
- };
1698
+ export type UpdateAgentThinking =
1699
+ | components.ThinkingConfigDisabledSchema
1700
+ | components.ThinkingConfigEnabledSchema;
1434
1701
 
1435
1702
  /**
1436
1703
  * The type of the tool. Currently, only function is supported.
@@ -1482,6 +1749,45 @@ export const UpdateAgentModalities = {
1482
1749
  } as const;
1483
1750
  export type UpdateAgentModalities = ClosedEnum<typeof UpdateAgentModalities>;
1484
1751
 
1752
+ /**
1753
+ * The key of the guardrail.
1754
+ */
1755
+ export const UpdateAgentIdAgentsResponse1 = {
1756
+ OrqPiiDetection: "orq_pii_detection",
1757
+ OrqSexualModeration: "orq_sexual_moderation",
1758
+ OrqHarmfulModeration: "orq_harmful_moderation",
1759
+ } as const;
1760
+ /**
1761
+ * The key of the guardrail.
1762
+ */
1763
+ export type UpdateAgentIdAgentsResponse1 = ClosedEnum<
1764
+ typeof UpdateAgentIdAgentsResponse1
1765
+ >;
1766
+
1767
+ export type UpdateAgentId = UpdateAgentIdAgentsResponse1 | string;
1768
+
1769
+ /**
1770
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
1771
+ */
1772
+ export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn = {
1773
+ Input: "input",
1774
+ Output: "output",
1775
+ } as const;
1776
+ /**
1777
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
1778
+ */
1779
+ export type UpdateAgentAgentsResponse200ApplicationJSONExecuteOn = ClosedEnum<
1780
+ typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn
1781
+ >;
1782
+
1783
+ export type UpdateAgentAgentsResponseGuardrails = {
1784
+ id: UpdateAgentIdAgentsResponse1 | string;
1785
+ /**
1786
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
1787
+ */
1788
+ executeOn: UpdateAgentAgentsResponse200ApplicationJSONExecuteOn;
1789
+ };
1790
+
1485
1791
  /**
1486
1792
  * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
1487
1793
  */
@@ -1531,9 +1837,18 @@ export type UpdateAgentParameters = {
1531
1837
  | UpdateAgentResponseFormatAgentsResponse200JSONSchema
1532
1838
  | undefined;
1533
1839
  /**
1534
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1840
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1841
+ *
1842
+ * @remarks
1843
+ *
1844
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
1845
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
1846
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1847
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
1848
+ *
1849
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1535
1850
  */
1536
- reasoningEffort?: string | undefined;
1851
+ reasoningEffort?: UpdateAgentReasoningEffort | undefined;
1537
1852
  /**
1538
1853
  * Adjusts response verbosity. Lower levels yield shorter answers.
1539
1854
  */
@@ -1550,7 +1865,10 @@ export type UpdateAgentParameters = {
1550
1865
  * Options for streaming response. Only set this when you set stream: true.
1551
1866
  */
1552
1867
  streamOptions?: UpdateAgentStreamOptions | null | undefined;
1553
- thinking?: UpdateAgentThinking | undefined;
1868
+ thinking?:
1869
+ | components.ThinkingConfigDisabledSchema
1870
+ | components.ThinkingConfigEnabledSchema
1871
+ | undefined;
1554
1872
  /**
1555
1873
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
1556
1874
  */
@@ -1578,6 +1896,10 @@ export type UpdateAgentParameters = {
1578
1896
  * Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
1579
1897
  */
1580
1898
  modalities?: Array<UpdateAgentModalities> | null | undefined;
1899
+ /**
1900
+ * A list of guardrails to apply to the request.
1901
+ */
1902
+ guardrails?: Array<UpdateAgentAgentsResponseGuardrails> | undefined;
1581
1903
  };
1582
1904
 
1583
1905
  /**
@@ -1701,6 +2023,41 @@ export type UpdateAgentFallbackModelConfigurationAgentsResponseFormat =
1701
2023
  | UpdateAgentResponseFormatAgentsResponse200JSONObject
1702
2024
  | UpdateAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyJSONSchema;
1703
2025
 
2026
+ /**
2027
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
2028
+ *
2029
+ * @remarks
2030
+ *
2031
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
2032
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
2033
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
2034
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
2035
+ *
2036
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
2037
+ */
2038
+ export const UpdateAgentFallbackModelConfigurationAgentsReasoningEffort = {
2039
+ None: "none",
2040
+ Minimal: "minimal",
2041
+ Low: "low",
2042
+ Medium: "medium",
2043
+ High: "high",
2044
+ Xhigh: "xhigh",
2045
+ } as const;
2046
+ /**
2047
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
2048
+ *
2049
+ * @remarks
2050
+ *
2051
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
2052
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
2053
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
2054
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
2055
+ *
2056
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
2057
+ */
2058
+ export type UpdateAgentFallbackModelConfigurationAgentsReasoningEffort =
2059
+ ClosedEnum<typeof UpdateAgentFallbackModelConfigurationAgentsReasoningEffort>;
2060
+
1704
2061
  /**
1705
2062
  * Up to 4 sequences where the API will stop generating further tokens.
1706
2063
  */
@@ -1718,49 +2075,9 @@ export type UpdateAgentFallbackModelConfigurationAgentsStreamOptions = {
1718
2075
  includeUsage?: boolean | undefined;
1719
2076
  };
1720
2077
 
1721
- /**
1722
- * Enables or disables the thinking mode capability
1723
- */
1724
- export const UpdateAgentFallbackModelConfigurationAgentsType = {
1725
- Enabled: "enabled",
1726
- Disabled: "disabled",
1727
- } as const;
1728
- /**
1729
- * Enables or disables the thinking mode capability
1730
- */
1731
- export type UpdateAgentFallbackModelConfigurationAgentsType = ClosedEnum<
1732
- typeof UpdateAgentFallbackModelConfigurationAgentsType
1733
- >;
1734
-
1735
- /**
1736
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1737
- */
1738
- export const UpdateAgentFallbackModelConfigurationAgentsThinkingLevel = {
1739
- Low: "low",
1740
- High: "high",
1741
- } as const;
1742
- /**
1743
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1744
- */
1745
- export type UpdateAgentFallbackModelConfigurationAgentsThinkingLevel =
1746
- ClosedEnum<typeof UpdateAgentFallbackModelConfigurationAgentsThinkingLevel>;
1747
-
1748
- export type UpdateAgentFallbackModelConfigurationAgentsThinking = {
1749
- /**
1750
- * Enables or disables the thinking mode capability
1751
- */
1752
- type: UpdateAgentFallbackModelConfigurationAgentsType;
1753
- /**
1754
- * Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
1755
- */
1756
- budgetTokens: number;
1757
- /**
1758
- * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
1759
- */
1760
- thinkingLevel?:
1761
- | UpdateAgentFallbackModelConfigurationAgentsThinkingLevel
1762
- | undefined;
1763
- };
2078
+ export type UpdateAgentFallbackModelConfigurationAgentsThinking =
2079
+ | components.ThinkingConfigDisabledSchema
2080
+ | components.ThinkingConfigEnabledSchema;
1764
2081
 
1765
2082
  /**
1766
2083
  * The type of the tool. Currently, only function is supported.
@@ -1814,6 +2131,47 @@ export type UpdateAgentFallbackModelConfigurationAgentsModalities = ClosedEnum<
1814
2131
  typeof UpdateAgentFallbackModelConfigurationAgentsModalities
1815
2132
  >;
1816
2133
 
2134
+ /**
2135
+ * The key of the guardrail.
2136
+ */
2137
+ export const UpdateAgentIdAgentsResponse2001 = {
2138
+ OrqPiiDetection: "orq_pii_detection",
2139
+ OrqSexualModeration: "orq_sexual_moderation",
2140
+ OrqHarmfulModeration: "orq_harmful_moderation",
2141
+ } as const;
2142
+ /**
2143
+ * The key of the guardrail.
2144
+ */
2145
+ export type UpdateAgentIdAgentsResponse2001 = ClosedEnum<
2146
+ typeof UpdateAgentIdAgentsResponse2001
2147
+ >;
2148
+
2149
+ export type UpdateAgentFallbackModelConfigurationAgentsId =
2150
+ | UpdateAgentIdAgentsResponse2001
2151
+ | string;
2152
+
2153
+ /**
2154
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
2155
+ */
2156
+ export const UpdateAgentFallbackModelConfigurationAgentsExecuteOn = {
2157
+ Input: "input",
2158
+ Output: "output",
2159
+ } as const;
2160
+ /**
2161
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
2162
+ */
2163
+ export type UpdateAgentFallbackModelConfigurationAgentsExecuteOn = ClosedEnum<
2164
+ typeof UpdateAgentFallbackModelConfigurationAgentsExecuteOn
2165
+ >;
2166
+
2167
+ export type UpdateAgentFallbackModelConfigurationAgentsGuardrails = {
2168
+ id: UpdateAgentIdAgentsResponse2001 | string;
2169
+ /**
2170
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
2171
+ */
2172
+ executeOn: UpdateAgentFallbackModelConfigurationAgentsExecuteOn;
2173
+ };
2174
+
1817
2175
  /**
1818
2176
  * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
1819
2177
  */
@@ -1863,9 +2221,20 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
1863
2221
  | UpdateAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyJSONSchema
1864
2222
  | undefined;
1865
2223
  /**
1866
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
2224
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
2225
+ *
2226
+ * @remarks
2227
+ *
2228
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
2229
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
2230
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
2231
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
2232
+ *
2233
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
1867
2234
  */
1868
- reasoningEffort?: string | undefined;
2235
+ reasoningEffort?:
2236
+ | UpdateAgentFallbackModelConfigurationAgentsReasoningEffort
2237
+ | undefined;
1869
2238
  /**
1870
2239
  * Adjusts response verbosity. Lower levels yield shorter answers.
1871
2240
  */
@@ -1885,7 +2254,10 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
1885
2254
  | UpdateAgentFallbackModelConfigurationAgentsStreamOptions
1886
2255
  | null
1887
2256
  | undefined;
1888
- thinking?: UpdateAgentFallbackModelConfigurationAgentsThinking | undefined;
2257
+ thinking?:
2258
+ | components.ThinkingConfigDisabledSchema
2259
+ | components.ThinkingConfigEnabledSchema
2260
+ | undefined;
1889
2261
  /**
1890
2262
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
1891
2263
  */
@@ -1916,6 +2288,12 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters = {
1916
2288
  | Array<UpdateAgentFallbackModelConfigurationAgentsModalities>
1917
2289
  | null
1918
2290
  | undefined;
2291
+ /**
2292
+ * A list of guardrails to apply to the request.
2293
+ */
2294
+ guardrails?:
2295
+ | Array<UpdateAgentFallbackModelConfigurationAgentsGuardrails>
2296
+ | undefined;
1919
2297
  };
1920
2298
 
1921
2299
  /**
@@ -2352,6 +2730,15 @@ export function modelConfigurationResponseFormatFromJSON(
2352
2730
  );
2353
2731
  }
2354
2732
 
2733
+ /** @internal */
2734
+ export const ModelConfigurationReasoningEffort$inboundSchema: z.ZodNativeEnum<
2735
+ typeof ModelConfigurationReasoningEffort
2736
+ > = z.nativeEnum(ModelConfigurationReasoningEffort);
2737
+ /** @internal */
2738
+ export const ModelConfigurationReasoningEffort$outboundSchema: z.ZodNativeEnum<
2739
+ typeof ModelConfigurationReasoningEffort
2740
+ > = ModelConfigurationReasoningEffort$inboundSchema;
2741
+
2355
2742
  /** @internal */
2356
2743
  export const ModelConfigurationStop$inboundSchema: z.ZodType<
2357
2744
  ModelConfigurationStop,
@@ -2434,61 +2821,29 @@ export function modelConfigurationStreamOptionsFromJSON(
2434
2821
  );
2435
2822
  }
2436
2823
 
2437
- /** @internal */
2438
- export const UpdateAgentModelConfigurationType$inboundSchema: z.ZodNativeEnum<
2439
- typeof UpdateAgentModelConfigurationType
2440
- > = z.nativeEnum(UpdateAgentModelConfigurationType);
2441
- /** @internal */
2442
- export const UpdateAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
2443
- typeof UpdateAgentModelConfigurationType
2444
- > = UpdateAgentModelConfigurationType$inboundSchema;
2445
-
2446
- /** @internal */
2447
- export const ModelConfigurationThinkingLevel$inboundSchema: z.ZodNativeEnum<
2448
- typeof ModelConfigurationThinkingLevel
2449
- > = z.nativeEnum(ModelConfigurationThinkingLevel);
2450
- /** @internal */
2451
- export const ModelConfigurationThinkingLevel$outboundSchema: z.ZodNativeEnum<
2452
- typeof ModelConfigurationThinkingLevel
2453
- > = ModelConfigurationThinkingLevel$inboundSchema;
2454
-
2455
2824
  /** @internal */
2456
2825
  export const ModelConfigurationThinking$inboundSchema: z.ZodType<
2457
2826
  ModelConfigurationThinking,
2458
2827
  z.ZodTypeDef,
2459
2828
  unknown
2460
- > = z.object({
2461
- type: UpdateAgentModelConfigurationType$inboundSchema,
2462
- budget_tokens: z.number(),
2463
- thinking_level: ModelConfigurationThinkingLevel$inboundSchema.optional(),
2464
- }).transform((v) => {
2465
- return remap$(v, {
2466
- "budget_tokens": "budgetTokens",
2467
- "thinking_level": "thinkingLevel",
2468
- });
2469
- });
2829
+ > = z.union([
2830
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2831
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2832
+ ]);
2470
2833
  /** @internal */
2471
- export type ModelConfigurationThinking$Outbound = {
2472
- type: string;
2473
- budget_tokens: number;
2474
- thinking_level?: string | undefined;
2475
- };
2834
+ export type ModelConfigurationThinking$Outbound =
2835
+ | components.ThinkingConfigDisabledSchema$Outbound
2836
+ | components.ThinkingConfigEnabledSchema$Outbound;
2476
2837
 
2477
2838
  /** @internal */
2478
2839
  export const ModelConfigurationThinking$outboundSchema: z.ZodType<
2479
2840
  ModelConfigurationThinking$Outbound,
2480
2841
  z.ZodTypeDef,
2481
2842
  ModelConfigurationThinking
2482
- > = z.object({
2483
- type: UpdateAgentModelConfigurationType$outboundSchema,
2484
- budgetTokens: z.number(),
2485
- thinkingLevel: ModelConfigurationThinkingLevel$outboundSchema.optional(),
2486
- }).transform((v) => {
2487
- return remap$(v, {
2488
- budgetTokens: "budget_tokens",
2489
- thinkingLevel: "thinking_level",
2490
- });
2491
- });
2843
+ > = z.union([
2844
+ components.ThinkingConfigDisabledSchema$outboundSchema,
2845
+ components.ThinkingConfigEnabledSchema$outboundSchema,
2846
+ ]);
2492
2847
 
2493
2848
  export function modelConfigurationThinkingToJSON(
2494
2849
  modelConfigurationThinking: ModelConfigurationThinking,
@@ -2660,6 +3015,109 @@ export const ModelConfigurationModalities$outboundSchema: z.ZodNativeEnum<
2660
3015
  typeof ModelConfigurationModalities
2661
3016
  > = ModelConfigurationModalities$inboundSchema;
2662
3017
 
3018
+ /** @internal */
3019
+ export const UpdateAgentId1$inboundSchema: z.ZodNativeEnum<
3020
+ typeof UpdateAgentId1
3021
+ > = z.nativeEnum(UpdateAgentId1);
3022
+ /** @internal */
3023
+ export const UpdateAgentId1$outboundSchema: z.ZodNativeEnum<
3024
+ typeof UpdateAgentId1
3025
+ > = UpdateAgentId1$inboundSchema;
3026
+
3027
+ /** @internal */
3028
+ export const ModelConfigurationId$inboundSchema: z.ZodType<
3029
+ ModelConfigurationId,
3030
+ z.ZodTypeDef,
3031
+ unknown
3032
+ > = z.union([UpdateAgentId1$inboundSchema, z.string()]);
3033
+ /** @internal */
3034
+ export type ModelConfigurationId$Outbound = string | string;
3035
+
3036
+ /** @internal */
3037
+ export const ModelConfigurationId$outboundSchema: z.ZodType<
3038
+ ModelConfigurationId$Outbound,
3039
+ z.ZodTypeDef,
3040
+ ModelConfigurationId
3041
+ > = z.union([UpdateAgentId1$outboundSchema, z.string()]);
3042
+
3043
+ export function modelConfigurationIdToJSON(
3044
+ modelConfigurationId: ModelConfigurationId,
3045
+ ): string {
3046
+ return JSON.stringify(
3047
+ ModelConfigurationId$outboundSchema.parse(modelConfigurationId),
3048
+ );
3049
+ }
3050
+ export function modelConfigurationIdFromJSON(
3051
+ jsonString: string,
3052
+ ): SafeParseResult<ModelConfigurationId, SDKValidationError> {
3053
+ return safeParse(
3054
+ jsonString,
3055
+ (x) => ModelConfigurationId$inboundSchema.parse(JSON.parse(x)),
3056
+ `Failed to parse 'ModelConfigurationId' from JSON`,
3057
+ );
3058
+ }
3059
+
3060
+ /** @internal */
3061
+ export const ModelConfigurationExecuteOn$inboundSchema: z.ZodNativeEnum<
3062
+ typeof ModelConfigurationExecuteOn
3063
+ > = z.nativeEnum(ModelConfigurationExecuteOn);
3064
+ /** @internal */
3065
+ export const ModelConfigurationExecuteOn$outboundSchema: z.ZodNativeEnum<
3066
+ typeof ModelConfigurationExecuteOn
3067
+ > = ModelConfigurationExecuteOn$inboundSchema;
3068
+
3069
+ /** @internal */
3070
+ export const ModelConfigurationGuardrails$inboundSchema: z.ZodType<
3071
+ ModelConfigurationGuardrails,
3072
+ z.ZodTypeDef,
3073
+ unknown
3074
+ > = z.object({
3075
+ id: z.union([UpdateAgentId1$inboundSchema, z.string()]),
3076
+ execute_on: ModelConfigurationExecuteOn$inboundSchema,
3077
+ }).transform((v) => {
3078
+ return remap$(v, {
3079
+ "execute_on": "executeOn",
3080
+ });
3081
+ });
3082
+ /** @internal */
3083
+ export type ModelConfigurationGuardrails$Outbound = {
3084
+ id: string | string;
3085
+ execute_on: string;
3086
+ };
3087
+
3088
+ /** @internal */
3089
+ export const ModelConfigurationGuardrails$outboundSchema: z.ZodType<
3090
+ ModelConfigurationGuardrails$Outbound,
3091
+ z.ZodTypeDef,
3092
+ ModelConfigurationGuardrails
3093
+ > = z.object({
3094
+ id: z.union([UpdateAgentId1$outboundSchema, z.string()]),
3095
+ executeOn: ModelConfigurationExecuteOn$outboundSchema,
3096
+ }).transform((v) => {
3097
+ return remap$(v, {
3098
+ executeOn: "execute_on",
3099
+ });
3100
+ });
3101
+
3102
+ export function modelConfigurationGuardrailsToJSON(
3103
+ modelConfigurationGuardrails: ModelConfigurationGuardrails,
3104
+ ): string {
3105
+ return JSON.stringify(
3106
+ ModelConfigurationGuardrails$outboundSchema.parse(
3107
+ modelConfigurationGuardrails,
3108
+ ),
3109
+ );
3110
+ }
3111
+ export function modelConfigurationGuardrailsFromJSON(
3112
+ jsonString: string,
3113
+ ): SafeParseResult<ModelConfigurationGuardrails, SDKValidationError> {
3114
+ return safeParse(
3115
+ jsonString,
3116
+ (x) => ModelConfigurationGuardrails$inboundSchema.parse(JSON.parse(x)),
3117
+ `Failed to parse 'ModelConfigurationGuardrails' from JSON`,
3118
+ );
3119
+ }
3120
+
2663
3121
  /** @internal */
2664
3122
  export const ModelConfigurationParameters$inboundSchema: z.ZodType<
2665
3123
  ModelConfigurationParameters,
@@ -2681,14 +3139,17 @@ export const ModelConfigurationParameters$inboundSchema: z.ZodType<
2681
3139
  z.lazy(() => UpdateAgentResponseFormatJSONObject$inboundSchema),
2682
3140
  z.lazy(() => UpdateAgentResponseFormatJSONSchema$inboundSchema),
2683
3141
  ]).optional(),
2684
- reasoning_effort: z.string().optional(),
3142
+ reasoning_effort: ModelConfigurationReasoningEffort$inboundSchema.optional(),
2685
3143
  verbosity: z.string().optional(),
2686
3144
  seed: z.nullable(z.number()).optional(),
2687
3145
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2688
3146
  stream_options: z.nullable(
2689
3147
  z.lazy(() => ModelConfigurationStreamOptions$inboundSchema),
2690
3148
  ).optional(),
2691
- thinking: z.lazy(() => ModelConfigurationThinking$inboundSchema).optional(),
3149
+ thinking: z.union([
3150
+ components.ThinkingConfigDisabledSchema$inboundSchema,
3151
+ components.ThinkingConfigEnabledSchema$inboundSchema,
3152
+ ]).optional(),
2692
3153
  temperature: z.nullable(z.number()).optional(),
2693
3154
  top_p: z.nullable(z.number()).optional(),
2694
3155
  top_k: z.nullable(z.number()).optional(),
@@ -2699,6 +3160,8 @@ export const ModelConfigurationParameters$inboundSchema: z.ZodType<
2699
3160
  parallel_tool_calls: z.boolean().optional(),
2700
3161
  modalities: z.nullable(z.array(ModelConfigurationModalities$inboundSchema))
2701
3162
  .optional(),
3163
+ guardrails: z.array(z.lazy(() => ModelConfigurationGuardrails$inboundSchema))
3164
+ .optional(),
2702
3165
  }).transform((v) => {
2703
3166
  return remap$(v, {
2704
3167
  "frequency_penalty": "frequencyPenalty",
@@ -2735,13 +3198,17 @@ export type ModelConfigurationParameters$Outbound = {
2735
3198
  seed?: number | null | undefined;
2736
3199
  stop?: string | Array<string> | null | undefined;
2737
3200
  stream_options?: ModelConfigurationStreamOptions$Outbound | null | undefined;
2738
- thinking?: ModelConfigurationThinking$Outbound | undefined;
3201
+ thinking?:
3202
+ | components.ThinkingConfigDisabledSchema$Outbound
3203
+ | components.ThinkingConfigEnabledSchema$Outbound
3204
+ | undefined;
2739
3205
  temperature?: number | null | undefined;
2740
3206
  top_p?: number | null | undefined;
2741
3207
  top_k?: number | null | undefined;
2742
3208
  tool_choice?: UpdateAgentToolChoice2$Outbound | string | undefined;
2743
3209
  parallel_tool_calls?: boolean | undefined;
2744
3210
  modalities?: Array<string> | null | undefined;
3211
+ guardrails?: Array<ModelConfigurationGuardrails$Outbound> | undefined;
2745
3212
  };
2746
3213
 
2747
3214
  /** @internal */
@@ -2765,14 +3232,17 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
2765
3232
  z.lazy(() => UpdateAgentResponseFormatJSONObject$outboundSchema),
2766
3233
  z.lazy(() => UpdateAgentResponseFormatJSONSchema$outboundSchema),
2767
3234
  ]).optional(),
2768
- reasoningEffort: z.string().optional(),
3235
+ reasoningEffort: ModelConfigurationReasoningEffort$outboundSchema.optional(),
2769
3236
  verbosity: z.string().optional(),
2770
3237
  seed: z.nullable(z.number()).optional(),
2771
3238
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2772
3239
  streamOptions: z.nullable(
2773
3240
  z.lazy(() => ModelConfigurationStreamOptions$outboundSchema),
2774
3241
  ).optional(),
2775
- thinking: z.lazy(() => ModelConfigurationThinking$outboundSchema).optional(),
3242
+ thinking: z.union([
3243
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3244
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3245
+ ]).optional(),
2776
3246
  temperature: z.nullable(z.number()).optional(),
2777
3247
  topP: z.nullable(z.number()).optional(),
2778
3248
  topK: z.nullable(z.number()).optional(),
@@ -2783,6 +3253,8 @@ export const ModelConfigurationParameters$outboundSchema: z.ZodType<
2783
3253
  parallelToolCalls: z.boolean().optional(),
2784
3254
  modalities: z.nullable(z.array(ModelConfigurationModalities$outboundSchema))
2785
3255
  .optional(),
3256
+ guardrails: z.array(z.lazy(() => ModelConfigurationGuardrails$outboundSchema))
3257
+ .optional(),
2786
3258
  }).transform((v) => {
2787
3259
  return remap$(v, {
2788
3260
  frequencyPenalty: "frequency_penalty",
@@ -3303,6 +3775,15 @@ export function updateAgentFallbackModelConfigurationResponseFormatFromJSON(
3303
3775
  );
3304
3776
  }
3305
3777
 
3778
+ /** @internal */
3779
+ export const UpdateAgentFallbackModelConfigurationReasoningEffort$inboundSchema:
3780
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationReasoningEffort> =
3781
+ z.nativeEnum(UpdateAgentFallbackModelConfigurationReasoningEffort);
3782
+ /** @internal */
3783
+ export const UpdateAgentFallbackModelConfigurationReasoningEffort$outboundSchema:
3784
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationReasoningEffort> =
3785
+ UpdateAgentFallbackModelConfigurationReasoningEffort$inboundSchema;
3786
+
3306
3787
  /** @internal */
3307
3788
  export const UpdateAgentFallbackModelConfigurationStop$inboundSchema: z.ZodType<
3308
3789
  UpdateAgentFallbackModelConfigurationStop,
@@ -3406,48 +3887,20 @@ export function updateAgentFallbackModelConfigurationStreamOptionsFromJSON(
3406
3887
  );
3407
3888
  }
3408
3889
 
3409
- /** @internal */
3410
- export const UpdateAgentFallbackModelConfigurationType$inboundSchema:
3411
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> = z
3412
- .nativeEnum(UpdateAgentFallbackModelConfigurationType);
3413
- /** @internal */
3414
- export const UpdateAgentFallbackModelConfigurationType$outboundSchema:
3415
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationType> =
3416
- UpdateAgentFallbackModelConfigurationType$inboundSchema;
3417
-
3418
- /** @internal */
3419
- export const UpdateAgentFallbackModelConfigurationThinkingLevel$inboundSchema:
3420
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationThinkingLevel> = z
3421
- .nativeEnum(UpdateAgentFallbackModelConfigurationThinkingLevel);
3422
- /** @internal */
3423
- export const UpdateAgentFallbackModelConfigurationThinkingLevel$outboundSchema:
3424
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationThinkingLevel> =
3425
- UpdateAgentFallbackModelConfigurationThinkingLevel$inboundSchema;
3426
-
3427
3890
  /** @internal */
3428
3891
  export const UpdateAgentFallbackModelConfigurationThinking$inboundSchema:
3429
3892
  z.ZodType<
3430
3893
  UpdateAgentFallbackModelConfigurationThinking,
3431
3894
  z.ZodTypeDef,
3432
3895
  unknown
3433
- > = z.object({
3434
- type: UpdateAgentFallbackModelConfigurationType$inboundSchema,
3435
- budget_tokens: z.number(),
3436
- thinking_level:
3437
- UpdateAgentFallbackModelConfigurationThinkingLevel$inboundSchema
3438
- .optional(),
3439
- }).transform((v) => {
3440
- return remap$(v, {
3441
- "budget_tokens": "budgetTokens",
3442
- "thinking_level": "thinkingLevel",
3443
- });
3444
- });
3896
+ > = z.union([
3897
+ components.ThinkingConfigDisabledSchema$inboundSchema,
3898
+ components.ThinkingConfigEnabledSchema$inboundSchema,
3899
+ ]);
3445
3900
  /** @internal */
3446
- export type UpdateAgentFallbackModelConfigurationThinking$Outbound = {
3447
- type: string;
3448
- budget_tokens: number;
3449
- thinking_level?: string | undefined;
3450
- };
3901
+ export type UpdateAgentFallbackModelConfigurationThinking$Outbound =
3902
+ | components.ThinkingConfigDisabledSchema$Outbound
3903
+ | components.ThinkingConfigEnabledSchema$Outbound;
3451
3904
 
3452
3905
  /** @internal */
3453
3906
  export const UpdateAgentFallbackModelConfigurationThinking$outboundSchema:
@@ -3455,18 +3908,10 @@ export const UpdateAgentFallbackModelConfigurationThinking$outboundSchema:
3455
3908
  UpdateAgentFallbackModelConfigurationThinking$Outbound,
3456
3909
  z.ZodTypeDef,
3457
3910
  UpdateAgentFallbackModelConfigurationThinking
3458
- > = z.object({
3459
- type: UpdateAgentFallbackModelConfigurationType$outboundSchema,
3460
- budgetTokens: z.number(),
3461
- thinkingLevel:
3462
- UpdateAgentFallbackModelConfigurationThinkingLevel$outboundSchema
3463
- .optional(),
3464
- }).transform((v) => {
3465
- return remap$(v, {
3466
- budgetTokens: "budget_tokens",
3467
- thinkingLevel: "thinking_level",
3468
- });
3469
- });
3911
+ > = z.union([
3912
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3913
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3914
+ ]);
3470
3915
 
3471
3916
  export function updateAgentFallbackModelConfigurationThinkingToJSON(
3472
3917
  updateAgentFallbackModelConfigurationThinking:
@@ -3659,6 +4104,127 @@ export const UpdateAgentFallbackModelConfigurationModalities$outboundSchema:
3659
4104
  z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationModalities> =
3660
4105
  UpdateAgentFallbackModelConfigurationModalities$inboundSchema;
3661
4106
 
4107
+ /** @internal */
4108
+ export const UpdateAgentIdAgents1$inboundSchema: z.ZodNativeEnum<
4109
+ typeof UpdateAgentIdAgents1
4110
+ > = z.nativeEnum(UpdateAgentIdAgents1);
4111
+ /** @internal */
4112
+ export const UpdateAgentIdAgents1$outboundSchema: z.ZodNativeEnum<
4113
+ typeof UpdateAgentIdAgents1
4114
+ > = UpdateAgentIdAgents1$inboundSchema;
4115
+
4116
+ /** @internal */
4117
+ export const UpdateAgentFallbackModelConfigurationId$inboundSchema: z.ZodType<
4118
+ UpdateAgentFallbackModelConfigurationId,
4119
+ z.ZodTypeDef,
4120
+ unknown
4121
+ > = z.union([UpdateAgentIdAgents1$inboundSchema, z.string()]);
4122
+ /** @internal */
4123
+ export type UpdateAgentFallbackModelConfigurationId$Outbound = string | string;
4124
+
4125
+ /** @internal */
4126
+ export const UpdateAgentFallbackModelConfigurationId$outboundSchema: z.ZodType<
4127
+ UpdateAgentFallbackModelConfigurationId$Outbound,
4128
+ z.ZodTypeDef,
4129
+ UpdateAgentFallbackModelConfigurationId
4130
+ > = z.union([UpdateAgentIdAgents1$outboundSchema, z.string()]);
4131
+
4132
+ export function updateAgentFallbackModelConfigurationIdToJSON(
4133
+ updateAgentFallbackModelConfigurationId:
4134
+ UpdateAgentFallbackModelConfigurationId,
4135
+ ): string {
4136
+ return JSON.stringify(
4137
+ UpdateAgentFallbackModelConfigurationId$outboundSchema.parse(
4138
+ updateAgentFallbackModelConfigurationId,
4139
+ ),
4140
+ );
4141
+ }
4142
+ export function updateAgentFallbackModelConfigurationIdFromJSON(
4143
+ jsonString: string,
4144
+ ): SafeParseResult<
4145
+ UpdateAgentFallbackModelConfigurationId,
4146
+ SDKValidationError
4147
+ > {
4148
+ return safeParse(
4149
+ jsonString,
4150
+ (x) =>
4151
+ UpdateAgentFallbackModelConfigurationId$inboundSchema.parse(
4152
+ JSON.parse(x),
4153
+ ),
4154
+ `Failed to parse 'UpdateAgentFallbackModelConfigurationId' from JSON`,
4155
+ );
4156
+ }
4157
+
4158
+ /** @internal */
4159
+ export const UpdateAgentFallbackModelConfigurationExecuteOn$inboundSchema:
4160
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationExecuteOn> = z
4161
+ .nativeEnum(UpdateAgentFallbackModelConfigurationExecuteOn);
4162
+ /** @internal */
4163
+ export const UpdateAgentFallbackModelConfigurationExecuteOn$outboundSchema:
4164
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationExecuteOn> =
4165
+ UpdateAgentFallbackModelConfigurationExecuteOn$inboundSchema;
4166
+
4167
+ /** @internal */
4168
+ export const UpdateAgentFallbackModelConfigurationGuardrails$inboundSchema:
4169
+ z.ZodType<
4170
+ UpdateAgentFallbackModelConfigurationGuardrails,
4171
+ z.ZodTypeDef,
4172
+ unknown
4173
+ > = z.object({
4174
+ id: z.union([UpdateAgentIdAgents1$inboundSchema, z.string()]),
4175
+ execute_on: UpdateAgentFallbackModelConfigurationExecuteOn$inboundSchema,
4176
+ }).transform((v) => {
4177
+ return remap$(v, {
4178
+ "execute_on": "executeOn",
4179
+ });
4180
+ });
4181
+ /** @internal */
4182
+ export type UpdateAgentFallbackModelConfigurationGuardrails$Outbound = {
4183
+ id: string | string;
4184
+ execute_on: string;
4185
+ };
4186
+
4187
+ /** @internal */
4188
+ export const UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema:
4189
+ z.ZodType<
4190
+ UpdateAgentFallbackModelConfigurationGuardrails$Outbound,
4191
+ z.ZodTypeDef,
4192
+ UpdateAgentFallbackModelConfigurationGuardrails
4193
+ > = z.object({
4194
+ id: z.union([UpdateAgentIdAgents1$outboundSchema, z.string()]),
4195
+ executeOn: UpdateAgentFallbackModelConfigurationExecuteOn$outboundSchema,
4196
+ }).transform((v) => {
4197
+ return remap$(v, {
4198
+ executeOn: "execute_on",
4199
+ });
4200
+ });
4201
+
4202
+ export function updateAgentFallbackModelConfigurationGuardrailsToJSON(
4203
+ updateAgentFallbackModelConfigurationGuardrails:
4204
+ UpdateAgentFallbackModelConfigurationGuardrails,
4205
+ ): string {
4206
+ return JSON.stringify(
4207
+ UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema.parse(
4208
+ updateAgentFallbackModelConfigurationGuardrails,
4209
+ ),
4210
+ );
4211
+ }
4212
+ export function updateAgentFallbackModelConfigurationGuardrailsFromJSON(
4213
+ jsonString: string,
4214
+ ): SafeParseResult<
4215
+ UpdateAgentFallbackModelConfigurationGuardrails,
4216
+ SDKValidationError
4217
+ > {
4218
+ return safeParse(
4219
+ jsonString,
4220
+ (x) =>
4221
+ UpdateAgentFallbackModelConfigurationGuardrails$inboundSchema.parse(
4222
+ JSON.parse(x),
4223
+ ),
4224
+ `Failed to parse 'UpdateAgentFallbackModelConfigurationGuardrails' from JSON`,
4225
+ );
4226
+ }
4227
+
3662
4228
  /** @internal */
3663
4229
  export const UpdateAgentFallbackModelConfigurationParameters$inboundSchema:
3664
4230
  z.ZodType<
@@ -3683,7 +4249,9 @@ export const UpdateAgentFallbackModelConfigurationParameters$inboundSchema:
3683
4249
  UpdateAgentResponseFormatAgentsRequestJSONSchema$inboundSchema
3684
4250
  ),
3685
4251
  ]).optional(),
3686
- reasoning_effort: z.string().optional(),
4252
+ reasoning_effort:
4253
+ UpdateAgentFallbackModelConfigurationReasoningEffort$inboundSchema
4254
+ .optional(),
3687
4255
  verbosity: z.string().optional(),
3688
4256
  seed: z.nullable(z.number()).optional(),
3689
4257
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
@@ -3692,9 +4260,10 @@ export const UpdateAgentFallbackModelConfigurationParameters$inboundSchema:
3692
4260
  UpdateAgentFallbackModelConfigurationStreamOptions$inboundSchema
3693
4261
  ),
3694
4262
  ).optional(),
3695
- thinking: z.lazy(() =>
3696
- UpdateAgentFallbackModelConfigurationThinking$inboundSchema
3697
- ).optional(),
4263
+ thinking: z.union([
4264
+ components.ThinkingConfigDisabledSchema$inboundSchema,
4265
+ components.ThinkingConfigEnabledSchema$inboundSchema,
4266
+ ]).optional(),
3698
4267
  temperature: z.nullable(z.number()).optional(),
3699
4268
  top_p: z.nullable(z.number()).optional(),
3700
4269
  top_k: z.nullable(z.number()).optional(),
@@ -3706,6 +4275,11 @@ export const UpdateAgentFallbackModelConfigurationParameters$inboundSchema:
3706
4275
  modalities: z.nullable(
3707
4276
  z.array(UpdateAgentFallbackModelConfigurationModalities$inboundSchema),
3708
4277
  ).optional(),
4278
+ guardrails: z.array(
4279
+ z.lazy(() =>
4280
+ UpdateAgentFallbackModelConfigurationGuardrails$inboundSchema
4281
+ ),
4282
+ ).optional(),
3709
4283
  }).transform((v) => {
3710
4284
  return remap$(v, {
3711
4285
  "frequency_penalty": "frequencyPenalty",
@@ -3748,13 +4322,19 @@ export type UpdateAgentFallbackModelConfigurationParameters$Outbound = {
3748
4322
  | UpdateAgentFallbackModelConfigurationStreamOptions$Outbound
3749
4323
  | null
3750
4324
  | undefined;
3751
- thinking?: UpdateAgentFallbackModelConfigurationThinking$Outbound | undefined;
4325
+ thinking?:
4326
+ | components.ThinkingConfigDisabledSchema$Outbound
4327
+ | components.ThinkingConfigEnabledSchema$Outbound
4328
+ | undefined;
3752
4329
  temperature?: number | null | undefined;
3753
4330
  top_p?: number | null | undefined;
3754
4331
  top_k?: number | null | undefined;
3755
4332
  tool_choice?: UpdateAgentToolChoiceAgents2$Outbound | string | undefined;
3756
4333
  parallel_tool_calls?: boolean | undefined;
3757
4334
  modalities?: Array<string> | null | undefined;
4335
+ guardrails?:
4336
+ | Array<UpdateAgentFallbackModelConfigurationGuardrails$Outbound>
4337
+ | undefined;
3758
4338
  };
3759
4339
 
3760
4340
  /** @internal */
@@ -3781,7 +4361,9 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
3781
4361
  UpdateAgentResponseFormatAgentsRequestJSONSchema$outboundSchema
3782
4362
  ),
3783
4363
  ]).optional(),
3784
- reasoningEffort: z.string().optional(),
4364
+ reasoningEffort:
4365
+ UpdateAgentFallbackModelConfigurationReasoningEffort$outboundSchema
4366
+ .optional(),
3785
4367
  verbosity: z.string().optional(),
3786
4368
  seed: z.nullable(z.number()).optional(),
3787
4369
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
@@ -3790,9 +4372,10 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
3790
4372
  UpdateAgentFallbackModelConfigurationStreamOptions$outboundSchema
3791
4373
  ),
3792
4374
  ).optional(),
3793
- thinking: z.lazy(() =>
3794
- UpdateAgentFallbackModelConfigurationThinking$outboundSchema
3795
- ).optional(),
4375
+ thinking: z.union([
4376
+ components.ThinkingConfigDisabledSchema$outboundSchema,
4377
+ components.ThinkingConfigEnabledSchema$outboundSchema,
4378
+ ]).optional(),
3796
4379
  temperature: z.nullable(z.number()).optional(),
3797
4380
  topP: z.nullable(z.number()).optional(),
3798
4381
  topK: z.nullable(z.number()).optional(),
@@ -3804,6 +4387,11 @@ export const UpdateAgentFallbackModelConfigurationParameters$outboundSchema:
3804
4387
  modalities: z.nullable(
3805
4388
  z.array(UpdateAgentFallbackModelConfigurationModalities$outboundSchema),
3806
4389
  ).optional(),
4390
+ guardrails: z.array(
4391
+ z.lazy(() =>
4392
+ UpdateAgentFallbackModelConfigurationGuardrails$outboundSchema
4393
+ ),
4394
+ ).optional(),
3807
4395
  }).transform((v) => {
3808
4396
  return remap$(v, {
3809
4397
  frequencyPenalty: "frequency_penalty",
@@ -3952,13 +4540,29 @@ export const UpdateAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
3952
4540
  typeof UpdateAgentToolApprovalRequired
3953
4541
  > = UpdateAgentToolApprovalRequired$inboundSchema;
3954
4542
 
4543
+ /** @internal */
4544
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$inboundSchema:
4545
+ z.ZodNativeEnum<
4546
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
4547
+ > = z.nativeEnum(
4548
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type,
4549
+ );
4550
+ /** @internal */
4551
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema:
4552
+ z.ZodNativeEnum<
4553
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type
4554
+ > =
4555
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$inboundSchema;
4556
+
3955
4557
  /** @internal */
3956
4558
  export const AgentToolInputCRUDMCPTool$inboundSchema: z.ZodType<
3957
4559
  AgentToolInputCRUDMCPTool,
3958
4560
  z.ZodTypeDef,
3959
4561
  unknown
3960
4562
  > = z.object({
3961
- type: z.literal("mcp"),
4563
+ type:
4564
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$inboundSchema
4565
+ .default("mcp"),
3962
4566
  key: z.string().optional(),
3963
4567
  id: z.string().optional(),
3964
4568
  tool_id: z.string(),
@@ -3971,7 +4575,7 @@ export const AgentToolInputCRUDMCPTool$inboundSchema: z.ZodType<
3971
4575
  });
3972
4576
  /** @internal */
3973
4577
  export type AgentToolInputCRUDMCPTool$Outbound = {
3974
- type: "mcp";
4578
+ type: string;
3975
4579
  key?: string | undefined;
3976
4580
  id?: string | undefined;
3977
4581
  tool_id: string;
@@ -3984,7 +4588,9 @@ export const AgentToolInputCRUDMCPTool$outboundSchema: z.ZodType<
3984
4588
  z.ZodTypeDef,
3985
4589
  AgentToolInputCRUDMCPTool
3986
4590
  > = z.object({
3987
- type: z.literal("mcp"),
4591
+ type:
4592
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools15Type$outboundSchema
4593
+ .default("mcp"),
3988
4594
  key: z.string().optional(),
3989
4595
  id: z.string().optional(),
3990
4596
  toolId: z.string(),
@@ -4013,13 +4619,29 @@ export function agentToolInputCRUDMCPToolFromJSON(
4013
4619
  );
4014
4620
  }
4015
4621
 
4622
+ /** @internal */
4623
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
4624
+ z.ZodNativeEnum<
4625
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
4626
+ > = z.nativeEnum(
4627
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type,
4628
+ );
4629
+ /** @internal */
4630
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
4631
+ z.ZodNativeEnum<
4632
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
4633
+ > =
4634
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
4635
+
4016
4636
  /** @internal */
4017
4637
  export const AgentToolInputCRUDFunctionTool$inboundSchema: z.ZodType<
4018
4638
  AgentToolInputCRUDFunctionTool,
4019
4639
  z.ZodTypeDef,
4020
4640
  unknown
4021
4641
  > = z.object({
4022
- type: z.literal("function"),
4642
+ type:
4643
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema
4644
+ .default("function"),
4023
4645
  key: z.string().optional(),
4024
4646
  id: z.string().optional(),
4025
4647
  requires_approval: z.boolean().default(false),
@@ -4030,7 +4652,7 @@ export const AgentToolInputCRUDFunctionTool$inboundSchema: z.ZodType<
4030
4652
  });
4031
4653
  /** @internal */
4032
4654
  export type AgentToolInputCRUDFunctionTool$Outbound = {
4033
- type: "function";
4655
+ type: string;
4034
4656
  key?: string | undefined;
4035
4657
  id?: string | undefined;
4036
4658
  requires_approval: boolean;
@@ -4042,7 +4664,9 @@ export const AgentToolInputCRUDFunctionTool$outboundSchema: z.ZodType<
4042
4664
  z.ZodTypeDef,
4043
4665
  AgentToolInputCRUDFunctionTool
4044
4666
  > = z.object({
4045
- type: z.literal("function"),
4667
+ type:
4668
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema
4669
+ .default("function"),
4046
4670
  key: z.string().optional(),
4047
4671
  id: z.string().optional(),
4048
4672
  requiresApproval: z.boolean().default(false),
@@ -4071,13 +4695,29 @@ export function agentToolInputCRUDFunctionToolFromJSON(
4071
4695
  );
4072
4696
  }
4073
4697
 
4698
+ /** @internal */
4699
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
4700
+ z.ZodNativeEnum<
4701
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
4702
+ > = z.nativeEnum(
4703
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type,
4704
+ );
4705
+ /** @internal */
4706
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
4707
+ z.ZodNativeEnum<
4708
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
4709
+ > =
4710
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
4711
+
4074
4712
  /** @internal */
4075
4713
  export const AgentToolInputCRUDCodeExecutionTool$inboundSchema: z.ZodType<
4076
4714
  AgentToolInputCRUDCodeExecutionTool,
4077
4715
  z.ZodTypeDef,
4078
4716
  unknown
4079
4717
  > = z.object({
4080
- type: z.literal("code"),
4718
+ type:
4719
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema
4720
+ .default("code"),
4081
4721
  key: z.string().optional(),
4082
4722
  id: z.string().optional(),
4083
4723
  requires_approval: z.boolean().default(false),
@@ -4088,7 +4728,7 @@ export const AgentToolInputCRUDCodeExecutionTool$inboundSchema: z.ZodType<
4088
4728
  });
4089
4729
  /** @internal */
4090
4730
  export type AgentToolInputCRUDCodeExecutionTool$Outbound = {
4091
- type: "code";
4731
+ type: string;
4092
4732
  key?: string | undefined;
4093
4733
  id?: string | undefined;
4094
4734
  requires_approval: boolean;
@@ -4100,7 +4740,9 @@ export const AgentToolInputCRUDCodeExecutionTool$outboundSchema: z.ZodType<
4100
4740
  z.ZodTypeDef,
4101
4741
  AgentToolInputCRUDCodeExecutionTool
4102
4742
  > = z.object({
4103
- type: z.literal("code"),
4743
+ type:
4744
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema
4745
+ .default("code"),
4104
4746
  key: z.string().optional(),
4105
4747
  id: z.string().optional(),
4106
4748
  requiresApproval: z.boolean().default(false),
@@ -4130,13 +4772,29 @@ export function agentToolInputCRUDCodeExecutionToolFromJSON(
4130
4772
  );
4131
4773
  }
4132
4774
 
4775
+ /** @internal */
4776
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
4777
+ z.ZodNativeEnum<
4778
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
4779
+ > = z.nativeEnum(
4780
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type,
4781
+ );
4782
+ /** @internal */
4783
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
4784
+ z.ZodNativeEnum<
4785
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
4786
+ > =
4787
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
4788
+
4133
4789
  /** @internal */
4134
4790
  export const AgentToolInputCRUDHTTPTool$inboundSchema: z.ZodType<
4135
4791
  AgentToolInputCRUDHTTPTool,
4136
4792
  z.ZodTypeDef,
4137
4793
  unknown
4138
4794
  > = z.object({
4139
- type: z.literal("http"),
4795
+ type:
4796
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema
4797
+ .default("http"),
4140
4798
  key: z.string().optional(),
4141
4799
  id: z.string().optional(),
4142
4800
  requires_approval: z.boolean().default(false),
@@ -4147,7 +4805,7 @@ export const AgentToolInputCRUDHTTPTool$inboundSchema: z.ZodType<
4147
4805
  });
4148
4806
  /** @internal */
4149
4807
  export type AgentToolInputCRUDHTTPTool$Outbound = {
4150
- type: "http";
4808
+ type: string;
4151
4809
  key?: string | undefined;
4152
4810
  id?: string | undefined;
4153
4811
  requires_approval: boolean;
@@ -4159,7 +4817,9 @@ export const AgentToolInputCRUDHTTPTool$outboundSchema: z.ZodType<
4159
4817
  z.ZodTypeDef,
4160
4818
  AgentToolInputCRUDHTTPTool
4161
4819
  > = z.object({
4162
- type: z.literal("http"),
4820
+ type:
4821
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema
4822
+ .default("http"),
4163
4823
  key: z.string().optional(),
4164
4824
  id: z.string().optional(),
4165
4825
  requiresApproval: z.boolean().default(false),
@@ -4186,13 +4846,28 @@ export function agentToolInputCRUDHTTPToolFromJSON(
4186
4846
  );
4187
4847
  }
4188
4848
 
4849
+ /** @internal */
4850
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
4851
+ z.ZodNativeEnum<
4852
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
4853
+ > = z.nativeEnum(
4854
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type,
4855
+ );
4856
+ /** @internal */
4857
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
4858
+ z.ZodNativeEnum<
4859
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
4860
+ > =
4861
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
4862
+
4189
4863
  /** @internal */
4190
4864
  export const AgentToolInputCRUDCurrentDateTool$inboundSchema: z.ZodType<
4191
4865
  AgentToolInputCRUDCurrentDateTool,
4192
4866
  z.ZodTypeDef,
4193
4867
  unknown
4194
4868
  > = z.object({
4195
- type: z.literal("current_date"),
4869
+ type:
4870
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
4196
4871
  requires_approval: z.boolean().optional(),
4197
4872
  }).transform((v) => {
4198
4873
  return remap$(v, {
@@ -4201,7 +4876,7 @@ export const AgentToolInputCRUDCurrentDateTool$inboundSchema: z.ZodType<
4201
4876
  });
4202
4877
  /** @internal */
4203
4878
  export type AgentToolInputCRUDCurrentDateTool$Outbound = {
4204
- type: "current_date";
4879
+ type: string;
4205
4880
  requires_approval?: boolean | undefined;
4206
4881
  };
4207
4882
 
@@ -4211,7 +4886,8 @@ export const AgentToolInputCRUDCurrentDateTool$outboundSchema: z.ZodType<
4211
4886
  z.ZodTypeDef,
4212
4887
  AgentToolInputCRUDCurrentDateTool
4213
4888
  > = z.object({
4214
- type: z.literal("current_date"),
4889
+ type:
4890
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
4215
4891
  requiresApproval: z.boolean().optional(),
4216
4892
  }).transform((v) => {
4217
4893
  return remap$(v, {
@@ -4238,13 +4914,28 @@ export function agentToolInputCRUDCurrentDateToolFromJSON(
4238
4914
  );
4239
4915
  }
4240
4916
 
4917
+ /** @internal */
4918
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
4919
+ z.ZodNativeEnum<
4920
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
4921
+ > = z.nativeEnum(
4922
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type,
4923
+ );
4924
+ /** @internal */
4925
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
4926
+ z.ZodNativeEnum<
4927
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
4928
+ > =
4929
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
4930
+
4241
4931
  /** @internal */
4242
4932
  export const AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
4243
4933
  AgentToolInputCRUDQueryKnowledgeBaseTool,
4244
4934
  z.ZodTypeDef,
4245
4935
  unknown
4246
4936
  > = z.object({
4247
- type: z.literal("query_knowledge_base"),
4937
+ type:
4938
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
4248
4939
  requires_approval: z.boolean().optional(),
4249
4940
  }).transform((v) => {
4250
4941
  return remap$(v, {
@@ -4253,7 +4944,7 @@ export const AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
4253
4944
  });
4254
4945
  /** @internal */
4255
4946
  export type AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound = {
4256
- type: "query_knowledge_base";
4947
+ type: string;
4257
4948
  requires_approval?: boolean | undefined;
4258
4949
  };
4259
4950
 
@@ -4263,7 +4954,8 @@ export const AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
4263
4954
  z.ZodTypeDef,
4264
4955
  AgentToolInputCRUDQueryKnowledgeBaseTool
4265
4956
  > = z.object({
4266
- type: z.literal("query_knowledge_base"),
4957
+ type:
4958
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
4267
4959
  requiresApproval: z.boolean().optional(),
4268
4960
  }).transform((v) => {
4269
4961
  return remap$(v, {
@@ -4297,6 +4989,20 @@ export function agentToolInputCRUDQueryKnowledgeBaseToolFromJSON(
4297
4989
  );
4298
4990
  }
4299
4991
 
4992
+ /** @internal */
4993
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
4994
+ z.ZodNativeEnum<
4995
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
4996
+ > = z.nativeEnum(
4997
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type,
4998
+ );
4999
+ /** @internal */
5000
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
5001
+ z.ZodNativeEnum<
5002
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
5003
+ > =
5004
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
5005
+
4300
5006
  /** @internal */
4301
5007
  export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema:
4302
5008
  z.ZodType<
@@ -4304,7 +5010,8 @@ export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema:
4304
5010
  z.ZodTypeDef,
4305
5011
  unknown
4306
5012
  > = z.object({
4307
- type: z.literal("retrieve_knowledge_bases"),
5013
+ type:
5014
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
4308
5015
  requires_approval: z.boolean().optional(),
4309
5016
  }).transform((v) => {
4310
5017
  return remap$(v, {
@@ -4313,7 +5020,7 @@ export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema:
4313
5020
  });
4314
5021
  /** @internal */
4315
5022
  export type AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound = {
4316
- type: "retrieve_knowledge_bases";
5023
+ type: string;
4317
5024
  requires_approval?: boolean | undefined;
4318
5025
  };
4319
5026
 
@@ -4324,7 +5031,8 @@ export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema:
4324
5031
  z.ZodTypeDef,
4325
5032
  AgentToolInputCRUDRetrieveKnowledgeBasesTool
4326
5033
  > = z.object({
4327
- type: z.literal("retrieve_knowledge_bases"),
5034
+ type:
5035
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
4328
5036
  requiresApproval: z.boolean().optional(),
4329
5037
  }).transform((v) => {
4330
5038
  return remap$(v, {
@@ -4358,11 +5066,26 @@ export function agentToolInputCRUDRetrieveKnowledgeBasesToolFromJSON(
4358
5066
  );
4359
5067
  }
4360
5068
 
5069
+ /** @internal */
5070
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
5071
+ z.ZodNativeEnum<
5072
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
5073
+ > = z.nativeEnum(
5074
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type,
5075
+ );
5076
+ /** @internal */
5077
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
5078
+ z.ZodNativeEnum<
5079
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
5080
+ > =
5081
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
5082
+
4361
5083
  /** @internal */
4362
5084
  export const AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema:
4363
5085
  z.ZodType<AgentToolInputCRUDDeleteMemoryDocumentTool, z.ZodTypeDef, unknown> =
4364
5086
  z.object({
4365
- type: z.literal("delete_memory_document"),
5087
+ type:
5088
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
4366
5089
  requires_approval: z.boolean().optional(),
4367
5090
  }).transform((v) => {
4368
5091
  return remap$(v, {
@@ -4371,7 +5094,7 @@ export const AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema:
4371
5094
  });
4372
5095
  /** @internal */
4373
5096
  export type AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound = {
4374
- type: "delete_memory_document";
5097
+ type: string;
4375
5098
  requires_approval?: boolean | undefined;
4376
5099
  };
4377
5100
 
@@ -4382,7 +5105,8 @@ export const AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema:
4382
5105
  z.ZodTypeDef,
4383
5106
  AgentToolInputCRUDDeleteMemoryDocumentTool
4384
5107
  > = z.object({
4385
- type: z.literal("delete_memory_document"),
5108
+ type:
5109
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
4386
5110
  requiresApproval: z.boolean().optional(),
4387
5111
  }).transform((v) => {
4388
5112
  return remap$(v, {
@@ -4416,11 +5140,26 @@ export function agentToolInputCRUDDeleteMemoryDocumentToolFromJSON(
4416
5140
  );
4417
5141
  }
4418
5142
 
5143
+ /** @internal */
5144
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
5145
+ z.ZodNativeEnum<
5146
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
5147
+ > = z.nativeEnum(
5148
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type,
5149
+ );
5150
+ /** @internal */
5151
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
5152
+ z.ZodNativeEnum<
5153
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type
5154
+ > =
5155
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
5156
+
4419
5157
  /** @internal */
4420
5158
  export const AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema:
4421
5159
  z.ZodType<AgentToolInputCRUDRetrieveMemoryStoresTool, z.ZodTypeDef, unknown> =
4422
5160
  z.object({
4423
- type: z.literal("retrieve_memory_stores"),
5161
+ type:
5162
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
4424
5163
  requires_approval: z.boolean().optional(),
4425
5164
  }).transform((v) => {
4426
5165
  return remap$(v, {
@@ -4429,7 +5168,7 @@ export const AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema:
4429
5168
  });
4430
5169
  /** @internal */
4431
5170
  export type AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound = {
4432
- type: "retrieve_memory_stores";
5171
+ type: string;
4433
5172
  requires_approval?: boolean | undefined;
4434
5173
  };
4435
5174
 
@@ -4440,7 +5179,8 @@ export const AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema:
4440
5179
  z.ZodTypeDef,
4441
5180
  AgentToolInputCRUDRetrieveMemoryStoresTool
4442
5181
  > = z.object({
4443
- type: z.literal("retrieve_memory_stores"),
5182
+ type:
5183
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
4444
5184
  requiresApproval: z.boolean().optional(),
4445
5185
  }).transform((v) => {
4446
5186
  return remap$(v, {
@@ -4474,13 +5214,28 @@ export function agentToolInputCRUDRetrieveMemoryStoresToolFromJSON(
4474
5214
  );
4475
5215
  }
4476
5216
 
5217
+ /** @internal */
5218
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema:
5219
+ z.ZodNativeEnum<
5220
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
5221
+ > = z.nativeEnum(
5222
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType,
5223
+ );
5224
+ /** @internal */
5225
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema:
5226
+ z.ZodNativeEnum<
5227
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
5228
+ > =
5229
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema;
5230
+
4477
5231
  /** @internal */
4478
5232
  export const AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema: z.ZodType<
4479
5233
  AgentToolInputCRUDWriteMemoryStoreTool,
4480
5234
  z.ZodTypeDef,
4481
5235
  unknown
4482
5236
  > = z.object({
4483
- type: z.literal("write_memory_store"),
5237
+ type:
5238
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema,
4484
5239
  requires_approval: z.boolean().optional(),
4485
5240
  }).transform((v) => {
4486
5241
  return remap$(v, {
@@ -4489,7 +5244,7 @@ export const AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema: z.ZodType<
4489
5244
  });
4490
5245
  /** @internal */
4491
5246
  export type AgentToolInputCRUDWriteMemoryStoreTool$Outbound = {
4492
- type: "write_memory_store";
5247
+ type: string;
4493
5248
  requires_approval?: boolean | undefined;
4494
5249
  };
4495
5250
 
@@ -4499,7 +5254,8 @@ export const AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema: z.ZodType<
4499
5254
  z.ZodTypeDef,
4500
5255
  AgentToolInputCRUDWriteMemoryStoreTool
4501
5256
  > = z.object({
4502
- type: z.literal("write_memory_store"),
5257
+ type:
5258
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema,
4503
5259
  requiresApproval: z.boolean().optional(),
4504
5260
  }).transform((v) => {
4505
5261
  return remap$(v, {
@@ -4528,13 +5284,28 @@ export function agentToolInputCRUDWriteMemoryStoreToolFromJSON(
4528
5284
  );
4529
5285
  }
4530
5286
 
5287
+ /** @internal */
5288
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema:
5289
+ z.ZodNativeEnum<
5290
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
5291
+ > = z.nativeEnum(
5292
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType,
5293
+ );
5294
+ /** @internal */
5295
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema:
5296
+ z.ZodNativeEnum<
5297
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
5298
+ > =
5299
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema;
5300
+
4531
5301
  /** @internal */
4532
5302
  export const AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema: z.ZodType<
4533
5303
  AgentToolInputCRUDQueryMemoryStoreTool,
4534
5304
  z.ZodTypeDef,
4535
5305
  unknown
4536
5306
  > = z.object({
4537
- type: z.literal("query_memory_store"),
5307
+ type:
5308
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema,
4538
5309
  requires_approval: z.boolean().optional(),
4539
5310
  }).transform((v) => {
4540
5311
  return remap$(v, {
@@ -4543,7 +5314,7 @@ export const AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema: z.ZodType<
4543
5314
  });
4544
5315
  /** @internal */
4545
5316
  export type AgentToolInputCRUDQueryMemoryStoreTool$Outbound = {
4546
- type: "query_memory_store";
5317
+ type: string;
4547
5318
  requires_approval?: boolean | undefined;
4548
5319
  };
4549
5320
 
@@ -4553,7 +5324,8 @@ export const AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema: z.ZodType<
4553
5324
  z.ZodTypeDef,
4554
5325
  AgentToolInputCRUDQueryMemoryStoreTool
4555
5326
  > = z.object({
4556
- type: z.literal("query_memory_store"),
5327
+ type:
5328
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema,
4557
5329
  requiresApproval: z.boolean().optional(),
4558
5330
  }).transform((v) => {
4559
5331
  return remap$(v, {
@@ -4582,13 +5354,24 @@ export function agentToolInputCRUDQueryMemoryStoreToolFromJSON(
4582
5354
  );
4583
5355
  }
4584
5356
 
5357
+ /** @internal */
5358
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema:
5359
+ z.ZodNativeEnum<
5360
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType
5361
+ > = z.nativeEnum(UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType);
5362
+ /** @internal */
5363
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema:
5364
+ z.ZodNativeEnum<
5365
+ typeof UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType
5366
+ > = UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema;
5367
+
4585
5368
  /** @internal */
4586
5369
  export const AgentToolInputCRUDRetrieveAgentsTool$inboundSchema: z.ZodType<
4587
5370
  AgentToolInputCRUDRetrieveAgentsTool,
4588
5371
  z.ZodTypeDef,
4589
5372
  unknown
4590
5373
  > = z.object({
4591
- type: z.literal("retrieve_agents"),
5374
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema,
4592
5375
  requires_approval: z.boolean().optional(),
4593
5376
  }).transform((v) => {
4594
5377
  return remap$(v, {
@@ -4597,7 +5380,7 @@ export const AgentToolInputCRUDRetrieveAgentsTool$inboundSchema: z.ZodType<
4597
5380
  });
4598
5381
  /** @internal */
4599
5382
  export type AgentToolInputCRUDRetrieveAgentsTool$Outbound = {
4600
- type: "retrieve_agents";
5383
+ type: string;
4601
5384
  requires_approval?: boolean | undefined;
4602
5385
  };
4603
5386
 
@@ -4607,7 +5390,8 @@ export const AgentToolInputCRUDRetrieveAgentsTool$outboundSchema: z.ZodType<
4607
5390
  z.ZodTypeDef,
4608
5391
  AgentToolInputCRUDRetrieveAgentsTool
4609
5392
  > = z.object({
4610
- type: z.literal("retrieve_agents"),
5393
+ type:
5394
+ UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema,
4611
5395
  requiresApproval: z.boolean().optional(),
4612
5396
  }).transform((v) => {
4613
5397
  return remap$(v, {
@@ -4635,13 +5419,22 @@ export function agentToolInputCRUDRetrieveAgentsToolFromJSON(
4635
5419
  );
4636
5420
  }
4637
5421
 
5422
+ /** @internal */
5423
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema:
5424
+ z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestType> = z
5425
+ .nativeEnum(UpdateAgentAgentToolInputCRUDAgentsRequestType);
5426
+ /** @internal */
5427
+ export const UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema:
5428
+ z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsRequestType> =
5429
+ UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema;
5430
+
4638
5431
  /** @internal */
4639
5432
  export const AgentToolInputCRUDCallSubAgentTool$inboundSchema: z.ZodType<
4640
5433
  AgentToolInputCRUDCallSubAgentTool,
4641
5434
  z.ZodTypeDef,
4642
5435
  unknown
4643
5436
  > = z.object({
4644
- type: z.literal("call_sub_agent"),
5437
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema,
4645
5438
  requires_approval: z.boolean().optional(),
4646
5439
  }).transform((v) => {
4647
5440
  return remap$(v, {
@@ -4650,7 +5443,7 @@ export const AgentToolInputCRUDCallSubAgentTool$inboundSchema: z.ZodType<
4650
5443
  });
4651
5444
  /** @internal */
4652
5445
  export type AgentToolInputCRUDCallSubAgentTool$Outbound = {
4653
- type: "call_sub_agent";
5446
+ type: string;
4654
5447
  requires_approval?: boolean | undefined;
4655
5448
  };
4656
5449
 
@@ -4660,7 +5453,7 @@ export const AgentToolInputCRUDCallSubAgentTool$outboundSchema: z.ZodType<
4660
5453
  z.ZodTypeDef,
4661
5454
  AgentToolInputCRUDCallSubAgentTool
4662
5455
  > = z.object({
4663
- type: z.literal("call_sub_agent"),
5456
+ type: UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema,
4664
5457
  requiresApproval: z.boolean().optional(),
4665
5458
  }).transform((v) => {
4666
5459
  return remap$(v, {
@@ -4688,13 +5481,22 @@ export function agentToolInputCRUDCallSubAgentToolFromJSON(
4688
5481
  );
4689
5482
  }
4690
5483
 
5484
+ /** @internal */
5485
+ export const UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema:
5486
+ z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsType> = z
5487
+ .nativeEnum(UpdateAgentAgentToolInputCRUDAgentsType);
5488
+ /** @internal */
5489
+ export const UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema:
5490
+ z.ZodNativeEnum<typeof UpdateAgentAgentToolInputCRUDAgentsType> =
5491
+ UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema;
5492
+
4691
5493
  /** @internal */
4692
5494
  export const AgentToolInputCRUDWebScraperTool$inboundSchema: z.ZodType<
4693
5495
  AgentToolInputCRUDWebScraperTool,
4694
5496
  z.ZodTypeDef,
4695
5497
  unknown
4696
5498
  > = z.object({
4697
- type: z.literal("web_scraper"),
5499
+ type: UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema,
4698
5500
  requires_approval: z.boolean().optional(),
4699
5501
  }).transform((v) => {
4700
5502
  return remap$(v, {
@@ -4703,7 +5505,7 @@ export const AgentToolInputCRUDWebScraperTool$inboundSchema: z.ZodType<
4703
5505
  });
4704
5506
  /** @internal */
4705
5507
  export type AgentToolInputCRUDWebScraperTool$Outbound = {
4706
- type: "web_scraper";
5508
+ type: string;
4707
5509
  requires_approval?: boolean | undefined;
4708
5510
  };
4709
5511
 
@@ -4713,7 +5515,7 @@ export const AgentToolInputCRUDWebScraperTool$outboundSchema: z.ZodType<
4713
5515
  z.ZodTypeDef,
4714
5516
  AgentToolInputCRUDWebScraperTool
4715
5517
  > = z.object({
4716
- type: z.literal("web_scraper"),
5518
+ type: UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema,
4717
5519
  requiresApproval: z.boolean().optional(),
4718
5520
  }).transform((v) => {
4719
5521
  return remap$(v, {
@@ -4740,13 +5542,22 @@ export function agentToolInputCRUDWebScraperToolFromJSON(
4740
5542
  );
4741
5543
  }
4742
5544
 
5545
+ /** @internal */
5546
+ export const UpdateAgentAgentToolInputCRUDType$inboundSchema: z.ZodNativeEnum<
5547
+ typeof UpdateAgentAgentToolInputCRUDType
5548
+ > = z.nativeEnum(UpdateAgentAgentToolInputCRUDType);
5549
+ /** @internal */
5550
+ export const UpdateAgentAgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<
5551
+ typeof UpdateAgentAgentToolInputCRUDType
5552
+ > = UpdateAgentAgentToolInputCRUDType$inboundSchema;
5553
+
4743
5554
  /** @internal */
4744
5555
  export const AgentToolInputCRUDGoogleSearchTool$inboundSchema: z.ZodType<
4745
5556
  AgentToolInputCRUDGoogleSearchTool,
4746
5557
  z.ZodTypeDef,
4747
5558
  unknown
4748
5559
  > = z.object({
4749
- type: z.literal("google_search"),
5560
+ type: UpdateAgentAgentToolInputCRUDType$inboundSchema,
4750
5561
  requires_approval: z.boolean().optional(),
4751
5562
  }).transform((v) => {
4752
5563
  return remap$(v, {
@@ -4755,7 +5566,7 @@ export const AgentToolInputCRUDGoogleSearchTool$inboundSchema: z.ZodType<
4755
5566
  });
4756
5567
  /** @internal */
4757
5568
  export type AgentToolInputCRUDGoogleSearchTool$Outbound = {
4758
- type: "google_search";
5569
+ type: string;
4759
5570
  requires_approval?: boolean | undefined;
4760
5571
  };
4761
5572
 
@@ -4765,7 +5576,7 @@ export const AgentToolInputCRUDGoogleSearchTool$outboundSchema: z.ZodType<
4765
5576
  z.ZodTypeDef,
4766
5577
  AgentToolInputCRUDGoogleSearchTool
4767
5578
  > = z.object({
4768
- type: z.literal("google_search"),
5579
+ type: UpdateAgentAgentToolInputCRUDType$outboundSchema,
4769
5580
  requiresApproval: z.boolean().optional(),
4770
5581
  }).transform((v) => {
4771
5582
  return remap$(v, {
@@ -4810,10 +5621,10 @@ export const UpdateAgentAgentToolInputCRUD$inboundSchema: z.ZodType<
4810
5621
  z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema),
4811
5622
  z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema),
4812
5623
  z.lazy(() => AgentToolInputCRUDCurrentDateTool$inboundSchema),
5624
+ z.lazy(() => AgentToolInputCRUDMCPTool$inboundSchema),
4813
5625
  z.lazy(() => AgentToolInputCRUDHTTPTool$inboundSchema),
4814
5626
  z.lazy(() => AgentToolInputCRUDCodeExecutionTool$inboundSchema),
4815
5627
  z.lazy(() => AgentToolInputCRUDFunctionTool$inboundSchema),
4816
- z.lazy(() => AgentToolInputCRUDMCPTool$inboundSchema),
4817
5628
  ]);
4818
5629
  /** @internal */
4819
5630
  export type UpdateAgentAgentToolInputCRUD$Outbound =
@@ -4828,10 +5639,10 @@ export type UpdateAgentAgentToolInputCRUD$Outbound =
4828
5639
  | AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound
4829
5640
  | AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
4830
5641
  | AgentToolInputCRUDCurrentDateTool$Outbound
5642
+ | AgentToolInputCRUDMCPTool$Outbound
4831
5643
  | AgentToolInputCRUDHTTPTool$Outbound
4832
5644
  | AgentToolInputCRUDCodeExecutionTool$Outbound
4833
- | AgentToolInputCRUDFunctionTool$Outbound
4834
- | AgentToolInputCRUDMCPTool$Outbound;
5645
+ | AgentToolInputCRUDFunctionTool$Outbound;
4835
5646
 
4836
5647
  /** @internal */
4837
5648
  export const UpdateAgentAgentToolInputCRUD$outboundSchema: z.ZodType<
@@ -4850,10 +5661,10 @@ export const UpdateAgentAgentToolInputCRUD$outboundSchema: z.ZodType<
4850
5661
  z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema),
4851
5662
  z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
4852
5663
  z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
5664
+ z.lazy(() => AgentToolInputCRUDMCPTool$outboundSchema),
4853
5665
  z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
4854
5666
  z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
4855
5667
  z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
4856
- z.lazy(() => AgentToolInputCRUDMCPTool$outboundSchema),
4857
5668
  ]);
4858
5669
 
4859
5670
  export function updateAgentAgentToolInputCRUDToJSON(
@@ -5010,7 +5821,7 @@ export const UpdateAgentSettings$inboundSchema: z.ZodType<
5010
5821
  unknown
5011
5822
  > = z.object({
5012
5823
  max_iterations: z.number().int().default(100),
5013
- max_execution_time: z.number().int().default(300),
5824
+ max_execution_time: z.number().int().default(600),
5014
5825
  tool_approval_required: UpdateAgentToolApprovalRequired$inboundSchema.default(
5015
5826
  "respect_tool",
5016
5827
  ),
@@ -5027,10 +5838,10 @@ export const UpdateAgentSettings$inboundSchema: z.ZodType<
5027
5838
  z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema),
5028
5839
  z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema),
5029
5840
  z.lazy(() => AgentToolInputCRUDCurrentDateTool$inboundSchema),
5841
+ z.lazy(() => AgentToolInputCRUDMCPTool$inboundSchema),
5030
5842
  z.lazy(() => AgentToolInputCRUDHTTPTool$inboundSchema),
5031
5843
  z.lazy(() => AgentToolInputCRUDCodeExecutionTool$inboundSchema),
5032
5844
  z.lazy(() => AgentToolInputCRUDFunctionTool$inboundSchema),
5033
- z.lazy(() => AgentToolInputCRUDMCPTool$inboundSchema),
5034
5845
  ]),
5035
5846
  ).optional(),
5036
5847
  evaluators: z.array(z.lazy(() => UpdateAgentEvaluators$inboundSchema))
@@ -5062,10 +5873,10 @@ export type UpdateAgentSettings$Outbound = {
5062
5873
  | AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound
5063
5874
  | AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound
5064
5875
  | AgentToolInputCRUDCurrentDateTool$Outbound
5876
+ | AgentToolInputCRUDMCPTool$Outbound
5065
5877
  | AgentToolInputCRUDHTTPTool$Outbound
5066
5878
  | AgentToolInputCRUDCodeExecutionTool$Outbound
5067
5879
  | AgentToolInputCRUDFunctionTool$Outbound
5068
- | AgentToolInputCRUDMCPTool$Outbound
5069
5880
  >
5070
5881
  | undefined;
5071
5882
  evaluators?: Array<UpdateAgentEvaluators$Outbound> | undefined;
@@ -5079,7 +5890,7 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
5079
5890
  UpdateAgentSettings
5080
5891
  > = z.object({
5081
5892
  maxIterations: z.number().int().default(100),
5082
- maxExecutionTime: z.number().int().default(300),
5893
+ maxExecutionTime: z.number().int().default(600),
5083
5894
  toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema.default(
5084
5895
  "respect_tool",
5085
5896
  ),
@@ -5096,10 +5907,10 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
5096
5907
  z.lazy(() => AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema),
5097
5908
  z.lazy(() => AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema),
5098
5909
  z.lazy(() => AgentToolInputCRUDCurrentDateTool$outboundSchema),
5910
+ z.lazy(() => AgentToolInputCRUDMCPTool$outboundSchema),
5099
5911
  z.lazy(() => AgentToolInputCRUDHTTPTool$outboundSchema),
5100
5912
  z.lazy(() => AgentToolInputCRUDCodeExecutionTool$outboundSchema),
5101
5913
  z.lazy(() => AgentToolInputCRUDFunctionTool$outboundSchema),
5102
- z.lazy(() => AgentToolInputCRUDMCPTool$outboundSchema),
5103
5914
  ]),
5104
5915
  ).optional(),
5105
5916
  evaluators: z.array(z.lazy(() => UpdateAgentEvaluators$outboundSchema))
@@ -5682,7 +6493,7 @@ export const UpdateAgentAgentsSettings$inboundSchema: z.ZodType<
5682
6493
  unknown
5683
6494
  > = z.object({
5684
6495
  max_iterations: z.number().int().default(100),
5685
- max_execution_time: z.number().int().default(300),
6496
+ max_execution_time: z.number().int().default(600),
5686
6497
  tool_approval_required: UpdateAgentAgentsToolApprovalRequired$inboundSchema
5687
6498
  .default("respect_tool"),
5688
6499
  tools: z.array(z.lazy(() => UpdateAgentTools$inboundSchema)).optional(),
@@ -5714,7 +6525,7 @@ export const UpdateAgentAgentsSettings$outboundSchema: z.ZodType<
5714
6525
  UpdateAgentAgentsSettings
5715
6526
  > = z.object({
5716
6527
  maxIterations: z.number().int().default(100),
5717
- maxExecutionTime: z.number().int().default(300),
6528
+ maxExecutionTime: z.number().int().default(600),
5718
6529
  toolApprovalRequired: UpdateAgentAgentsToolApprovalRequired$outboundSchema
5719
6530
  .default("respect_tool"),
5720
6531
  tools: z.array(z.lazy(() => UpdateAgentTools$outboundSchema)).optional(),
@@ -6081,6 +6892,15 @@ export function updateAgentResponseFormatFromJSON(
6081
6892
  );
6082
6893
  }
6083
6894
 
6895
+ /** @internal */
6896
+ export const UpdateAgentReasoningEffort$inboundSchema: z.ZodNativeEnum<
6897
+ typeof UpdateAgentReasoningEffort
6898
+ > = z.nativeEnum(UpdateAgentReasoningEffort);
6899
+ /** @internal */
6900
+ export const UpdateAgentReasoningEffort$outboundSchema: z.ZodNativeEnum<
6901
+ typeof UpdateAgentReasoningEffort
6902
+ > = UpdateAgentReasoningEffort$inboundSchema;
6903
+
6084
6904
  /** @internal */
6085
6905
  export const UpdateAgentStop$inboundSchema: z.ZodType<
6086
6906
  UpdateAgentStop,
@@ -6159,61 +6979,29 @@ export function updateAgentStreamOptionsFromJSON(
6159
6979
  );
6160
6980
  }
6161
6981
 
6162
- /** @internal */
6163
- export const UpdateAgentType$inboundSchema: z.ZodNativeEnum<
6164
- typeof UpdateAgentType
6165
- > = z.nativeEnum(UpdateAgentType);
6166
- /** @internal */
6167
- export const UpdateAgentType$outboundSchema: z.ZodNativeEnum<
6168
- typeof UpdateAgentType
6169
- > = UpdateAgentType$inboundSchema;
6170
-
6171
- /** @internal */
6172
- export const UpdateAgentThinkingLevel$inboundSchema: z.ZodNativeEnum<
6173
- typeof UpdateAgentThinkingLevel
6174
- > = z.nativeEnum(UpdateAgentThinkingLevel);
6175
- /** @internal */
6176
- export const UpdateAgentThinkingLevel$outboundSchema: z.ZodNativeEnum<
6177
- typeof UpdateAgentThinkingLevel
6178
- > = UpdateAgentThinkingLevel$inboundSchema;
6179
-
6180
6982
  /** @internal */
6181
6983
  export const UpdateAgentThinking$inboundSchema: z.ZodType<
6182
6984
  UpdateAgentThinking,
6183
6985
  z.ZodTypeDef,
6184
6986
  unknown
6185
- > = z.object({
6186
- type: UpdateAgentType$inboundSchema,
6187
- budget_tokens: z.number(),
6188
- thinking_level: UpdateAgentThinkingLevel$inboundSchema.optional(),
6189
- }).transform((v) => {
6190
- return remap$(v, {
6191
- "budget_tokens": "budgetTokens",
6192
- "thinking_level": "thinkingLevel",
6193
- });
6194
- });
6987
+ > = z.union([
6988
+ components.ThinkingConfigDisabledSchema$inboundSchema,
6989
+ components.ThinkingConfigEnabledSchema$inboundSchema,
6990
+ ]);
6195
6991
  /** @internal */
6196
- export type UpdateAgentThinking$Outbound = {
6197
- type: string;
6198
- budget_tokens: number;
6199
- thinking_level?: string | undefined;
6200
- };
6992
+ export type UpdateAgentThinking$Outbound =
6993
+ | components.ThinkingConfigDisabledSchema$Outbound
6994
+ | components.ThinkingConfigEnabledSchema$Outbound;
6201
6995
 
6202
6996
  /** @internal */
6203
6997
  export const UpdateAgentThinking$outboundSchema: z.ZodType<
6204
6998
  UpdateAgentThinking$Outbound,
6205
6999
  z.ZodTypeDef,
6206
7000
  UpdateAgentThinking
6207
- > = z.object({
6208
- type: UpdateAgentType$outboundSchema,
6209
- budgetTokens: z.number(),
6210
- thinkingLevel: UpdateAgentThinkingLevel$outboundSchema.optional(),
6211
- }).transform((v) => {
6212
- return remap$(v, {
6213
- budgetTokens: "budget_tokens",
6214
- thinkingLevel: "thinking_level",
6215
- });
6216
- });
7001
+ > = z.union([
7002
+ components.ThinkingConfigDisabledSchema$outboundSchema,
7003
+ components.ThinkingConfigEnabledSchema$outboundSchema,
7004
+ ]);
6217
7005
 
6218
7006
  export function updateAgentThinkingToJSON(
6219
7007
  updateAgentThinking: UpdateAgentThinking,
@@ -6400,6 +7188,108 @@ export const UpdateAgentModalities$outboundSchema: z.ZodNativeEnum<
6400
7188
  typeof UpdateAgentModalities
6401
7189
  > = UpdateAgentModalities$inboundSchema;
6402
7190
 
7191
+ /** @internal */
7192
+ export const UpdateAgentIdAgentsResponse1$inboundSchema: z.ZodNativeEnum<
7193
+ typeof UpdateAgentIdAgentsResponse1
7194
+ > = z.nativeEnum(UpdateAgentIdAgentsResponse1);
7195
+ /** @internal */
7196
+ export const UpdateAgentIdAgentsResponse1$outboundSchema: z.ZodNativeEnum<
7197
+ typeof UpdateAgentIdAgentsResponse1
7198
+ > = UpdateAgentIdAgentsResponse1$inboundSchema;
7199
+
7200
+ /** @internal */
7201
+ export const UpdateAgentId$inboundSchema: z.ZodType<
7202
+ UpdateAgentId,
7203
+ z.ZodTypeDef,
7204
+ unknown
7205
+ > = z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]);
7206
+ /** @internal */
7207
+ export type UpdateAgentId$Outbound = string | string;
7208
+
7209
+ /** @internal */
7210
+ export const UpdateAgentId$outboundSchema: z.ZodType<
7211
+ UpdateAgentId$Outbound,
7212
+ z.ZodTypeDef,
7213
+ UpdateAgentId
7214
+ > = z.union([UpdateAgentIdAgentsResponse1$outboundSchema, z.string()]);
7215
+
7216
+ export function updateAgentIdToJSON(updateAgentId: UpdateAgentId): string {
7217
+ return JSON.stringify(UpdateAgentId$outboundSchema.parse(updateAgentId));
7218
+ }
7219
+ export function updateAgentIdFromJSON(
7220
+ jsonString: string,
7221
+ ): SafeParseResult<UpdateAgentId, SDKValidationError> {
7222
+ return safeParse(
7223
+ jsonString,
7224
+ (x) => UpdateAgentId$inboundSchema.parse(JSON.parse(x)),
7225
+ `Failed to parse 'UpdateAgentId' from JSON`,
7226
+ );
7227
+ }
7228
+
7229
+ /** @internal */
7230
+ export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema:
7231
+ z.ZodNativeEnum<typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn> =
7232
+ z.nativeEnum(UpdateAgentAgentsResponse200ApplicationJSONExecuteOn);
7233
+ /** @internal */
7234
+ export const UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$outboundSchema:
7235
+ z.ZodNativeEnum<typeof UpdateAgentAgentsResponse200ApplicationJSONExecuteOn> =
7236
+ UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema;
7237
+
7238
+ /** @internal */
7239
+ export const UpdateAgentAgentsResponseGuardrails$inboundSchema: z.ZodType<
7240
+ UpdateAgentAgentsResponseGuardrails,
7241
+ z.ZodTypeDef,
7242
+ unknown
7243
+ > = z.object({
7244
+ id: z.union([UpdateAgentIdAgentsResponse1$inboundSchema, z.string()]),
7245
+ execute_on:
7246
+ UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$inboundSchema,
7247
+ }).transform((v) => {
7248
+ return remap$(v, {
7249
+ "execute_on": "executeOn",
7250
+ });
7251
+ });
7252
+ /** @internal */
7253
+ export type UpdateAgentAgentsResponseGuardrails$Outbound = {
7254
+ id: string | string;
7255
+ execute_on: string;
7256
+ };
7257
+
7258
+ /** @internal */
7259
+ export const UpdateAgentAgentsResponseGuardrails$outboundSchema: z.ZodType<
7260
+ UpdateAgentAgentsResponseGuardrails$Outbound,
7261
+ z.ZodTypeDef,
7262
+ UpdateAgentAgentsResponseGuardrails
7263
+ > = z.object({
7264
+ id: z.union([UpdateAgentIdAgentsResponse1$outboundSchema, z.string()]),
7265
+ executeOn:
7266
+ UpdateAgentAgentsResponse200ApplicationJSONExecuteOn$outboundSchema,
7267
+ }).transform((v) => {
7268
+ return remap$(v, {
7269
+ executeOn: "execute_on",
7270
+ });
7271
+ });
7272
+
7273
+ export function updateAgentAgentsResponseGuardrailsToJSON(
7274
+ updateAgentAgentsResponseGuardrails: UpdateAgentAgentsResponseGuardrails,
7275
+ ): string {
7276
+ return JSON.stringify(
7277
+ UpdateAgentAgentsResponseGuardrails$outboundSchema.parse(
7278
+ updateAgentAgentsResponseGuardrails,
7279
+ ),
7280
+ );
7281
+ }
7282
+ export function updateAgentAgentsResponseGuardrailsFromJSON(
7283
+ jsonString: string,
7284
+ ): SafeParseResult<UpdateAgentAgentsResponseGuardrails, SDKValidationError> {
7285
+ return safeParse(
7286
+ jsonString,
7287
+ (x) =>
7288
+ UpdateAgentAgentsResponseGuardrails$inboundSchema.parse(JSON.parse(x)),
7289
+ `Failed to parse 'UpdateAgentAgentsResponseGuardrails' from JSON`,
7290
+ );
7291
+ }
7292
+
6403
7293
  /** @internal */
6404
7294
  export const UpdateAgentParameters$inboundSchema: z.ZodType<
6405
7295
  UpdateAgentParameters,
@@ -6423,14 +7313,17 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
6423
7313
  UpdateAgentResponseFormatAgentsResponse200JSONSchema$inboundSchema
6424
7314
  ),
6425
7315
  ]).optional(),
6426
- reasoning_effort: z.string().optional(),
7316
+ reasoning_effort: UpdateAgentReasoningEffort$inboundSchema.optional(),
6427
7317
  verbosity: z.string().optional(),
6428
7318
  seed: z.nullable(z.number()).optional(),
6429
7319
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
6430
7320
  stream_options: z.nullable(
6431
7321
  z.lazy(() => UpdateAgentStreamOptions$inboundSchema),
6432
7322
  ).optional(),
6433
- thinking: z.lazy(() => UpdateAgentThinking$inboundSchema).optional(),
7323
+ thinking: z.union([
7324
+ components.ThinkingConfigDisabledSchema$inboundSchema,
7325
+ components.ThinkingConfigEnabledSchema$inboundSchema,
7326
+ ]).optional(),
6434
7327
  temperature: z.nullable(z.number()).optional(),
6435
7328
  top_p: z.nullable(z.number()).optional(),
6436
7329
  top_k: z.nullable(z.number()).optional(),
@@ -6441,6 +7334,9 @@ export const UpdateAgentParameters$inboundSchema: z.ZodType<
6441
7334
  parallel_tool_calls: z.boolean().optional(),
6442
7335
  modalities: z.nullable(z.array(UpdateAgentModalities$inboundSchema))
6443
7336
  .optional(),
7337
+ guardrails: z.array(
7338
+ z.lazy(() => UpdateAgentAgentsResponseGuardrails$inboundSchema),
7339
+ ).optional(),
6444
7340
  }).transform((v) => {
6445
7341
  return remap$(v, {
6446
7342
  "frequency_penalty": "frequencyPenalty",
@@ -6477,7 +7373,10 @@ export type UpdateAgentParameters$Outbound = {
6477
7373
  seed?: number | null | undefined;
6478
7374
  stop?: string | Array<string> | null | undefined;
6479
7375
  stream_options?: UpdateAgentStreamOptions$Outbound | null | undefined;
6480
- thinking?: UpdateAgentThinking$Outbound | undefined;
7376
+ thinking?:
7377
+ | components.ThinkingConfigDisabledSchema$Outbound
7378
+ | components.ThinkingConfigEnabledSchema$Outbound
7379
+ | undefined;
6481
7380
  temperature?: number | null | undefined;
6482
7381
  top_p?: number | null | undefined;
6483
7382
  top_k?: number | null | undefined;
@@ -6487,6 +7386,7 @@ export type UpdateAgentParameters$Outbound = {
6487
7386
  | undefined;
6488
7387
  parallel_tool_calls?: boolean | undefined;
6489
7388
  modalities?: Array<string> | null | undefined;
7389
+ guardrails?: Array<UpdateAgentAgentsResponseGuardrails$Outbound> | undefined;
6490
7390
  };
6491
7391
 
6492
7392
  /** @internal */
@@ -6512,14 +7412,17 @@ export const UpdateAgentParameters$outboundSchema: z.ZodType<
6512
7412
  UpdateAgentResponseFormatAgentsResponse200JSONSchema$outboundSchema
6513
7413
  ),
6514
7414
  ]).optional(),
6515
- reasoningEffort: z.string().optional(),
7415
+ reasoningEffort: UpdateAgentReasoningEffort$outboundSchema.optional(),
6516
7416
  verbosity: z.string().optional(),
6517
7417
  seed: z.nullable(z.number()).optional(),
6518
7418
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
6519
7419
  streamOptions: z.nullable(
6520
7420
  z.lazy(() => UpdateAgentStreamOptions$outboundSchema),
6521
7421
  ).optional(),
6522
- thinking: z.lazy(() => UpdateAgentThinking$outboundSchema).optional(),
7422
+ thinking: z.union([
7423
+ components.ThinkingConfigDisabledSchema$outboundSchema,
7424
+ components.ThinkingConfigEnabledSchema$outboundSchema,
7425
+ ]).optional(),
6523
7426
  temperature: z.nullable(z.number()).optional(),
6524
7427
  topP: z.nullable(z.number()).optional(),
6525
7428
  topK: z.nullable(z.number()).optional(),
@@ -6530,6 +7433,9 @@ export const UpdateAgentParameters$outboundSchema: z.ZodType<
6530
7433
  parallelToolCalls: z.boolean().optional(),
6531
7434
  modalities: z.nullable(z.array(UpdateAgentModalities$outboundSchema))
6532
7435
  .optional(),
7436
+ guardrails: z.array(
7437
+ z.lazy(() => UpdateAgentAgentsResponseGuardrails$outboundSchema),
7438
+ ).optional(),
6533
7439
  }).transform((v) => {
6534
7440
  return remap$(v, {
6535
7441
  frequencyPenalty: "frequency_penalty",
@@ -6973,6 +7879,17 @@ export function updateAgentFallbackModelConfigurationAgentsResponseFormatFromJSO
6973
7879
  );
6974
7880
  }
6975
7881
 
7882
+ /** @internal */
7883
+ export const UpdateAgentFallbackModelConfigurationAgentsReasoningEffort$inboundSchema:
7884
+ z.ZodNativeEnum<
7885
+ typeof UpdateAgentFallbackModelConfigurationAgentsReasoningEffort
7886
+ > = z.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsReasoningEffort);
7887
+ /** @internal */
7888
+ export const UpdateAgentFallbackModelConfigurationAgentsReasoningEffort$outboundSchema:
7889
+ z.ZodNativeEnum<
7890
+ typeof UpdateAgentFallbackModelConfigurationAgentsReasoningEffort
7891
+ > = UpdateAgentFallbackModelConfigurationAgentsReasoningEffort$inboundSchema;
7892
+
6976
7893
  /** @internal */
6977
7894
  export const UpdateAgentFallbackModelConfigurationAgentsStop$inboundSchema:
6978
7895
  z.ZodType<
@@ -7076,50 +7993,20 @@ export function updateAgentFallbackModelConfigurationAgentsStreamOptionsFromJSON
7076
7993
  );
7077
7994
  }
7078
7995
 
7079
- /** @internal */
7080
- export const UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema:
7081
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> = z
7082
- .nativeEnum(UpdateAgentFallbackModelConfigurationAgentsType);
7083
- /** @internal */
7084
- export const UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema:
7085
- z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsType> =
7086
- UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema;
7087
-
7088
- /** @internal */
7089
- export const UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$inboundSchema:
7090
- z.ZodNativeEnum<
7091
- typeof UpdateAgentFallbackModelConfigurationAgentsThinkingLevel
7092
- > = z.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsThinkingLevel);
7093
- /** @internal */
7094
- export const UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$outboundSchema:
7095
- z.ZodNativeEnum<
7096
- typeof UpdateAgentFallbackModelConfigurationAgentsThinkingLevel
7097
- > = UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$inboundSchema;
7098
-
7099
7996
  /** @internal */
7100
7997
  export const UpdateAgentFallbackModelConfigurationAgentsThinking$inboundSchema:
7101
7998
  z.ZodType<
7102
7999
  UpdateAgentFallbackModelConfigurationAgentsThinking,
7103
8000
  z.ZodTypeDef,
7104
8001
  unknown
7105
- > = z.object({
7106
- type: UpdateAgentFallbackModelConfigurationAgentsType$inboundSchema,
7107
- budget_tokens: z.number(),
7108
- thinking_level:
7109
- UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$inboundSchema
7110
- .optional(),
7111
- }).transform((v) => {
7112
- return remap$(v, {
7113
- "budget_tokens": "budgetTokens",
7114
- "thinking_level": "thinkingLevel",
7115
- });
7116
- });
8002
+ > = z.union([
8003
+ components.ThinkingConfigDisabledSchema$inboundSchema,
8004
+ components.ThinkingConfigEnabledSchema$inboundSchema,
8005
+ ]);
7117
8006
  /** @internal */
7118
- export type UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound = {
7119
- type: string;
7120
- budget_tokens: number;
7121
- thinking_level?: string | undefined;
7122
- };
8007
+ export type UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound =
8008
+ | components.ThinkingConfigDisabledSchema$Outbound
8009
+ | components.ThinkingConfigEnabledSchema$Outbound;
7123
8010
 
7124
8011
  /** @internal */
7125
8012
  export const UpdateAgentFallbackModelConfigurationAgentsThinking$outboundSchema:
@@ -7127,18 +8014,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsThinking$outboundSchema:
7127
8014
  UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound,
7128
8015
  z.ZodTypeDef,
7129
8016
  UpdateAgentFallbackModelConfigurationAgentsThinking
7130
- > = z.object({
7131
- type: UpdateAgentFallbackModelConfigurationAgentsType$outboundSchema,
7132
- budgetTokens: z.number(),
7133
- thinkingLevel:
7134
- UpdateAgentFallbackModelConfigurationAgentsThinkingLevel$outboundSchema
7135
- .optional(),
7136
- }).transform((v) => {
7137
- return remap$(v, {
7138
- budgetTokens: "budget_tokens",
7139
- thinkingLevel: "thinking_level",
7140
- });
7141
- });
8017
+ > = z.union([
8018
+ components.ThinkingConfigDisabledSchema$outboundSchema,
8019
+ components.ThinkingConfigEnabledSchema$outboundSchema,
8020
+ ]);
7142
8021
 
7143
8022
  export function updateAgentFallbackModelConfigurationAgentsThinkingToJSON(
7144
8023
  updateAgentFallbackModelConfigurationAgentsThinking:
@@ -7352,6 +8231,133 @@ export const UpdateAgentFallbackModelConfigurationAgentsModalities$outboundSchem
7352
8231
  typeof UpdateAgentFallbackModelConfigurationAgentsModalities
7353
8232
  > = UpdateAgentFallbackModelConfigurationAgentsModalities$inboundSchema;
7354
8233
 
8234
+ /** @internal */
8235
+ export const UpdateAgentIdAgentsResponse2001$inboundSchema: z.ZodNativeEnum<
8236
+ typeof UpdateAgentIdAgentsResponse2001
8237
+ > = z.nativeEnum(UpdateAgentIdAgentsResponse2001);
8238
+ /** @internal */
8239
+ export const UpdateAgentIdAgentsResponse2001$outboundSchema: z.ZodNativeEnum<
8240
+ typeof UpdateAgentIdAgentsResponse2001
8241
+ > = UpdateAgentIdAgentsResponse2001$inboundSchema;
8242
+
8243
+ /** @internal */
8244
+ export const UpdateAgentFallbackModelConfigurationAgentsId$inboundSchema:
8245
+ z.ZodType<
8246
+ UpdateAgentFallbackModelConfigurationAgentsId,
8247
+ z.ZodTypeDef,
8248
+ unknown
8249
+ > = z.union([UpdateAgentIdAgentsResponse2001$inboundSchema, z.string()]);
8250
+ /** @internal */
8251
+ export type UpdateAgentFallbackModelConfigurationAgentsId$Outbound =
8252
+ | string
8253
+ | string;
8254
+
8255
+ /** @internal */
8256
+ export const UpdateAgentFallbackModelConfigurationAgentsId$outboundSchema:
8257
+ z.ZodType<
8258
+ UpdateAgentFallbackModelConfigurationAgentsId$Outbound,
8259
+ z.ZodTypeDef,
8260
+ UpdateAgentFallbackModelConfigurationAgentsId
8261
+ > = z.union([UpdateAgentIdAgentsResponse2001$outboundSchema, z.string()]);
8262
+
8263
+ export function updateAgentFallbackModelConfigurationAgentsIdToJSON(
8264
+ updateAgentFallbackModelConfigurationAgentsId:
8265
+ UpdateAgentFallbackModelConfigurationAgentsId,
8266
+ ): string {
8267
+ return JSON.stringify(
8268
+ UpdateAgentFallbackModelConfigurationAgentsId$outboundSchema.parse(
8269
+ updateAgentFallbackModelConfigurationAgentsId,
8270
+ ),
8271
+ );
8272
+ }
8273
+ export function updateAgentFallbackModelConfigurationAgentsIdFromJSON(
8274
+ jsonString: string,
8275
+ ): SafeParseResult<
8276
+ UpdateAgentFallbackModelConfigurationAgentsId,
8277
+ SDKValidationError
8278
+ > {
8279
+ return safeParse(
8280
+ jsonString,
8281
+ (x) =>
8282
+ UpdateAgentFallbackModelConfigurationAgentsId$inboundSchema.parse(
8283
+ JSON.parse(x),
8284
+ ),
8285
+ `Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsId' from JSON`,
8286
+ );
8287
+ }
8288
+
8289
+ /** @internal */
8290
+ export const UpdateAgentFallbackModelConfigurationAgentsExecuteOn$inboundSchema:
8291
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsExecuteOn> =
8292
+ z.nativeEnum(UpdateAgentFallbackModelConfigurationAgentsExecuteOn);
8293
+ /** @internal */
8294
+ export const UpdateAgentFallbackModelConfigurationAgentsExecuteOn$outboundSchema:
8295
+ z.ZodNativeEnum<typeof UpdateAgentFallbackModelConfigurationAgentsExecuteOn> =
8296
+ UpdateAgentFallbackModelConfigurationAgentsExecuteOn$inboundSchema;
8297
+
8298
+ /** @internal */
8299
+ export const UpdateAgentFallbackModelConfigurationAgentsGuardrails$inboundSchema:
8300
+ z.ZodType<
8301
+ UpdateAgentFallbackModelConfigurationAgentsGuardrails,
8302
+ z.ZodTypeDef,
8303
+ unknown
8304
+ > = z.object({
8305
+ id: z.union([UpdateAgentIdAgentsResponse2001$inboundSchema, z.string()]),
8306
+ execute_on:
8307
+ UpdateAgentFallbackModelConfigurationAgentsExecuteOn$inboundSchema,
8308
+ }).transform((v) => {
8309
+ return remap$(v, {
8310
+ "execute_on": "executeOn",
8311
+ });
8312
+ });
8313
+ /** @internal */
8314
+ export type UpdateAgentFallbackModelConfigurationAgentsGuardrails$Outbound = {
8315
+ id: string | string;
8316
+ execute_on: string;
8317
+ };
8318
+
8319
+ /** @internal */
8320
+ export const UpdateAgentFallbackModelConfigurationAgentsGuardrails$outboundSchema:
8321
+ z.ZodType<
8322
+ UpdateAgentFallbackModelConfigurationAgentsGuardrails$Outbound,
8323
+ z.ZodTypeDef,
8324
+ UpdateAgentFallbackModelConfigurationAgentsGuardrails
8325
+ > = z.object({
8326
+ id: z.union([UpdateAgentIdAgentsResponse2001$outboundSchema, z.string()]),
8327
+ executeOn:
8328
+ UpdateAgentFallbackModelConfigurationAgentsExecuteOn$outboundSchema,
8329
+ }).transform((v) => {
8330
+ return remap$(v, {
8331
+ executeOn: "execute_on",
8332
+ });
8333
+ });
8334
+
8335
+ export function updateAgentFallbackModelConfigurationAgentsGuardrailsToJSON(
8336
+ updateAgentFallbackModelConfigurationAgentsGuardrails:
8337
+ UpdateAgentFallbackModelConfigurationAgentsGuardrails,
8338
+ ): string {
8339
+ return JSON.stringify(
8340
+ UpdateAgentFallbackModelConfigurationAgentsGuardrails$outboundSchema.parse(
8341
+ updateAgentFallbackModelConfigurationAgentsGuardrails,
8342
+ ),
8343
+ );
8344
+ }
8345
+ export function updateAgentFallbackModelConfigurationAgentsGuardrailsFromJSON(
8346
+ jsonString: string,
8347
+ ): SafeParseResult<
8348
+ UpdateAgentFallbackModelConfigurationAgentsGuardrails,
8349
+ SDKValidationError
8350
+ > {
8351
+ return safeParse(
8352
+ jsonString,
8353
+ (x) =>
8354
+ UpdateAgentFallbackModelConfigurationAgentsGuardrails$inboundSchema.parse(
8355
+ JSON.parse(x),
8356
+ ),
8357
+ `Failed to parse 'UpdateAgentFallbackModelConfigurationAgentsGuardrails' from JSON`,
8358
+ );
8359
+ }
8360
+
7355
8361
  /** @internal */
7356
8362
  export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema:
7357
8363
  z.ZodType<
@@ -7382,7 +8388,9 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
7382
8388
  UpdateAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyJSONSchema$inboundSchema
7383
8389
  ),
7384
8390
  ]).optional(),
7385
- reasoning_effort: z.string().optional(),
8391
+ reasoning_effort:
8392
+ UpdateAgentFallbackModelConfigurationAgentsReasoningEffort$inboundSchema
8393
+ .optional(),
7386
8394
  verbosity: z.string().optional(),
7387
8395
  seed: z.nullable(z.number()).optional(),
7388
8396
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
@@ -7391,9 +8399,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
7391
8399
  UpdateAgentFallbackModelConfigurationAgentsStreamOptions$inboundSchema
7392
8400
  ),
7393
8401
  ).optional(),
7394
- thinking: z.lazy(() =>
7395
- UpdateAgentFallbackModelConfigurationAgentsThinking$inboundSchema
7396
- ).optional(),
8402
+ thinking: z.union([
8403
+ components.ThinkingConfigDisabledSchema$inboundSchema,
8404
+ components.ThinkingConfigEnabledSchema$inboundSchema,
8405
+ ]).optional(),
7397
8406
  temperature: z.nullable(z.number()).optional(),
7398
8407
  top_p: z.nullable(z.number()).optional(),
7399
8408
  top_k: z.nullable(z.number()).optional(),
@@ -7407,6 +8416,11 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$inboundSchema
7407
8416
  UpdateAgentFallbackModelConfigurationAgentsModalities$inboundSchema,
7408
8417
  ),
7409
8418
  ).optional(),
8419
+ guardrails: z.array(
8420
+ z.lazy(() =>
8421
+ UpdateAgentFallbackModelConfigurationAgentsGuardrails$inboundSchema
8422
+ ),
8423
+ ).optional(),
7410
8424
  }).transform((v) => {
7411
8425
  return remap$(v, {
7412
8426
  "frequency_penalty": "frequencyPenalty",
@@ -7450,7 +8464,8 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters$Outbound = {
7450
8464
  | null
7451
8465
  | undefined;
7452
8466
  thinking?:
7453
- | UpdateAgentFallbackModelConfigurationAgentsThinking$Outbound
8467
+ | components.ThinkingConfigDisabledSchema$Outbound
8468
+ | components.ThinkingConfigEnabledSchema$Outbound
7454
8469
  | undefined;
7455
8470
  temperature?: number | null | undefined;
7456
8471
  top_p?: number | null | undefined;
@@ -7461,6 +8476,9 @@ export type UpdateAgentFallbackModelConfigurationAgentsParameters$Outbound = {
7461
8476
  | undefined;
7462
8477
  parallel_tool_calls?: boolean | undefined;
7463
8478
  modalities?: Array<string> | null | undefined;
8479
+ guardrails?:
8480
+ | Array<UpdateAgentFallbackModelConfigurationAgentsGuardrails$Outbound>
8481
+ | undefined;
7464
8482
  };
7465
8483
 
7466
8484
  /** @internal */
@@ -7493,7 +8511,9 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$outboundSchem
7493
8511
  UpdateAgentResponseFormatAgentsResponse200ApplicationJSONResponseBodyJSONSchema$outboundSchema
7494
8512
  ),
7495
8513
  ]).optional(),
7496
- reasoningEffort: z.string().optional(),
8514
+ reasoningEffort:
8515
+ UpdateAgentFallbackModelConfigurationAgentsReasoningEffort$outboundSchema
8516
+ .optional(),
7497
8517
  verbosity: z.string().optional(),
7498
8518
  seed: z.nullable(z.number()).optional(),
7499
8519
  stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
@@ -7502,9 +8522,10 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$outboundSchem
7502
8522
  UpdateAgentFallbackModelConfigurationAgentsStreamOptions$outboundSchema
7503
8523
  ),
7504
8524
  ).optional(),
7505
- thinking: z.lazy(() =>
7506
- UpdateAgentFallbackModelConfigurationAgentsThinking$outboundSchema
7507
- ).optional(),
8525
+ thinking: z.union([
8526
+ components.ThinkingConfigDisabledSchema$outboundSchema,
8527
+ components.ThinkingConfigEnabledSchema$outboundSchema,
8528
+ ]).optional(),
7508
8529
  temperature: z.nullable(z.number()).optional(),
7509
8530
  topP: z.nullable(z.number()).optional(),
7510
8531
  topK: z.nullable(z.number()).optional(),
@@ -7518,6 +8539,11 @@ export const UpdateAgentFallbackModelConfigurationAgentsParameters$outboundSchem
7518
8539
  UpdateAgentFallbackModelConfigurationAgentsModalities$outboundSchema,
7519
8540
  ),
7520
8541
  ).optional(),
8542
+ guardrails: z.array(
8543
+ z.lazy(() =>
8544
+ UpdateAgentFallbackModelConfigurationAgentsGuardrails$outboundSchema
8545
+ ),
8546
+ ).optional(),
7521
8547
  }).transform((v) => {
7522
8548
  return remap$(v, {
7523
8549
  frequencyPenalty: "frequency_penalty",