@orq-ai/node 4.15.0-rc.8 → 4.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2402) hide show
  1. package/FUNCTIONS.md +38 -3
  2. package/README.md +287 -72
  3. package/examples/deploymentsInvoke.example.ts +62 -0
  4. package/funcs/agentsCreate.js +1 -1
  5. package/funcs/agentsCreate.js.map +1 -1
  6. package/funcs/agentsDelete.js +1 -1
  7. package/funcs/agentsDelete.js.map +1 -1
  8. package/funcs/agentsList.js +1 -1
  9. package/funcs/agentsList.js.map +1 -1
  10. package/funcs/agentsResponsesGet.js +1 -1
  11. package/funcs/agentsResponsesGet.js.map +1 -1
  12. package/funcs/agentsRetrieve.js +1 -1
  13. package/funcs/agentsRetrieve.js.map +1 -1
  14. package/funcs/agentsStream.js +1 -1
  15. package/funcs/agentsStream.js.map +1 -1
  16. package/funcs/agentsStreamRun.js +1 -1
  17. package/funcs/agentsStreamRun.js.map +1 -1
  18. package/funcs/agentsUpdate.js +1 -1
  19. package/funcs/agentsUpdate.js.map +1 -1
  20. package/funcs/annotationQueuesAddItems.d.ts +1 -1
  21. package/funcs/annotationQueuesAddItems.d.ts.map +1 -1
  22. package/funcs/annotationQueuesAddItems.js +2 -1
  23. package/funcs/annotationQueuesAddItems.js.map +1 -1
  24. package/funcs/annotationQueuesClear.d.ts +1 -2
  25. package/funcs/annotationQueuesClear.d.ts.map +1 -1
  26. package/funcs/annotationQueuesClear.js +3 -3
  27. package/funcs/annotationQueuesClear.js.map +1 -1
  28. package/funcs/annotationQueuesDelete.d.ts +1 -2
  29. package/funcs/annotationQueuesDelete.d.ts.map +1 -1
  30. package/funcs/annotationQueuesDelete.js +3 -3
  31. package/funcs/annotationQueuesDelete.js.map +1 -1
  32. package/funcs/annotationQueuesRemoveItems.d.ts +1 -2
  33. package/funcs/annotationQueuesRemoveItems.d.ts.map +1 -1
  34. package/funcs/annotationQueuesRemoveItems.js +3 -3
  35. package/funcs/annotationQueuesRemoveItems.js.map +1 -1
  36. package/funcs/budgetsCreate.d.ts +1 -1
  37. package/funcs/budgetsCreate.js +1 -1
  38. package/funcs/budgetsDelete.d.ts +1 -1
  39. package/funcs/budgetsDelete.js +1 -1
  40. package/funcs/budgetsGet.d.ts +1 -1
  41. package/funcs/budgetsGet.js +1 -1
  42. package/funcs/budgetsList.d.ts +1 -1
  43. package/funcs/budgetsList.js +1 -1
  44. package/funcs/budgetsResetConsumption.d.ts +1 -1
  45. package/funcs/budgetsResetConsumption.js +1 -1
  46. package/funcs/budgetsUpdate.d.ts +1 -1
  47. package/funcs/budgetsUpdate.js +1 -1
  48. package/funcs/datasetsCreateDatapoint.d.ts +2 -1
  49. package/funcs/datasetsCreateDatapoint.d.ts.map +1 -1
  50. package/funcs/datasetsCreateDatapoint.js +5 -1
  51. package/funcs/datasetsCreateDatapoint.js.map +1 -1
  52. package/funcs/datasetsList.js +1 -0
  53. package/funcs/datasetsList.js.map +1 -1
  54. package/funcs/deploymentsInvoke.d.ts +18 -0
  55. package/funcs/deploymentsInvoke.d.ts.map +1 -0
  56. package/funcs/deploymentsInvoke.js +116 -0
  57. package/funcs/deploymentsInvoke.js.map +1 -0
  58. package/funcs/deploymentsStream.d.ts +18 -0
  59. package/funcs/deploymentsStream.d.ts.map +1 -0
  60. package/funcs/deploymentsStream.js +129 -0
  61. package/funcs/deploymentsStream.js.map +1 -0
  62. package/funcs/evalsAll.d.ts +2 -2
  63. package/funcs/evalsAll.d.ts.map +1 -1
  64. package/funcs/evalsAll.js +5 -2
  65. package/funcs/evalsAll.js.map +1 -1
  66. package/funcs/evalsCreate.d.ts +2 -2
  67. package/funcs/evalsCreate.d.ts.map +1 -1
  68. package/funcs/evalsCreate.js +20 -5
  69. package/funcs/evalsCreate.js.map +1 -1
  70. package/funcs/evalsDelete.d.ts +2 -2
  71. package/funcs/evalsDelete.d.ts.map +1 -1
  72. package/funcs/evalsDelete.js +6 -2
  73. package/funcs/evalsDelete.js.map +1 -1
  74. package/funcs/evalsGet.d.ts +2 -2
  75. package/funcs/evalsGet.d.ts.map +1 -1
  76. package/funcs/evalsGet.js +5 -2
  77. package/funcs/evalsGet.js.map +1 -1
  78. package/funcs/evalsGetVersion.d.ts +1 -2
  79. package/funcs/evalsGetVersion.d.ts.map +1 -1
  80. package/funcs/evalsGetVersion.js +1 -2
  81. package/funcs/evalsGetVersion.js.map +1 -1
  82. package/funcs/evalsInvoke.d.ts +1 -1
  83. package/funcs/evalsInvoke.d.ts.map +1 -1
  84. package/funcs/evalsInvoke.js +1 -1
  85. package/funcs/evalsInvoke.js.map +1 -1
  86. package/funcs/evalsUpdate.d.ts +2 -2
  87. package/funcs/evalsUpdate.d.ts.map +1 -1
  88. package/funcs/evalsUpdate.js +5 -2
  89. package/funcs/evalsUpdate.js.map +1 -1
  90. package/funcs/hubGet.d.ts +18 -0
  91. package/funcs/hubGet.d.ts.map +1 -0
  92. package/funcs/hubGet.js +121 -0
  93. package/funcs/hubGet.js.map +1 -0
  94. package/funcs/hubSearch.d.ts +18 -0
  95. package/funcs/hubSearch.d.ts.map +1 -0
  96. package/funcs/hubSearch.js +120 -0
  97. package/funcs/hubSearch.js.map +1 -0
  98. package/funcs/knowledgeCreate.js +1 -1
  99. package/funcs/knowledgeCreate.js.map +1 -1
  100. package/funcs/knowledgeDelete.js +1 -1
  101. package/funcs/knowledgeDelete.js.map +1 -1
  102. package/funcs/knowledgeList.js +1 -1
  103. package/funcs/knowledgeList.js.map +1 -1
  104. package/funcs/knowledgePreviewChunks.d.ts +18 -0
  105. package/funcs/knowledgePreviewChunks.d.ts.map +1 -0
  106. package/funcs/knowledgePreviewChunks.js +122 -0
  107. package/funcs/knowledgePreviewChunks.js.map +1 -0
  108. package/funcs/knowledgeRetrieve.js +1 -1
  109. package/funcs/knowledgeRetrieve.js.map +1 -1
  110. package/funcs/knowledgeRetrieveFileUrl.js +1 -1
  111. package/funcs/knowledgeRetrieveFileUrl.js.map +1 -1
  112. package/funcs/knowledgeSearch.js +1 -1
  113. package/funcs/knowledgeSearch.js.map +1 -1
  114. package/funcs/knowledgeUpdate.js +1 -1
  115. package/funcs/knowledgeUpdate.js.map +1 -1
  116. package/funcs/logsListFacets.d.ts +2 -3
  117. package/funcs/logsListFacets.d.ts.map +1 -1
  118. package/funcs/logsListFacets.js +5 -12
  119. package/funcs/logsListFacets.js.map +1 -1
  120. package/funcs/modelsAzureFoundryDeployments.js +1 -1
  121. package/funcs/modelsAzureFoundryDeployments.js.map +1 -1
  122. package/funcs/modelsCreate.js +1 -1
  123. package/funcs/modelsCreate.js.map +1 -1
  124. package/funcs/modelsCreateAwsBedrock.js +1 -1
  125. package/funcs/modelsCreateAwsBedrock.js.map +1 -1
  126. package/funcs/modelsCreateOpenaiLike.js +1 -1
  127. package/funcs/modelsCreateOpenaiLike.js.map +1 -1
  128. package/funcs/modelsCreateVertex.js +1 -1
  129. package/funcs/modelsCreateVertex.js.map +1 -1
  130. package/funcs/modelsImportLitellm.js +1 -1
  131. package/funcs/modelsImportLitellm.js.map +1 -1
  132. package/funcs/modelsListLitellm.js +1 -1
  133. package/funcs/modelsListLitellm.js.map +1 -1
  134. package/funcs/modelsUpdate.js +1 -1
  135. package/funcs/modelsUpdate.js.map +1 -1
  136. package/funcs/modelsUpdateAwsBedrock.js +1 -1
  137. package/funcs/modelsUpdateAwsBedrock.js.map +1 -1
  138. package/funcs/modelsUpdateOpenaiLike.js +1 -1
  139. package/funcs/modelsUpdateOpenaiLike.js.map +1 -1
  140. package/funcs/modelsValidate.js +1 -1
  141. package/funcs/modelsValidate.js.map +1 -1
  142. package/funcs/modelsValidateAwsBedrock.js +1 -1
  143. package/funcs/modelsValidateAwsBedrock.js.map +1 -1
  144. package/funcs/piiCapabilities.d.ts +17 -0
  145. package/funcs/piiCapabilities.d.ts.map +1 -0
  146. package/funcs/piiCapabilities.js +105 -0
  147. package/funcs/piiCapabilities.js.map +1 -0
  148. package/funcs/projectsCreate.d.ts +1 -1
  149. package/funcs/projectsCreate.js +1 -1
  150. package/funcs/projectsDelete.d.ts +1 -1
  151. package/funcs/projectsDelete.js +1 -1
  152. package/funcs/projectsUpdate.d.ts +1 -1
  153. package/funcs/projectsUpdate.js +1 -1
  154. package/funcs/reportingQuery.d.ts +1 -1
  155. package/funcs/reportingQuery.js +1 -1
  156. package/funcs/sessionsCreate.d.ts +17 -0
  157. package/funcs/sessionsCreate.d.ts.map +1 -0
  158. package/funcs/sessionsCreate.js +115 -0
  159. package/funcs/sessionsCreate.js.map +1 -0
  160. package/funcs/sessionsDelete.d.ts +17 -0
  161. package/funcs/sessionsDelete.d.ts.map +1 -0
  162. package/funcs/sessionsDelete.js +121 -0
  163. package/funcs/sessionsDelete.js.map +1 -0
  164. package/funcs/sessionsGet.d.ts +18 -0
  165. package/funcs/sessionsGet.d.ts.map +1 -0
  166. package/funcs/sessionsGet.js +121 -0
  167. package/funcs/sessionsGet.js.map +1 -0
  168. package/funcs/sessionsGetCount.d.ts +17 -0
  169. package/funcs/sessionsGetCount.d.ts.map +1 -0
  170. package/funcs/sessionsGetCount.js +115 -0
  171. package/funcs/sessionsGetCount.js.map +1 -0
  172. package/funcs/sessionsList.d.ts +17 -0
  173. package/funcs/sessionsList.d.ts.map +1 -0
  174. package/funcs/sessionsList.js +115 -0
  175. package/funcs/sessionsList.js.map +1 -0
  176. package/funcs/sessionsListTags.d.ts +16 -0
  177. package/funcs/sessionsListTags.d.ts.map +1 -0
  178. package/funcs/sessionsListTags.js +105 -0
  179. package/funcs/sessionsListTags.js.map +1 -0
  180. package/funcs/sessionsUpdate.d.ts +18 -0
  181. package/funcs/sessionsUpdate.d.ts.map +1 -0
  182. package/funcs/sessionsUpdate.js +124 -0
  183. package/funcs/sessionsUpdate.js.map +1 -0
  184. package/funcs/skillsUpdate.d.ts +1 -1
  185. package/funcs/skillsUpdate.js +1 -1
  186. package/funcs/tracesAggregate.d.ts +1 -1
  187. package/funcs/tracesAggregate.js +1 -1
  188. package/funcs/webhooksGet.d.ts +1 -1
  189. package/funcs/webhooksGet.js +1 -1
  190. package/funcs/workspaceSettingsUpdate.d.ts +1 -1
  191. package/funcs/workspaceSettingsUpdate.js +1 -1
  192. package/jsr.json +1 -1
  193. package/lib/config.d.ts +3 -3
  194. package/lib/config.js +3 -3
  195. package/lib/config.js.map +1 -1
  196. package/models/components/agentresponserequest.d.ts +14 -14
  197. package/models/components/agentresponserequest.d.ts.map +1 -1
  198. package/models/components/agentresponserequest.js +15 -14
  199. package/models/components/agentresponserequest.js.map +1 -1
  200. package/models/components/agentstartedstreamingevent.d.ts +13 -1
  201. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  202. package/models/components/agentstartedstreamingevent.js +2 -0
  203. package/models/components/agentstartedstreamingevent.js.map +1 -1
  204. package/models/components/agentthoughtstreamingevent.d.ts +12 -12
  205. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  206. package/models/components/agentthoughtstreamingevent.js +17 -17
  207. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  208. package/models/components/aggregatelogsrequest.d.ts +3 -3
  209. package/models/components/auditlogfilter.d.ts +1 -1
  210. package/models/components/budgetlimit.d.ts +5 -5
  211. package/models/components/budgetlimit.d.ts.map +1 -1
  212. package/models/components/budgetlimit.js +6 -7
  213. package/models/components/budgetlimit.js.map +1 -1
  214. package/models/components/capabilitiesresponse.d.ts +62 -0
  215. package/models/components/capabilitiesresponse.d.ts.map +1 -0
  216. package/models/components/capabilitiesresponse.js +68 -0
  217. package/models/components/capabilitiesresponse.js.map +1 -0
  218. package/models/components/chatkitresource.d.ts +18 -0
  219. package/models/components/chatkitresource.d.ts.map +1 -0
  220. package/models/components/chatkitresource.js +59 -0
  221. package/models/components/chatkitresource.js.map +1 -0
  222. package/models/components/chatkitresources.d.ts +13 -0
  223. package/models/components/chatkitresources.d.ts.map +1 -0
  224. package/models/components/chatkitresources.js +50 -0
  225. package/models/components/chatkitresources.js.map +1 -0
  226. package/models/components/chunkingconfiguration.d.ts +263 -4
  227. package/models/components/chunkingconfiguration.d.ts.map +1 -1
  228. package/models/components/chunkingconfiguration.js +143 -1
  229. package/models/components/chunkingconfiguration.js.map +1 -1
  230. package/models/components/createmcpgatewayrequest.d.ts +6 -0
  231. package/models/components/createmcpgatewayrequest.d.ts.map +1 -1
  232. package/models/components/createmcpgatewayrequest.js +2 -0
  233. package/models/components/createmcpgatewayrequest.js.map +1 -1
  234. package/models/components/createthreadrequest.d.ts +41 -0
  235. package/models/components/createthreadrequest.d.ts.map +1 -0
  236. package/models/components/createthreadrequest.js +75 -0
  237. package/models/components/createthreadrequest.js.map +1 -0
  238. package/models/components/datasourcesservicepreviewchunksrequest.d.ts +15 -0
  239. package/models/components/datasourcesservicepreviewchunksrequest.d.ts.map +1 -0
  240. package/models/components/datasourcesservicepreviewchunksrequest.js +57 -0
  241. package/models/components/datasourcesservicepreviewchunksrequest.js.map +1 -0
  242. package/models/components/datasourcesservicepreviewchunksresponse.d.ts +13 -0
  243. package/models/components/datasourcesservicepreviewchunksresponse.d.ts.map +1 -0
  244. package/models/components/datasourcesservicepreviewchunksresponse.js +53 -0
  245. package/models/components/datasourcesservicepreviewchunksresponse.js.map +1 -0
  246. package/models/components/detectrequest.d.ts +48 -0
  247. package/models/components/detectrequest.d.ts.map +1 -1
  248. package/models/components/detectrequest.js +4 -0
  249. package/models/components/detectrequest.js.map +1 -1
  250. package/models/components/entitylist.d.ts +16 -0
  251. package/models/components/entitylist.d.ts.map +1 -0
  252. package/models/components/{deleteevaluatorresponse.js → entitylist.js} +8 -6
  253. package/models/components/entitylist.js.map +1 -0
  254. package/models/components/evaluationcontext.d.ts +7 -9
  255. package/models/components/evaluationcontext.d.ts.map +1 -1
  256. package/models/components/evaluationcontext.js +2 -8
  257. package/models/components/evaluationcontext.js.map +1 -1
  258. package/models/components/evaluationresult.d.ts +7 -11
  259. package/models/components/evaluationresult.d.ts.map +1 -1
  260. package/models/components/evaluationresult.js.map +1 -1
  261. package/models/components/evaluatorresponsefunction.d.ts +230 -0
  262. package/models/components/evaluatorresponsefunction.d.ts.map +1 -0
  263. package/models/components/evaluatorresponsefunction.js +420 -0
  264. package/models/components/evaluatorresponsefunction.js.map +1 -0
  265. package/models/components/evaluatorresponsehttp.d.ts +37 -0
  266. package/models/components/evaluatorresponsehttp.d.ts.map +1 -0
  267. package/models/components/evaluatorresponsehttp.js +77 -0
  268. package/models/components/evaluatorresponsehttp.js.map +1 -0
  269. package/models/components/evaluatorresponsejsonschema.d.ts +22 -0
  270. package/models/components/evaluatorresponsejsonschema.d.ts.map +1 -0
  271. package/models/components/{listevaluatorsresponse.js → evaluatorresponsejsonschema.js} +20 -16
  272. package/models/components/evaluatorresponsejsonschema.js.map +1 -0
  273. package/models/components/evaluatorresponsellm.d.ts +101 -0
  274. package/models/components/evaluatorresponsellm.d.ts.map +1 -0
  275. package/models/components/evaluatorresponsellm.js +181 -0
  276. package/models/components/evaluatorresponsellm.js.map +1 -0
  277. package/models/components/evaluatorresponsepython.d.ts +22 -0
  278. package/models/components/evaluatorresponsepython.d.ts.map +1 -0
  279. package/models/components/evaluatorresponsepython.js +67 -0
  280. package/models/components/evaluatorresponsepython.js.map +1 -0
  281. package/models/components/evaluatorresponseragas.d.ts +41 -0
  282. package/models/components/evaluatorresponseragas.d.ts.map +1 -0
  283. package/models/components/evaluatorresponseragas.js +86 -0
  284. package/models/components/evaluatorresponseragas.js.map +1 -0
  285. package/models/components/evaluatorresponsetypescript.d.ts +22 -0
  286. package/models/components/evaluatorresponsetypescript.d.ts.map +1 -0
  287. package/models/components/{getevaluatorversionresponse.js → evaluatorresponsetypescript.js} +24 -14
  288. package/models/components/evaluatorresponsetypescript.js.map +1 -0
  289. package/models/components/filter.d.ts +5 -5
  290. package/models/components/filter.d.ts.map +1 -1
  291. package/models/components/filter.js +6 -7
  292. package/models/components/filter.js.map +1 -1
  293. package/models/components/gethubitemresponse.d.ts +11 -0
  294. package/models/components/gethubitemresponse.d.ts.map +1 -0
  295. package/models/components/{addannotationqueueitemsresponse.js → gethubitemresponse.js} +13 -8
  296. package/models/components/gethubitemresponse.js.map +1 -0
  297. package/models/components/getthreadcountrequest.d.ts +17 -0
  298. package/models/components/getthreadcountrequest.d.ts.map +1 -0
  299. package/models/components/getthreadcountrequest.js +52 -0
  300. package/models/components/getthreadcountrequest.js.map +1 -0
  301. package/models/components/getthreadcountresponse.d.ts +10 -0
  302. package/models/components/getthreadcountresponse.d.ts.map +1 -0
  303. package/models/components/{clearannotationqueueresponse.js → getthreadcountresponse.js} +8 -6
  304. package/models/components/getthreadcountresponse.js.map +1 -0
  305. package/models/components/getuploadfileurlresponse.d.ts +4 -0
  306. package/models/components/getuploadfileurlresponse.d.ts.map +1 -1
  307. package/models/components/getuploadfileurlresponse.js +1 -0
  308. package/models/components/getuploadfileurlresponse.js.map +1 -1
  309. package/models/components/guardrailruleplugin.d.ts +25 -0
  310. package/models/components/guardrailruleplugin.d.ts.map +1 -1
  311. package/models/components/guardrailruleplugin.js +6 -0
  312. package/models/components/guardrailruleplugin.js.map +1 -1
  313. package/models/components/hubitem.d.ts +71 -0
  314. package/models/components/hubitem.d.ts.map +1 -0
  315. package/models/components/hubitem.js +83 -0
  316. package/models/components/hubitem.js.map +1 -0
  317. package/models/components/hubitemsummary.d.ts +29 -0
  318. package/models/components/hubitemsummary.d.ts.map +1 -0
  319. package/models/components/hubitemsummary.js +60 -0
  320. package/models/components/hubitemsummary.js.map +1 -0
  321. package/models/components/hubsearchhit.d.ts +11 -0
  322. package/models/components/hubsearchhit.d.ts.map +1 -0
  323. package/models/components/{deleteannotationqueueresponse.js → hubsearchhit.js} +9 -6
  324. package/models/components/hubsearchhit.js.map +1 -0
  325. package/models/components/index.d.ts +37 -12
  326. package/models/components/index.d.ts.map +1 -1
  327. package/models/components/index.js +37 -12
  328. package/models/components/index.js.map +1 -1
  329. package/models/components/invokedeploymentrequest.d.ts +1544 -0
  330. package/models/components/invokedeploymentrequest.d.ts.map +1 -0
  331. package/models/components/invokedeploymentrequest.js +1109 -0
  332. package/models/components/invokedeploymentrequest.js.map +1 -0
  333. package/models/components/invokeevaluatorrequest.d.ts +9 -11
  334. package/models/components/invokeevaluatorrequest.d.ts.map +1 -1
  335. package/models/components/invokeevaluatorrequest.js +2 -9
  336. package/models/components/invokeevaluatorrequest.js.map +1 -1
  337. package/models/{operations/listlogfacets.d.ts → components/listlogfacetsrequest.d.ts} +8 -1
  338. package/models/components/listlogfacetsrequest.d.ts.map +1 -0
  339. package/models/{operations/listlogfacets.js → components/listlogfacetsrequest.js} +6 -1
  340. package/models/components/listlogfacetsrequest.js.map +1 -0
  341. package/models/components/listthreadsrequest.d.ts +17 -0
  342. package/models/components/listthreadsrequest.d.ts.map +1 -0
  343. package/models/components/listthreadsrequest.js +52 -0
  344. package/models/components/listthreadsrequest.js.map +1 -0
  345. package/models/components/listthreadsresponse.d.ts +13 -0
  346. package/models/components/listthreadsresponse.d.ts.map +1 -0
  347. package/models/components/listthreadsresponse.js +58 -0
  348. package/models/components/listthreadsresponse.js.map +1 -0
  349. package/models/components/managementkey.d.ts +3 -4
  350. package/models/components/managementkey.d.ts.map +1 -1
  351. package/models/components/managementkey.js.map +1 -1
  352. package/models/components/mcpgateway.d.ts +5 -0
  353. package/models/components/mcpgateway.d.ts.map +1 -1
  354. package/models/components/mcpgateway.js +2 -0
  355. package/models/components/mcpgateway.js.map +1 -1
  356. package/models/components/mcpgatewayplugin.d.ts +30 -0
  357. package/models/components/mcpgatewayplugin.d.ts.map +1 -0
  358. package/models/components/mcpgatewayplugin.js +77 -0
  359. package/models/components/mcpgatewayplugin.js.map +1 -0
  360. package/models/components/memorystoreembeddingconfig.d.ts +1 -1
  361. package/models/components/modelmetadata.d.ts +2 -0
  362. package/models/components/modelmetadata.d.ts.map +1 -1
  363. package/models/components/modelmetadata.js +4 -0
  364. package/models/components/modelmetadata.js.map +1 -1
  365. package/models/components/modelsconfig.d.ts +5 -5
  366. package/models/components/modelsconfig.d.ts.map +1 -1
  367. package/models/components/modelsconfig.js +6 -6
  368. package/models/components/modelsconfig.js.map +1 -1
  369. package/models/components/monitorfilter.d.ts +13 -5
  370. package/models/components/monitorfilter.d.ts.map +1 -1
  371. package/models/components/monitorfilter.js +14 -6
  372. package/models/components/monitorfilter.js.map +1 -1
  373. package/models/components/openaipromptcacheoptions.d.ts +37 -0
  374. package/models/components/openaipromptcacheoptions.d.ts.map +1 -0
  375. package/models/components/openaipromptcacheoptions.js +75 -0
  376. package/models/components/openaipromptcacheoptions.js.map +1 -0
  377. package/models/components/piiredactionconfig.d.ts +20 -0
  378. package/models/components/piiredactionconfig.d.ts.map +1 -1
  379. package/models/components/piiredactionconfig.js +6 -0
  380. package/models/components/piiredactionconfig.js.map +1 -1
  381. package/models/components/piiredactionplugin.d.ts +84 -0
  382. package/models/components/piiredactionplugin.d.ts.map +1 -0
  383. package/models/components/piiredactionplugin.js +103 -0
  384. package/models/components/piiredactionplugin.js.map +1 -0
  385. package/models/components/previewchunk.d.ts +11 -0
  386. package/models/components/previewchunk.d.ts.map +1 -0
  387. package/models/components/{invokeevaluatorresponse.js → previewchunk.js} +13 -8
  388. package/models/components/previewchunk.js.map +1 -0
  389. package/models/components/previewchunksmetadata.d.ts +15 -0
  390. package/models/components/previewchunksmetadata.d.ts.map +1 -0
  391. package/models/components/previewchunksmetadata.js +65 -0
  392. package/models/components/previewchunksmetadata.js.map +1 -0
  393. package/models/components/publicplugin.d.ts +17 -16
  394. package/models/components/publicplugin.d.ts.map +1 -1
  395. package/models/components/publicplugin.js +5 -11
  396. package/models/components/publicplugin.js.map +1 -1
  397. package/models/components/publicresponseresource.d.ts +2 -0
  398. package/models/components/publicresponseresource.d.ts.map +1 -1
  399. package/models/components/publicresponseresource.js +3 -0
  400. package/models/components/publicresponseresource.js.map +1 -1
  401. package/models/components/reasoningpart.js +1 -1
  402. package/models/components/redactrequest.d.ts +48 -0
  403. package/models/components/redactrequest.d.ts.map +1 -1
  404. package/models/components/redactrequest.js +8 -0
  405. package/models/components/redactrequest.js.map +1 -1
  406. package/models/components/responsehealingplugin.d.ts +2 -17
  407. package/models/components/responsehealingplugin.d.ts.map +1 -1
  408. package/models/components/responsehealingplugin.js +3 -13
  409. package/models/components/responsehealingplugin.js.map +1 -1
  410. package/models/components/responsemeta.d.ts +4 -4
  411. package/models/components/responsemeta.d.ts.map +1 -1
  412. package/models/components/responsemeta.js +5 -4
  413. package/models/components/responsemeta.js.map +1 -1
  414. package/models/components/routingruleplugin.d.ts +25 -0
  415. package/models/components/routingruleplugin.d.ts.map +1 -1
  416. package/models/components/routingruleplugin.js +6 -0
  417. package/models/components/routingruleplugin.js.map +1 -1
  418. package/models/components/searchhubitemsresponse.d.ts +11 -0
  419. package/models/components/searchhubitemsresponse.d.ts.map +1 -0
  420. package/models/components/{removeannotationqueueitemsresponse.js → searchhubitemsresponse.js} +9 -6
  421. package/models/components/searchhubitemsresponse.js.map +1 -0
  422. package/models/components/searchknowledgematch.d.ts +1 -4
  423. package/models/components/searchknowledgematch.d.ts.map +1 -1
  424. package/models/components/searchknowledgematch.js.map +1 -1
  425. package/models/components/searchknowledgerequest.d.ts +180 -180
  426. package/models/components/searchknowledgerequest.d.ts.map +1 -1
  427. package/models/components/searchknowledgerequest.js +211 -222
  428. package/models/components/searchknowledgerequest.js.map +1 -1
  429. package/models/components/searchretrievalconfig.d.ts +1 -1
  430. package/models/components/sessioninterval.d.ts +19 -0
  431. package/models/components/sessioninterval.d.ts.map +1 -0
  432. package/models/components/sessioninterval.js +56 -0
  433. package/models/components/sessioninterval.js.map +1 -0
  434. package/models/components/skill.d.ts +2 -3
  435. package/models/components/skill.d.ts.map +1 -1
  436. package/models/components/skill.js.map +1 -1
  437. package/models/components/spansummary.d.ts +12 -0
  438. package/models/components/spansummary.d.ts.map +1 -1
  439. package/models/components/spansummary.js +9 -0
  440. package/models/components/spansummary.js.map +1 -1
  441. package/models/components/textcontentpartschema.d.ts +5 -5
  442. package/models/components/textcontentpartschema.d.ts.map +1 -1
  443. package/models/components/textcontentpartschema.js +6 -6
  444. package/models/components/textcontentpartschema.js.map +1 -1
  445. package/models/components/thread.d.ts +54 -0
  446. package/models/components/thread.d.ts.map +1 -0
  447. package/models/components/thread.js +79 -0
  448. package/models/components/thread.js.map +1 -0
  449. package/models/components/threadbilling.d.ts +21 -0
  450. package/models/components/threadbilling.d.ts.map +1 -0
  451. package/models/components/{evaluatordocumentresponse.js → threadbilling.js} +31 -12
  452. package/models/components/threadbilling.js.map +1 -0
  453. package/models/components/threadfilters.d.ts +34 -0
  454. package/models/components/threadfilters.d.ts.map +1 -0
  455. package/models/components/threadfilters.js +65 -0
  456. package/models/components/threadfilters.js.map +1 -0
  457. package/models/components/threadkind.d.ts +13 -0
  458. package/models/components/threadkind.d.ts.map +1 -0
  459. package/models/components/threadkind.js +51 -0
  460. package/models/components/threadkind.js.map +1 -0
  461. package/models/components/threadusage.d.ts +21 -0
  462. package/models/components/threadusage.d.ts.map +1 -0
  463. package/models/components/threadusage.js +75 -0
  464. package/models/components/threadusage.js.map +1 -0
  465. package/models/components/toolexecutionfailedstreamingevent.d.ts +1 -0
  466. package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -1
  467. package/models/components/toolexecutionfailedstreamingevent.js +1 -0
  468. package/models/components/toolexecutionfailedstreamingevent.js.map +1 -1
  469. package/models/components/toolexecutionfinishedstreamingevent.d.ts +1 -0
  470. package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -1
  471. package/models/components/toolexecutionfinishedstreamingevent.js +1 -0
  472. package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -1
  473. package/models/components/toolexecutionstartedstreamingevent.d.ts +1 -0
  474. package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
  475. package/models/components/toolexecutionstartedstreamingevent.js +1 -0
  476. package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
  477. package/models/components/tracescrubbingplugin.d.ts +2 -16
  478. package/models/components/tracescrubbingplugin.d.ts.map +1 -1
  479. package/models/components/tracescrubbingplugin.js +3 -13
  480. package/models/components/tracescrubbingplugin.js.map +1 -1
  481. package/models/components/traceusage.d.ts +1 -0
  482. package/models/components/traceusage.d.ts.map +1 -1
  483. package/models/components/traceusage.js +2 -0
  484. package/models/components/traceusage.js.map +1 -1
  485. package/models/components/updatemcpgatewayrequest.d.ts +6 -0
  486. package/models/components/updatemcpgatewayrequest.d.ts.map +1 -1
  487. package/models/components/updatemcpgatewayrequest.js +2 -0
  488. package/models/components/updatemcpgatewayrequest.js.map +1 -1
  489. package/models/components/updatememorystorerequest.d.ts +5 -0
  490. package/models/components/updatememorystorerequest.d.ts.map +1 -1
  491. package/models/components/updatememorystorerequest.js +6 -0
  492. package/models/components/updatememorystorerequest.js.map +1 -1
  493. package/models/components/updateskillrequest.d.ts +1 -1
  494. package/models/components/updatethreadrequest.d.ts +51 -0
  495. package/models/components/updatethreadrequest.d.ts.map +1 -0
  496. package/models/components/updatethreadrequest.js +79 -0
  497. package/models/components/updatethreadrequest.js.map +1 -0
  498. package/models/components/updateworkspacerequest.d.ts +3 -0
  499. package/models/components/updateworkspacerequest.d.ts.map +1 -1
  500. package/models/components/updateworkspacerequest.js +3 -0
  501. package/models/components/updateworkspacerequest.js.map +1 -1
  502. package/models/components/updateworkspacesettingsrequest.d.ts +3 -3
  503. package/models/components/upsertchunk.d.ts +5 -0
  504. package/models/components/upsertchunk.d.ts.map +1 -1
  505. package/models/components/upsertchunk.js +6 -0
  506. package/models/components/upsertchunk.js.map +1 -1
  507. package/models/components/value.d.ts +4 -0
  508. package/models/components/value.d.ts.map +1 -1
  509. package/models/components/value.js +4 -0
  510. package/models/components/value.js.map +1 -1
  511. package/models/components/webhook.d.ts +2 -2
  512. package/models/errors/createeval.d.ts +23 -0
  513. package/models/errors/createeval.d.ts.map +1 -0
  514. package/models/errors/createeval.js +68 -0
  515. package/models/errors/createeval.js.map +1 -0
  516. package/models/errors/deleteeval.d.ts +43 -0
  517. package/models/errors/deleteeval.d.ts.map +1 -0
  518. package/models/errors/deleteeval.js +94 -0
  519. package/models/errors/deleteeval.js.map +1 -0
  520. package/models/errors/geteval.d.ts +23 -0
  521. package/models/errors/geteval.d.ts.map +1 -0
  522. package/models/errors/geteval.js +68 -0
  523. package/models/errors/geteval.js.map +1 -0
  524. package/models/errors/getevals.d.ts +23 -0
  525. package/models/errors/getevals.d.ts.map +1 -0
  526. package/models/errors/getevals.js +68 -0
  527. package/models/errors/getevals.js.map +1 -0
  528. package/models/errors/index.d.ts +5 -0
  529. package/models/errors/index.d.ts.map +1 -1
  530. package/models/errors/index.js +5 -0
  531. package/models/errors/index.js.map +1 -1
  532. package/models/errors/updateeval.d.ts +23 -0
  533. package/models/errors/updateeval.d.ts.map +1 -0
  534. package/models/errors/updateeval.js +68 -0
  535. package/models/errors/updateeval.js.map +1 -0
  536. package/models/operations/budgetlist.d.ts +2 -3
  537. package/models/operations/budgetlist.d.ts.map +1 -1
  538. package/models/operations/budgetlist.js.map +1 -1
  539. package/models/operations/createagentrequest.d.ts +68 -14
  540. package/models/operations/createagentrequest.d.ts.map +1 -1
  541. package/models/operations/createagentrequest.js +20 -32
  542. package/models/operations/createagentrequest.js.map +1 -1
  543. package/models/operations/createchatcompletion.d.ts +75 -67
  544. package/models/operations/createchatcompletion.d.ts.map +1 -1
  545. package/models/operations/createchatcompletion.js +85 -88
  546. package/models/operations/createchatcompletion.js.map +1 -1
  547. package/models/operations/createcompletion.d.ts +6 -12
  548. package/models/operations/createcompletion.d.ts.map +1 -1
  549. package/models/operations/createcompletion.js +3 -17
  550. package/models/operations/createcompletion.js.map +1 -1
  551. package/models/operations/createdataset.js +1 -1
  552. package/models/operations/createdatasetitem.js +5 -5
  553. package/models/operations/createeval.d.ts +312 -2
  554. package/models/operations/createeval.d.ts.map +1 -1
  555. package/models/operations/createeval.js +264 -2
  556. package/models/operations/createeval.js.map +1 -1
  557. package/models/operations/createimage.d.ts +2 -8
  558. package/models/operations/createimage.d.ts.map +1 -1
  559. package/models/operations/createimage.js +2 -16
  560. package/models/operations/createimage.js.map +1 -1
  561. package/models/operations/createimageedit.d.ts +1 -1
  562. package/models/operations/createprompt.d.ts +24 -12
  563. package/models/operations/createprompt.d.ts.map +1 -1
  564. package/models/operations/createprompt.js +13 -22
  565. package/models/operations/createprompt.js.map +1 -1
  566. package/models/operations/creatererank.d.ts +2 -8
  567. package/models/operations/creatererank.d.ts.map +1 -1
  568. package/models/operations/creatererank.js +2 -16
  569. package/models/operations/creatererank.js.map +1 -1
  570. package/models/operations/createrouterresponse.d.ts +80 -8
  571. package/models/operations/createrouterresponse.d.ts.map +1 -1
  572. package/models/operations/createrouterresponse.js +48 -5
  573. package/models/operations/createrouterresponse.js.map +1 -1
  574. package/models/operations/createtool.d.ts +4 -4
  575. package/models/operations/createtool.d.ts.map +1 -1
  576. package/models/operations/createtool.js +9 -9
  577. package/models/operations/createtool.js.map +1 -1
  578. package/models/operations/deletesession.d.ts +12 -0
  579. package/models/operations/deletesession.d.ts.map +1 -0
  580. package/models/operations/deletesession.js +54 -0
  581. package/models/operations/deletesession.js.map +1 -0
  582. package/models/operations/deploymentgetconfig.d.ts +442 -442
  583. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  584. package/models/operations/deploymentgetconfig.js +481 -485
  585. package/models/operations/deploymentgetconfig.js.map +1 -1
  586. package/models/operations/deploymentinvoke.d.ts +367 -0
  587. package/models/operations/deploymentinvoke.d.ts.map +1 -0
  588. package/models/operations/deploymentinvoke.js +373 -0
  589. package/models/operations/deploymentinvoke.js.map +1 -0
  590. package/models/operations/deployments.d.ts +16 -16
  591. package/models/operations/deployments.d.ts.map +1 -1
  592. package/models/operations/deployments.js +16 -18
  593. package/models/operations/deployments.js.map +1 -1
  594. package/models/operations/deploymentstream.d.ts +1899 -0
  595. package/models/operations/deploymentstream.d.ts.map +1 -0
  596. package/models/operations/deploymentstream.js +1488 -0
  597. package/models/operations/deploymentstream.js.map +1 -0
  598. package/models/operations/getallprompts.d.ts +7 -3
  599. package/models/operations/getallprompts.d.ts.map +1 -1
  600. package/models/operations/getallprompts.js +4 -8
  601. package/models/operations/getallprompts.js.map +1 -1
  602. package/models/operations/getalltools.js +4 -4
  603. package/models/operations/geteval.d.ts +811 -0
  604. package/models/operations/geteval.d.ts.map +1 -1
  605. package/models/operations/geteval.js +1250 -1
  606. package/models/operations/geteval.js.map +1 -1
  607. package/models/operations/getevals.d.ts +41 -3
  608. package/models/operations/getevals.d.ts.map +1 -1
  609. package/models/operations/getevals.js +52 -3
  610. package/models/operations/getevals.js.map +1 -1
  611. package/models/operations/getevalversion.d.ts +9 -0
  612. package/models/operations/getevalversion.d.ts.map +1 -1
  613. package/models/operations/getevalversion.js +8 -1
  614. package/models/operations/getevalversion.js.map +1 -1
  615. package/models/operations/getoneprompt.d.ts +7 -3
  616. package/models/operations/getoneprompt.d.ts.map +1 -1
  617. package/models/operations/getoneprompt.js +4 -8
  618. package/models/operations/getoneprompt.js.map +1 -1
  619. package/models/operations/getpromptversion.d.ts +7 -3
  620. package/models/operations/getpromptversion.d.ts.map +1 -1
  621. package/models/operations/getpromptversion.js +4 -8
  622. package/models/operations/getpromptversion.js.map +1 -1
  623. package/models/operations/getsession.d.ts +12 -0
  624. package/models/operations/getsession.d.ts.map +1 -0
  625. package/models/operations/getsession.js +54 -0
  626. package/models/operations/getsession.js.map +1 -0
  627. package/models/operations/getv2humanevalsets.js +2 -2
  628. package/models/operations/getv2humanevalsetsid.js +2 -2
  629. package/models/operations/hubget.d.ts +12 -0
  630. package/models/operations/hubget.d.ts.map +1 -0
  631. package/models/operations/hubget.js +49 -0
  632. package/models/operations/hubget.js.map +1 -0
  633. package/models/operations/hubsearch.d.ts +14 -0
  634. package/models/operations/hubsearch.d.ts.map +1 -0
  635. package/models/operations/hubsearch.js +50 -0
  636. package/models/operations/hubsearch.js.map +1 -0
  637. package/models/operations/index.d.ts +8 -1
  638. package/models/operations/index.d.ts.map +1 -1
  639. package/models/operations/index.js +8 -1
  640. package/models/operations/index.js.map +1 -1
  641. package/models/operations/listagents.d.ts +25 -5
  642. package/models/operations/listagents.d.ts.map +1 -1
  643. package/models/operations/listagents.js +10 -16
  644. package/models/operations/listagents.js.map +1 -1
  645. package/models/operations/listdatasetdatapoints.js +5 -5
  646. package/models/operations/listdatasets.d.ts +5 -0
  647. package/models/operations/listdatasets.d.ts.map +1 -1
  648. package/models/operations/listdatasets.js +3 -1
  649. package/models/operations/listdatasets.js.map +1 -1
  650. package/models/operations/listdatasources.js +1 -1
  651. package/models/operations/listdatasources.js.map +1 -1
  652. package/models/operations/listpromptversions.d.ts +7 -3
  653. package/models/operations/listpromptversions.d.ts.map +1 -1
  654. package/models/operations/listpromptversions.js +4 -8
  655. package/models/operations/listpromptversions.js.map +1 -1
  656. package/models/operations/modelcreateawsbedrock.d.ts +4 -0
  657. package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
  658. package/models/operations/modelcreateawsbedrock.js +4 -0
  659. package/models/operations/modelcreateawsbedrock.js.map +1 -1
  660. package/models/operations/modelcreateopenailike.d.ts +4 -0
  661. package/models/operations/modelcreateopenailike.d.ts.map +1 -1
  662. package/models/operations/modelcreateopenailike.js +4 -0
  663. package/models/operations/modelcreateopenailike.js.map +1 -1
  664. package/models/operations/modelupdateawsbedrock.d.ts +4 -0
  665. package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
  666. package/models/operations/modelupdateawsbedrock.js +4 -0
  667. package/models/operations/modelupdateawsbedrock.js.map +1 -1
  668. package/models/operations/modelupdateopenailike.d.ts +4 -0
  669. package/models/operations/modelupdateopenailike.d.ts.map +1 -1
  670. package/models/operations/modelupdateopenailike.js +4 -0
  671. package/models/operations/modelupdateopenailike.js.map +1 -1
  672. package/models/operations/parse.d.ts +3 -3
  673. package/models/operations/patchv2humanevalsetsid.js +2 -2
  674. package/models/operations/postv2feedback.d.ts +2 -0
  675. package/models/operations/postv2feedback.d.ts.map +1 -1
  676. package/models/operations/postv2feedback.js +2 -0
  677. package/models/operations/postv2feedback.js.map +1 -1
  678. package/models/operations/postv2feedbackevaluation.js +4 -4
  679. package/models/operations/postv2feedbackremove.d.ts +2 -0
  680. package/models/operations/postv2feedbackremove.d.ts.map +1 -1
  681. package/models/operations/postv2feedbackremove.js +2 -0
  682. package/models/operations/postv2feedbackremove.js.map +1 -1
  683. package/models/operations/postv2humanevalsets.js +2 -2
  684. package/models/operations/postv2routerocr.d.ts +24 -0
  685. package/models/operations/postv2routerocr.d.ts.map +1 -1
  686. package/models/operations/postv2routerocr.js +12 -0
  687. package/models/operations/postv2routerocr.js.map +1 -1
  688. package/models/operations/previewdatasourcechunks.d.ts +15 -0
  689. package/models/operations/previewdatasourcechunks.d.ts.map +1 -0
  690. package/models/operations/previewdatasourcechunks.js +57 -0
  691. package/models/operations/previewdatasourcechunks.js.map +1 -0
  692. package/models/operations/retrieveagentrequest.d.ts +25 -5
  693. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  694. package/models/operations/retrieveagentrequest.js +10 -16
  695. package/models/operations/retrieveagentrequest.js.map +1 -1
  696. package/models/operations/retrievedatapoint.js +5 -5
  697. package/models/operations/retrievedataset.js +1 -1
  698. package/models/operations/retrieveresponse.d.ts +1 -0
  699. package/models/operations/retrieveresponse.d.ts.map +1 -1
  700. package/models/operations/retrieveresponse.js +2 -0
  701. package/models/operations/retrieveresponse.js.map +1 -1
  702. package/models/operations/retrievetool.js +4 -4
  703. package/models/operations/runagent.d.ts +43 -9
  704. package/models/operations/runagent.d.ts.map +1 -1
  705. package/models/operations/runagent.js +11 -17
  706. package/models/operations/runagent.js.map +1 -1
  707. package/models/operations/streamrunagent.d.ts +43 -9
  708. package/models/operations/streamrunagent.d.ts.map +1 -1
  709. package/models/operations/streamrunagent.js +11 -17
  710. package/models/operations/streamrunagent.js.map +1 -1
  711. package/models/operations/updateagent.d.ts +68 -14
  712. package/models/operations/updateagent.d.ts.map +1 -1
  713. package/models/operations/updateagent.js +20 -32
  714. package/models/operations/updateagent.js.map +1 -1
  715. package/models/operations/updatedatapoint.js +5 -5
  716. package/models/operations/updatedataset.js +1 -1
  717. package/models/operations/updateeval.d.ts +201 -4
  718. package/models/operations/updateeval.d.ts.map +1 -1
  719. package/models/operations/updateeval.js +161 -3
  720. package/models/operations/updateeval.js.map +1 -1
  721. package/models/operations/updateprompt.d.ts +20 -8
  722. package/models/operations/updateprompt.d.ts.map +1 -1
  723. package/models/operations/updateprompt.js +8 -16
  724. package/models/operations/updateprompt.js.map +1 -1
  725. package/models/operations/updatesession.d.ts +15 -0
  726. package/models/operations/updatesession.d.ts.map +1 -0
  727. package/models/operations/updatesession.js +57 -0
  728. package/models/operations/updatesession.js.map +1 -0
  729. package/models/operations/updatetool.js +4 -4
  730. package/package.json +7 -8
  731. package/packages/orq-rc/examples/deploymentsInvoke.example.ts +62 -0
  732. package/packages/orq-rc/src/core.ts +13 -0
  733. package/packages/orq-rc/src/funcs/agentsCreate.ts +163 -0
  734. package/packages/orq-rc/src/funcs/agentsDelete.ts +181 -0
  735. package/packages/orq-rc/src/funcs/agentsInvoke.ts +178 -0
  736. package/packages/orq-rc/src/funcs/agentsList.ts +186 -0
  737. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +189 -0
  738. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +185 -0
  739. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +181 -0
  740. package/packages/orq-rc/src/funcs/agentsRun.ts +164 -0
  741. package/packages/orq-rc/src/funcs/agentsStream.ts +205 -0
  742. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +191 -0
  743. package/packages/orq-rc/src/funcs/agentsUpdate.ts +185 -0
  744. package/packages/orq-rc/src/funcs/alertsCreate.ts +162 -0
  745. package/packages/orq-rc/src/funcs/alertsDelete.ts +168 -0
  746. package/packages/orq-rc/src/funcs/alertsGet.ts +168 -0
  747. package/packages/orq-rc/src/funcs/alertsList.ts +171 -0
  748. package/packages/orq-rc/src/funcs/alertsListTriggerEvents.ts +182 -0
  749. package/packages/orq-rc/src/funcs/alertsListTriggers.ts +175 -0
  750. package/packages/orq-rc/src/funcs/alertsUpdate.ts +171 -0
  751. package/packages/orq-rc/src/funcs/annotationQueuesAddItems.ts +176 -0
  752. package/packages/orq-rc/src/funcs/annotationQueuesClear.ts +172 -0
  753. package/packages/orq-rc/src/funcs/annotationQueuesCreate.ts +163 -0
  754. package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +172 -0
  755. package/packages/orq-rc/src/funcs/annotationQueuesList.ts +174 -0
  756. package/packages/orq-rc/src/funcs/annotationQueuesListItems.ts +179 -0
  757. package/packages/orq-rc/src/funcs/annotationQueuesRemoveItems.ts +175 -0
  758. package/packages/orq-rc/src/funcs/annotationQueuesRetrieve.ts +172 -0
  759. package/packages/orq-rc/src/funcs/annotationQueuesRetrieveItem.ts +178 -0
  760. package/packages/orq-rc/src/funcs/annotationQueuesUpdate.ts +175 -0
  761. package/packages/orq-rc/src/funcs/annotationsCreate.ts +175 -0
  762. package/packages/orq-rc/src/funcs/annotationsDelete.ts +175 -0
  763. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +162 -0
  764. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +168 -0
  765. package/packages/orq-rc/src/funcs/apiKeysGet.ts +173 -0
  766. package/packages/orq-rc/src/funcs/apiKeysList.ts +177 -0
  767. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +144 -0
  768. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +171 -0
  769. package/packages/orq-rc/src/funcs/auditLogsQuery.ts +162 -0
  770. package/packages/orq-rc/src/funcs/budgetsCreate.ts +162 -0
  771. package/packages/orq-rc/src/funcs/budgetsDelete.ts +168 -0
  772. package/packages/orq-rc/src/funcs/budgetsGet.ts +168 -0
  773. package/packages/orq-rc/src/funcs/budgetsList.ts +176 -0
  774. package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +174 -0
  775. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +171 -0
  776. package/packages/orq-rc/src/funcs/chunkingParse.ts +163 -0
  777. package/packages/orq-rc/src/funcs/datasetsClear.ts +177 -0
  778. package/packages/orq-rc/src/funcs/datasetsCreate.ts +167 -0
  779. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +178 -0
  780. package/packages/orq-rc/src/funcs/datasetsDelete.ts +168 -0
  781. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +183 -0
  782. package/packages/orq-rc/src/funcs/datasetsList.ts +172 -0
  783. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +184 -0
  784. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +176 -0
  785. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +182 -0
  786. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +177 -0
  787. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +183 -0
  788. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +170 -0
  789. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +170 -0
  790. package/packages/orq-rc/src/funcs/deploymentsList.ts +178 -0
  791. package/packages/orq-rc/src/funcs/deploymentsStream.ts +180 -0
  792. package/packages/orq-rc/src/funcs/evalsAll.ts +181 -0
  793. package/packages/orq-rc/src/funcs/evalsCreate.ts +174 -0
  794. package/packages/orq-rc/src/funcs/evalsDelete.ts +181 -0
  795. package/packages/orq-rc/src/funcs/evalsGet.ts +176 -0
  796. package/packages/orq-rc/src/funcs/evalsGetVersion.ts +173 -0
  797. package/packages/orq-rc/src/funcs/evalsInvoke.ts +171 -0
  798. package/packages/orq-rc/src/funcs/evalsListVersions.ts +175 -0
  799. package/packages/orq-rc/src/funcs/evalsUpdate.ts +177 -0
  800. package/packages/orq-rc/src/funcs/feedbackCreate.ts +174 -0
  801. package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +161 -0
  802. package/packages/orq-rc/src/funcs/feedbackRemove.ts +169 -0
  803. package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +161 -0
  804. package/packages/orq-rc/src/funcs/fileSystemsCreate.ts +162 -0
  805. package/packages/orq-rc/src/funcs/fileSystemsCreateFolder.ts +173 -0
  806. package/packages/orq-rc/src/funcs/fileSystemsDelete.ts +169 -0
  807. package/packages/orq-rc/src/funcs/fileSystemsDeleteFile.ts +183 -0
  808. package/packages/orq-rc/src/funcs/fileSystemsList.ts +172 -0
  809. package/packages/orq-rc/src/funcs/fileSystemsListFiles.ts +177 -0
  810. package/packages/orq-rc/src/funcs/fileSystemsMoveFile.ts +173 -0
  811. package/packages/orq-rc/src/funcs/fileSystemsRetrieve.ts +168 -0
  812. package/packages/orq-rc/src/funcs/fileSystemsStatFile.ts +175 -0
  813. package/packages/orq-rc/src/funcs/fileSystemsUpdate.ts +171 -0
  814. package/packages/orq-rc/src/funcs/filesCreate.ts +162 -0
  815. package/packages/orq-rc/src/funcs/filesDelete.ts +168 -0
  816. package/packages/orq-rc/src/funcs/filesGet.ts +168 -0
  817. package/packages/orq-rc/src/funcs/filesGetContent.ts +168 -0
  818. package/packages/orq-rc/src/funcs/filesList.ts +172 -0
  819. package/packages/orq-rc/src/funcs/filesUpdate.ts +169 -0
  820. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +163 -0
  821. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +172 -0
  822. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +177 -0
  823. package/packages/orq-rc/src/funcs/guardrailRulesListUsedGuardrails.ts +172 -0
  824. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +171 -0
  825. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +175 -0
  826. package/packages/orq-rc/src/funcs/hubGet.ts +168 -0
  827. package/packages/orq-rc/src/funcs/hubSearch.ts +169 -0
  828. package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +164 -0
  829. package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +166 -0
  830. package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +165 -0
  831. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +170 -0
  832. package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +166 -0
  833. package/packages/orq-rc/src/funcs/identitiesCreate.ts +170 -0
  834. package/packages/orq-rc/src/funcs/identitiesDelete.ts +168 -0
  835. package/packages/orq-rc/src/funcs/identitiesList.ts +175 -0
  836. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +174 -0
  837. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +171 -0
  838. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +163 -0
  839. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +176 -0
  840. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +173 -0
  841. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +168 -0
  842. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +178 -0
  843. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +177 -0
  844. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +174 -0
  845. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +177 -0
  846. package/packages/orq-rc/src/funcs/knowledgeList.ts +176 -0
  847. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +183 -0
  848. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +178 -0
  849. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +179 -0
  850. package/packages/orq-rc/src/funcs/knowledgePreviewChunks.ts +179 -0
  851. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +168 -0
  852. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +178 -0
  853. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +174 -0
  854. package/packages/orq-rc/src/funcs/knowledgeRetrieveFileUrl.ts +187 -0
  855. package/packages/orq-rc/src/funcs/knowledgeRetrieveProcessingStatus.ts +180 -0
  856. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +171 -0
  857. package/packages/orq-rc/src/funcs/knowledgeToggleChunk.ts +181 -0
  858. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +171 -0
  859. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +181 -0
  860. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +177 -0
  861. package/packages/orq-rc/src/funcs/logsAggregate.ts +162 -0
  862. package/packages/orq-rc/src/funcs/logsContext.ts +171 -0
  863. package/packages/orq-rc/src/funcs/logsFindPatterns.ts +162 -0
  864. package/packages/orq-rc/src/funcs/logsGet.ts +168 -0
  865. package/packages/orq-rc/src/funcs/logsListFacetValues.ts +176 -0
  866. package/packages/orq-rc/src/funcs/logsListFacets.ts +162 -0
  867. package/packages/orq-rc/src/funcs/logsListFields.ts +144 -0
  868. package/packages/orq-rc/src/funcs/logsListTraceLogs.ts +174 -0
  869. package/packages/orq-rc/src/funcs/logsQuery.ts +162 -0
  870. package/packages/orq-rc/src/funcs/logsSearch.ts +162 -0
  871. package/packages/orq-rc/src/funcs/managementKeysCreate.ts +163 -0
  872. package/packages/orq-rc/src/funcs/managementKeysDelete.ts +172 -0
  873. package/packages/orq-rc/src/funcs/managementKeysGet.ts +171 -0
  874. package/packages/orq-rc/src/funcs/managementKeysList.ts +175 -0
  875. package/packages/orq-rc/src/funcs/managementKeysListCapabilities.ts +144 -0
  876. package/packages/orq-rc/src/funcs/managementKeysUpdate.ts +175 -0
  877. package/packages/orq-rc/src/funcs/mcpGatewaysCreate.ts +162 -0
  878. package/packages/orq-rc/src/funcs/mcpGatewaysDelete.ts +168 -0
  879. package/packages/orq-rc/src/funcs/mcpGatewaysList.ts +172 -0
  880. package/packages/orq-rc/src/funcs/mcpGatewaysListTools.ts +177 -0
  881. package/packages/orq-rc/src/funcs/mcpGatewaysRetrieve.ts +168 -0
  882. package/packages/orq-rc/src/funcs/mcpGatewaysUpdate.ts +171 -0
  883. package/packages/orq-rc/src/funcs/mcpServersCreate.ts +162 -0
  884. package/packages/orq-rc/src/funcs/mcpServersDelete.ts +168 -0
  885. package/packages/orq-rc/src/funcs/mcpServersList.ts +171 -0
  886. package/packages/orq-rc/src/funcs/mcpServersRetrieve.ts +168 -0
  887. package/packages/orq-rc/src/funcs/mcpServersSync.ts +171 -0
  888. package/packages/orq-rc/src/funcs/mcpServersTestTool.ts +171 -0
  889. package/packages/orq-rc/src/funcs/mcpServersUpdate.ts +171 -0
  890. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +159 -0
  891. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +180 -0
  892. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +174 -0
  893. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +169 -0
  894. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +186 -0
  895. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +181 -0
  896. package/packages/orq-rc/src/funcs/memoryStoresList.ts +184 -0
  897. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +186 -0
  898. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +179 -0
  899. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +179 -0
  900. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +181 -0
  901. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +176 -0
  902. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +172 -0
  903. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +184 -0
  904. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +179 -0
  905. package/packages/orq-rc/src/funcs/modelCatalogGet.ts +168 -0
  906. package/packages/orq-rc/src/funcs/modelCatalogList.ts +182 -0
  907. package/packages/orq-rc/src/funcs/modelCatalogListOfferings.ts +187 -0
  908. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +168 -0
  909. package/packages/orq-rc/src/funcs/modelsCreate.ts +162 -0
  910. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +163 -0
  911. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +163 -0
  912. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +163 -0
  913. package/packages/orq-rc/src/funcs/modelsDelete.ts +168 -0
  914. package/packages/orq-rc/src/funcs/modelsDisable.ts +168 -0
  915. package/packages/orq-rc/src/funcs/modelsEnable.ts +163 -0
  916. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +166 -0
  917. package/packages/orq-rc/src/funcs/modelsList.ts +144 -0
  918. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
  919. package/packages/orq-rc/src/funcs/modelsUpdate.ts +168 -0
  920. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +169 -0
  921. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +169 -0
  922. package/packages/orq-rc/src/funcs/modelsValidate.ts +163 -0
  923. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +164 -0
  924. package/packages/orq-rc/src/funcs/notifiersCreate.ts +162 -0
  925. package/packages/orq-rc/src/funcs/notifiersDelete.ts +168 -0
  926. package/packages/orq-rc/src/funcs/notifiersGet.ts +168 -0
  927. package/packages/orq-rc/src/funcs/notifiersList.ts +173 -0
  928. package/packages/orq-rc/src/funcs/notifiersUpdate.ts +171 -0
  929. package/packages/orq-rc/src/funcs/piiCapabilities.ts +144 -0
  930. package/packages/orq-rc/src/funcs/piiDetect.ts +162 -0
  931. package/packages/orq-rc/src/funcs/piiRedact.ts +162 -0
  932. package/packages/orq-rc/src/funcs/piiRestore.ts +162 -0
  933. package/packages/orq-rc/src/funcs/policiesCreate.ts +162 -0
  934. package/packages/orq-rc/src/funcs/policiesDelete.ts +168 -0
  935. package/packages/orq-rc/src/funcs/policiesList.ts +170 -0
  936. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +167 -0
  937. package/packages/orq-rc/src/funcs/policiesUpdate.ts +168 -0
  938. package/packages/orq-rc/src/funcs/projectsCreate.ts +162 -0
  939. package/packages/orq-rc/src/funcs/projectsDelete.ts +168 -0
  940. package/packages/orq-rc/src/funcs/projectsGet.ts +168 -0
  941. package/packages/orq-rc/src/funcs/projectsList.ts +170 -0
  942. package/packages/orq-rc/src/funcs/projectsUpdate.ts +171 -0
  943. package/packages/orq-rc/src/funcs/promptsCreate.ts +166 -0
  944. package/packages/orq-rc/src/funcs/promptsDelete.ts +177 -0
  945. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +182 -0
  946. package/packages/orq-rc/src/funcs/promptsList.ts +169 -0
  947. package/packages/orq-rc/src/funcs/promptsListVersions.ts +174 -0
  948. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +167 -0
  949. package/packages/orq-rc/src/funcs/promptsUpdate.ts +177 -0
  950. package/packages/orq-rc/src/funcs/reportingQuery.ts +162 -0
  951. package/packages/orq-rc/src/funcs/responsesCreate.ts +170 -0
  952. package/packages/orq-rc/src/funcs/responsesGet.ts +176 -0
  953. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +163 -0
  954. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +275 -0
  955. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +265 -0
  956. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +170 -0
  957. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +170 -0
  958. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +163 -0
  959. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +255 -0
  960. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +162 -0
  961. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +251 -0
  962. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +172 -0
  963. package/packages/orq-rc/src/funcs/routerOcr.ts +160 -0
  964. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +162 -0
  965. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +162 -0
  966. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +168 -0
  967. package/packages/orq-rc/src/funcs/routingRulesList.ts +174 -0
  968. package/packages/orq-rc/src/funcs/routingRulesListUsedModels.ts +169 -0
  969. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +168 -0
  970. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +171 -0
  971. package/packages/orq-rc/src/funcs/schedulesCreate.ts +185 -0
  972. package/packages/orq-rc/src/funcs/schedulesDelete.ts +184 -0
  973. package/packages/orq-rc/src/funcs/schedulesList.ts +167 -0
  974. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +183 -0
  975. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +190 -0
  976. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +191 -0
  977. package/packages/orq-rc/src/funcs/sessionsCreate.ts +162 -0
  978. package/packages/orq-rc/src/funcs/sessionsDelete.ts +168 -0
  979. package/packages/orq-rc/src/funcs/sessionsGet.ts +168 -0
  980. package/packages/orq-rc/src/funcs/sessionsGetCount.ts +162 -0
  981. package/packages/orq-rc/src/funcs/sessionsList.ts +162 -0
  982. package/packages/orq-rc/src/funcs/sessionsListTags.ts +144 -0
  983. package/packages/orq-rc/src/funcs/sessionsUpdate.ts +171 -0
  984. package/packages/orq-rc/src/funcs/skillsCreate.ts +162 -0
  985. package/packages/orq-rc/src/funcs/skillsDelete.ts +168 -0
  986. package/packages/orq-rc/src/funcs/skillsGet.ts +168 -0
  987. package/packages/orq-rc/src/funcs/skillsList.ts +170 -0
  988. package/packages/orq-rc/src/funcs/skillsUpdate.ts +171 -0
  989. package/packages/orq-rc/src/funcs/smartRoutersCreate.ts +162 -0
  990. package/packages/orq-rc/src/funcs/smartRoutersDelete.ts +168 -0
  991. package/packages/orq-rc/src/funcs/smartRoutersGet.ts +168 -0
  992. package/packages/orq-rc/src/funcs/smartRoutersList.ts +173 -0
  993. package/packages/orq-rc/src/funcs/smartRoutersUpdate.ts +179 -0
  994. package/packages/orq-rc/src/funcs/toolsCreate.ts +165 -0
  995. package/packages/orq-rc/src/funcs/toolsDelete.ts +168 -0
  996. package/packages/orq-rc/src/funcs/toolsGetVersion.ts +191 -0
  997. package/packages/orq-rc/src/funcs/toolsList.ts +178 -0
  998. package/packages/orq-rc/src/funcs/toolsListVersions.ts +184 -0
  999. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +167 -0
  1000. package/packages/orq-rc/src/funcs/toolsUpdate.ts +177 -0
  1001. package/packages/orq-rc/src/funcs/tracesAggregate.ts +162 -0
  1002. package/packages/orq-rc/src/funcs/tracesGet.ts +168 -0
  1003. package/packages/orq-rc/src/funcs/tracesGetSpan.ts +172 -0
  1004. package/packages/orq-rc/src/funcs/tracesListFacetValues.ts +177 -0
  1005. package/packages/orq-rc/src/funcs/tracesListFacets.ts +144 -0
  1006. package/packages/orq-rc/src/funcs/tracesListFields.ts +144 -0
  1007. package/packages/orq-rc/src/funcs/tracesListSpans.ts +174 -0
  1008. package/packages/orq-rc/src/funcs/tracesQuery.ts +162 -0
  1009. package/packages/orq-rc/src/funcs/tracesSearch.ts +162 -0
  1010. package/packages/orq-rc/src/funcs/webhooksCount.ts +144 -0
  1011. package/packages/orq-rc/src/funcs/webhooksCreate.ts +162 -0
  1012. package/packages/orq-rc/src/funcs/webhooksDelete.ts +168 -0
  1013. package/packages/orq-rc/src/funcs/webhooksGenerateSecret.ts +144 -0
  1014. package/packages/orq-rc/src/funcs/webhooksGet.ts +168 -0
  1015. package/packages/orq-rc/src/funcs/webhooksList.ts +175 -0
  1016. package/packages/orq-rc/src/funcs/webhooksQuery.ts +164 -0
  1017. package/packages/orq-rc/src/funcs/webhooksUpdate.ts +168 -0
  1018. package/packages/orq-rc/src/funcs/workspaceSecurityAddIPRange.ts +172 -0
  1019. package/packages/orq-rc/src/funcs/workspaceSecurityCreateDomain.ts +174 -0
  1020. package/packages/orq-rc/src/funcs/workspaceSecurityDeleteDomain.ts +177 -0
  1021. package/packages/orq-rc/src/funcs/workspaceSecurityDeleteIPRange.ts +177 -0
  1022. package/packages/orq-rc/src/funcs/workspaceSecurityGetIPAllowlist.ts +171 -0
  1023. package/packages/orq-rc/src/funcs/workspaceSecurityListDomains.ts +171 -0
  1024. package/packages/orq-rc/src/funcs/workspaceSecurityUpdateIPAllowlist.ts +174 -0
  1025. package/packages/orq-rc/src/funcs/workspaceSecurityVerifyDomain.ts +177 -0
  1026. package/packages/orq-rc/src/funcs/workspaceSettingsGet.ts +144 -0
  1027. package/packages/orq-rc/src/funcs/workspaceSettingsUpdate.ts +163 -0
  1028. package/packages/orq-rc/src/funcs/workspacesGet.ts +168 -0
  1029. package/packages/orq-rc/src/funcs/workspacesList.ts +170 -0
  1030. package/packages/orq-rc/src/funcs/workspacesUpdate.ts +171 -0
  1031. package/packages/orq-rc/src/hooks/global.ts +44 -0
  1032. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  1033. package/packages/orq-rc/src/hooks/index.ts +6 -0
  1034. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  1035. package/packages/orq-rc/src/hooks/types.ts +113 -0
  1036. package/packages/orq-rc/src/index.ts +9 -0
  1037. package/packages/orq-rc/src/lib/base64.ts +37 -0
  1038. package/packages/orq-rc/src/lib/config.ts +64 -0
  1039. package/packages/orq-rc/src/lib/encodings.ts +560 -0
  1040. package/packages/orq-rc/src/lib/env.ts +61 -0
  1041. package/packages/orq-rc/src/lib/event-streams.ts +191 -0
  1042. package/packages/orq-rc/src/lib/files.ts +104 -0
  1043. package/packages/orq-rc/src/lib/http.ts +325 -0
  1044. package/packages/orq-rc/src/lib/logger.ts +9 -0
  1045. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  1046. package/packages/orq-rc/src/lib/primitives.ts +166 -0
  1047. package/packages/orq-rc/src/lib/retries.ts +226 -0
  1048. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  1049. package/packages/orq-rc/src/lib/sdks.ts +443 -0
  1050. package/packages/orq-rc/src/lib/security.ts +280 -0
  1051. package/packages/orq-rc/src/lib/url.ts +35 -0
  1052. package/packages/orq-rc/src/models/components/accesslevel.ts +20 -0
  1053. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  1054. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +190 -0
  1055. package/packages/orq-rc/src/models/components/addannotationqueueitemsrequest.ts +41 -0
  1056. package/packages/orq-rc/src/models/components/addiprangerequest.ts +34 -0
  1057. package/packages/orq-rc/src/models/components/addiprangeresponse.ts +32 -0
  1058. package/packages/orq-rc/src/models/components/advisortoolinput.ts +51 -0
  1059. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  1060. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  1061. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  1062. package/packages/orq-rc/src/models/components/agenticragconfig.ts +43 -0
  1063. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  1064. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  1065. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  1066. package/packages/orq-rc/src/models/components/agentresponserequest.ts +576 -0
  1067. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +541 -0
  1068. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  1069. package/packages/orq-rc/src/models/components/agenttoolinputcrud.ts +189 -0
  1070. package/packages/orq-rc/src/models/components/aggregatebucket.ts +45 -0
  1071. package/packages/orq-rc/src/models/components/aggregatelogsrequest.ts +52 -0
  1072. package/packages/orq-rc/src/models/components/aggregatelogsresponse.ts +37 -0
  1073. package/packages/orq-rc/src/models/components/aggregatetracesrequest.ts +65 -0
  1074. package/packages/orq-rc/src/models/components/aggregatetracesresponse.ts +37 -0
  1075. package/packages/orq-rc/src/models/components/alert.ts +187 -0
  1076. package/packages/orq-rc/src/models/components/alertcondition.ts +206 -0
  1077. package/packages/orq-rc/src/models/components/alertdisplay.ts +109 -0
  1078. package/packages/orq-rc/src/models/components/alertevidence.ts +56 -0
  1079. package/packages/orq-rc/src/models/components/alertquery.ts +67 -0
  1080. package/packages/orq-rc/src/models/components/alertrun.ts +76 -0
  1081. package/packages/orq-rc/src/models/components/alerttrigger.ts +149 -0
  1082. package/packages/orq-rc/src/models/components/alerttriggerevent.ts +67 -0
  1083. package/packages/orq-rc/src/models/components/allprojects.ts +21 -0
  1084. package/packages/orq-rc/src/models/components/annotationqueue.ts +101 -0
  1085. package/packages/orq-rc/src/models/components/annotationqueueitem.ts +80 -0
  1086. package/packages/orq-rc/src/models/components/annotationqueueitemref.ts +43 -0
  1087. package/packages/orq-rc/src/models/components/annotationqueuemetadata.ts +42 -0
  1088. package/packages/orq-rc/src/models/components/apierror.ts +39 -0
  1089. package/packages/orq-rc/src/models/components/apikeybudgetscope.ts +66 -0
  1090. package/packages/orq-rc/src/models/components/apikeybudgetscoperestresponse.ts +37 -0
  1091. package/packages/orq-rc/src/models/components/apikeyowner.ts +55 -0
  1092. package/packages/orq-rc/src/models/components/apikeyrestresponse.ts +119 -0
  1093. package/packages/orq-rc/src/models/components/apikeystatus.ts +18 -0
  1094. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  1095. package/packages/orq-rc/src/models/components/auditlog.ts +122 -0
  1096. package/packages/orq-rc/src/models/components/auditlogfilter.ts +51 -0
  1097. package/packages/orq-rc/src/models/components/auditlogfilterquery.ts +54 -0
  1098. package/packages/orq-rc/src/models/components/auditlogpagination.ts +55 -0
  1099. package/packages/orq-rc/src/models/components/auditlogsort.ts +39 -0
  1100. package/packages/orq-rc/src/models/components/autorouterconfig.ts +92 -0
  1101. package/packages/orq-rc/src/models/components/autorouterv2config.ts +152 -0
  1102. package/packages/orq-rc/src/models/components/autorouterv2creatorconfig.ts +59 -0
  1103. package/packages/orq-rc/src/models/components/autorouterv2effortconfig.ts +66 -0
  1104. package/packages/orq-rc/src/models/components/azurefoundrydeployment.ts +51 -0
  1105. package/packages/orq-rc/src/models/components/azurefoundrydeploymentmasterdata.ts +60 -0
  1106. package/packages/orq-rc/src/models/components/budgetalert.ts +92 -0
  1107. package/packages/orq-rc/src/models/components/budgetalertdimension.ts +22 -0
  1108. package/packages/orq-rc/src/models/components/budgetalertrestresponse.ts +58 -0
  1109. package/packages/orq-rc/src/models/components/budgetlimit.ts +85 -0
  1110. package/packages/orq-rc/src/models/components/budgetlimits.ts +84 -0
  1111. package/packages/orq-rc/src/models/components/budgetlimitsrestresponse.ts +51 -0
  1112. package/packages/orq-rc/src/models/components/budgetmatch.ts +50 -0
  1113. package/packages/orq-rc/src/models/components/budgetperiod.ts +23 -0
  1114. package/packages/orq-rc/src/models/components/budgetrestresponse.ts +116 -0
  1115. package/packages/orq-rc/src/models/components/budgetscope.ts +146 -0
  1116. package/packages/orq-rc/src/models/components/budgetscopekind.ts +22 -0
  1117. package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +99 -0
  1118. package/packages/orq-rc/src/models/components/budgetsortfield.ts +19 -0
  1119. package/packages/orq-rc/src/models/components/budgetusage.ts +54 -0
  1120. package/packages/orq-rc/src/models/components/cacheconfig.ts +30 -0
  1121. package/packages/orq-rc/src/models/components/callsubagenttoolinput.ts +51 -0
  1122. package/packages/orq-rc/src/models/components/capabilitiesresponse.ts +96 -0
  1123. package/packages/orq-rc/src/models/components/chatkitresource.ts +45 -0
  1124. package/packages/orq-rc/src/models/components/chatkitresources.ts +36 -0
  1125. package/packages/orq-rc/src/models/components/chunk.ts +35 -0
  1126. package/packages/orq-rc/src/models/components/chunkingcleanupoptions.ts +64 -0
  1127. package/packages/orq-rc/src/models/components/chunkingconfiguration.ts +579 -0
  1128. package/packages/orq-rc/src/models/components/chunkmetadata.ts +42 -0
  1129. package/packages/orq-rc/src/models/components/chunkprocessingattempts.ts +42 -0
  1130. package/packages/orq-rc/src/models/components/chunksservicecountrequest.ts +63 -0
  1131. package/packages/orq-rc/src/models/components/chunksservicecountresponse.ts +31 -0
  1132. package/packages/orq-rc/src/models/components/chunksservicedeletemanyrequest.ts +41 -0
  1133. package/packages/orq-rc/src/models/components/chunksservicedeletemanyresponse.ts +39 -0
  1134. package/packages/orq-rc/src/models/components/chunksservicelistpaginatedrequest.ts +71 -0
  1135. package/packages/orq-rc/src/models/components/chunksservicelistpaginatedresponse.ts +58 -0
  1136. package/packages/orq-rc/src/models/components/chunksservicelistresponse.ts +57 -0
  1137. package/packages/orq-rc/src/models/components/chunksservicesetenabledrequest.ts +33 -0
  1138. package/packages/orq-rc/src/models/components/chunksserviceupdaterequest.ts +68 -0
  1139. package/packages/orq-rc/src/models/components/codeinterpretertoolinput.ts +51 -0
  1140. package/packages/orq-rc/src/models/components/codetoolinput.ts +62 -0
  1141. package/packages/orq-rc/src/models/components/conversationparam.ts +51 -0
  1142. package/packages/orq-rc/src/models/components/countmetadata.ts +86 -0
  1143. package/packages/orq-rc/src/models/components/countwebhooksresponse.ts +37 -0
  1144. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  1145. package/packages/orq-rc/src/models/components/createalertrequest.ts +107 -0
  1146. package/packages/orq-rc/src/models/components/createalertresponse.ts +35 -0
  1147. package/packages/orq-rc/src/models/components/createannotationqueuerequest.ts +54 -0
  1148. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +116 -0
  1149. package/packages/orq-rc/src/models/components/createbudgetrequest.ts +123 -0
  1150. package/packages/orq-rc/src/models/components/createbudgetresponse.ts +38 -0
  1151. package/packages/orq-rc/src/models/components/createdomainrequest.ts +31 -0
  1152. package/packages/orq-rc/src/models/components/createdomainresponse.ts +35 -0
  1153. package/packages/orq-rc/src/models/components/createfilerequest.ts +62 -0
  1154. package/packages/orq-rc/src/models/components/createfileresponse.ts +35 -0
  1155. package/packages/orq-rc/src/models/components/createfilesystemfolderrequest.ts +36 -0
  1156. package/packages/orq-rc/src/models/components/createfilesystemfolderresponse.ts +31 -0
  1157. package/packages/orq-rc/src/models/components/createfilesystemrequest.ts +94 -0
  1158. package/packages/orq-rc/src/models/components/createguardrailrulerequest.ts +76 -0
  1159. package/packages/orq-rc/src/models/components/createguardrailruleresponse.ts +37 -0
  1160. package/packages/orq-rc/src/models/components/createidentityrequest.ts +74 -0
  1161. package/packages/orq-rc/src/models/components/createidentityresponse.ts +35 -0
  1162. package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +70 -0
  1163. package/packages/orq-rc/src/models/components/createmanagementkeyresponse.ts +48 -0
  1164. package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +100 -0
  1165. package/packages/orq-rc/src/models/components/createmcpgatewayresponse.ts +37 -0
  1166. package/packages/orq-rc/src/models/components/createmcpserverrequest.ts +96 -0
  1167. package/packages/orq-rc/src/models/components/createmcpserverresponse.ts +37 -0
  1168. package/packages/orq-rc/src/models/components/creatememorydocumentrequest.ts +42 -0
  1169. package/packages/orq-rc/src/models/components/creatememoryrequest.ts +39 -0
  1170. package/packages/orq-rc/src/models/components/creatememorystorerequest.ts +59 -0
  1171. package/packages/orq-rc/src/models/components/createmodelparameter.ts +54 -0
  1172. package/packages/orq-rc/src/models/components/createnotifierrequest.ts +433 -0
  1173. package/packages/orq-rc/src/models/components/createnotifierresponse.ts +35 -0
  1174. package/packages/orq-rc/src/models/components/createprojectrequest.ts +46 -0
  1175. package/packages/orq-rc/src/models/components/createprojectresponse.ts +35 -0
  1176. package/packages/orq-rc/src/models/components/createroutingrulerequest.ts +89 -0
  1177. package/packages/orq-rc/src/models/components/createskillrequest.ts +159 -0
  1178. package/packages/orq-rc/src/models/components/createskillresponse.ts +35 -0
  1179. package/packages/orq-rc/src/models/components/createsmartrouterrequest.ts +47 -0
  1180. package/packages/orq-rc/src/models/components/createsmartrouterresponse.ts +37 -0
  1181. package/packages/orq-rc/src/models/components/createthreadrequest.ts +91 -0
  1182. package/packages/orq-rc/src/models/components/createwebhookrequest.ts +100 -0
  1183. package/packages/orq-rc/src/models/components/currentdatetoolinput.ts +51 -0
  1184. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  1185. package/packages/orq-rc/src/models/components/datapoint.ts +61 -0
  1186. package/packages/orq-rc/src/models/components/datasource.ts +108 -0
  1187. package/packages/orq-rc/src/models/components/datasourceattachment.ts +64 -0
  1188. package/packages/orq-rc/src/models/components/datasourcechunkingoptions.ts +53 -0
  1189. package/packages/orq-rc/src/models/components/datasourcesservicecreaterequest.ts +79 -0
  1190. package/packages/orq-rc/src/models/components/datasourcesservicegetprocessingstatusresponse.ts +69 -0
  1191. package/packages/orq-rc/src/models/components/datasourcesservicelistresponse.ts +55 -0
  1192. package/packages/orq-rc/src/models/components/datasourcesservicepreviewchunksrequest.ts +48 -0
  1193. package/packages/orq-rc/src/models/components/datasourcesservicepreviewchunksresponse.ts +44 -0
  1194. package/packages/orq-rc/src/models/components/datasourcesserviceupdaterequest.ts +41 -0
  1195. package/{src/models/components/deleteevaluatorresponse.ts → packages/orq-rc/src/models/components/deletealertresponse.ts} +7 -7
  1196. package/{src/models/components/clearannotationqueueresponse.ts → packages/orq-rc/src/models/components/deletebudgetresponse.ts} +7 -7
  1197. package/packages/orq-rc/src/models/components/deletefileresponse.ts +27 -0
  1198. package/packages/orq-rc/src/models/components/deletefilesystemfileresponse.ts +49 -0
  1199. package/packages/orq-rc/src/models/components/deletefilesystemresponse.ts +27 -0
  1200. package/packages/orq-rc/src/models/components/deleteguardrailruleresponse.ts +27 -0
  1201. package/{src/models/components/deleteannotationqueueresponse.ts → packages/orq-rc/src/models/components/deleteidentityresponse.ts} +7 -7
  1202. package/packages/orq-rc/src/models/components/deletemanagementkeyresponse.ts +27 -0
  1203. package/packages/orq-rc/src/models/components/deletemcpgatewayresponse.ts +30 -0
  1204. package/packages/orq-rc/src/models/components/deletemcpserverresponse.ts +30 -0
  1205. package/packages/orq-rc/src/models/components/deletememorydocumenttoolinput.ts +53 -0
  1206. package/packages/orq-rc/src/models/components/deletenotifierresponse.ts +27 -0
  1207. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +27 -0
  1208. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +27 -0
  1209. package/packages/orq-rc/src/models/components/deletesmartrouterresponse.ts +27 -0
  1210. package/packages/orq-rc/src/models/components/deletewebhookresponse.ts +34 -0
  1211. package/packages/orq-rc/src/models/components/detectrequest.ts +104 -0
  1212. package/packages/orq-rc/src/models/components/detectresponse.ts +41 -0
  1213. package/packages/orq-rc/src/models/components/domain.ts +85 -0
  1214. package/packages/orq-rc/src/models/components/domaingroup.ts +17 -0
  1215. package/packages/orq-rc/src/models/components/domainverification.ts +63 -0
  1216. package/packages/orq-rc/src/models/components/domainverificationstatus.ts +20 -0
  1217. package/packages/orq-rc/src/models/components/embeddingcacheconfig.ts +59 -0
  1218. package/packages/orq-rc/src/models/components/embeddingcontactparams.ts +48 -0
  1219. package/packages/orq-rc/src/models/components/embeddingdimensionsupport.ts +59 -0
  1220. package/packages/orq-rc/src/models/components/embeddingloadbalancerconfig.ts +66 -0
  1221. package/packages/orq-rc/src/models/components/embeddingloadbalancermodelconfig.ts +42 -0
  1222. package/packages/orq-rc/src/models/components/embeddingorqparams.ts +98 -0
  1223. package/packages/orq-rc/src/models/components/embeddingretryconfig.ts +45 -0
  1224. package/packages/orq-rc/src/models/components/embeddingsconfig.ts +92 -0
  1225. package/packages/orq-rc/src/models/components/embeddingsmodelparameters.ts +64 -0
  1226. package/packages/orq-rc/src/models/components/embeddingtimeoutconfig.ts +39 -0
  1227. package/packages/orq-rc/src/models/components/entitylist.ts +37 -0
  1228. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  1229. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  1230. package/packages/orq-rc/src/models/components/evaluationcontext.ts +63 -0
  1231. package/packages/orq-rc/src/models/components/evaluationresult.ts +104 -0
  1232. package/packages/orq-rc/src/models/components/evaluatorref.ts +95 -0
  1233. package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +928 -0
  1234. package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +77 -0
  1235. package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +60 -0
  1236. package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +310 -0
  1237. package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +60 -0
  1238. package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +84 -0
  1239. package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +60 -0
  1240. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  1241. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  1242. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  1243. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  1244. package/packages/orq-rc/src/models/components/facetgroup.ts +41 -0
  1245. package/packages/orq-rc/src/models/components/facetkey.ts +57 -0
  1246. package/packages/orq-rc/src/models/components/facetvalue.ts +33 -0
  1247. package/packages/orq-rc/src/models/components/fallbackconfig.ts +27 -0
  1248. package/packages/orq-rc/src/models/components/fieldinfo.ts +33 -0
  1249. package/packages/orq-rc/src/models/components/file.ts +64 -0
  1250. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  1251. package/packages/orq-rc/src/models/components/fileentry.ts +86 -0
  1252. package/packages/orq-rc/src/models/components/filepart.ts +223 -0
  1253. package/packages/orq-rc/src/models/components/filepurpose.ts +22 -0
  1254. package/packages/orq-rc/src/models/components/filesystem.ts +116 -0
  1255. package/packages/orq-rc/src/models/components/filesystemexternalaccess.ts +20 -0
  1256. package/packages/orq-rc/src/models/components/filesystemtoolinput.ts +108 -0
  1257. package/packages/orq-rc/src/models/components/filter.ts +137 -0
  1258. package/packages/orq-rc/src/models/components/findlogpatternsmeta.ts +53 -0
  1259. package/packages/orq-rc/src/models/components/findlogpatternsrequest.ts +59 -0
  1260. package/packages/orq-rc/src/models/components/findlogpatternsresponse.ts +43 -0
  1261. package/packages/orq-rc/src/models/components/functiontoolinput.ts +60 -0
  1262. package/packages/orq-rc/src/models/components/generatewebhooksecretresponse.ts +37 -0
  1263. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  1264. package/packages/orq-rc/src/models/components/getalertresponse.ts +35 -0
  1265. package/packages/orq-rc/src/models/components/getbudgetresponse.ts +38 -0
  1266. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +39 -0
  1267. package/packages/orq-rc/src/models/components/getfileresponse.ts +35 -0
  1268. package/packages/orq-rc/src/models/components/getguardrailruleresponse.ts +37 -0
  1269. package/packages/orq-rc/src/models/components/gethubitemresponse.ts +37 -0
  1270. package/packages/orq-rc/src/models/components/getipallowlistresponse.ts +40 -0
  1271. package/packages/orq-rc/src/models/components/getlogcontextrequest.ts +71 -0
  1272. package/packages/orq-rc/src/models/components/getlogcontextresponse.ts +55 -0
  1273. package/packages/orq-rc/src/models/components/getlogresponse.ts +35 -0
  1274. package/packages/orq-rc/src/models/components/getmanagementkeyresponse.ts +40 -0
  1275. package/packages/orq-rc/src/models/components/getmcpgatewayresponse.ts +37 -0
  1276. package/packages/orq-rc/src/models/components/getmcpserverresponse.ts +37 -0
  1277. package/packages/orq-rc/src/models/components/getmodelcatalogmodelresponse.ts +35 -0
  1278. package/packages/orq-rc/src/models/components/getnotifierresponse.ts +35 -0
  1279. package/packages/orq-rc/src/models/components/getprojectresponse.ts +35 -0
  1280. package/packages/orq-rc/src/models/components/getskillresponse.ts +35 -0
  1281. package/packages/orq-rc/src/models/components/getsmartrouterresponse.ts +37 -0
  1282. package/packages/orq-rc/src/models/components/getthreadcountrequest.ts +42 -0
  1283. package/packages/orq-rc/src/models/components/getthreadcountresponse.ts +31 -0
  1284. package/packages/orq-rc/src/models/components/gettraceresponse.ts +32 -0
  1285. package/packages/orq-rc/src/models/components/gettracespanresponse.ts +32 -0
  1286. package/packages/orq-rc/src/models/components/getuploadfileurlresponse.ts +42 -0
  1287. package/packages/orq-rc/src/models/components/getworkspaceresponse.ts +32 -0
  1288. package/packages/orq-rc/src/models/components/getworkspacesettingsresponse.ts +38 -0
  1289. package/packages/orq-rc/src/models/components/googlesearchtoolinput.ts +51 -0
  1290. package/packages/orq-rc/src/models/components/guardrailrule.ts +81 -0
  1291. package/packages/orq-rc/src/models/components/guardrailruleexpression.ts +86 -0
  1292. package/packages/orq-rc/src/models/components/guardrailruleguardrail.ts +108 -0
  1293. package/packages/orq-rc/src/models/components/guardrailruleplugin.ts +106 -0
  1294. package/packages/orq-rc/src/models/components/httptoolinput.ts +62 -0
  1295. package/packages/orq-rc/src/models/components/hubitem.ts +136 -0
  1296. package/packages/orq-rc/src/models/components/hubitemsummary.ts +60 -0
  1297. package/packages/orq-rc/src/models/components/hubsearchhit.ts +35 -0
  1298. package/packages/orq-rc/src/models/components/identity.ts +230 -0
  1299. package/packages/orq-rc/src/models/components/identitybudgetscope.ts +66 -0
  1300. package/packages/orq-rc/src/models/components/identitybudgetscoperestresponse.ts +37 -0
  1301. package/packages/orq-rc/src/models/components/identitymetrics.ts +57 -0
  1302. package/packages/orq-rc/src/models/components/identitysortfield.ts +18 -0
  1303. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  1304. package/packages/orq-rc/src/models/components/incompletedetails.ts +31 -0
  1305. package/packages/orq-rc/src/models/components/index.ts +659 -0
  1306. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +48 -0
  1307. package/packages/orq-rc/src/models/components/internalretrievalconfig.ts +44 -0
  1308. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3444 -0
  1309. package/packages/orq-rc/src/models/components/invokeevaluatorrequest.ts +110 -0
  1310. package/packages/orq-rc/src/models/components/ipallowlist.ts +34 -0
  1311. package/packages/orq-rc/src/models/components/iprange.ts +44 -0
  1312. package/packages/orq-rc/src/models/components/jsonschematoolinput.ts +60 -0
  1313. package/packages/orq-rc/src/models/components/knowledge.ts +558 -0
  1314. package/packages/orq-rc/src/models/components/knowledgebasesservicecreaterequest.ts +439 -0
  1315. package/packages/orq-rc/src/models/components/knowledgebasesservicelistresponse.ts +54 -0
  1316. package/packages/orq-rc/src/models/components/knowledgebasesserviceupdaterequest.ts +649 -0
  1317. package/packages/orq-rc/src/models/components/knowledgechunk.ts +120 -0
  1318. package/packages/orq-rc/src/models/components/knowledgemetadata.ts +48 -0
  1319. package/packages/orq-rc/src/models/components/knowledgesettings.ts +54 -0
  1320. package/packages/orq-rc/src/models/components/knowledgeupdatesettings.ts +55 -0
  1321. package/packages/orq-rc/src/models/components/limits.ts +70 -0
  1322. package/packages/orq-rc/src/models/components/listalertsresponse.ts +53 -0
  1323. package/packages/orq-rc/src/models/components/listalerttriggereventsresponse.ts +56 -0
  1324. package/packages/orq-rc/src/models/components/listalerttriggersresponse.ts +53 -0
  1325. package/packages/orq-rc/src/models/components/listannotationqueueitemsresponse.ts +53 -0
  1326. package/packages/orq-rc/src/models/components/listannotationqueuesresponse.ts +53 -0
  1327. package/packages/orq-rc/src/models/components/listbudgetsresponse.ts +51 -0
  1328. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +38 -0
  1329. package/packages/orq-rc/src/models/components/listdomainsresponse.ts +35 -0
  1330. package/packages/orq-rc/src/models/components/listevaluatorversionsresponse.ts +59 -0
  1331. package/packages/orq-rc/src/models/components/listfilesresponse.ts +50 -0
  1332. package/packages/orq-rc/src/models/components/listfilesystemfilesresponse.ts +57 -0
  1333. package/packages/orq-rc/src/models/components/listfilesystemsresponse.ts +51 -0
  1334. package/packages/orq-rc/src/models/components/listguardrailrulesresponse.ts +41 -0
  1335. package/packages/orq-rc/src/models/components/listguardrailruleusedguardrailsresponse.ts +44 -0
  1336. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +53 -0
  1337. package/{src/models/operations/listlogfacets.ts → packages/orq-rc/src/models/components/listlogfacetsrequest.ts} +15 -0
  1338. package/packages/orq-rc/src/models/components/listlogfacetsresponse.ts +32 -0
  1339. package/packages/orq-rc/src/models/components/listlogfacetvaluesresponse.ts +32 -0
  1340. package/packages/orq-rc/src/models/components/listlogfieldsresponse.ts +32 -0
  1341. package/packages/orq-rc/src/models/components/listmanagementcapabilitiesresponse.ts +39 -0
  1342. package/packages/orq-rc/src/models/components/listmanagementkeysresponse.ts +56 -0
  1343. package/packages/orq-rc/src/models/components/listmcpgatewaysresponse.ts +50 -0
  1344. package/packages/orq-rc/src/models/components/listmcpgatewaytoolsresponse.ts +53 -0
  1345. package/packages/orq-rc/src/models/components/listmcpserversresponse.ts +50 -0
  1346. package/packages/orq-rc/src/models/components/listmemoriesresponse.ts +54 -0
  1347. package/packages/orq-rc/src/models/components/listmemorydocumentsresponse.ts +57 -0
  1348. package/packages/orq-rc/src/models/components/listmemorystoresresponse.ts +54 -0
  1349. package/packages/orq-rc/src/models/components/listmodelcatalogofferingsresponse.ts +53 -0
  1350. package/packages/orq-rc/src/models/components/listmodelcatalogresponse.ts +53 -0
  1351. package/packages/orq-rc/src/models/components/listnotifiersresponse.ts +50 -0
  1352. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +53 -0
  1353. package/packages/orq-rc/src/models/components/listroutingrulesresponse.ts +41 -0
  1354. package/packages/orq-rc/src/models/components/listroutingruleusedmodelsresponse.ts +33 -0
  1355. package/packages/orq-rc/src/models/components/listskillsresponse.ts +53 -0
  1356. package/packages/orq-rc/src/models/components/listsmartroutersresponse.ts +50 -0
  1357. package/packages/orq-rc/src/models/components/listthreadsrequest.ts +42 -0
  1358. package/packages/orq-rc/src/models/components/listthreadsresponse.ts +41 -0
  1359. package/packages/orq-rc/src/models/components/listtracefacetsresponse.ts +32 -0
  1360. package/packages/orq-rc/src/models/components/listtracefacetvaluesresponse.ts +44 -0
  1361. package/packages/orq-rc/src/models/components/listtracefieldsresponse.ts +32 -0
  1362. package/packages/orq-rc/src/models/components/listtracelogsresponse.ts +44 -0
  1363. package/packages/orq-rc/src/models/components/listtracespansresponse.ts +44 -0
  1364. package/packages/orq-rc/src/models/components/listwebhooksresponse.ts +53 -0
  1365. package/packages/orq-rc/src/models/components/listworkspacesresponse.ts +41 -0
  1366. package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
  1367. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
  1368. package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
  1369. package/packages/orq-rc/src/models/components/loadbalancerconfig.ts +39 -0
  1370. package/packages/orq-rc/src/models/components/loadbalancermodelconfig.ts +34 -0
  1371. package/packages/orq-rc/src/models/components/log.ts +99 -0
  1372. package/packages/orq-rc/src/models/components/logpattern.ts +84 -0
  1373. package/packages/orq-rc/src/models/components/managementdomain.ts +70 -0
  1374. package/packages/orq-rc/src/models/components/managementdomaingroup.ts +16 -0
  1375. package/packages/orq-rc/src/models/components/managementkey.ts +131 -0
  1376. package/packages/orq-rc/src/models/components/managementkeystatus.ts +23 -0
  1377. package/packages/orq-rc/src/models/components/managementpermissionmode.ts +25 -0
  1378. package/packages/orq-rc/src/models/components/mcpaccess.ts +93 -0
  1379. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +55 -0
  1380. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +55 -0
  1381. package/packages/orq-rc/src/models/components/mcpauthtype.ts +22 -0
  1382. package/packages/orq-rc/src/models/components/mcpconnection.ts +59 -0
  1383. package/packages/orq-rc/src/models/components/mcpconnectiontype.ts +23 -0
  1384. package/packages/orq-rc/src/models/components/mcpgateway.ts +117 -0
  1385. package/packages/orq-rc/src/models/components/mcpgatewaymode.ts +22 -0
  1386. package/packages/orq-rc/src/models/components/mcpgatewayplugin.ts +83 -0
  1387. package/packages/orq-rc/src/models/components/mcpgatewayserverlink.ts +92 -0
  1388. package/packages/orq-rc/src/models/components/mcpgatewaystatus.ts +22 -0
  1389. package/packages/orq-rc/src/models/components/mcpgatewaytool.ts +109 -0
  1390. package/packages/orq-rc/src/models/components/mcpgatewaytooltestresult.ts +79 -0
  1391. package/packages/orq-rc/src/models/components/mcpheadersecret.ts +49 -0
  1392. package/packages/orq-rc/src/models/components/mcpheadersecretoutput.ts +44 -0
  1393. package/packages/orq-rc/src/models/components/mcpoauthconfig.ts +62 -0
  1394. package/packages/orq-rc/src/models/components/mcpoauthconfigoutput.ts +56 -0
  1395. package/packages/orq-rc/src/models/components/mcpserver.ts +114 -0
  1396. package/packages/orq-rc/src/models/components/mcpsyncstate.ts +65 -0
  1397. package/packages/orq-rc/src/models/components/mcptool.ts +92 -0
  1398. package/packages/orq-rc/src/models/components/mcptoolannotations.ts +58 -0
  1399. package/packages/orq-rc/src/models/components/mcptoolexposure.ts +79 -0
  1400. package/packages/orq-rc/src/models/components/mcptoolexposuremode.ts +23 -0
  1401. package/packages/orq-rc/src/models/components/mcptoolinput.ts +63 -0
  1402. package/packages/orq-rc/src/models/components/mcptoolnaming.ts +22 -0
  1403. package/packages/orq-rc/src/models/components/memory.ts +74 -0
  1404. package/packages/orq-rc/src/models/components/memorydocument.ts +65 -0
  1405. package/packages/orq-rc/src/models/components/memoryparam.ts +56 -0
  1406. package/packages/orq-rc/src/models/components/memorystore.ts +80 -0
  1407. package/packages/orq-rc/src/models/components/memorystoreembeddingconfig.ts +54 -0
  1408. package/packages/orq-rc/src/models/components/model.ts +206 -0
  1409. package/packages/orq-rc/src/models/components/modelbudgetscope.ts +67 -0
  1410. package/packages/orq-rc/src/models/components/modelbudgetscoperestresponse.ts +38 -0
  1411. package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +82 -0
  1412. package/packages/orq-rc/src/models/components/modeldocument.ts +121 -0
  1413. package/packages/orq-rc/src/models/components/modelmetadata.ts +814 -0
  1414. package/packages/orq-rc/src/models/components/modelmodalities.ts +39 -0
  1415. package/packages/orq-rc/src/models/components/modelparameterdocument.ts +53 -0
  1416. package/packages/orq-rc/src/models/components/modelprovider.ts +39 -0
  1417. package/packages/orq-rc/src/models/components/modelref.ts +70 -0
  1418. package/packages/orq-rc/src/models/components/modelsconfig.ts +75 -0
  1419. package/packages/orq-rc/src/models/components/modelsharingconfig.ts +47 -0
  1420. package/packages/orq-rc/src/models/components/monitorfilter.ts +99 -0
  1421. package/packages/orq-rc/src/models/components/movefilesystemfilerequest.ts +40 -0
  1422. package/packages/orq-rc/src/models/components/movefilesystemfileresponse.ts +33 -0
  1423. package/packages/orq-rc/src/models/components/notifier.ts +465 -0
  1424. package/packages/orq-rc/src/models/components/notifiertype.ts +21 -0
  1425. package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +84 -0
  1426. package/packages/orq-rc/src/models/components/orqadvisortool.ts +100 -0
  1427. package/packages/orq-rc/src/models/components/orqsidekicktool.ts +128 -0
  1428. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +36 -0
  1429. package/packages/orq-rc/src/models/components/ownertype.ts +17 -0
  1430. package/packages/orq-rc/src/models/components/parseresponse.ts +32 -0
  1431. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  1432. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  1433. package/packages/orq-rc/src/models/components/partdoneevent.ts +70 -0
  1434. package/packages/orq-rc/src/models/components/permissionmode.ts +19 -0
  1435. package/packages/orq-rc/src/models/components/piiredaction.ts +70 -0
  1436. package/packages/orq-rc/src/models/components/piiredactionconfig.ts +128 -0
  1437. package/packages/orq-rc/src/models/components/piiredactionplugin.ts +143 -0
  1438. package/packages/orq-rc/src/models/components/policy.ts +80 -0
  1439. package/packages/orq-rc/src/models/components/policyretryconfig.ts +64 -0
  1440. package/packages/orq-rc/src/models/components/previewchunk.ts +38 -0
  1441. package/packages/orq-rc/src/models/components/previewchunksmetadata.ts +51 -0
  1442. package/packages/orq-rc/src/models/components/price.ts +56 -0
  1443. package/packages/orq-rc/src/models/components/pricing.ts +105 -0
  1444. package/packages/orq-rc/src/models/components/pricingvariant.ts +102 -0
  1445. package/packages/orq-rc/src/models/components/processingattempt.ts +52 -0
  1446. package/packages/orq-rc/src/models/components/processingerror.ts +33 -0
  1447. package/packages/orq-rc/src/models/components/project.ts +108 -0
  1448. package/packages/orq-rc/src/models/components/projectbudgetscope.ts +63 -0
  1449. package/packages/orq-rc/src/models/components/projectbudgetscoperestresponse.ts +34 -0
  1450. package/packages/orq-rc/src/models/components/projectscope.ts +47 -0
  1451. package/packages/orq-rc/src/models/components/providerbudgetscope.ts +57 -0
  1452. package/packages/orq-rc/src/models/components/providertoolinput.ts +72 -0
  1453. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  1454. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +63 -0
  1455. package/packages/orq-rc/src/models/components/publicembeddingusage.ts +45 -0
  1456. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  1457. package/packages/orq-rc/src/models/components/publicmodelentry.ts +71 -0
  1458. package/packages/orq-rc/src/models/components/publicplugin.ts +129 -0
  1459. package/packages/orq-rc/src/models/components/publicresponseresource.ts +216 -0
  1460. package/packages/orq-rc/src/models/components/publicschedule.ts +130 -0
  1461. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +39 -0
  1462. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +84 -0
  1463. package/packages/orq-rc/src/models/components/publicusage.ts +84 -0
  1464. package/packages/orq-rc/src/models/components/queryauditlogsrequest.ts +64 -0
  1465. package/packages/orq-rc/src/models/components/queryauditlogsresponse.ts +55 -0
  1466. package/packages/orq-rc/src/models/components/queryknowledgebasetoolinput.ts +53 -0
  1467. package/packages/orq-rc/src/models/components/querylogsrequest.ts +60 -0
  1468. package/packages/orq-rc/src/models/components/querylogsresponse.ts +40 -0
  1469. package/packages/orq-rc/src/models/components/querymemorystoretoolinput.ts +51 -0
  1470. package/packages/orq-rc/src/models/components/queryparamspagination.ts +40 -0
  1471. package/packages/orq-rc/src/models/components/queryparamssort.ts +32 -0
  1472. package/packages/orq-rc/src/models/components/queryreportrequest.ts +296 -0
  1473. package/packages/orq-rc/src/models/components/queryreportresponse.ts +99 -0
  1474. package/packages/orq-rc/src/models/components/querytracesrequest.ts +48 -0
  1475. package/packages/orq-rc/src/models/components/querytracesresponse.ts +37 -0
  1476. package/packages/orq-rc/src/models/components/querywebhooksrequest.ts +85 -0
  1477. package/packages/orq-rc/src/models/components/querywebhooksresponse.ts +34 -0
  1478. package/packages/orq-rc/src/models/components/ratelimit.ts +62 -0
  1479. package/packages/orq-rc/src/models/components/ratelimitrestresponse.ts +37 -0
  1480. package/packages/orq-rc/src/models/components/reasoning.ts +80 -0
  1481. package/packages/orq-rc/src/models/components/reasoningparam.ts +75 -0
  1482. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  1483. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  1484. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  1485. package/packages/orq-rc/src/models/components/redactrequest.ts +85 -0
  1486. package/packages/orq-rc/src/models/components/redactresponse.ts +41 -0
  1487. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  1488. package/packages/orq-rc/src/models/components/removeannotationqueueitemsrequest.ts +41 -0
  1489. package/packages/orq-rc/src/models/components/requestlimit.ts +69 -0
  1490. package/packages/orq-rc/src/models/components/rerankconfig.ts +58 -0
  1491. package/packages/orq-rc/src/models/components/rerankmodelparameters.ts +31 -0
  1492. package/packages/orq-rc/src/models/components/resetbudgetconsumptionrequest.ts +27 -0
  1493. package/packages/orq-rc/src/models/components/resetbudgetconsumptionresponse.ts +41 -0
  1494. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedeltastreamevent.ts +79 -0
  1495. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcodedonestreamevent.ts +79 -0
  1496. package/packages/orq-rc/src/models/components/responsecodeinterpretercallcompletedstreamevent.ts +74 -0
  1497. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinprogressstreamevent.ts +74 -0
  1498. package/packages/orq-rc/src/models/components/responsecodeinterpretercallinterpretingstreamevent.ts +74 -0
  1499. package/packages/orq-rc/src/models/components/responsecompletedstreamevent.ts +61 -0
  1500. package/packages/orq-rc/src/models/components/responsecontentpartaddedstreamevent.ts +79 -0
  1501. package/packages/orq-rc/src/models/components/responsecontentpartdonestreamevent.ts +79 -0
  1502. package/packages/orq-rc/src/models/components/responsecreatedstreamevent.ts +61 -0
  1503. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdeltastreamevent.ts +79 -0
  1504. package/packages/orq-rc/src/models/components/responsecustomtoolcallinputdonestreamevent.ts +76 -0
  1505. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  1506. package/packages/orq-rc/src/models/components/responseerror.ts +33 -0
  1507. package/packages/orq-rc/src/models/components/responseerrorstreamevent.ts +58 -0
  1508. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +52 -0
  1509. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  1510. package/packages/orq-rc/src/models/components/responsefailedstreamevent.ts +61 -0
  1511. package/packages/orq-rc/src/models/components/responsefilesearchcallcompletedstreamevent.ts +71 -0
  1512. package/packages/orq-rc/src/models/components/responsefilesearchcallinprogressstreamevent.ts +74 -0
  1513. package/packages/orq-rc/src/models/components/responsefilesearchcallsearchingstreamevent.ts +71 -0
  1514. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +84 -0
  1515. package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +79 -0
  1516. package/packages/orq-rc/src/models/components/responsehealingplugin.ts +54 -0
  1517. package/packages/orq-rc/src/models/components/responseidentity.ts +48 -0
  1518. package/packages/orq-rc/src/models/components/responseimagegenerationcallcompletedstreamevent.ts +74 -0
  1519. package/packages/orq-rc/src/models/components/responseimagegenerationcallgeneratingstreamevent.ts +74 -0
  1520. package/packages/orq-rc/src/models/components/responseimagegenerationcallinprogressstreamevent.ts +74 -0
  1521. package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +86 -0
  1522. package/packages/orq-rc/src/models/components/responseincompletestreamevent.ts +61 -0
  1523. package/packages/orq-rc/src/models/components/responseinprogressstreamevent.ts +61 -0
  1524. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +78 -0
  1525. package/packages/orq-rc/src/models/components/responsemcpcallargumentsdonestreamevent.ts +78 -0
  1526. package/packages/orq-rc/src/models/components/responsemcpcallcompletedstreamevent.ts +68 -0
  1527. package/packages/orq-rc/src/models/components/responsemcpcallfailedstreamevent.ts +67 -0
  1528. package/packages/orq-rc/src/models/components/responsemcpcallinprogressstreamevent.ts +68 -0
  1529. package/packages/orq-rc/src/models/components/responsemcplisttoolscompletedstreamevent.ts +73 -0
  1530. package/packages/orq-rc/src/models/components/responsemcplisttoolsfailedstreamevent.ts +68 -0
  1531. package/packages/orq-rc/src/models/components/responsemcplisttoolsinprogressstreamevent.ts +73 -0
  1532. package/packages/orq-rc/src/models/components/responsemeta.ts +102 -0
  1533. package/packages/orq-rc/src/models/components/responseoutputitemaddedstreamevent.ts +67 -0
  1534. package/packages/orq-rc/src/models/components/responseoutputitemdonestreamevent.ts +66 -0
  1535. package/packages/orq-rc/src/models/components/responseoutputtextannotationaddedstreamevent.ts +91 -0
  1536. package/packages/orq-rc/src/models/components/responseoutputtextdeltastreamevent.ts +89 -0
  1537. package/packages/orq-rc/src/models/components/responseoutputtextdonestreamevent.ts +83 -0
  1538. package/packages/orq-rc/src/models/components/responsequeuedstreamevent.ts +61 -0
  1539. package/packages/orq-rc/src/models/components/responsereasoningdeltastreamevent.ts +83 -0
  1540. package/packages/orq-rc/src/models/components/responsereasoningdonestreamevent.ts +78 -0
  1541. package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +85 -0
  1542. package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +85 -0
  1543. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +90 -0
  1544. package/packages/orq-rc/src/models/components/responsereasoningsummarytextdonestreamevent.ts +85 -0
  1545. package/packages/orq-rc/src/models/components/responsereasoningtextdeltastreamevent.ts +84 -0
  1546. package/packages/orq-rc/src/models/components/responsereasoningtextdonestreamevent.ts +79 -0
  1547. package/packages/orq-rc/src/models/components/responserefusaldeltastreamevent.ts +78 -0
  1548. package/packages/orq-rc/src/models/components/responserefusaldonestreamevent.ts +78 -0
  1549. package/packages/orq-rc/src/models/components/responseretryconfig.ts +45 -0
  1550. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  1551. package/packages/orq-rc/src/models/components/responsestreamevent.ts +337 -0
  1552. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  1553. package/packages/orq-rc/src/models/components/responsetelemetry.ts +39 -0
  1554. package/packages/orq-rc/src/models/components/responsethread.ts +30 -0
  1555. package/packages/orq-rc/src/models/components/responsewebsearchcallcompletedstreamevent.ts +73 -0
  1556. package/packages/orq-rc/src/models/components/responsewebsearchcallinprogressstreamevent.ts +71 -0
  1557. package/packages/orq-rc/src/models/components/responsewebsearchcallsearchingstreamevent.ts +73 -0
  1558. package/packages/orq-rc/src/models/components/restorerequest.ts +38 -0
  1559. package/packages/orq-rc/src/models/components/restoreresponse.ts +36 -0
  1560. package/packages/orq-rc/src/models/components/retrieveagentstoolinput.ts +51 -0
  1561. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +35 -0
  1562. package/packages/orq-rc/src/models/components/retrieveknowledgebasestoolinput.ts +53 -0
  1563. package/packages/orq-rc/src/models/components/retrievememorystorestoolinput.ts +53 -0
  1564. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  1565. package/packages/orq-rc/src/models/components/routingrule.ts +95 -0
  1566. package/packages/orq-rc/src/models/components/routingrulecacheconfig.ts +54 -0
  1567. package/packages/orq-rc/src/models/components/routingruleexpression.ts +95 -0
  1568. package/packages/orq-rc/src/models/components/routingrulemodel.ts +74 -0
  1569. package/packages/orq-rc/src/models/components/routingrulemodelsconfig.ts +64 -0
  1570. package/packages/orq-rc/src/models/components/routingruleplugin.ts +110 -0
  1571. package/packages/orq-rc/src/models/components/scopemode.ts +16 -0
  1572. package/packages/orq-rc/src/models/components/searchhubitemsresponse.ts +32 -0
  1573. package/packages/orq-rc/src/models/components/searchknowledgematch.ts +74 -0
  1574. package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +1647 -0
  1575. package/packages/orq-rc/src/models/components/searchknowledgeresponse.ts +38 -0
  1576. package/packages/orq-rc/src/models/components/searchknowledgescores.ts +39 -0
  1577. package/packages/orq-rc/src/models/components/searchlogsrequest.ts +83 -0
  1578. package/packages/orq-rc/src/models/components/searchlogsresponse.ts +65 -0
  1579. package/packages/orq-rc/src/models/components/searchoptions.ts +49 -0
  1580. package/packages/orq-rc/src/models/components/searchrerankconfig.ts +51 -0
  1581. package/packages/orq-rc/src/models/components/searchretrievalconfig.ts +153 -0
  1582. package/packages/orq-rc/src/models/components/searchtracesrequest.ts +68 -0
  1583. package/packages/orq-rc/src/models/components/searchtracesresponse.ts +72 -0
  1584. package/packages/orq-rc/src/models/components/searchtype.ts +17 -0
  1585. package/packages/orq-rc/src/models/components/security.ts +32 -0
  1586. package/packages/orq-rc/src/models/components/securityconfig.ts +27 -0
  1587. package/packages/orq-rc/src/models/components/servertoolusedetails.ts +63 -0
  1588. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +25 -0
  1589. package/packages/orq-rc/src/models/components/sessioninterval.ts +26 -0
  1590. package/packages/orq-rc/src/models/components/sharing.ts +118 -0
  1591. package/packages/orq-rc/src/models/components/sharingallprojects.ts +43 -0
  1592. package/packages/orq-rc/src/models/components/sharingselectedprojects.ts +63 -0
  1593. package/packages/orq-rc/src/models/components/sidekicktoolinput.ts +51 -0
  1594. package/packages/orq-rc/src/models/components/singleproject.ts +35 -0
  1595. package/packages/orq-rc/src/models/components/skill.ts +108 -0
  1596. package/packages/orq-rc/src/models/components/smartrouter.ts +78 -0
  1597. package/packages/orq-rc/src/models/components/smartrouterprofile.ts +23 -0
  1598. package/packages/orq-rc/src/models/components/spandetail.ts +53 -0
  1599. package/packages/orq-rc/src/models/components/spansummary.ts +97 -0
  1600. package/packages/orq-rc/src/models/components/statfilesystemfileresponse.ts +63 -0
  1601. package/packages/orq-rc/src/models/components/streamoptions.ts +32 -0
  1602. package/packages/orq-rc/src/models/components/structuredinput.ts +51 -0
  1603. package/packages/orq-rc/src/models/components/structuredoutput.ts +44 -0
  1604. package/packages/orq-rc/src/models/components/structuredtoolcall.ts +43 -0
  1605. package/packages/orq-rc/src/models/components/syncmcpserverrequest.ts +39 -0
  1606. package/packages/orq-rc/src/models/components/syncmcpserverresponse.ts +37 -0
  1607. package/packages/orq-rc/src/models/components/syncstatus.ts +18 -0
  1608. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  1609. package/packages/orq-rc/src/models/components/testmcpservertoolrequest.ts +71 -0
  1610. package/packages/orq-rc/src/models/components/testmcpservertoolresponse.ts +35 -0
  1611. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +212 -0
  1612. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  1613. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  1614. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  1615. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +108 -0
  1616. package/packages/orq-rc/src/models/components/thread.ts +101 -0
  1617. package/packages/orq-rc/src/models/components/threadbilling.ts +68 -0
  1618. package/packages/orq-rc/src/models/components/threadfilters.ts +66 -0
  1619. package/packages/orq-rc/src/models/components/threadkind.ts +20 -0
  1620. package/packages/orq-rc/src/models/components/threadusage.ts +68 -0
  1621. package/packages/orq-rc/src/models/components/timeoutconfig.ts +32 -0
  1622. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  1623. package/packages/orq-rc/src/models/components/tokenlimit.ts +69 -0
  1624. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  1625. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  1626. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +236 -0
  1627. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +220 -0
  1628. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +216 -0
  1629. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  1630. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  1631. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  1632. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  1633. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  1634. package/packages/orq-rc/src/models/components/totals.ts +34 -0
  1635. package/packages/orq-rc/src/models/components/traceagent.ts +33 -0
  1636. package/packages/orq-rc/src/models/components/traceaggregaterow.ts +33 -0
  1637. package/packages/orq-rc/src/models/components/tracecompute.ts +30 -0
  1638. package/packages/orq-rc/src/models/components/tracecontext.ts +39 -0
  1639. package/packages/orq-rc/src/models/components/tracecost.ts +77 -0
  1640. package/packages/orq-rc/src/models/components/tracefacet.ts +35 -0
  1641. package/packages/orq-rc/src/models/components/tracefacetvalue.ts +33 -0
  1642. package/packages/orq-rc/src/models/components/tracefield.ts +56 -0
  1643. package/packages/orq-rc/src/models/components/tracefilter.ts +33 -0
  1644. package/packages/orq-rc/src/models/components/tracescrubbingplugin.ts +80 -0
  1645. package/packages/orq-rc/src/models/components/tracesearchmeta.ts +45 -0
  1646. package/packages/orq-rc/src/models/components/tracesort.ts +30 -0
  1647. package/packages/orq-rc/src/models/components/tracesummary.ts +152 -0
  1648. package/packages/orq-rc/src/models/components/traceusage.ts +65 -0
  1649. package/packages/orq-rc/src/models/components/updatealertrequest.ts +97 -0
  1650. package/packages/orq-rc/src/models/components/updatealertresponse.ts +35 -0
  1651. package/packages/orq-rc/src/models/components/updateannotationqueuerequest.ts +61 -0
  1652. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +110 -0
  1653. package/packages/orq-rc/src/models/components/updatebudgetrequest.ts +115 -0
  1654. package/packages/orq-rc/src/models/components/updatebudgetresponse.ts +38 -0
  1655. package/packages/orq-rc/src/models/components/updatefilerequest.ts +39 -0
  1656. package/packages/orq-rc/src/models/components/updatefileresponse.ts +35 -0
  1657. package/packages/orq-rc/src/models/components/updatefilesystemrequest.ts +83 -0
  1658. package/packages/orq-rc/src/models/components/updateguardrailrulerequest.ts +66 -0
  1659. package/packages/orq-rc/src/models/components/updateguardrailruleresponse.ts +37 -0
  1660. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +64 -0
  1661. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +35 -0
  1662. package/packages/orq-rc/src/models/components/updateipallowlistrequest.ts +31 -0
  1663. package/packages/orq-rc/src/models/components/updateipallowlistresponse.ts +37 -0
  1664. package/packages/orq-rc/src/models/components/updatemanagementkeyrequest.ts +81 -0
  1665. package/packages/orq-rc/src/models/components/updatemanagementkeyresponse.ts +40 -0
  1666. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +118 -0
  1667. package/packages/orq-rc/src/models/components/updatemcpgatewayresponse.ts +37 -0
  1668. package/packages/orq-rc/src/models/components/updatemcpserverrequest.ts +100 -0
  1669. package/packages/orq-rc/src/models/components/updatemcpserverresponse.ts +37 -0
  1670. package/packages/orq-rc/src/models/components/updatememorydocumentrequest.ts +42 -0
  1671. package/packages/orq-rc/src/models/components/updatememoryrequest.ts +31 -0
  1672. package/packages/orq-rc/src/models/components/updatememorystorerequest.ts +48 -0
  1673. package/packages/orq-rc/src/models/components/updatemodelparameter.ts +61 -0
  1674. package/packages/orq-rc/src/models/components/updatenotifierrequest.ts +130 -0
  1675. package/packages/orq-rc/src/models/components/updatenotifierresponse.ts +35 -0
  1676. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +49 -0
  1677. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +35 -0
  1678. package/packages/orq-rc/src/models/components/updateroutingrulerequest.ts +79 -0
  1679. package/packages/orq-rc/src/models/components/updateskillrequest.ts +70 -0
  1680. package/packages/orq-rc/src/models/components/updateskillresponse.ts +35 -0
  1681. package/packages/orq-rc/src/models/components/updatesmartrouterrequest.ts +41 -0
  1682. package/packages/orq-rc/src/models/components/updatesmartrouterresponse.ts +37 -0
  1683. package/packages/orq-rc/src/models/components/updatethreadrequest.ts +105 -0
  1684. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +90 -0
  1685. package/packages/orq-rc/src/models/components/updateworkspaceresponse.ts +32 -0
  1686. package/packages/orq-rc/src/models/components/updateworkspacesettingsrequest.ts +78 -0
  1687. package/packages/orq-rc/src/models/components/updateworkspacesettingsresponse.ts +38 -0
  1688. package/packages/orq-rc/src/models/components/uploadpostpolicy.ts +33 -0
  1689. package/packages/orq-rc/src/models/components/upsertchunk.ts +70 -0
  1690. package/packages/orq-rc/src/models/components/userowner.ts +35 -0
  1691. package/packages/orq-rc/src/models/components/value.ts +24 -0
  1692. package/packages/orq-rc/src/models/components/verifydomainresponse.ts +35 -0
  1693. package/packages/orq-rc/src/models/components/vertexcapabilities.ts +37 -0
  1694. package/packages/orq-rc/src/models/components/vertexconfiguration.ts +45 -0
  1695. package/packages/orq-rc/src/models/components/vertexmodelconfiguration.ts +53 -0
  1696. package/packages/orq-rc/src/models/components/vertexparameters.ts +47 -0
  1697. package/packages/orq-rc/src/models/components/vertexparamrange.ts +34 -0
  1698. package/packages/orq-rc/src/models/components/vertexparamrangeint.ts +34 -0
  1699. package/packages/orq-rc/src/models/components/webhook.ts +116 -0
  1700. package/packages/orq-rc/src/models/components/webscrapertoolinput.ts +51 -0
  1701. package/packages/orq-rc/src/models/components/workspace.ts +116 -0
  1702. package/packages/orq-rc/src/models/components/workspacebudgetscope.ts +46 -0
  1703. package/packages/orq-rc/src/models/components/workspacecapabilities.ts +33 -0
  1704. package/packages/orq-rc/src/models/components/workspaceorganization.ts +33 -0
  1705. package/packages/orq-rc/src/models/components/workspacesettings.ts +66 -0
  1706. package/packages/orq-rc/src/models/components/workspacesettingsfields.ts +135 -0
  1707. package/packages/orq-rc/src/models/components/writememorystoretoolinput.ts +51 -0
  1708. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  1709. package/packages/orq-rc/src/models/errors/createagentschedule.ts +105 -0
  1710. package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
  1711. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  1712. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  1713. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  1714. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  1715. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +56 -0
  1716. package/packages/orq-rc/src/models/errors/deleteeval.ts +96 -0
  1717. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  1718. package/packages/orq-rc/src/models/errors/geteval.ts +51 -0
  1719. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  1720. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  1721. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  1722. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  1723. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  1724. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  1725. package/packages/orq-rc/src/models/errors/index.ts +38 -0
  1726. package/packages/orq-rc/src/models/errors/knowledgeapierror.ts +59 -0
  1727. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  1728. package/packages/orq-rc/src/models/errors/postv2feedback.ts +96 -0
  1729. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +51 -0
  1730. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  1731. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  1732. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +56 -0
  1733. package/packages/orq-rc/src/models/errors/retrieveresponse.ts +56 -0
  1734. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  1735. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  1736. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  1737. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +105 -0
  1738. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  1739. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +105 -0
  1740. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  1741. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  1742. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  1743. package/packages/orq-rc/src/models/operations/addannotationqueueitems.ts +45 -0
  1744. package/packages/orq-rc/src/models/operations/alertdelete.ts +39 -0
  1745. package/packages/orq-rc/src/models/operations/alertget.ts +37 -0
  1746. package/packages/orq-rc/src/models/operations/alertlist.ts +65 -0
  1747. package/packages/orq-rc/src/models/operations/alertlisttriggerevents.ts +74 -0
  1748. package/packages/orq-rc/src/models/operations/alertlisttriggers.ts +65 -0
  1749. package/packages/orq-rc/src/models/operations/alertupdate.ts +44 -0
  1750. package/packages/orq-rc/src/models/operations/apikeydelete.ts +39 -0
  1751. package/packages/orq-rc/src/models/operations/apikeyget.ts +49 -0
  1752. package/packages/orq-rc/src/models/operations/apikeylist.ts +118 -0
  1753. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +44 -0
  1754. package/packages/orq-rc/src/models/operations/budgetdelete.ts +39 -0
  1755. package/packages/orq-rc/src/models/operations/budgetget.ts +39 -0
  1756. package/packages/orq-rc/src/models/operations/budgetlist.ts +108 -0
  1757. package/packages/orq-rc/src/models/operations/budgetresetconsumption.ts +48 -0
  1758. package/packages/orq-rc/src/models/operations/budgetupdate.ts +44 -0
  1759. package/packages/orq-rc/src/models/operations/clearannotationqueue.ts +38 -0
  1760. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  1761. package/packages/orq-rc/src/models/operations/createagentrequest.ts +5910 -0
  1762. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +125 -0
  1763. package/packages/orq-rc/src/models/operations/createagentschedule.ts +244 -0
  1764. package/packages/orq-rc/src/models/operations/createannotation.ts +256 -0
  1765. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6410 -0
  1766. package/packages/orq-rc/src/models/operations/createchunk.ts +45 -0
  1767. package/packages/orq-rc/src/models/operations/createcompletion.ts +3370 -0
  1768. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  1769. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +3112 -0
  1770. package/packages/orq-rc/src/models/operations/createdatasource.ts +43 -0
  1771. package/packages/orq-rc/src/models/operations/createembedding.ts +219 -0
  1772. package/packages/orq-rc/src/models/operations/createeval.ts +672 -0
  1773. package/packages/orq-rc/src/models/operations/createfolder.ts +43 -0
  1774. package/packages/orq-rc/src/models/operations/createidentity.ts +40 -0
  1775. package/packages/orq-rc/src/models/operations/createimage.ts +1040 -0
  1776. package/packages/orq-rc/src/models/operations/createimageedit.ts +1076 -0
  1777. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1104 -0
  1778. package/packages/orq-rc/src/models/operations/creatememory.ts +41 -0
  1779. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +48 -0
  1780. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  1781. package/packages/orq-rc/src/models/operations/createprompt.ts +5868 -0
  1782. package/packages/orq-rc/src/models/operations/creatererank.ts +903 -0
  1783. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +2464 -0
  1784. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  1785. package/packages/orq-rc/src/models/operations/createtool.ts +2013 -0
  1786. package/packages/orq-rc/src/models/operations/createtranscription.ts +950 -0
  1787. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  1788. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  1789. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +46 -0
  1790. package/packages/orq-rc/src/models/operations/deleteannotation.ts +125 -0
  1791. package/packages/orq-rc/src/models/operations/deleteannotationqueue.ts +38 -0
  1792. package/packages/orq-rc/src/models/operations/deletechunk.ts +44 -0
  1793. package/packages/orq-rc/src/models/operations/deletechunks.ts +47 -0
  1794. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  1795. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  1796. package/packages/orq-rc/src/models/operations/deletedatasource.ts +40 -0
  1797. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  1798. package/packages/orq-rc/src/models/operations/deletefile.ts +42 -0
  1799. package/packages/orq-rc/src/models/operations/deletefilesystem.ts +36 -0
  1800. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  1801. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +36 -0
  1802. package/packages/orq-rc/src/models/operations/deletememory.ts +40 -0
  1803. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +46 -0
  1804. package/packages/orq-rc/src/models/operations/deletememorystore.ts +36 -0
  1805. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  1806. package/packages/orq-rc/src/models/operations/deletesession.ts +36 -0
  1807. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  1808. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  1809. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4949 -0
  1810. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +732 -0
  1811. package/packages/orq-rc/src/models/operations/deployments.ts +1384 -0
  1812. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4102 -0
  1813. package/packages/orq-rc/src/models/operations/filecontent.ts +39 -0
  1814. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  1815. package/packages/orq-rc/src/models/operations/fileget.ts +35 -0
  1816. package/packages/orq-rc/src/models/operations/filelist.ts +71 -0
  1817. package/packages/orq-rc/src/models/operations/fileupdate.ts +44 -0
  1818. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  1819. package/packages/orq-rc/src/models/operations/getallmemories.ts +65 -0
  1820. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +82 -0
  1821. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +72 -0
  1822. package/packages/orq-rc/src/models/operations/getallprompts.ts +3441 -0
  1823. package/packages/orq-rc/src/models/operations/getalltools.ts +1102 -0
  1824. package/packages/orq-rc/src/models/operations/getchunkscount.ts +46 -0
  1825. package/packages/orq-rc/src/models/operations/geteval.ts +2800 -0
  1826. package/packages/orq-rc/src/models/operations/getevals.ts +172 -0
  1827. package/packages/orq-rc/src/models/operations/getevalversion.ts +64 -0
  1828. package/packages/orq-rc/src/models/operations/getlog.ts +27 -0
  1829. package/packages/orq-rc/src/models/operations/getlogcontext.ts +40 -0
  1830. package/packages/orq-rc/src/models/operations/getonechunk.ts +44 -0
  1831. package/packages/orq-rc/src/models/operations/getonedatasourceprocessingstatus.ts +43 -0
  1832. package/packages/orq-rc/src/models/operations/getonefileuploadurl.ts +54 -0
  1833. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +36 -0
  1834. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3364 -0
  1835. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3413 -0
  1836. package/packages/orq-rc/src/models/operations/getsession.ts +36 -0
  1837. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +234 -0
  1838. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +235 -0
  1839. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  1840. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  1841. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +36 -0
  1842. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +36 -0
  1843. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +61 -0
  1844. package/packages/orq-rc/src/models/operations/guardrailrulelistusedguardrails.ts +39 -0
  1845. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +42 -0
  1846. package/packages/orq-rc/src/models/operations/hubget.ts +27 -0
  1847. package/packages/orq-rc/src/models/operations/hubsearch.ts +34 -0
  1848. package/packages/orq-rc/src/models/operations/index.ts +254 -0
  1849. package/packages/orq-rc/src/models/operations/invokeagent.ts +775 -0
  1850. package/packages/orq-rc/src/models/operations/invokeeval.ts +43 -0
  1851. package/packages/orq-rc/src/models/operations/listagents.ts +3041 -0
  1852. package/packages/orq-rc/src/models/operations/listagentschedules.ts +69 -0
  1853. package/packages/orq-rc/src/models/operations/listannotationqueueitems.ts +58 -0
  1854. package/packages/orq-rc/src/models/operations/listannotationqueues.ts +67 -0
  1855. package/packages/orq-rc/src/models/operations/listchunks.ts +131 -0
  1856. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +48 -0
  1857. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2092 -0
  1858. package/packages/orq-rc/src/models/operations/listdatasets.ts +225 -0
  1859. package/packages/orq-rc/src/models/operations/listdatasources.ts +96 -0
  1860. package/packages/orq-rc/src/models/operations/listevalversions.ts +49 -0
  1861. package/packages/orq-rc/src/models/operations/listfiles.ts +46 -0
  1862. package/packages/orq-rc/src/models/operations/listfilesystems.ts +50 -0
  1863. package/packages/orq-rc/src/models/operations/listidentities.ts +94 -0
  1864. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +98 -0
  1865. package/packages/orq-rc/src/models/operations/listlogfacetvalues.ts +46 -0
  1866. package/packages/orq-rc/src/models/operations/listmodels.ts +60 -0
  1867. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3488 -0
  1868. package/packages/orq-rc/src/models/operations/listtracelogs.ts +43 -0
  1869. package/packages/orq-rc/src/models/operations/managementkeydelete.ts +39 -0
  1870. package/packages/orq-rc/src/models/operations/managementkeyget.ts +39 -0
  1871. package/packages/orq-rc/src/models/operations/managementkeylist.ts +85 -0
  1872. package/packages/orq-rc/src/models/operations/managementkeyupdate.ts +45 -0
  1873. package/packages/orq-rc/src/models/operations/mcpgatewaydelete.ts +34 -0
  1874. package/packages/orq-rc/src/models/operations/mcpgatewayget.ts +34 -0
  1875. package/packages/orq-rc/src/models/operations/mcpgatewaylist.ts +65 -0
  1876. package/packages/orq-rc/src/models/operations/mcpgatewaylisttools.ts +66 -0
  1877. package/packages/orq-rc/src/models/operations/mcpgatewayupdate.ts +43 -0
  1878. package/packages/orq-rc/src/models/operations/mcpserverdelete.ts +34 -0
  1879. package/packages/orq-rc/src/models/operations/mcpserverget.ts +34 -0
  1880. package/packages/orq-rc/src/models/operations/mcpserverlist.ts +58 -0
  1881. package/packages/orq-rc/src/models/operations/mcpserversync.ts +43 -0
  1882. package/packages/orq-rc/src/models/operations/mcpservertesttool.ts +43 -0
  1883. package/packages/orq-rc/src/models/operations/mcpserverupdate.ts +43 -0
  1884. package/packages/orq-rc/src/models/operations/modelazurefoundrydeployments.ts +90 -0
  1885. package/packages/orq-rc/src/models/operations/modelcatalogget.ts +34 -0
  1886. package/packages/orq-rc/src/models/operations/modelcataloglist.ts +147 -0
  1887. package/packages/orq-rc/src/models/operations/modelcataloglistofferings.ts +151 -0
  1888. package/packages/orq-rc/src/models/operations/modelcreate.ts +189 -0
  1889. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +247 -0
  1890. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +215 -0
  1891. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +149 -0
  1892. package/packages/orq-rc/src/models/operations/modeldelete.ts +34 -0
  1893. package/packages/orq-rc/src/models/operations/modeldisable.ts +39 -0
  1894. package/packages/orq-rc/src/models/operations/modelenable.ts +36 -0
  1895. package/packages/orq-rc/src/models/operations/modelupdate.ts +203 -0
  1896. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +273 -0
  1897. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +249 -0
  1898. package/packages/orq-rc/src/models/operations/modelvalidate.ts +57 -0
  1899. package/packages/orq-rc/src/models/operations/modelvalidateawsbedrock.ts +61 -0
  1900. package/packages/orq-rc/src/models/operations/movefile.ts +40 -0
  1901. package/packages/orq-rc/src/models/operations/notifierdelete.ts +36 -0
  1902. package/packages/orq-rc/src/models/operations/notifierget.ts +36 -0
  1903. package/packages/orq-rc/src/models/operations/notifierlist.ts +72 -0
  1904. package/packages/orq-rc/src/models/operations/notifierupdate.ts +41 -0
  1905. package/packages/orq-rc/src/models/operations/parse.ts +809 -0
  1906. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  1907. package/packages/orq-rc/src/models/operations/policycreate.ts +138 -0
  1908. package/packages/orq-rc/src/models/operations/policydelete.ts +39 -0
  1909. package/packages/orq-rc/src/models/operations/policyget.ts +110 -0
  1910. package/packages/orq-rc/src/models/operations/policylist.ts +94 -0
  1911. package/packages/orq-rc/src/models/operations/policyupdate.ts +174 -0
  1912. package/packages/orq-rc/src/models/operations/postv2feedback.ts +216 -0
  1913. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +453 -0
  1914. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  1915. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +137 -0
  1916. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +365 -0
  1917. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +510 -0
  1918. package/packages/orq-rc/src/models/operations/previewdatasourcechunks.ts +47 -0
  1919. package/packages/orq-rc/src/models/operations/projectdelete.ts +39 -0
  1920. package/packages/orq-rc/src/models/operations/projectget.ts +39 -0
  1921. package/packages/orq-rc/src/models/operations/projectlist.ts +58 -0
  1922. package/packages/orq-rc/src/models/operations/projectupdate.ts +44 -0
  1923. package/packages/orq-rc/src/models/operations/removeannotationqueueitems.ts +46 -0
  1924. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3103 -0
  1925. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +174 -0
  1926. package/packages/orq-rc/src/models/operations/retrieveannotationqueue.ts +38 -0
  1927. package/packages/orq-rc/src/models/operations/retrieveannotationqueueitem.ts +73 -0
  1928. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1977 -0
  1929. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  1930. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +40 -0
  1931. package/packages/orq-rc/src/models/operations/retrievefilesystem.ts +36 -0
  1932. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +55 -0
  1933. package/packages/orq-rc/src/models/operations/retrievememory.ts +40 -0
  1934. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +46 -0
  1935. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +36 -0
  1936. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +239 -0
  1937. package/packages/orq-rc/src/models/operations/retrievetool.ts +1081 -0
  1938. package/packages/orq-rc/src/models/operations/routingruledelete.ts +36 -0
  1939. package/packages/orq-rc/src/models/operations/routingruleget.ts +36 -0
  1940. package/packages/orq-rc/src/models/operations/routingrulelist.ts +56 -0
  1941. package/packages/orq-rc/src/models/operations/routingrulelistusedmodels.ts +38 -0
  1942. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +41 -0
  1943. package/packages/orq-rc/src/models/operations/runagent.ts +4902 -0
  1944. package/packages/orq-rc/src/models/operations/searchknowledge.ts +47 -0
  1945. package/packages/orq-rc/src/models/operations/skilldelete.ts +39 -0
  1946. package/packages/orq-rc/src/models/operations/skillget.ts +40 -0
  1947. package/packages/orq-rc/src/models/operations/skilllist.ts +61 -0
  1948. package/packages/orq-rc/src/models/operations/skillupdate.ts +44 -0
  1949. package/packages/orq-rc/src/models/operations/smartrouterdelete.ts +36 -0
  1950. package/packages/orq-rc/src/models/operations/smartrouterget.ts +36 -0
  1951. package/packages/orq-rc/src/models/operations/smartrouterlist.ts +53 -0
  1952. package/packages/orq-rc/src/models/operations/smartrouterupdate.ts +41 -0
  1953. package/packages/orq-rc/src/models/operations/statfile.ts +37 -0
  1954. package/packages/orq-rc/src/models/operations/streamagent.ts +698 -0
  1955. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5037 -0
  1956. package/packages/orq-rc/src/models/operations/tracesget.ts +36 -0
  1957. package/packages/orq-rc/src/models/operations/tracesgetspan.ts +40 -0
  1958. package/packages/orq-rc/src/models/operations/traceslistfacetvalues.ts +50 -0
  1959. package/packages/orq-rc/src/models/operations/traceslistspans.ts +43 -0
  1960. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +86 -0
  1961. package/packages/orq-rc/src/models/operations/updateagent.ts +6184 -0
  1962. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +258 -0
  1963. package/packages/orq-rc/src/models/operations/updateannotationqueue.ts +45 -0
  1964. package/packages/orq-rc/src/models/operations/updatechunk.ts +50 -0
  1965. package/packages/orq-rc/src/models/operations/updatechunkenabled.ts +51 -0
  1966. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +3156 -0
  1967. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  1968. package/packages/orq-rc/src/models/operations/updatedatasource.ts +47 -0
  1969. package/packages/orq-rc/src/models/operations/updateeval.ts +468 -0
  1970. package/packages/orq-rc/src/models/operations/updatefilesystem.ts +41 -0
  1971. package/packages/orq-rc/src/models/operations/updateidentity.ts +43 -0
  1972. package/packages/orq-rc/src/models/operations/updateknowledge.ts +44 -0
  1973. package/packages/orq-rc/src/models/operations/updatememory.ts +45 -0
  1974. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +52 -0
  1975. package/packages/orq-rc/src/models/operations/updatememorystore.ts +41 -0
  1976. package/packages/orq-rc/src/models/operations/updateprompt.ts +5955 -0
  1977. package/packages/orq-rc/src/models/operations/updatesession.ts +41 -0
  1978. package/packages/orq-rc/src/models/operations/updatetool.ts +2216 -0
  1979. package/packages/orq-rc/src/models/operations/webhookdelete.ts +31 -0
  1980. package/packages/orq-rc/src/models/operations/webhookget.ts +31 -0
  1981. package/packages/orq-rc/src/models/operations/webhooklist.ts +101 -0
  1982. package/packages/orq-rc/src/models/operations/webhookupdate.ts +84 -0
  1983. package/packages/orq-rc/src/models/operations/workspaceget.ts +31 -0
  1984. package/packages/orq-rc/src/models/operations/workspacelist.ts +43 -0
  1985. package/packages/orq-rc/src/models/operations/workspacesecurityaddiprange.ts +43 -0
  1986. package/packages/orq-rc/src/models/operations/workspacesecuritycreatedomain.ts +43 -0
  1987. package/packages/orq-rc/src/models/operations/workspacesecuritydeletedomain.ts +42 -0
  1988. package/packages/orq-rc/src/models/operations/workspacesecuritydeleteiprange.ts +42 -0
  1989. package/packages/orq-rc/src/models/operations/workspacesecuritygetipallowlist.ts +39 -0
  1990. package/packages/orq-rc/src/models/operations/workspacesecuritylistdomains.ts +38 -0
  1991. package/packages/orq-rc/src/models/operations/workspacesecurityupdateipallowlist.ts +46 -0
  1992. package/packages/orq-rc/src/models/operations/workspacesecurityverifydomain.ts +42 -0
  1993. package/packages/orq-rc/src/models/operations/workspaceupdate.ts +40 -0
  1994. package/packages/orq-rc/src/sdk/agents.ts +198 -0
  1995. package/packages/orq-rc/src/sdk/alerts.ts +136 -0
  1996. package/packages/orq-rc/src/sdk/annotationqueues.ts +190 -0
  1997. package/packages/orq-rc/src/sdk/annotations.ts +45 -0
  1998. package/packages/orq-rc/src/sdk/apikeys.ts +116 -0
  1999. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  2000. package/packages/orq-rc/src/sdk/auditlogs.ts +27 -0
  2001. package/packages/orq-rc/src/sdk/budgets.ts +118 -0
  2002. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  2003. package/packages/orq-rc/src/sdk/chunking.ts +28 -0
  2004. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  2005. package/packages/orq-rc/src/sdk/datasets.ts +207 -0
  2006. package/packages/orq-rc/src/sdk/deployments.ts +83 -0
  2007. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  2008. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  2009. package/packages/orq-rc/src/sdk/evals.ts +154 -0
  2010. package/packages/orq-rc/src/sdk/feedback.ts +57 -0
  2011. package/packages/orq-rc/src/sdk/files.ts +118 -0
  2012. package/packages/orq-rc/src/sdk/filesystems.ts +190 -0
  2013. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  2014. package/packages/orq-rc/src/sdk/guardrailrules.ts +118 -0
  2015. package/packages/orq-rc/src/sdk/hub.ts +46 -0
  2016. package/packages/orq-rc/src/sdk/humanreviewsets.ts +84 -0
  2017. package/packages/orq-rc/src/sdk/identities.ts +100 -0
  2018. package/packages/orq-rc/src/sdk/images.ts +25 -0
  2019. package/packages/orq-rc/src/sdk/index.ts +5 -0
  2020. package/packages/orq-rc/src/sdk/knowledge.ts +424 -0
  2021. package/packages/orq-rc/src/sdk/logs.ts +188 -0
  2022. package/packages/orq-rc/src/sdk/managementkeys.ts +116 -0
  2023. package/packages/orq-rc/src/sdk/mcpgateways.ts +118 -0
  2024. package/packages/orq-rc/src/sdk/mcpservers.ts +136 -0
  2025. package/packages/orq-rc/src/sdk/memorystores.ts +287 -0
  2026. package/packages/orq-rc/src/sdk/modelcatalog.ts +64 -0
  2027. package/packages/orq-rc/src/sdk/models.ts +294 -0
  2028. package/packages/orq-rc/src/sdk/moderations.ts +27 -0
  2029. package/packages/orq-rc/src/sdk/notifiers.ts +100 -0
  2030. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  2031. package/packages/orq-rc/src/sdk/orqresponses.ts +57 -0
  2032. package/packages/orq-rc/src/sdk/pii.ts +79 -0
  2033. package/packages/orq-rc/src/sdk/policies.ts +99 -0
  2034. package/packages/orq-rc/src/sdk/projects.ts +100 -0
  2035. package/packages/orq-rc/src/sdk/prompts.ts +135 -0
  2036. package/packages/orq-rc/src/sdk/reporting.ts +27 -0
  2037. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  2038. package/packages/orq-rc/src/sdk/responses.ts +47 -0
  2039. package/packages/orq-rc/src/sdk/router.ts +66 -0
  2040. package/packages/orq-rc/src/sdk/routingrules.ts +118 -0
  2041. package/packages/orq-rc/src/sdk/schedules.ts +117 -0
  2042. package/packages/orq-rc/src/sdk/sdk.ts +277 -0
  2043. package/packages/orq-rc/src/sdk/sessions.ts +134 -0
  2044. package/packages/orq-rc/src/sdk/skills.ts +100 -0
  2045. package/packages/orq-rc/src/sdk/smartrouters.ts +102 -0
  2046. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  2047. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  2048. package/packages/orq-rc/src/sdk/traces.ts +168 -0
  2049. package/packages/orq-rc/src/sdk/transcriptions.ts +27 -0
  2050. package/packages/orq-rc/src/sdk/translations.ts +27 -0
  2051. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  2052. package/packages/orq-rc/src/sdk/webhooks.ts +152 -0
  2053. package/packages/orq-rc/src/sdk/workspaces.ts +64 -0
  2054. package/packages/orq-rc/src/sdk/workspacesecurity.ts +154 -0
  2055. package/packages/orq-rc/src/sdk/workspacesettings.ts +43 -0
  2056. package/packages/orq-rc/src/types/async.ts +69 -0
  2057. package/packages/orq-rc/src/types/blobs.ts +32 -0
  2058. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  2059. package/packages/orq-rc/src/types/enums.ts +45 -0
  2060. package/packages/orq-rc/src/types/fp.ts +50 -0
  2061. package/packages/orq-rc/src/types/index.ts +11 -0
  2062. package/packages/orq-rc/src/types/operations.ts +105 -0
  2063. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  2064. package/packages/orq-rc/src/types/streams.ts +21 -0
  2065. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  2066. package/sdk/annotationqueues.d.ts +4 -4
  2067. package/sdk/annotationqueues.d.ts.map +1 -1
  2068. package/sdk/budgets.d.ts +6 -6
  2069. package/sdk/budgets.js +6 -6
  2070. package/sdk/deployments.d.ts +16 -0
  2071. package/sdk/deployments.d.ts.map +1 -1
  2072. package/sdk/deployments.js +20 -0
  2073. package/sdk/deployments.js.map +1 -1
  2074. package/sdk/evals.d.ts +7 -7
  2075. package/sdk/evals.d.ts.map +1 -1
  2076. package/sdk/evals.js.map +1 -1
  2077. package/sdk/hub.d.ts +20 -0
  2078. package/sdk/hub.d.ts.map +1 -0
  2079. package/sdk/hub.js +32 -0
  2080. package/sdk/hub.js.map +1 -0
  2081. package/sdk/knowledge.d.ts +7 -0
  2082. package/sdk/knowledge.d.ts.map +1 -1
  2083. package/sdk/knowledge.js +10 -0
  2084. package/sdk/knowledge.js.map +1 -1
  2085. package/sdk/logs.d.ts +2 -2
  2086. package/sdk/logs.d.ts.map +1 -1
  2087. package/sdk/logs.js +1 -1
  2088. package/sdk/logs.js.map +1 -1
  2089. package/sdk/pii.d.ts +7 -0
  2090. package/sdk/pii.d.ts.map +1 -1
  2091. package/sdk/pii.js +10 -0
  2092. package/sdk/pii.js.map +1 -1
  2093. package/sdk/projects.d.ts +3 -3
  2094. package/sdk/projects.js +3 -3
  2095. package/sdk/reporting.d.ts +1 -1
  2096. package/sdk/reporting.js +1 -1
  2097. package/sdk/sdk.d.ts +12 -6
  2098. package/sdk/sdk.d.ts.map +1 -1
  2099. package/sdk/sdk.js +17 -9
  2100. package/sdk/sdk.js.map +1 -1
  2101. package/sdk/sessions.d.ts +55 -0
  2102. package/sdk/sessions.d.ts.map +1 -0
  2103. package/sdk/sessions.js +82 -0
  2104. package/sdk/sessions.js.map +1 -0
  2105. package/sdk/skills.d.ts +1 -1
  2106. package/sdk/skills.js +1 -1
  2107. package/sdk/traces.d.ts +1 -1
  2108. package/sdk/traces.js +1 -1
  2109. package/sdk/webhooks.d.ts +1 -1
  2110. package/sdk/webhooks.js +1 -1
  2111. package/sdk/workspacesettings.d.ts +1 -1
  2112. package/sdk/workspacesettings.js +1 -1
  2113. package/src/funcs/agentsCreate.ts +1 -1
  2114. package/src/funcs/agentsDelete.ts +1 -1
  2115. package/src/funcs/agentsList.ts +1 -1
  2116. package/src/funcs/agentsResponsesGet.ts +1 -1
  2117. package/src/funcs/agentsRetrieve.ts +1 -1
  2118. package/src/funcs/agentsStream.ts +1 -1
  2119. package/src/funcs/agentsStreamRun.ts +1 -1
  2120. package/src/funcs/agentsUpdate.ts +1 -1
  2121. package/src/funcs/annotationQueuesAddItems.ts +5 -4
  2122. package/src/funcs/annotationQueuesClear.ts +6 -6
  2123. package/src/funcs/annotationQueuesDelete.ts +6 -6
  2124. package/src/funcs/annotationQueuesRemoveItems.ts +6 -6
  2125. package/src/funcs/budgetsCreate.ts +1 -1
  2126. package/src/funcs/budgetsDelete.ts +1 -1
  2127. package/src/funcs/budgetsGet.ts +1 -1
  2128. package/src/funcs/budgetsList.ts +1 -1
  2129. package/src/funcs/budgetsResetConsumption.ts +1 -1
  2130. package/src/funcs/budgetsUpdate.ts +1 -1
  2131. package/src/funcs/datasetsCreateDatapoint.ts +10 -1
  2132. package/src/funcs/datasetsList.ts +1 -0
  2133. package/src/funcs/deploymentsInvoke.ts +170 -0
  2134. package/src/funcs/deploymentsStream.ts +180 -0
  2135. package/src/funcs/evalsAll.ts +14 -6
  2136. package/src/funcs/evalsCreate.ts +35 -10
  2137. package/src/funcs/evalsDelete.ts +19 -6
  2138. package/src/funcs/evalsGet.ts +14 -6
  2139. package/src/funcs/evalsGetVersion.ts +4 -5
  2140. package/src/funcs/evalsInvoke.ts +4 -4
  2141. package/src/funcs/evalsUpdate.ts +14 -6
  2142. package/src/funcs/hubGet.ts +168 -0
  2143. package/src/funcs/hubSearch.ts +169 -0
  2144. package/src/funcs/knowledgeCreate.ts +1 -1
  2145. package/src/funcs/knowledgeDelete.ts +1 -1
  2146. package/src/funcs/knowledgeList.ts +1 -1
  2147. package/src/funcs/knowledgePreviewChunks.ts +179 -0
  2148. package/src/funcs/knowledgeRetrieve.ts +1 -1
  2149. package/src/funcs/knowledgeRetrieveFileUrl.ts +1 -1
  2150. package/src/funcs/knowledgeSearch.ts +1 -1
  2151. package/src/funcs/knowledgeUpdate.ts +1 -1
  2152. package/src/funcs/logsListFacets.ts +8 -17
  2153. package/src/funcs/modelsAzureFoundryDeployments.ts +1 -1
  2154. package/src/funcs/modelsCreate.ts +1 -1
  2155. package/src/funcs/modelsCreateAwsBedrock.ts +1 -1
  2156. package/src/funcs/modelsCreateOpenaiLike.ts +1 -1
  2157. package/src/funcs/modelsCreateVertex.ts +1 -1
  2158. package/src/funcs/modelsImportLitellm.ts +1 -1
  2159. package/src/funcs/modelsListLitellm.ts +1 -1
  2160. package/src/funcs/modelsUpdate.ts +1 -1
  2161. package/src/funcs/modelsUpdateAwsBedrock.ts +1 -1
  2162. package/src/funcs/modelsUpdateOpenaiLike.ts +1 -1
  2163. package/src/funcs/modelsValidate.ts +1 -1
  2164. package/src/funcs/modelsValidateAwsBedrock.ts +1 -1
  2165. package/src/funcs/piiCapabilities.ts +144 -0
  2166. package/src/funcs/projectsCreate.ts +1 -1
  2167. package/src/funcs/projectsDelete.ts +1 -1
  2168. package/src/funcs/projectsUpdate.ts +1 -1
  2169. package/src/funcs/reportingQuery.ts +1 -1
  2170. package/src/funcs/sessionsCreate.ts +162 -0
  2171. package/src/funcs/sessionsDelete.ts +168 -0
  2172. package/src/funcs/sessionsGet.ts +168 -0
  2173. package/src/funcs/sessionsGetCount.ts +162 -0
  2174. package/src/funcs/sessionsList.ts +162 -0
  2175. package/src/funcs/sessionsListTags.ts +144 -0
  2176. package/src/funcs/sessionsUpdate.ts +171 -0
  2177. package/src/funcs/skillsUpdate.ts +1 -1
  2178. package/src/funcs/tracesAggregate.ts +1 -1
  2179. package/src/funcs/webhooksGet.ts +1 -1
  2180. package/src/funcs/workspaceSettingsUpdate.ts +1 -1
  2181. package/src/lib/config.ts +3 -3
  2182. package/src/models/components/agentresponserequest.ts +31 -22
  2183. package/src/models/components/agentstartedstreamingevent.ts +11 -1
  2184. package/src/models/components/agentthoughtstreamingevent.ts +55 -43
  2185. package/src/models/components/aggregatelogsrequest.ts +3 -3
  2186. package/src/models/components/auditlogfilter.ts +1 -1
  2187. package/src/models/components/budgetlimit.ts +11 -9
  2188. package/src/models/components/capabilitiesresponse.ts +96 -0
  2189. package/src/models/components/chatkitresource.ts +45 -0
  2190. package/src/models/components/chatkitresources.ts +36 -0
  2191. package/src/models/components/chunkingconfiguration.ts +472 -4
  2192. package/src/models/components/createmcpgatewayrequest.ts +11 -0
  2193. package/src/models/components/createthreadrequest.ts +91 -0
  2194. package/src/models/components/datasourcesservicepreviewchunksrequest.ts +48 -0
  2195. package/src/models/components/datasourcesservicepreviewchunksresponse.ts +44 -0
  2196. package/src/models/components/detectrequest.ts +48 -0
  2197. package/src/models/components/entitylist.ts +37 -0
  2198. package/src/models/components/evaluationcontext.ts +4 -20
  2199. package/src/models/components/evaluationresult.ts +7 -11
  2200. package/src/models/components/evaluatorresponsefunction.ts +928 -0
  2201. package/src/models/components/evaluatorresponsehttp.ts +77 -0
  2202. package/src/models/components/evaluatorresponsejsonschema.ts +60 -0
  2203. package/src/models/components/evaluatorresponsellm.ts +310 -0
  2204. package/src/models/components/evaluatorresponsepython.ts +60 -0
  2205. package/src/models/components/evaluatorresponseragas.ts +84 -0
  2206. package/src/models/components/evaluatorresponsetypescript.ts +60 -0
  2207. package/src/models/components/filter.ts +7 -9
  2208. package/src/models/components/gethubitemresponse.ts +37 -0
  2209. package/src/models/components/getthreadcountrequest.ts +42 -0
  2210. package/src/models/components/getthreadcountresponse.ts +31 -0
  2211. package/src/models/components/getuploadfileurlresponse.ts +5 -0
  2212. package/src/models/components/guardrailruleplugin.ts +27 -0
  2213. package/src/models/components/hubitem.ts +136 -0
  2214. package/src/models/components/hubitemsummary.ts +60 -0
  2215. package/src/models/components/hubsearchhit.ts +35 -0
  2216. package/src/models/components/index.ts +37 -12
  2217. package/src/models/components/invokedeploymentrequest.ts +3444 -0
  2218. package/src/models/components/invokeevaluatorrequest.ts +6 -29
  2219. package/src/models/components/listlogfacetsrequest.ts +61 -0
  2220. package/src/models/components/listthreadsrequest.ts +42 -0
  2221. package/src/models/components/listthreadsresponse.ts +41 -0
  2222. package/src/models/components/managementkey.ts +3 -4
  2223. package/src/models/components/mcpgateway.ts +9 -0
  2224. package/src/models/components/mcpgatewayplugin.ts +83 -0
  2225. package/src/models/components/memorystoreembeddingconfig.ts +1 -1
  2226. package/src/models/components/modelmetadata.ts +6 -0
  2227. package/src/models/components/modelsconfig.ts +11 -10
  2228. package/src/models/components/monitorfilter.ts +19 -7
  2229. package/src/models/components/openaipromptcacheoptions.ts +84 -0
  2230. package/src/models/components/piiredactionconfig.ts +22 -0
  2231. package/src/models/components/piiredactionplugin.ts +143 -0
  2232. package/src/models/components/previewchunk.ts +38 -0
  2233. package/src/models/components/previewchunksmetadata.ts +51 -0
  2234. package/src/models/components/publicplugin.ts +17 -21
  2235. package/src/models/components/publicresponseresource.ts +7 -0
  2236. package/src/models/components/reasoningpart.ts +1 -1
  2237. package/src/models/components/redactrequest.ts +52 -0
  2238. package/src/models/components/responsehealingplugin.ts +4 -27
  2239. package/src/models/components/responsemeta.ts +6 -7
  2240. package/src/models/components/routingruleplugin.ts +27 -0
  2241. package/src/models/components/searchhubitemsresponse.ts +32 -0
  2242. package/src/models/components/searchknowledgematch.ts +1 -4
  2243. package/src/models/components/searchknowledgerequest.ts +684 -473
  2244. package/src/models/components/searchretrievalconfig.ts +1 -1
  2245. package/src/models/components/sessioninterval.ts +26 -0
  2246. package/src/models/components/skill.ts +2 -3
  2247. package/src/models/components/spansummary.ts +21 -0
  2248. package/src/models/components/textcontentpartschema.ts +13 -8
  2249. package/src/models/components/thread.ts +101 -0
  2250. package/src/models/components/threadbilling.ts +68 -0
  2251. package/src/models/components/threadfilters.ts +66 -0
  2252. package/src/models/components/threadkind.ts +20 -0
  2253. package/src/models/components/threadusage.ts +68 -0
  2254. package/src/models/components/toolexecutionfailedstreamingevent.ts +1 -0
  2255. package/src/models/components/toolexecutionfinishedstreamingevent.ts +1 -0
  2256. package/src/models/components/toolexecutionstartedstreamingevent.ts +1 -0
  2257. package/src/models/components/tracescrubbingplugin.ts +4 -24
  2258. package/src/models/components/traceusage.ts +3 -0
  2259. package/src/models/components/updatemcpgatewayrequest.ts +11 -0
  2260. package/src/models/components/updatememorystorerequest.ts +11 -0
  2261. package/src/models/components/updateskillrequest.ts +1 -1
  2262. package/src/models/components/updatethreadrequest.ts +105 -0
  2263. package/src/models/components/updateworkspacerequest.ts +9 -0
  2264. package/src/models/components/updateworkspacesettingsrequest.ts +3 -3
  2265. package/src/models/components/upsertchunk.ts +11 -0
  2266. package/src/models/components/value.ts +4 -0
  2267. package/src/models/components/webhook.ts +2 -2
  2268. package/src/models/errors/createeval.ts +51 -0
  2269. package/src/models/errors/deleteeval.ts +96 -0
  2270. package/src/models/errors/geteval.ts +51 -0
  2271. package/src/models/errors/getevals.ts +51 -0
  2272. package/src/models/errors/index.ts +5 -0
  2273. package/src/models/errors/updateeval.ts +51 -0
  2274. package/src/models/operations/budgetlist.ts +2 -3
  2275. package/src/models/operations/createagentrequest.ts +86 -88
  2276. package/src/models/operations/createchatcompletion.ts +336 -279
  2277. package/src/models/operations/createcompletion.ts +7 -55
  2278. package/src/models/operations/createdataset.ts +1 -1
  2279. package/src/models/operations/createdatasetitem.ts +5 -5
  2280. package/src/models/operations/createeval.ts +650 -3
  2281. package/src/models/operations/createimage.ts +3 -51
  2282. package/src/models/operations/createimageedit.ts +1 -1
  2283. package/src/models/operations/createprompt.ts +40 -51
  2284. package/src/models/operations/creatererank.ts +3 -51
  2285. package/src/models/operations/createrouterresponse.ts +128 -9
  2286. package/src/models/operations/createtool.ts +13 -11
  2287. package/src/models/operations/deletesession.ts +36 -0
  2288. package/src/models/operations/deploymentgetconfig.ts +1631 -1141
  2289. package/src/models/operations/deploymentinvoke.ts +732 -0
  2290. package/src/models/operations/deployments.ts +46 -42
  2291. package/src/models/operations/deploymentstream.ts +4102 -0
  2292. package/src/models/operations/getallprompts.ts +14 -18
  2293. package/src/models/operations/getalltools.ts +4 -4
  2294. package/src/models/operations/geteval.ts +2773 -0
  2295. package/src/models/operations/getevals.ts +123 -5
  2296. package/src/models/operations/getevalversion.ts +25 -0
  2297. package/src/models/operations/getoneprompt.ts +14 -18
  2298. package/src/models/operations/getpromptversion.ts +14 -18
  2299. package/src/models/operations/getsession.ts +36 -0
  2300. package/src/models/operations/getv2humanevalsets.ts +2 -2
  2301. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  2302. package/src/models/operations/hubget.ts +27 -0
  2303. package/src/models/operations/hubsearch.ts +34 -0
  2304. package/src/models/operations/index.ts +8 -1
  2305. package/src/models/operations/listagents.ts +37 -35
  2306. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  2307. package/src/models/operations/listdatasets.ts +8 -1
  2308. package/src/models/operations/listdatasources.ts +1 -1
  2309. package/src/models/operations/listpromptversions.ts +14 -18
  2310. package/src/models/operations/modelcreateawsbedrock.ts +8 -0
  2311. package/src/models/operations/modelcreateopenailike.ts +8 -0
  2312. package/src/models/operations/modelupdateawsbedrock.ts +8 -0
  2313. package/src/models/operations/modelupdateopenailike.ts +8 -0
  2314. package/src/models/operations/parse.ts +3 -3
  2315. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  2316. package/src/models/operations/postv2feedback.ts +2 -0
  2317. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  2318. package/src/models/operations/postv2feedbackremove.ts +2 -0
  2319. package/src/models/operations/postv2humanevalsets.ts +2 -2
  2320. package/src/models/operations/postv2routerocr.ts +36 -0
  2321. package/src/models/operations/previewdatasourcechunks.ts +47 -0
  2322. package/src/models/operations/retrieveagentrequest.ts +37 -35
  2323. package/src/models/operations/retrievedatapoint.ts +5 -5
  2324. package/src/models/operations/retrievedataset.ts +1 -1
  2325. package/src/models/operations/retrieveresponse.ts +5 -0
  2326. package/src/models/operations/retrievetool.ts +4 -4
  2327. package/src/models/operations/runagent.ts +50 -54
  2328. package/src/models/operations/streamrunagent.ts +50 -54
  2329. package/src/models/operations/updateagent.ts +86 -88
  2330. package/src/models/operations/updatedatapoint.ts +5 -5
  2331. package/src/models/operations/updatedataset.ts +1 -1
  2332. package/src/models/operations/updateeval.ts +415 -6
  2333. package/src/models/operations/updateprompt.ts +33 -45
  2334. package/src/models/operations/updatesession.ts +41 -0
  2335. package/src/models/operations/updatetool.ts +4 -4
  2336. package/src/sdk/annotationqueues.ts +4 -4
  2337. package/src/sdk/budgets.ts +6 -6
  2338. package/src/sdk/deployments.ts +38 -0
  2339. package/src/sdk/evals.ts +8 -8
  2340. package/src/sdk/hub.ts +46 -0
  2341. package/src/sdk/knowledge.ts +18 -0
  2342. package/src/sdk/logs.ts +2 -2
  2343. package/src/sdk/pii.ts +16 -0
  2344. package/src/sdk/projects.ts +3 -3
  2345. package/src/sdk/reporting.ts +1 -1
  2346. package/src/sdk/sdk.ts +27 -15
  2347. package/src/sdk/sessions.ts +134 -0
  2348. package/src/sdk/skills.ts +1 -1
  2349. package/src/sdk/traces.ts +1 -1
  2350. package/src/sdk/webhooks.ts +1 -1
  2351. package/src/sdk/workspacesettings.ts +1 -1
  2352. package/examples/deploymentsList.example.ts +0 -26
  2353. package/models/components/addannotationqueueitemsresponse.d.ts +0 -14
  2354. package/models/components/addannotationqueueitemsresponse.d.ts.map +0 -1
  2355. package/models/components/addannotationqueueitemsresponse.js.map +0 -1
  2356. package/models/components/clearannotationqueueresponse.d.ts +0 -8
  2357. package/models/components/clearannotationqueueresponse.d.ts.map +0 -1
  2358. package/models/components/clearannotationqueueresponse.js.map +0 -1
  2359. package/models/components/deleteannotationqueueresponse.d.ts +0 -8
  2360. package/models/components/deleteannotationqueueresponse.d.ts.map +0 -1
  2361. package/models/components/deleteannotationqueueresponse.js.map +0 -1
  2362. package/models/components/deleteevaluatorresponse.d.ts +0 -8
  2363. package/models/components/deleteevaluatorresponse.d.ts.map +0 -1
  2364. package/models/components/deleteevaluatorresponse.js.map +0 -1
  2365. package/models/components/evaluatordocumentresponse.d.ts +0 -14
  2366. package/models/components/evaluatordocumentresponse.d.ts.map +0 -1
  2367. package/models/components/evaluatordocumentresponse.js.map +0 -1
  2368. package/models/components/getevaluatorversionresponse.d.ts +0 -20
  2369. package/models/components/getevaluatorversionresponse.d.ts.map +0 -1
  2370. package/models/components/getevaluatorversionresponse.js.map +0 -1
  2371. package/models/components/invokeevaluatorresponse.d.ts +0 -23
  2372. package/models/components/invokeevaluatorresponse.d.ts.map +0 -1
  2373. package/models/components/invokeevaluatorresponse.js.map +0 -1
  2374. package/models/components/listevaluatorsresponse.d.ts +0 -16
  2375. package/models/components/listevaluatorsresponse.d.ts.map +0 -1
  2376. package/models/components/listevaluatorsresponse.js.map +0 -1
  2377. package/models/components/piiredactionpluginauto.d.ts +0 -126
  2378. package/models/components/piiredactionpluginauto.d.ts.map +0 -1
  2379. package/models/components/piiredactionpluginauto.js +0 -156
  2380. package/models/components/piiredactionpluginauto.js.map +0 -1
  2381. package/models/components/piiredactionpluginen.d.ts +0 -145
  2382. package/models/components/piiredactionpluginen.d.ts.map +0 -1
  2383. package/models/components/piiredactionpluginen.js +0 -167
  2384. package/models/components/piiredactionpluginen.js.map +0 -1
  2385. package/models/components/piiredactionpluginnl.d.ts +0 -137
  2386. package/models/components/piiredactionpluginnl.d.ts.map +0 -1
  2387. package/models/components/piiredactionpluginnl.js +0 -158
  2388. package/models/components/piiredactionpluginnl.js.map +0 -1
  2389. package/models/components/removeannotationqueueitemsresponse.d.ts +0 -8
  2390. package/models/components/removeannotationqueueitemsresponse.d.ts.map +0 -1
  2391. package/models/components/removeannotationqueueitemsresponse.js.map +0 -1
  2392. package/models/operations/listlogfacets.d.ts.map +0 -1
  2393. package/models/operations/listlogfacets.js.map +0 -1
  2394. package/src/models/components/addannotationqueueitemsresponse.ts +0 -38
  2395. package/src/models/components/evaluatordocumentresponse.ts +0 -50
  2396. package/src/models/components/getevaluatorversionresponse.ts +0 -58
  2397. package/src/models/components/invokeevaluatorresponse.ts +0 -47
  2398. package/src/models/components/listevaluatorsresponse.ts +0 -59
  2399. package/src/models/components/piiredactionpluginauto.ts +0 -185
  2400. package/src/models/components/piiredactionpluginen.ts +0 -222
  2401. package/src/models/components/piiredactionpluginnl.ts +0 -218
  2402. package/src/models/components/removeannotationqueueitemsresponse.ts +0 -28
@@ -0,0 +1,4902 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type RunAgentResponseFormatAgentsJsonSchema = {
14
+ /**
15
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
16
+ */
17
+ description?: string | undefined;
18
+ /**
19
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
20
+ */
21
+ name: string;
22
+ /**
23
+ * The schema for the response format, described as a JSON Schema object.
24
+ */
25
+ schema?: any | undefined;
26
+ /**
27
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
28
+ */
29
+ strict?: boolean | undefined;
30
+ };
31
+
32
+ /**
33
+ * @remarks
34
+ *
35
+ * JSON Schema response format. Used to generate structured JSON responses
36
+ */
37
+ export type RunAgentResponseFormatJSONSchema = {
38
+ type: "json_schema";
39
+ jsonSchema: RunAgentResponseFormatAgentsJsonSchema;
40
+ };
41
+
42
+ /**
43
+ * @remarks
44
+ *
45
+ * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
46
+ */
47
+ export type RunAgentResponseFormatJSONObject = {
48
+ type: "json_object";
49
+ };
50
+
51
+ /**
52
+ * @remarks
53
+ *
54
+ * Default response format. Used to generate text responses
55
+ */
56
+ export type RunAgentResponseFormatText = {
57
+ type: "text";
58
+ };
59
+
60
+ /**
61
+ * An object specifying the format that the model must output
62
+ */
63
+ export type RunAgentModelConfigurationResponseFormat =
64
+ | RunAgentResponseFormatText
65
+ | RunAgentResponseFormatJSONObject
66
+ | RunAgentResponseFormatJSONSchema;
67
+
68
+ /**
69
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
70
+ *
71
+ * @remarks
72
+ *
73
+ * - `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.
74
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
75
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
76
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
77
+ *
78
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
79
+ */
80
+ export const RunAgentModelConfigurationReasoningEffort = {
81
+ None: "none",
82
+ Minimal: "minimal",
83
+ Low: "low",
84
+ Medium: "medium",
85
+ High: "high",
86
+ Xhigh: "xhigh",
87
+ Max: "max",
88
+ } as const;
89
+ /**
90
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
91
+ *
92
+ * @remarks
93
+ *
94
+ * - `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.
95
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
96
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
97
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
98
+ *
99
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
100
+ */
101
+ export type RunAgentModelConfigurationReasoningEffort = ClosedEnum<
102
+ typeof RunAgentModelConfigurationReasoningEffort
103
+ >;
104
+
105
+ /**
106
+ * Up to 4 sequences where the API will stop generating further tokens.
107
+ */
108
+ export type RunAgentModelConfigurationStop = string | Array<string>;
109
+
110
+ export type RunAgentModelConfigurationThinking =
111
+ | components.ThinkingConfigDisabledSchema
112
+ | components.ThinkingConfigEnabledSchema
113
+ | components.ThinkingConfigAdaptiveSchema;
114
+
115
+ /**
116
+ * The type of the tool. Currently, only function is supported.
117
+ */
118
+ export const RunAgentToolChoiceType = {
119
+ Function: "function",
120
+ } as const;
121
+ /**
122
+ * The type of the tool. Currently, only function is supported.
123
+ */
124
+ export type RunAgentToolChoiceType = ClosedEnum<typeof RunAgentToolChoiceType>;
125
+
126
+ export type RunAgentToolChoiceFunction = {
127
+ /**
128
+ * The name of the function to call.
129
+ */
130
+ name: string;
131
+ };
132
+
133
+ export type RunAgentToolChoice2 = {
134
+ /**
135
+ * The type of the tool. Currently, only function is supported.
136
+ */
137
+ type?: RunAgentToolChoiceType | undefined;
138
+ function: RunAgentToolChoiceFunction;
139
+ };
140
+
141
+ export const RunAgentToolChoice1 = {
142
+ None: "none",
143
+ Auto: "auto",
144
+ Required: "required",
145
+ } as const;
146
+ export type RunAgentToolChoice1 = ClosedEnum<typeof RunAgentToolChoice1>;
147
+
148
+ /**
149
+ * Controls which (if any) tool is called by the model.
150
+ */
151
+ export type RunAgentModelConfigurationToolChoice =
152
+ | RunAgentToolChoice2
153
+ | RunAgentToolChoice1;
154
+
155
+ export const RunAgentModelConfigurationModalities = {
156
+ Text: "text",
157
+ Audio: "audio",
158
+ } as const;
159
+ export type RunAgentModelConfigurationModalities = ClosedEnum<
160
+ typeof RunAgentModelConfigurationModalities
161
+ >;
162
+
163
+ /**
164
+ * The key of the guardrail.
165
+ */
166
+ export const RunAgentId1 = {
167
+ OrqPiiDetection: "orq_pii_detection",
168
+ OrqSecretDetection: "orq_secret_detection",
169
+ OrqSexualModeration: "orq_sexual_moderation",
170
+ OrqHarmfulModeration: "orq_harmful_moderation",
171
+ } as const;
172
+ /**
173
+ * The key of the guardrail.
174
+ */
175
+ export type RunAgentId1 = ClosedEnum<typeof RunAgentId1>;
176
+
177
+ export type RunAgentModelConfigurationId = RunAgentId1 | string;
178
+
179
+ /**
180
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
181
+ */
182
+ export const RunAgentModelConfigurationExecuteOn = {
183
+ Input: "input",
184
+ Output: "output",
185
+ } as const;
186
+ /**
187
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
188
+ */
189
+ export type RunAgentModelConfigurationExecuteOn = ClosedEnum<
190
+ typeof RunAgentModelConfigurationExecuteOn
191
+ >;
192
+
193
+ export type RunAgentModelConfigurationGuardrails = {
194
+ id: RunAgentId1 | string;
195
+ /**
196
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
197
+ */
198
+ executeOn: RunAgentModelConfigurationExecuteOn;
199
+ };
200
+
201
+ export type RunAgentModelConfigurationPlugins =
202
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
203
+ | components.ResponseHealingPlugin
204
+ | components.TraceScrubbingPlugin;
205
+
206
+ export type RunAgentModelConfigurationFallbacks = {
207
+ /**
208
+ * Fallback model identifier
209
+ */
210
+ model: string;
211
+ };
212
+
213
+ export const RunAgentModelConfigurationType = {
214
+ ExactMatch: "exact_match",
215
+ } as const;
216
+ export type RunAgentModelConfigurationType = ClosedEnum<
217
+ typeof RunAgentModelConfigurationType
218
+ >;
219
+
220
+ /**
221
+ * Cache configuration for the request.
222
+ */
223
+ export type RunAgentModelConfigurationCache = {
224
+ /**
225
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
226
+ */
227
+ ttl?: number | undefined;
228
+ type: RunAgentModelConfigurationType;
229
+ };
230
+
231
+ export const RunAgentLoadBalancerType = {
232
+ WeightBased: "weight_based",
233
+ } as const;
234
+ export type RunAgentLoadBalancerType = ClosedEnum<
235
+ typeof RunAgentLoadBalancerType
236
+ >;
237
+
238
+ export type RunAgentLoadBalancerModels = {
239
+ /**
240
+ * Model identifier for load balancing
241
+ */
242
+ model: string;
243
+ /**
244
+ * Weight assigned to this model for load balancing
245
+ */
246
+ weight?: number | undefined;
247
+ };
248
+
249
+ export type RunAgentLoadBalancer1 = {
250
+ type: RunAgentLoadBalancerType;
251
+ models: Array<RunAgentLoadBalancerModels>;
252
+ };
253
+
254
+ /**
255
+ * Load balancer configuration for the request.
256
+ */
257
+ export type RunAgentModelConfigurationLoadBalancer = RunAgentLoadBalancer1;
258
+
259
+ /**
260
+ * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
261
+ */
262
+ export type RunAgentModelConfigurationTimeout = {
263
+ /**
264
+ * Timeout value in milliseconds
265
+ */
266
+ callTimeout: number;
267
+ };
268
+
269
+ /**
270
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
271
+ */
272
+ export const RunAgentModelConfigurationAgentsType = {
273
+ Ephemeral: "ephemeral",
274
+ } as const;
275
+ /**
276
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
277
+ */
278
+ export type RunAgentModelConfigurationAgentsType = ClosedEnum<
279
+ typeof RunAgentModelConfigurationAgentsType
280
+ >;
281
+
282
+ /**
283
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
284
+ *
285
+ * @remarks
286
+ *
287
+ * - `5m`: 5 minutes
288
+ * - `1h`: 1 hour
289
+ *
290
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
291
+ */
292
+ export const RunAgentModelConfigurationTtl = {
293
+ Fivem: "5m",
294
+ Oneh: "1h",
295
+ } as const;
296
+ /**
297
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
298
+ *
299
+ * @remarks
300
+ *
301
+ * - `5m`: 5 minutes
302
+ * - `1h`: 1 hour
303
+ *
304
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
305
+ */
306
+ export type RunAgentModelConfigurationTtl = ClosedEnum<
307
+ typeof RunAgentModelConfigurationTtl
308
+ >;
309
+
310
+ /**
311
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
312
+ */
313
+ export type RunAgentModelConfigurationCacheControl = {
314
+ /**
315
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
316
+ */
317
+ type: RunAgentModelConfigurationAgentsType;
318
+ /**
319
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
320
+ *
321
+ * @remarks
322
+ *
323
+ * - `5m`: 5 minutes
324
+ * - `1h`: 1 hour
325
+ *
326
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
327
+ */
328
+ ttl?: RunAgentModelConfigurationTtl | undefined;
329
+ };
330
+
331
+ /**
332
+ * 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.
333
+ */
334
+ export type RunAgentModelConfigurationParameters = {
335
+ /**
336
+ * The name to display on the trace. If not specified, the default system name will be used.
337
+ */
338
+ name?: string | undefined;
339
+ /**
340
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
341
+ */
342
+ frequencyPenalty?: number | null | undefined;
343
+ /**
344
+ * `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
345
+ *
346
+ * @remarks
347
+ *
348
+ * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
349
+ */
350
+ maxTokens?: number | null | undefined;
351
+ /**
352
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
353
+ */
354
+ maxCompletionTokens?: number | null | undefined;
355
+ /**
356
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
357
+ */
358
+ presencePenalty?: number | null | undefined;
359
+ /**
360
+ * An object specifying the format that the model must output
361
+ */
362
+ responseFormat?:
363
+ | RunAgentResponseFormatText
364
+ | RunAgentResponseFormatJSONObject
365
+ | RunAgentResponseFormatJSONSchema
366
+ | undefined;
367
+ /**
368
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
369
+ *
370
+ * @remarks
371
+ *
372
+ * - `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.
373
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
374
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
375
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
376
+ *
377
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
378
+ */
379
+ reasoningEffort?: RunAgentModelConfigurationReasoningEffort | undefined;
380
+ /**
381
+ * Adjusts response verbosity. Lower levels yield shorter answers.
382
+ */
383
+ verbosity?: string | undefined;
384
+ /**
385
+ * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
386
+ */
387
+ seed?: number | null | undefined;
388
+ /**
389
+ * Up to 4 sequences where the API will stop generating further tokens.
390
+ */
391
+ stop?: string | Array<string> | null | undefined;
392
+ thinking?:
393
+ | components.ThinkingConfigDisabledSchema
394
+ | components.ThinkingConfigEnabledSchema
395
+ | components.ThinkingConfigAdaptiveSchema
396
+ | undefined;
397
+ /**
398
+ * 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.
399
+ */
400
+ temperature?: number | null | undefined;
401
+ /**
402
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
403
+ */
404
+ topP?: number | null | undefined;
405
+ /**
406
+ * Limits the model to consider only the top k most likely tokens at each step.
407
+ */
408
+ topK?: number | null | undefined;
409
+ /**
410
+ * Controls which (if any) tool is called by the model.
411
+ */
412
+ toolChoice?: RunAgentToolChoice2 | RunAgentToolChoice1 | undefined;
413
+ /**
414
+ * Whether to enable parallel function calling during tool use.
415
+ */
416
+ parallelToolCalls?: boolean | undefined;
417
+ /**
418
+ * 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"].
419
+ */
420
+ modalities?: Array<RunAgentModelConfigurationModalities> | null | undefined;
421
+ /**
422
+ * A list of guardrails to apply to the request.
423
+ */
424
+ guardrails?: Array<RunAgentModelConfigurationGuardrails> | undefined;
425
+ /**
426
+ * Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
427
+ */
428
+ plugins?:
429
+ | Array<
430
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
431
+ | components.ResponseHealingPlugin
432
+ | components.TraceScrubbingPlugin
433
+ >
434
+ | undefined;
435
+ /**
436
+ * Array of fallback models to use if primary model fails
437
+ */
438
+ fallbacks?: Array<RunAgentModelConfigurationFallbacks> | undefined;
439
+ /**
440
+ * Cache configuration for the request.
441
+ */
442
+ cache?: RunAgentModelConfigurationCache | undefined;
443
+ /**
444
+ * Load balancer configuration for the request.
445
+ */
446
+ loadBalancer?: RunAgentLoadBalancer1 | undefined;
447
+ /**
448
+ * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
449
+ */
450
+ timeout?: RunAgentModelConfigurationTimeout | undefined;
451
+ /**
452
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
453
+ */
454
+ cacheControl?: RunAgentModelConfigurationCacheControl | undefined;
455
+ /**
456
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
457
+ */
458
+ promptCacheKey?: string | undefined;
459
+ };
460
+
461
+ /**
462
+ * Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
463
+ */
464
+ export type RunAgentModelConfigurationRetry = {
465
+ /**
466
+ * Number of retry attempts (1-5)
467
+ */
468
+ count?: number | undefined;
469
+ /**
470
+ * HTTP status codes that trigger retry logic
471
+ */
472
+ onCodes?: Array<number> | undefined;
473
+ };
474
+
475
+ /**
476
+ * @remarks
477
+ *
478
+ * Model configuration with parameters and retry settings.
479
+ */
480
+ export type RunAgentModelConfiguration2 = {
481
+ /**
482
+ * A model ID string (e.g., `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`). Only models that support tool calling can be used with agents.
483
+ */
484
+ id: string;
485
+ /**
486
+ * 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.
487
+ */
488
+ parameters?: RunAgentModelConfigurationParameters | undefined;
489
+ /**
490
+ * Retry configuration for model requests. Retries are triggered for specific HTTP status codes (e.g., 500, 429, 502, 503, 504). Supports configurable retry count (1-5) and custom status codes.
491
+ */
492
+ retry?: RunAgentModelConfigurationRetry | undefined;
493
+ };
494
+
495
+ /**
496
+ * Model configuration for this execution. Can override the agent manifest defaults if the agent already exists.
497
+ */
498
+ export type RunAgentModelConfiguration = RunAgentModelConfiguration2 | string;
499
+
500
+ export type RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema = {
501
+ /**
502
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
503
+ */
504
+ description?: string | undefined;
505
+ /**
506
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
507
+ */
508
+ name: string;
509
+ /**
510
+ * The schema for the response format, described as a JSON Schema object.
511
+ */
512
+ schema?: any | undefined;
513
+ /**
514
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
515
+ */
516
+ strict?: boolean | undefined;
517
+ };
518
+
519
+ /**
520
+ * @remarks
521
+ *
522
+ * JSON Schema response format. Used to generate structured JSON responses
523
+ */
524
+ export type RunAgentResponseFormatAgentsRequestJSONSchema = {
525
+ type: "json_schema";
526
+ jsonSchema: RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema;
527
+ };
528
+
529
+ /**
530
+ * @remarks
531
+ *
532
+ * JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
533
+ */
534
+ export type RunAgentResponseFormatAgentsJSONObject = {
535
+ type: "json_object";
536
+ };
537
+
538
+ /**
539
+ * @remarks
540
+ *
541
+ * Default response format. Used to generate text responses
542
+ */
543
+ export type RunAgentResponseFormatAgentsText = {
544
+ type: "text";
545
+ };
546
+
547
+ /**
548
+ * An object specifying the format that the model must output
549
+ */
550
+ export type RunAgentFallbackModelConfigurationResponseFormat =
551
+ | RunAgentResponseFormatAgentsText
552
+ | RunAgentResponseFormatAgentsJSONObject
553
+ | RunAgentResponseFormatAgentsRequestJSONSchema;
554
+
555
+ /**
556
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
557
+ *
558
+ * @remarks
559
+ *
560
+ * - `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.
561
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
562
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
563
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
564
+ *
565
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
566
+ */
567
+ export const RunAgentFallbackModelConfigurationReasoningEffort = {
568
+ None: "none",
569
+ Minimal: "minimal",
570
+ Low: "low",
571
+ Medium: "medium",
572
+ High: "high",
573
+ Xhigh: "xhigh",
574
+ Max: "max",
575
+ } as const;
576
+ /**
577
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
578
+ *
579
+ * @remarks
580
+ *
581
+ * - `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.
582
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
583
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
584
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
585
+ *
586
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
587
+ */
588
+ export type RunAgentFallbackModelConfigurationReasoningEffort = ClosedEnum<
589
+ typeof RunAgentFallbackModelConfigurationReasoningEffort
590
+ >;
591
+
592
+ /**
593
+ * Up to 4 sequences where the API will stop generating further tokens.
594
+ */
595
+ export type RunAgentFallbackModelConfigurationStop = string | Array<string>;
596
+
597
+ export type RunAgentFallbackModelConfigurationThinking =
598
+ | components.ThinkingConfigDisabledSchema
599
+ | components.ThinkingConfigEnabledSchema
600
+ | components.ThinkingConfigAdaptiveSchema;
601
+
602
+ /**
603
+ * The type of the tool. Currently, only function is supported.
604
+ */
605
+ export const RunAgentToolChoiceAgentsType = {
606
+ Function: "function",
607
+ } as const;
608
+ /**
609
+ * The type of the tool. Currently, only function is supported.
610
+ */
611
+ export type RunAgentToolChoiceAgentsType = ClosedEnum<
612
+ typeof RunAgentToolChoiceAgentsType
613
+ >;
614
+
615
+ export type RunAgentToolChoiceAgentsFunction = {
616
+ /**
617
+ * The name of the function to call.
618
+ */
619
+ name: string;
620
+ };
621
+
622
+ export type RunAgentToolChoiceAgents2 = {
623
+ /**
624
+ * The type of the tool. Currently, only function is supported.
625
+ */
626
+ type?: RunAgentToolChoiceAgentsType | undefined;
627
+ function: RunAgentToolChoiceAgentsFunction;
628
+ };
629
+
630
+ export const RunAgentToolChoiceAgents1 = {
631
+ None: "none",
632
+ Auto: "auto",
633
+ Required: "required",
634
+ } as const;
635
+ export type RunAgentToolChoiceAgents1 = ClosedEnum<
636
+ typeof RunAgentToolChoiceAgents1
637
+ >;
638
+
639
+ /**
640
+ * Controls which (if any) tool is called by the model.
641
+ */
642
+ export type RunAgentFallbackModelConfigurationToolChoice =
643
+ | RunAgentToolChoiceAgents2
644
+ | RunAgentToolChoiceAgents1;
645
+
646
+ export const RunAgentFallbackModelConfigurationModalities = {
647
+ Text: "text",
648
+ Audio: "audio",
649
+ } as const;
650
+ export type RunAgentFallbackModelConfigurationModalities = ClosedEnum<
651
+ typeof RunAgentFallbackModelConfigurationModalities
652
+ >;
653
+
654
+ /**
655
+ * The key of the guardrail.
656
+ */
657
+ export const RunAgentIdAgents1 = {
658
+ OrqPiiDetection: "orq_pii_detection",
659
+ OrqSecretDetection: "orq_secret_detection",
660
+ OrqSexualModeration: "orq_sexual_moderation",
661
+ OrqHarmfulModeration: "orq_harmful_moderation",
662
+ } as const;
663
+ /**
664
+ * The key of the guardrail.
665
+ */
666
+ export type RunAgentIdAgents1 = ClosedEnum<typeof RunAgentIdAgents1>;
667
+
668
+ export type RunAgentFallbackModelConfigurationId = RunAgentIdAgents1 | string;
669
+
670
+ /**
671
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
672
+ */
673
+ export const RunAgentFallbackModelConfigurationExecuteOn = {
674
+ Input: "input",
675
+ Output: "output",
676
+ } as const;
677
+ /**
678
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
679
+ */
680
+ export type RunAgentFallbackModelConfigurationExecuteOn = ClosedEnum<
681
+ typeof RunAgentFallbackModelConfigurationExecuteOn
682
+ >;
683
+
684
+ export type RunAgentFallbackModelConfigurationGuardrails = {
685
+ id: RunAgentIdAgents1 | string;
686
+ /**
687
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
688
+ */
689
+ executeOn: RunAgentFallbackModelConfigurationExecuteOn;
690
+ };
691
+
692
+ export type RunAgentFallbackModelConfigurationPlugins =
693
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
694
+ | components.ResponseHealingPlugin
695
+ | components.TraceScrubbingPlugin;
696
+
697
+ export type RunAgentFallbackModelConfigurationFallbacks = {
698
+ /**
699
+ * Fallback model identifier
700
+ */
701
+ model: string;
702
+ };
703
+
704
+ export const RunAgentFallbackModelConfigurationType = {
705
+ ExactMatch: "exact_match",
706
+ } as const;
707
+ export type RunAgentFallbackModelConfigurationType = ClosedEnum<
708
+ typeof RunAgentFallbackModelConfigurationType
709
+ >;
710
+
711
+ /**
712
+ * Cache configuration for the request.
713
+ */
714
+ export type RunAgentFallbackModelConfigurationCache = {
715
+ /**
716
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
717
+ */
718
+ ttl?: number | undefined;
719
+ type: RunAgentFallbackModelConfigurationType;
720
+ };
721
+
722
+ export const RunAgentLoadBalancerAgentsType = {
723
+ WeightBased: "weight_based",
724
+ } as const;
725
+ export type RunAgentLoadBalancerAgentsType = ClosedEnum<
726
+ typeof RunAgentLoadBalancerAgentsType
727
+ >;
728
+
729
+ export type RunAgentLoadBalancerAgentsModels = {
730
+ /**
731
+ * Model identifier for load balancing
732
+ */
733
+ model: string;
734
+ /**
735
+ * Weight assigned to this model for load balancing
736
+ */
737
+ weight?: number | undefined;
738
+ };
739
+
740
+ export type RunAgentLoadBalancerAgents1 = {
741
+ type: RunAgentLoadBalancerAgentsType;
742
+ models: Array<RunAgentLoadBalancerAgentsModels>;
743
+ };
744
+
745
+ /**
746
+ * Load balancer configuration for the request.
747
+ */
748
+ export type RunAgentFallbackModelConfigurationLoadBalancer =
749
+ RunAgentLoadBalancerAgents1;
750
+
751
+ /**
752
+ * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
753
+ */
754
+ export type RunAgentFallbackModelConfigurationTimeout = {
755
+ /**
756
+ * Timeout value in milliseconds
757
+ */
758
+ callTimeout: number;
759
+ };
760
+
761
+ /**
762
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
763
+ */
764
+ export const RunAgentFallbackModelConfigurationAgentsType = {
765
+ Ephemeral: "ephemeral",
766
+ } as const;
767
+ /**
768
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
769
+ */
770
+ export type RunAgentFallbackModelConfigurationAgentsType = ClosedEnum<
771
+ typeof RunAgentFallbackModelConfigurationAgentsType
772
+ >;
773
+
774
+ /**
775
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
776
+ *
777
+ * @remarks
778
+ *
779
+ * - `5m`: 5 minutes
780
+ * - `1h`: 1 hour
781
+ *
782
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
783
+ */
784
+ export const RunAgentFallbackModelConfigurationTtl = {
785
+ Fivem: "5m",
786
+ Oneh: "1h",
787
+ } as const;
788
+ /**
789
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
790
+ *
791
+ * @remarks
792
+ *
793
+ * - `5m`: 5 minutes
794
+ * - `1h`: 1 hour
795
+ *
796
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
797
+ */
798
+ export type RunAgentFallbackModelConfigurationTtl = ClosedEnum<
799
+ typeof RunAgentFallbackModelConfigurationTtl
800
+ >;
801
+
802
+ /**
803
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
804
+ */
805
+ export type RunAgentFallbackModelConfigurationCacheControl = {
806
+ /**
807
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
808
+ */
809
+ type: RunAgentFallbackModelConfigurationAgentsType;
810
+ /**
811
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
812
+ *
813
+ * @remarks
814
+ *
815
+ * - `5m`: 5 minutes
816
+ * - `1h`: 1 hour
817
+ *
818
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
819
+ */
820
+ ttl?: RunAgentFallbackModelConfigurationTtl | undefined;
821
+ };
822
+
823
+ /**
824
+ * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
825
+ */
826
+ export type RunAgentFallbackModelConfigurationParameters = {
827
+ /**
828
+ * The name to display on the trace. If not specified, the default system name will be used.
829
+ */
830
+ name?: string | undefined;
831
+ /**
832
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
833
+ */
834
+ frequencyPenalty?: number | null | undefined;
835
+ /**
836
+ * `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
837
+ *
838
+ * @remarks
839
+ *
840
+ * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
841
+ */
842
+ maxTokens?: number | null | undefined;
843
+ /**
844
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
845
+ */
846
+ maxCompletionTokens?: number | null | undefined;
847
+ /**
848
+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
849
+ */
850
+ presencePenalty?: number | null | undefined;
851
+ /**
852
+ * An object specifying the format that the model must output
853
+ */
854
+ responseFormat?:
855
+ | RunAgentResponseFormatAgentsText
856
+ | RunAgentResponseFormatAgentsJSONObject
857
+ | RunAgentResponseFormatAgentsRequestJSONSchema
858
+ | undefined;
859
+ /**
860
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
861
+ *
862
+ * @remarks
863
+ *
864
+ * - `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.
865
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
866
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
867
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
868
+ *
869
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh", "max".
870
+ */
871
+ reasoningEffort?:
872
+ | RunAgentFallbackModelConfigurationReasoningEffort
873
+ | undefined;
874
+ /**
875
+ * Adjusts response verbosity. Lower levels yield shorter answers.
876
+ */
877
+ verbosity?: string | undefined;
878
+ /**
879
+ * If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
880
+ */
881
+ seed?: number | null | undefined;
882
+ /**
883
+ * Up to 4 sequences where the API will stop generating further tokens.
884
+ */
885
+ stop?: string | Array<string> | null | undefined;
886
+ thinking?:
887
+ | components.ThinkingConfigDisabledSchema
888
+ | components.ThinkingConfigEnabledSchema
889
+ | components.ThinkingConfigAdaptiveSchema
890
+ | undefined;
891
+ /**
892
+ * 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.
893
+ */
894
+ temperature?: number | null | undefined;
895
+ /**
896
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
897
+ */
898
+ topP?: number | null | undefined;
899
+ /**
900
+ * Limits the model to consider only the top k most likely tokens at each step.
901
+ */
902
+ topK?: number | null | undefined;
903
+ /**
904
+ * Controls which (if any) tool is called by the model.
905
+ */
906
+ toolChoice?:
907
+ | RunAgentToolChoiceAgents2
908
+ | RunAgentToolChoiceAgents1
909
+ | undefined;
910
+ /**
911
+ * Whether to enable parallel function calling during tool use.
912
+ */
913
+ parallelToolCalls?: boolean | undefined;
914
+ /**
915
+ * 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"].
916
+ */
917
+ modalities?:
918
+ | Array<RunAgentFallbackModelConfigurationModalities>
919
+ | null
920
+ | undefined;
921
+ /**
922
+ * A list of guardrails to apply to the request.
923
+ */
924
+ guardrails?: Array<RunAgentFallbackModelConfigurationGuardrails> | undefined;
925
+ /**
926
+ * Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
927
+ */
928
+ plugins?:
929
+ | Array<
930
+ | (components.PIIRedactionPlugin & { id: "pii_redaction" })
931
+ | components.ResponseHealingPlugin
932
+ | components.TraceScrubbingPlugin
933
+ >
934
+ | undefined;
935
+ /**
936
+ * Array of fallback models to use if primary model fails
937
+ */
938
+ fallbacks?: Array<RunAgentFallbackModelConfigurationFallbacks> | undefined;
939
+ /**
940
+ * Cache configuration for the request.
941
+ */
942
+ cache?: RunAgentFallbackModelConfigurationCache | undefined;
943
+ /**
944
+ * Load balancer configuration for the request.
945
+ */
946
+ loadBalancer?: RunAgentLoadBalancerAgents1 | undefined;
947
+ /**
948
+ * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
949
+ */
950
+ timeout?: RunAgentFallbackModelConfigurationTimeout | undefined;
951
+ /**
952
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
953
+ */
954
+ cacheControl?: RunAgentFallbackModelConfigurationCacheControl | undefined;
955
+ /**
956
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
957
+ */
958
+ promptCacheKey?: string | undefined;
959
+ };
960
+
961
+ /**
962
+ * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
963
+ */
964
+ export type RunAgentFallbackModelConfigurationRetry = {
965
+ /**
966
+ * Number of retry attempts (1-5)
967
+ */
968
+ count?: number | undefined;
969
+ /**
970
+ * HTTP status codes that trigger retry logic
971
+ */
972
+ onCodes?: Array<number> | undefined;
973
+ };
974
+
975
+ /**
976
+ * Fallback model configuration with optional parameters and retry settings.
977
+ */
978
+ export type RunAgentFallbackModelConfiguration2 = {
979
+ /**
980
+ * A fallback model ID string. Must support tool calling.
981
+ */
982
+ id: string;
983
+ /**
984
+ * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
985
+ */
986
+ parameters?: RunAgentFallbackModelConfigurationParameters | undefined;
987
+ /**
988
+ * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
989
+ */
990
+ retry?: RunAgentFallbackModelConfigurationRetry | undefined;
991
+ };
992
+
993
+ /**
994
+ * Fallback model for automatic failover when primary model request fails. Supports optional parameter overrides. Can be a simple model ID string or a configuration object with model-specific parameters. Fallbacks are tried in order.
995
+ */
996
+ export type RunAgentFallbackModelConfiguration =
997
+ | RunAgentFallbackModelConfiguration2
998
+ | string;
999
+
1000
+ /**
1001
+ * Message containing tool execution results
1002
+ */
1003
+ export const RunAgentRoleToolMessage = {
1004
+ Tool: "tool",
1005
+ } as const;
1006
+ /**
1007
+ * Message containing tool execution results
1008
+ */
1009
+ export type RunAgentRoleToolMessage = ClosedEnum<
1010
+ typeof RunAgentRoleToolMessage
1011
+ >;
1012
+
1013
+ /**
1014
+ * Message from the end user
1015
+ */
1016
+ export const RunAgentRoleUserMessage = {
1017
+ User: "user",
1018
+ } as const;
1019
+ /**
1020
+ * Message from the end user
1021
+ */
1022
+ export type RunAgentRoleUserMessage = ClosedEnum<
1023
+ typeof RunAgentRoleUserMessage
1024
+ >;
1025
+
1026
+ /**
1027
+ * Message role (user or tool for continuing executions)
1028
+ */
1029
+ export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
1030
+
1031
+ /**
1032
+ * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
1033
+ */
1034
+ export type RunAgentPublicMessagePart =
1035
+ | components.TextPart
1036
+ | components.FilePart
1037
+ | components.ToolResultPart
1038
+ | components.ErrorPart;
1039
+
1040
+ /**
1041
+ * The A2A format message containing the task for the agent to perform.
1042
+ */
1043
+ export type RunAgentA2AMessage = {
1044
+ /**
1045
+ * Optional A2A message ID in ULID format
1046
+ */
1047
+ messageId?: string | undefined;
1048
+ /**
1049
+ * Message role (user or tool for continuing executions)
1050
+ */
1051
+ role: RunAgentRoleUserMessage | RunAgentRoleToolMessage;
1052
+ /**
1053
+ * A2A message parts (text, file, or tool_result only). Note: Tool role messages must only contain tool_result parts.
1054
+ */
1055
+ parts: Array<
1056
+ | components.TextPart
1057
+ | components.FilePart
1058
+ | components.ToolResultPart
1059
+ | components.ErrorPart
1060
+ >;
1061
+ };
1062
+
1063
+ /**
1064
+ * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1065
+ */
1066
+ export type RunAgentIdentity = {
1067
+ /**
1068
+ * Unique identifier for the contact
1069
+ */
1070
+ id: string;
1071
+ /**
1072
+ * Display name of the contact
1073
+ */
1074
+ displayName?: string | undefined;
1075
+ /**
1076
+ * Email address of the contact
1077
+ */
1078
+ email?: string | undefined;
1079
+ /**
1080
+ * A hash of key/value pairs containing any other data about the contact
1081
+ */
1082
+ metadata?: Array<{ [k: string]: any }> | undefined;
1083
+ /**
1084
+ * URL to the contact's avatar or logo
1085
+ */
1086
+ logoUrl?: string | undefined;
1087
+ /**
1088
+ * A list of tags associated with the contact
1089
+ */
1090
+ tags?: Array<string> | undefined;
1091
+ };
1092
+
1093
+ /**
1094
+ * @deprecated Use identity instead. Information about the contact making the request.
1095
+ *
1096
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
1097
+ */
1098
+ export type RunAgentContact = {
1099
+ /**
1100
+ * Unique identifier for the contact
1101
+ */
1102
+ id: string;
1103
+ /**
1104
+ * Display name of the contact
1105
+ */
1106
+ displayName?: string | undefined;
1107
+ /**
1108
+ * Email address of the contact
1109
+ */
1110
+ email?: string | undefined;
1111
+ /**
1112
+ * A hash of key/value pairs containing any other data about the contact
1113
+ */
1114
+ metadata?: Array<{ [k: string]: any }> | undefined;
1115
+ /**
1116
+ * URL to the contact's avatar or logo
1117
+ */
1118
+ logoUrl?: string | undefined;
1119
+ /**
1120
+ * A list of tags associated with the contact
1121
+ */
1122
+ tags?: Array<string> | undefined;
1123
+ };
1124
+
1125
+ /**
1126
+ * Thread information to group related requests
1127
+ */
1128
+ export type RunAgentThread = {
1129
+ /**
1130
+ * Unique thread identifier to group related invocations.
1131
+ */
1132
+ id: string;
1133
+ /**
1134
+ * Optional tags to differentiate or categorize threads
1135
+ */
1136
+ tags?: Array<string> | undefined;
1137
+ };
1138
+
1139
+ /**
1140
+ * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
1141
+ */
1142
+ export type RunAgentMemory = {
1143
+ /**
1144
+ * An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
1145
+ */
1146
+ entityId: string;
1147
+ };
1148
+
1149
+ export type RunAgentKnowledgeBases = {
1150
+ /**
1151
+ * Unique identifier of the knowledge base to search
1152
+ */
1153
+ knowledgeId: string;
1154
+ };
1155
+
1156
+ export type RunAgentTeamOfAgents = {
1157
+ /**
1158
+ * The unique key of the agent within the workspace
1159
+ */
1160
+ key: string;
1161
+ /**
1162
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
1163
+ */
1164
+ role?: string | undefined;
1165
+ };
1166
+
1167
+ export type AgentToolInputRunHeaders = {
1168
+ value: string;
1169
+ encrypted?: boolean | undefined;
1170
+ };
1171
+
1172
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools20McpType =
1173
+ {
1174
+ Object: "object",
1175
+ } as const;
1176
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools20McpType =
1177
+ ClosedEnum<
1178
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools20McpType
1179
+ >;
1180
+
1181
+ export type AgentToolInputRunSchema = {
1182
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools20McpType;
1183
+ properties?: { [k: string]: any } | undefined;
1184
+ required?: Array<string> | undefined;
1185
+ };
1186
+
1187
+ export type Tools = {
1188
+ id?: string | undefined;
1189
+ name: string;
1190
+ description?: string | undefined;
1191
+ schema: AgentToolInputRunSchema;
1192
+ };
1193
+
1194
+ /**
1195
+ * The connection type used by the MCP server
1196
+ */
1197
+ export const ConnectionType = {
1198
+ Http: "http",
1199
+ Sse: "sse",
1200
+ } as const;
1201
+ /**
1202
+ * The connection type used by the MCP server
1203
+ */
1204
+ export type ConnectionType = ClosedEnum<typeof ConnectionType>;
1205
+
1206
+ export type Mcp = {
1207
+ /**
1208
+ * The MCP server URL (cached for execution)
1209
+ */
1210
+ serverUrl: string;
1211
+ /**
1212
+ * HTTP headers for MCP server requests with encryption support
1213
+ */
1214
+ headers?: { [k: string]: AgentToolInputRunHeaders } | undefined;
1215
+ /**
1216
+ * Array of tools available from the MCP server
1217
+ */
1218
+ tools: Array<Tools>;
1219
+ /**
1220
+ * The connection type used by the MCP server
1221
+ */
1222
+ connectionType: ConnectionType;
1223
+ };
1224
+
1225
+ /**
1226
+ * MCP tool with inline definition for on-the-fly creation in run endpoint
1227
+ */
1228
+ export type MCPToolRun = {
1229
+ type: "mcp";
1230
+ /**
1231
+ * Unique key of the tool as it will be displayed in the UI
1232
+ */
1233
+ key: string;
1234
+ id?: string | undefined;
1235
+ displayName?: string | undefined;
1236
+ /**
1237
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1238
+ */
1239
+ description: string;
1240
+ mcp: Mcp;
1241
+ requiresApproval?: boolean | undefined;
1242
+ };
1243
+
1244
+ /**
1245
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1246
+ */
1247
+ export type Schema = {
1248
+ /**
1249
+ * The JSON Schema type
1250
+ */
1251
+ type: string;
1252
+ /**
1253
+ * The properties of the JSON Schema object
1254
+ */
1255
+ properties: { [k: string]: any };
1256
+ /**
1257
+ * Array of required property names
1258
+ */
1259
+ required: Array<string>;
1260
+ additionalProperties?: { [k: string]: any } | undefined;
1261
+ };
1262
+
1263
+ export type AgentToolInputRunJsonSchema = {
1264
+ /**
1265
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1266
+ */
1267
+ name: string;
1268
+ /**
1269
+ * A description of what the response format is for. This will be shown to the user.
1270
+ */
1271
+ description: string;
1272
+ /**
1273
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1274
+ */
1275
+ schema: Schema;
1276
+ /**
1277
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
1278
+ */
1279
+ strict?: boolean | undefined;
1280
+ };
1281
+
1282
+ /**
1283
+ * JSON Schema tool with inline definition for on-the-fly creation in run endpoint
1284
+ */
1285
+ export type JSONSchemaToolRun = {
1286
+ type: "json_schema";
1287
+ /**
1288
+ * Unique key of the tool as it will be displayed in the UI
1289
+ */
1290
+ key: string;
1291
+ id?: string | undefined;
1292
+ displayName?: string | undefined;
1293
+ /**
1294
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1295
+ */
1296
+ description: string;
1297
+ jsonSchema: AgentToolInputRunJsonSchema;
1298
+ requiresApproval?: boolean | undefined;
1299
+ };
1300
+
1301
+ /**
1302
+ * The type must be "object"
1303
+ */
1304
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = {
1305
+ Object: "object",
1306
+ } as const;
1307
+ /**
1308
+ * The type must be "object"
1309
+ */
1310
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
1311
+ ClosedEnum<
1312
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
1313
+ >;
1314
+
1315
+ /**
1316
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1317
+ */
1318
+ export type RunAgentAgentToolInputRunParameters = {
1319
+ /**
1320
+ * The type must be "object"
1321
+ */
1322
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
1323
+ /**
1324
+ * The properties of the function parameters
1325
+ */
1326
+ properties: { [k: string]: any };
1327
+ /**
1328
+ * Array of required parameter names
1329
+ */
1330
+ required: Array<string>;
1331
+ additionalProperties?: { [k: string]: any } | undefined;
1332
+ };
1333
+
1334
+ export type AgentToolInputRunFunction = {
1335
+ /**
1336
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1337
+ */
1338
+ name: string;
1339
+ /**
1340
+ * A description of what the function does, used by the model to choose when and how to call the function.
1341
+ */
1342
+ description?: string | undefined;
1343
+ /**
1344
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
1345
+ */
1346
+ strict?: boolean | undefined;
1347
+ /**
1348
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1349
+ */
1350
+ parameters?: RunAgentAgentToolInputRunParameters | undefined;
1351
+ };
1352
+
1353
+ /**
1354
+ * Function tool with inline definition for on-the-fly creation in run endpoint
1355
+ */
1356
+ export type FunctionToolRun = {
1357
+ type: "function";
1358
+ /**
1359
+ * Unique key of the tool as it will be displayed in the UI
1360
+ */
1361
+ key: string;
1362
+ id?: string | undefined;
1363
+ displayName?: string | undefined;
1364
+ description?: string | undefined;
1365
+ function: AgentToolInputRunFunction;
1366
+ requiresApproval?: boolean | undefined;
1367
+ };
1368
+
1369
+ /**
1370
+ * The type must be "object"
1371
+ */
1372
+ export const RunAgentAgentToolInputRunAgentsRequestType = {
1373
+ Object: "object",
1374
+ } as const;
1375
+ /**
1376
+ * The type must be "object"
1377
+ */
1378
+ export type RunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
1379
+ typeof RunAgentAgentToolInputRunAgentsRequestType
1380
+ >;
1381
+
1382
+ /**
1383
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1384
+ */
1385
+ export type AgentToolInputRunParameters = {
1386
+ /**
1387
+ * The type must be "object"
1388
+ */
1389
+ type: RunAgentAgentToolInputRunAgentsRequestType;
1390
+ /**
1391
+ * The properties of the function parameters
1392
+ */
1393
+ properties: { [k: string]: any };
1394
+ /**
1395
+ * Array of required parameter names
1396
+ */
1397
+ required: Array<string>;
1398
+ additionalProperties?: { [k: string]: any } | undefined;
1399
+ };
1400
+
1401
+ export const Language = {
1402
+ Python: "python",
1403
+ } as const;
1404
+ export type Language = ClosedEnum<typeof Language>;
1405
+
1406
+ export type CodeTool = {
1407
+ /**
1408
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
1409
+ */
1410
+ parameters?: AgentToolInputRunParameters | undefined;
1411
+ language: Language;
1412
+ /**
1413
+ * The code to execute.
1414
+ */
1415
+ code: string;
1416
+ };
1417
+
1418
+ /**
1419
+ * Code execution tool with inline definition for on-the-fly creation in run endpoint
1420
+ */
1421
+ export type CodeToolRun = {
1422
+ type: "code";
1423
+ /**
1424
+ * Unique key of the tool as it will be displayed in the UI
1425
+ */
1426
+ key: string;
1427
+ id?: string | undefined;
1428
+ displayName?: string | undefined;
1429
+ /**
1430
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1431
+ */
1432
+ description: string;
1433
+ codeTool: CodeTool;
1434
+ requiresApproval?: boolean | undefined;
1435
+ /**
1436
+ * Tool execution timeout in seconds for this agent (max: 2 minutes, the code sandbox cap). Overrides the timeout configured on the tool definition.
1437
+ */
1438
+ timeout?: number | undefined;
1439
+ };
1440
+
1441
+ /**
1442
+ * The HTTP method to use.
1443
+ */
1444
+ export const Method = {
1445
+ Get: "GET",
1446
+ Post: "POST",
1447
+ Put: "PUT",
1448
+ Delete: "DELETE",
1449
+ } as const;
1450
+ /**
1451
+ * The HTTP method to use.
1452
+ */
1453
+ export type Method = ClosedEnum<typeof Method>;
1454
+
1455
+ export type Headers2 = {
1456
+ value: string;
1457
+ encrypted?: boolean | undefined;
1458
+ };
1459
+
1460
+ export type Headers = Headers2 | string;
1461
+
1462
+ /**
1463
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
1464
+ */
1465
+ export type Blueprint = {
1466
+ /**
1467
+ * The URL to send the request to.
1468
+ */
1469
+ url: string;
1470
+ /**
1471
+ * The HTTP method to use.
1472
+ */
1473
+ method: Method;
1474
+ /**
1475
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
1476
+ */
1477
+ headers?: { [k: string]: Headers2 | string } | undefined;
1478
+ /**
1479
+ * The body to send with the request.
1480
+ */
1481
+ body?: { [k: string]: any } | undefined;
1482
+ /**
1483
+ * The request timeout in seconds. Defaults to 60 seconds when not set. When used in an agent, tool executions are also bound by the agent run `limits.tool_timeout` (default 5 minutes), so raise that limit for longer-running tools.
1484
+ */
1485
+ timeout?: number | undefined;
1486
+ };
1487
+
1488
+ /**
1489
+ * The type of the argument.
1490
+ */
1491
+ export const RunAgentAgentToolInputRunType = {
1492
+ String: "string",
1493
+ Number: "number",
1494
+ Boolean: "boolean",
1495
+ } as const;
1496
+ /**
1497
+ * The type of the argument.
1498
+ */
1499
+ export type RunAgentAgentToolInputRunType = ClosedEnum<
1500
+ typeof RunAgentAgentToolInputRunType
1501
+ >;
1502
+
1503
+ /**
1504
+ * The default value of the argument.
1505
+ */
1506
+ export type DefaultValue = string | number | boolean;
1507
+
1508
+ export type Arguments = {
1509
+ /**
1510
+ * The type of the argument.
1511
+ */
1512
+ type: RunAgentAgentToolInputRunType;
1513
+ /**
1514
+ * A description of the argument.
1515
+ */
1516
+ description: string;
1517
+ /**
1518
+ * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
1519
+ */
1520
+ sendToModel?: boolean | undefined;
1521
+ /**
1522
+ * The default value of the argument.
1523
+ */
1524
+ defaultValue?: string | number | boolean | undefined;
1525
+ };
1526
+
1527
+ export type Http = {
1528
+ /**
1529
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
1530
+ */
1531
+ blueprint: Blueprint;
1532
+ /**
1533
+ * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
1534
+ */
1535
+ arguments?: { [k: string]: Arguments } | undefined;
1536
+ };
1537
+
1538
+ /**
1539
+ * HTTP tool with inline definition for on-the-fly creation in run endpoint
1540
+ */
1541
+ export type HTTPToolRun = {
1542
+ type: "http";
1543
+ /**
1544
+ * Unique key of the tool as it will be displayed in the UI
1545
+ */
1546
+ key: string;
1547
+ id?: string | undefined;
1548
+ displayName?: string | undefined;
1549
+ /**
1550
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
1551
+ */
1552
+ description: string;
1553
+ http: Http;
1554
+ requiresApproval?: boolean | undefined;
1555
+ /**
1556
+ * Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
1557
+ */
1558
+ timeout?: number | undefined;
1559
+ };
1560
+
1561
+ /**
1562
+ * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function, JSON Schema, MCP) support full inline definitions for on-the-fly creation.
1563
+ */
1564
+ export type AgentToolInputRun =
1565
+ | components.GoogleSearchToolInput
1566
+ | components.WebScraperToolInput
1567
+ | components.CallSubAgentToolInput
1568
+ | components.RetrieveAgentsToolInput
1569
+ | components.QueryMemoryStoreToolInput
1570
+ | components.WriteMemoryStoreToolInput
1571
+ | components.RetrieveMemoryStoresToolInput
1572
+ | components.DeleteMemoryDocumentToolInput
1573
+ | components.RetrieveKnowledgeBasesToolInput
1574
+ | components.QueryKnowledgeBaseToolInput
1575
+ | components.CurrentDateToolInput
1576
+ | components.AdvisorToolInput
1577
+ | components.SidekickToolInput
1578
+ | components.CodeInterpreterToolInput
1579
+ | components.FileSystemToolInput
1580
+ | HTTPToolRun
1581
+ | CodeToolRun
1582
+ | FunctionToolRun
1583
+ | JSONSchemaToolRun
1584
+ | MCPToolRun;
1585
+
1586
+ /**
1587
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1588
+ */
1589
+ export const RunAgentToolApprovalRequired = {
1590
+ All: "all",
1591
+ RespectTool: "respect_tool",
1592
+ None: "none",
1593
+ } as const;
1594
+ /**
1595
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1596
+ */
1597
+ export type RunAgentToolApprovalRequired = ClosedEnum<
1598
+ typeof RunAgentToolApprovalRequired
1599
+ >;
1600
+
1601
+ /**
1602
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1603
+ */
1604
+ export const RunAgentExecuteOn = {
1605
+ Input: "input",
1606
+ Output: "output",
1607
+ } as const;
1608
+ /**
1609
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1610
+ */
1611
+ export type RunAgentExecuteOn = ClosedEnum<typeof RunAgentExecuteOn>;
1612
+
1613
+ export type RunAgentEvaluators = {
1614
+ /**
1615
+ * Unique key or identifier of the evaluator
1616
+ */
1617
+ id: string;
1618
+ /**
1619
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1620
+ */
1621
+ sampleRate?: number | undefined;
1622
+ /**
1623
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1624
+ */
1625
+ executeOn: RunAgentExecuteOn;
1626
+ /**
1627
+ * Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
1628
+ */
1629
+ options?: { [k: string]: any } | undefined;
1630
+ };
1631
+
1632
+ /**
1633
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1634
+ */
1635
+ export const RunAgentAgentsExecuteOn = {
1636
+ Input: "input",
1637
+ Output: "output",
1638
+ } as const;
1639
+ /**
1640
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1641
+ */
1642
+ export type RunAgentAgentsExecuteOn = ClosedEnum<
1643
+ typeof RunAgentAgentsExecuteOn
1644
+ >;
1645
+
1646
+ export type RunAgentGuardrails = {
1647
+ /**
1648
+ * Unique key or identifier of the evaluator
1649
+ */
1650
+ id: string;
1651
+ /**
1652
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
1653
+ */
1654
+ sampleRate?: number | undefined;
1655
+ /**
1656
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
1657
+ */
1658
+ executeOn: RunAgentAgentsExecuteOn;
1659
+ /**
1660
+ * Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
1661
+ */
1662
+ options?: { [k: string]: any } | undefined;
1663
+ };
1664
+
1665
+ export type RunAgentSettings = {
1666
+ /**
1667
+ * Tools available to the agent
1668
+ */
1669
+ tools?:
1670
+ | Array<
1671
+ | components.GoogleSearchToolInput
1672
+ | components.WebScraperToolInput
1673
+ | components.CallSubAgentToolInput
1674
+ | components.RetrieveAgentsToolInput
1675
+ | components.QueryMemoryStoreToolInput
1676
+ | components.WriteMemoryStoreToolInput
1677
+ | components.RetrieveMemoryStoresToolInput
1678
+ | components.DeleteMemoryDocumentToolInput
1679
+ | components.RetrieveKnowledgeBasesToolInput
1680
+ | components.QueryKnowledgeBaseToolInput
1681
+ | components.CurrentDateToolInput
1682
+ | components.AdvisorToolInput
1683
+ | components.SidekickToolInput
1684
+ | components.CodeInterpreterToolInput
1685
+ | components.FileSystemToolInput
1686
+ | HTTPToolRun
1687
+ | CodeToolRun
1688
+ | FunctionToolRun
1689
+ | JSONSchemaToolRun
1690
+ | MCPToolRun
1691
+ >
1692
+ | undefined;
1693
+ /**
1694
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1695
+ */
1696
+ toolApprovalRequired?: RunAgentToolApprovalRequired | undefined;
1697
+ /**
1698
+ * Maximum iterations(llm calls) before the agent will stop executing.
1699
+ */
1700
+ maxIterations?: number | undefined;
1701
+ /**
1702
+ * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
1703
+ */
1704
+ maxExecutionTime?: number | undefined;
1705
+ /**
1706
+ * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
1707
+ */
1708
+ maxCost?: number | undefined;
1709
+ /**
1710
+ * When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
1711
+ */
1712
+ chatExposed?: boolean | undefined;
1713
+ /**
1714
+ * Configuration for an evaluator applied to the agent
1715
+ */
1716
+ evaluators?: Array<RunAgentEvaluators> | undefined;
1717
+ /**
1718
+ * Configuration for a guardrail applied to the agent
1719
+ */
1720
+ guardrails?: Array<RunAgentGuardrails> | undefined;
1721
+ };
1722
+
1723
+ /**
1724
+ * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1725
+ */
1726
+ export const RunAgentEngine = {
1727
+ Text: "text",
1728
+ Jinja: "jinja",
1729
+ Mustache: "mustache",
1730
+ } as const;
1731
+ /**
1732
+ * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1733
+ */
1734
+ export type RunAgentEngine = ClosedEnum<typeof RunAgentEngine>;
1735
+
1736
+ export type RunAgentRequestBody = {
1737
+ /**
1738
+ * A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
1739
+ */
1740
+ key: string;
1741
+ /**
1742
+ * Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
1743
+ */
1744
+ taskId?: string | undefined;
1745
+ /**
1746
+ * Model configuration for this execution. Can override the agent manifest defaults if the agent already exists.
1747
+ */
1748
+ model: RunAgentModelConfiguration2 | string;
1749
+ /**
1750
+ * Optional array of fallback models used when the primary model fails. Fallbacks are attempted in order. All models must support tool calling.
1751
+ */
1752
+ fallbackModels?:
1753
+ | Array<RunAgentFallbackModelConfiguration2 | string>
1754
+ | undefined;
1755
+ /**
1756
+ * Specifies the agent's function and area of expertise.
1757
+ */
1758
+ role: string;
1759
+ /**
1760
+ * Provides context and purpose for the agent. Combined with the system prompt template to generate the agent's instructions.
1761
+ */
1762
+ instructions: string;
1763
+ /**
1764
+ * The A2A format message containing the task for the agent to perform.
1765
+ */
1766
+ message: RunAgentA2AMessage;
1767
+ /**
1768
+ * Optional variables for template replacement in system prompt, instructions, and messages
1769
+ */
1770
+ variables?: { [k: string]: any } | undefined;
1771
+ /**
1772
+ * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1773
+ */
1774
+ identity?: RunAgentIdentity | undefined;
1775
+ /**
1776
+ * @deprecated Use identity instead. Information about the contact making the request.
1777
+ *
1778
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1779
+ */
1780
+ contact?: RunAgentContact | undefined;
1781
+ /**
1782
+ * Thread information to group related requests
1783
+ */
1784
+ thread?: RunAgentThread | undefined;
1785
+ /**
1786
+ * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
1787
+ */
1788
+ memory?: RunAgentMemory | undefined;
1789
+ /**
1790
+ * Entity storage path.
1791
+ *
1792
+ * @remarks
1793
+ *
1794
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
1795
+ *
1796
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
1797
+ */
1798
+ path: string;
1799
+ /**
1800
+ * A brief summary of the agent's purpose.
1801
+ */
1802
+ description?: string | undefined;
1803
+ /**
1804
+ * A custom system prompt template for the agent. If omitted, the default template is used.
1805
+ */
1806
+ systemPrompt?: string | null | undefined;
1807
+ /**
1808
+ * Array of memory store identifiers that are accessible to the agent. Accepts both memory store IDs and keys.
1809
+ */
1810
+ memoryStores?: Array<string> | undefined;
1811
+ /**
1812
+ * Knowledge base configurations for the agent to access
1813
+ */
1814
+ knowledgeBases?: Array<RunAgentKnowledgeBases> | undefined;
1815
+ /**
1816
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1817
+ */
1818
+ teamOfAgents?: Array<RunAgentTeamOfAgents> | undefined;
1819
+ settings: RunAgentSettings;
1820
+ /**
1821
+ * Optional metadata for the agent run as key-value pairs that will be included in traces
1822
+ */
1823
+ metadata?: { [k: string]: any } | undefined;
1824
+ /**
1825
+ * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1826
+ */
1827
+ engine?: RunAgentEngine | undefined;
1828
+ };
1829
+
1830
+ /**
1831
+ * A2A entity type identifier
1832
+ */
1833
+ export const RunAgentKind = {
1834
+ Task: "task",
1835
+ } as const;
1836
+ /**
1837
+ * A2A entity type identifier
1838
+ */
1839
+ export type RunAgentKind = ClosedEnum<typeof RunAgentKind>;
1840
+
1841
+ /**
1842
+ * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
1843
+ */
1844
+ export const RunAgentTaskState = {
1845
+ Submitted: "submitted",
1846
+ Working: "working",
1847
+ InputRequired: "input-required",
1848
+ AuthRequired: "auth-required",
1849
+ Completed: "completed",
1850
+ Failed: "failed",
1851
+ Canceled: "canceled",
1852
+ Rejected: "rejected",
1853
+ } as const;
1854
+ /**
1855
+ * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
1856
+ */
1857
+ export type RunAgentTaskState = ClosedEnum<typeof RunAgentTaskState>;
1858
+
1859
+ export const RunAgentAgentsKind = {
1860
+ Message: "message",
1861
+ } as const;
1862
+ export type RunAgentAgentsKind = ClosedEnum<typeof RunAgentAgentsKind>;
1863
+
1864
+ /**
1865
+ * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
1866
+ */
1867
+ export const RunAgentExtendedMessageRole = {
1868
+ User: "user",
1869
+ Agent: "agent",
1870
+ Tool: "tool",
1871
+ System: "system",
1872
+ } as const;
1873
+ /**
1874
+ * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
1875
+ */
1876
+ export type RunAgentExtendedMessageRole = ClosedEnum<
1877
+ typeof RunAgentExtendedMessageRole
1878
+ >;
1879
+
1880
+ export type RunAgentParts =
1881
+ | components.TextPart
1882
+ | components.ErrorPart
1883
+ | components.DataPart
1884
+ | components.FilePart
1885
+ | components.ToolCallPart
1886
+ | components.ToolResultPart;
1887
+
1888
+ /**
1889
+ * Optional A2A message providing additional context about the current status
1890
+ */
1891
+ export type RunAgentTaskStatusMessage = {
1892
+ kind: RunAgentAgentsKind;
1893
+ messageId: string;
1894
+ /**
1895
+ * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
1896
+ */
1897
+ role: RunAgentExtendedMessageRole;
1898
+ parts: Array<
1899
+ | components.TextPart
1900
+ | components.ErrorPart
1901
+ | components.DataPart
1902
+ | components.FilePart
1903
+ | components.ToolCallPart
1904
+ | components.ToolResultPart
1905
+ >;
1906
+ };
1907
+
1908
+ /**
1909
+ * Current task status information
1910
+ */
1911
+ export type RunAgentTaskStatus = {
1912
+ /**
1913
+ * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
1914
+ */
1915
+ state: RunAgentTaskState;
1916
+ /**
1917
+ * ISO 8601 timestamp of when the status was updated
1918
+ */
1919
+ timestamp?: string | undefined;
1920
+ /**
1921
+ * Optional A2A message providing additional context about the current status
1922
+ */
1923
+ message?: RunAgentTaskStatusMessage | undefined;
1924
+ };
1925
+
1926
+ /**
1927
+ * Response format following the Agent-to-Agent (A2A) protocol. Returned when starting or continuing an agent task execution.
1928
+ */
1929
+ export type RunAgentA2ATaskResponse = {
1930
+ /**
1931
+ * The unique ID of the created agent execution task
1932
+ */
1933
+ id: string;
1934
+ /**
1935
+ * The correlation ID for this execution (used for tracking)
1936
+ */
1937
+ contextId: string;
1938
+ /**
1939
+ * A2A entity type identifier
1940
+ */
1941
+ kind: RunAgentKind;
1942
+ /**
1943
+ * Current task status information
1944
+ */
1945
+ status: RunAgentTaskStatus;
1946
+ /**
1947
+ * Array of messages in the task conversation. Only present when blocking mode is enabled.
1948
+ */
1949
+ messages?: Array<components.ExtendedMessage> | undefined;
1950
+ /**
1951
+ * Task metadata containing workspace_id and trace_id for feedback and tracking
1952
+ */
1953
+ metadata?: { [k: string]: any } | undefined;
1954
+ };
1955
+
1956
+ /** @internal */
1957
+ export type RunAgentResponseFormatAgentsJsonSchema$Outbound = {
1958
+ description?: string | undefined;
1959
+ name: string;
1960
+ schema?: any | undefined;
1961
+ strict: boolean;
1962
+ };
1963
+
1964
+ /** @internal */
1965
+ export const RunAgentResponseFormatAgentsJsonSchema$outboundSchema: z.ZodType<
1966
+ RunAgentResponseFormatAgentsJsonSchema$Outbound,
1967
+ z.ZodTypeDef,
1968
+ RunAgentResponseFormatAgentsJsonSchema
1969
+ > = z.object({
1970
+ description: z.string().optional(),
1971
+ name: z.string(),
1972
+ schema: z.any().optional(),
1973
+ strict: z.boolean().default(false),
1974
+ });
1975
+
1976
+ export function runAgentResponseFormatAgentsJsonSchemaToJSON(
1977
+ runAgentResponseFormatAgentsJsonSchema:
1978
+ RunAgentResponseFormatAgentsJsonSchema,
1979
+ ): string {
1980
+ return JSON.stringify(
1981
+ RunAgentResponseFormatAgentsJsonSchema$outboundSchema.parse(
1982
+ runAgentResponseFormatAgentsJsonSchema,
1983
+ ),
1984
+ );
1985
+ }
1986
+
1987
+ /** @internal */
1988
+ export type RunAgentResponseFormatJSONSchema$Outbound = {
1989
+ type: "json_schema";
1990
+ json_schema: RunAgentResponseFormatAgentsJsonSchema$Outbound;
1991
+ };
1992
+
1993
+ /** @internal */
1994
+ export const RunAgentResponseFormatJSONSchema$outboundSchema: z.ZodType<
1995
+ RunAgentResponseFormatJSONSchema$Outbound,
1996
+ z.ZodTypeDef,
1997
+ RunAgentResponseFormatJSONSchema
1998
+ > = z.object({
1999
+ type: z.literal("json_schema"),
2000
+ jsonSchema: z.lazy(() =>
2001
+ RunAgentResponseFormatAgentsJsonSchema$outboundSchema
2002
+ ),
2003
+ }).transform((v) => {
2004
+ return remap$(v, {
2005
+ jsonSchema: "json_schema",
2006
+ });
2007
+ });
2008
+
2009
+ export function runAgentResponseFormatJSONSchemaToJSON(
2010
+ runAgentResponseFormatJSONSchema: RunAgentResponseFormatJSONSchema,
2011
+ ): string {
2012
+ return JSON.stringify(
2013
+ RunAgentResponseFormatJSONSchema$outboundSchema.parse(
2014
+ runAgentResponseFormatJSONSchema,
2015
+ ),
2016
+ );
2017
+ }
2018
+
2019
+ /** @internal */
2020
+ export type RunAgentResponseFormatJSONObject$Outbound = {
2021
+ type: "json_object";
2022
+ };
2023
+
2024
+ /** @internal */
2025
+ export const RunAgentResponseFormatJSONObject$outboundSchema: z.ZodType<
2026
+ RunAgentResponseFormatJSONObject$Outbound,
2027
+ z.ZodTypeDef,
2028
+ RunAgentResponseFormatJSONObject
2029
+ > = z.object({
2030
+ type: z.literal("json_object"),
2031
+ });
2032
+
2033
+ export function runAgentResponseFormatJSONObjectToJSON(
2034
+ runAgentResponseFormatJSONObject: RunAgentResponseFormatJSONObject,
2035
+ ): string {
2036
+ return JSON.stringify(
2037
+ RunAgentResponseFormatJSONObject$outboundSchema.parse(
2038
+ runAgentResponseFormatJSONObject,
2039
+ ),
2040
+ );
2041
+ }
2042
+
2043
+ /** @internal */
2044
+ export type RunAgentResponseFormatText$Outbound = {
2045
+ type: "text";
2046
+ };
2047
+
2048
+ /** @internal */
2049
+ export const RunAgentResponseFormatText$outboundSchema: z.ZodType<
2050
+ RunAgentResponseFormatText$Outbound,
2051
+ z.ZodTypeDef,
2052
+ RunAgentResponseFormatText
2053
+ > = z.object({
2054
+ type: z.literal("text"),
2055
+ });
2056
+
2057
+ export function runAgentResponseFormatTextToJSON(
2058
+ runAgentResponseFormatText: RunAgentResponseFormatText,
2059
+ ): string {
2060
+ return JSON.stringify(
2061
+ RunAgentResponseFormatText$outboundSchema.parse(runAgentResponseFormatText),
2062
+ );
2063
+ }
2064
+
2065
+ /** @internal */
2066
+ export type RunAgentModelConfigurationResponseFormat$Outbound =
2067
+ | RunAgentResponseFormatText$Outbound
2068
+ | RunAgentResponseFormatJSONObject$Outbound
2069
+ | RunAgentResponseFormatJSONSchema$Outbound;
2070
+
2071
+ /** @internal */
2072
+ export const RunAgentModelConfigurationResponseFormat$outboundSchema: z.ZodType<
2073
+ RunAgentModelConfigurationResponseFormat$Outbound,
2074
+ z.ZodTypeDef,
2075
+ RunAgentModelConfigurationResponseFormat
2076
+ > = z.union([
2077
+ z.lazy(() => RunAgentResponseFormatText$outboundSchema),
2078
+ z.lazy(() => RunAgentResponseFormatJSONObject$outboundSchema),
2079
+ z.lazy(() => RunAgentResponseFormatJSONSchema$outboundSchema),
2080
+ ]);
2081
+
2082
+ export function runAgentModelConfigurationResponseFormatToJSON(
2083
+ runAgentModelConfigurationResponseFormat:
2084
+ RunAgentModelConfigurationResponseFormat,
2085
+ ): string {
2086
+ return JSON.stringify(
2087
+ RunAgentModelConfigurationResponseFormat$outboundSchema.parse(
2088
+ runAgentModelConfigurationResponseFormat,
2089
+ ),
2090
+ );
2091
+ }
2092
+
2093
+ /** @internal */
2094
+ export const RunAgentModelConfigurationReasoningEffort$outboundSchema:
2095
+ z.ZodNativeEnum<typeof RunAgentModelConfigurationReasoningEffort> = z
2096
+ .nativeEnum(RunAgentModelConfigurationReasoningEffort);
2097
+
2098
+ /** @internal */
2099
+ export type RunAgentModelConfigurationStop$Outbound = string | Array<string>;
2100
+
2101
+ /** @internal */
2102
+ export const RunAgentModelConfigurationStop$outboundSchema: z.ZodType<
2103
+ RunAgentModelConfigurationStop$Outbound,
2104
+ z.ZodTypeDef,
2105
+ RunAgentModelConfigurationStop
2106
+ > = z.union([z.string(), z.array(z.string())]);
2107
+
2108
+ export function runAgentModelConfigurationStopToJSON(
2109
+ runAgentModelConfigurationStop: RunAgentModelConfigurationStop,
2110
+ ): string {
2111
+ return JSON.stringify(
2112
+ RunAgentModelConfigurationStop$outboundSchema.parse(
2113
+ runAgentModelConfigurationStop,
2114
+ ),
2115
+ );
2116
+ }
2117
+
2118
+ /** @internal */
2119
+ export type RunAgentModelConfigurationThinking$Outbound =
2120
+ | components.ThinkingConfigDisabledSchema$Outbound
2121
+ | components.ThinkingConfigEnabledSchema$Outbound
2122
+ | components.ThinkingConfigAdaptiveSchema$Outbound;
2123
+
2124
+ /** @internal */
2125
+ export const RunAgentModelConfigurationThinking$outboundSchema: z.ZodType<
2126
+ RunAgentModelConfigurationThinking$Outbound,
2127
+ z.ZodTypeDef,
2128
+ RunAgentModelConfigurationThinking
2129
+ > = z.union([
2130
+ components.ThinkingConfigDisabledSchema$outboundSchema,
2131
+ components.ThinkingConfigEnabledSchema$outboundSchema,
2132
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
2133
+ ]);
2134
+
2135
+ export function runAgentModelConfigurationThinkingToJSON(
2136
+ runAgentModelConfigurationThinking: RunAgentModelConfigurationThinking,
2137
+ ): string {
2138
+ return JSON.stringify(
2139
+ RunAgentModelConfigurationThinking$outboundSchema.parse(
2140
+ runAgentModelConfigurationThinking,
2141
+ ),
2142
+ );
2143
+ }
2144
+
2145
+ /** @internal */
2146
+ export const RunAgentToolChoiceType$outboundSchema: z.ZodNativeEnum<
2147
+ typeof RunAgentToolChoiceType
2148
+ > = z.nativeEnum(RunAgentToolChoiceType);
2149
+
2150
+ /** @internal */
2151
+ export type RunAgentToolChoiceFunction$Outbound = {
2152
+ name: string;
2153
+ };
2154
+
2155
+ /** @internal */
2156
+ export const RunAgentToolChoiceFunction$outboundSchema: z.ZodType<
2157
+ RunAgentToolChoiceFunction$Outbound,
2158
+ z.ZodTypeDef,
2159
+ RunAgentToolChoiceFunction
2160
+ > = z.object({
2161
+ name: z.string(),
2162
+ });
2163
+
2164
+ export function runAgentToolChoiceFunctionToJSON(
2165
+ runAgentToolChoiceFunction: RunAgentToolChoiceFunction,
2166
+ ): string {
2167
+ return JSON.stringify(
2168
+ RunAgentToolChoiceFunction$outboundSchema.parse(runAgentToolChoiceFunction),
2169
+ );
2170
+ }
2171
+
2172
+ /** @internal */
2173
+ export type RunAgentToolChoice2$Outbound = {
2174
+ type?: string | undefined;
2175
+ function: RunAgentToolChoiceFunction$Outbound;
2176
+ };
2177
+
2178
+ /** @internal */
2179
+ export const RunAgentToolChoice2$outboundSchema: z.ZodType<
2180
+ RunAgentToolChoice2$Outbound,
2181
+ z.ZodTypeDef,
2182
+ RunAgentToolChoice2
2183
+ > = z.object({
2184
+ type: RunAgentToolChoiceType$outboundSchema.optional(),
2185
+ function: z.lazy(() => RunAgentToolChoiceFunction$outboundSchema),
2186
+ });
2187
+
2188
+ export function runAgentToolChoice2ToJSON(
2189
+ runAgentToolChoice2: RunAgentToolChoice2,
2190
+ ): string {
2191
+ return JSON.stringify(
2192
+ RunAgentToolChoice2$outboundSchema.parse(runAgentToolChoice2),
2193
+ );
2194
+ }
2195
+
2196
+ /** @internal */
2197
+ export const RunAgentToolChoice1$outboundSchema: z.ZodNativeEnum<
2198
+ typeof RunAgentToolChoice1
2199
+ > = z.nativeEnum(RunAgentToolChoice1);
2200
+
2201
+ /** @internal */
2202
+ export type RunAgentModelConfigurationToolChoice$Outbound =
2203
+ | RunAgentToolChoice2$Outbound
2204
+ | string;
2205
+
2206
+ /** @internal */
2207
+ export const RunAgentModelConfigurationToolChoice$outboundSchema: z.ZodType<
2208
+ RunAgentModelConfigurationToolChoice$Outbound,
2209
+ z.ZodTypeDef,
2210
+ RunAgentModelConfigurationToolChoice
2211
+ > = z.union([
2212
+ z.lazy(() => RunAgentToolChoice2$outboundSchema),
2213
+ RunAgentToolChoice1$outboundSchema,
2214
+ ]);
2215
+
2216
+ export function runAgentModelConfigurationToolChoiceToJSON(
2217
+ runAgentModelConfigurationToolChoice: RunAgentModelConfigurationToolChoice,
2218
+ ): string {
2219
+ return JSON.stringify(
2220
+ RunAgentModelConfigurationToolChoice$outboundSchema.parse(
2221
+ runAgentModelConfigurationToolChoice,
2222
+ ),
2223
+ );
2224
+ }
2225
+
2226
+ /** @internal */
2227
+ export const RunAgentModelConfigurationModalities$outboundSchema:
2228
+ z.ZodNativeEnum<typeof RunAgentModelConfigurationModalities> = z.nativeEnum(
2229
+ RunAgentModelConfigurationModalities,
2230
+ );
2231
+
2232
+ /** @internal */
2233
+ export const RunAgentId1$outboundSchema: z.ZodNativeEnum<typeof RunAgentId1> = z
2234
+ .nativeEnum(RunAgentId1);
2235
+
2236
+ /** @internal */
2237
+ export type RunAgentModelConfigurationId$Outbound = string | string;
2238
+
2239
+ /** @internal */
2240
+ export const RunAgentModelConfigurationId$outboundSchema: z.ZodType<
2241
+ RunAgentModelConfigurationId$Outbound,
2242
+ z.ZodTypeDef,
2243
+ RunAgentModelConfigurationId
2244
+ > = z.union([RunAgentId1$outboundSchema, z.string()]);
2245
+
2246
+ export function runAgentModelConfigurationIdToJSON(
2247
+ runAgentModelConfigurationId: RunAgentModelConfigurationId,
2248
+ ): string {
2249
+ return JSON.stringify(
2250
+ RunAgentModelConfigurationId$outboundSchema.parse(
2251
+ runAgentModelConfigurationId,
2252
+ ),
2253
+ );
2254
+ }
2255
+
2256
+ /** @internal */
2257
+ export const RunAgentModelConfigurationExecuteOn$outboundSchema:
2258
+ z.ZodNativeEnum<typeof RunAgentModelConfigurationExecuteOn> = z.nativeEnum(
2259
+ RunAgentModelConfigurationExecuteOn,
2260
+ );
2261
+
2262
+ /** @internal */
2263
+ export type RunAgentModelConfigurationGuardrails$Outbound = {
2264
+ id: string | string;
2265
+ execute_on: string;
2266
+ };
2267
+
2268
+ /** @internal */
2269
+ export const RunAgentModelConfigurationGuardrails$outboundSchema: z.ZodType<
2270
+ RunAgentModelConfigurationGuardrails$Outbound,
2271
+ z.ZodTypeDef,
2272
+ RunAgentModelConfigurationGuardrails
2273
+ > = z.object({
2274
+ id: z.union([RunAgentId1$outboundSchema, z.string()]),
2275
+ executeOn: RunAgentModelConfigurationExecuteOn$outboundSchema,
2276
+ }).transform((v) => {
2277
+ return remap$(v, {
2278
+ executeOn: "execute_on",
2279
+ });
2280
+ });
2281
+
2282
+ export function runAgentModelConfigurationGuardrailsToJSON(
2283
+ runAgentModelConfigurationGuardrails: RunAgentModelConfigurationGuardrails,
2284
+ ): string {
2285
+ return JSON.stringify(
2286
+ RunAgentModelConfigurationGuardrails$outboundSchema.parse(
2287
+ runAgentModelConfigurationGuardrails,
2288
+ ),
2289
+ );
2290
+ }
2291
+
2292
+ /** @internal */
2293
+ export type RunAgentModelConfigurationPlugins$Outbound =
2294
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
2295
+ | components.ResponseHealingPlugin$Outbound
2296
+ | components.TraceScrubbingPlugin$Outbound;
2297
+
2298
+ /** @internal */
2299
+ export const RunAgentModelConfigurationPlugins$outboundSchema: z.ZodType<
2300
+ RunAgentModelConfigurationPlugins$Outbound,
2301
+ z.ZodTypeDef,
2302
+ RunAgentModelConfigurationPlugins
2303
+ > = z.union([
2304
+ components.PIIRedactionPlugin$outboundSchema.and(
2305
+ z.object({ id: z.literal("pii_redaction") }),
2306
+ ),
2307
+ components.ResponseHealingPlugin$outboundSchema,
2308
+ components.TraceScrubbingPlugin$outboundSchema,
2309
+ ]);
2310
+
2311
+ export function runAgentModelConfigurationPluginsToJSON(
2312
+ runAgentModelConfigurationPlugins: RunAgentModelConfigurationPlugins,
2313
+ ): string {
2314
+ return JSON.stringify(
2315
+ RunAgentModelConfigurationPlugins$outboundSchema.parse(
2316
+ runAgentModelConfigurationPlugins,
2317
+ ),
2318
+ );
2319
+ }
2320
+
2321
+ /** @internal */
2322
+ export type RunAgentModelConfigurationFallbacks$Outbound = {
2323
+ model: string;
2324
+ };
2325
+
2326
+ /** @internal */
2327
+ export const RunAgentModelConfigurationFallbacks$outboundSchema: z.ZodType<
2328
+ RunAgentModelConfigurationFallbacks$Outbound,
2329
+ z.ZodTypeDef,
2330
+ RunAgentModelConfigurationFallbacks
2331
+ > = z.object({
2332
+ model: z.string(),
2333
+ });
2334
+
2335
+ export function runAgentModelConfigurationFallbacksToJSON(
2336
+ runAgentModelConfigurationFallbacks: RunAgentModelConfigurationFallbacks,
2337
+ ): string {
2338
+ return JSON.stringify(
2339
+ RunAgentModelConfigurationFallbacks$outboundSchema.parse(
2340
+ runAgentModelConfigurationFallbacks,
2341
+ ),
2342
+ );
2343
+ }
2344
+
2345
+ /** @internal */
2346
+ export const RunAgentModelConfigurationType$outboundSchema: z.ZodNativeEnum<
2347
+ typeof RunAgentModelConfigurationType
2348
+ > = z.nativeEnum(RunAgentModelConfigurationType);
2349
+
2350
+ /** @internal */
2351
+ export type RunAgentModelConfigurationCache$Outbound = {
2352
+ ttl: number;
2353
+ type: string;
2354
+ };
2355
+
2356
+ /** @internal */
2357
+ export const RunAgentModelConfigurationCache$outboundSchema: z.ZodType<
2358
+ RunAgentModelConfigurationCache$Outbound,
2359
+ z.ZodTypeDef,
2360
+ RunAgentModelConfigurationCache
2361
+ > = z.object({
2362
+ ttl: z.number().default(1800),
2363
+ type: RunAgentModelConfigurationType$outboundSchema,
2364
+ });
2365
+
2366
+ export function runAgentModelConfigurationCacheToJSON(
2367
+ runAgentModelConfigurationCache: RunAgentModelConfigurationCache,
2368
+ ): string {
2369
+ return JSON.stringify(
2370
+ RunAgentModelConfigurationCache$outboundSchema.parse(
2371
+ runAgentModelConfigurationCache,
2372
+ ),
2373
+ );
2374
+ }
2375
+
2376
+ /** @internal */
2377
+ export const RunAgentLoadBalancerType$outboundSchema: z.ZodNativeEnum<
2378
+ typeof RunAgentLoadBalancerType
2379
+ > = z.nativeEnum(RunAgentLoadBalancerType);
2380
+
2381
+ /** @internal */
2382
+ export type RunAgentLoadBalancerModels$Outbound = {
2383
+ model: string;
2384
+ weight: number;
2385
+ };
2386
+
2387
+ /** @internal */
2388
+ export const RunAgentLoadBalancerModels$outboundSchema: z.ZodType<
2389
+ RunAgentLoadBalancerModels$Outbound,
2390
+ z.ZodTypeDef,
2391
+ RunAgentLoadBalancerModels
2392
+ > = z.object({
2393
+ model: z.string(),
2394
+ weight: z.number().default(0.5),
2395
+ });
2396
+
2397
+ export function runAgentLoadBalancerModelsToJSON(
2398
+ runAgentLoadBalancerModels: RunAgentLoadBalancerModels,
2399
+ ): string {
2400
+ return JSON.stringify(
2401
+ RunAgentLoadBalancerModels$outboundSchema.parse(runAgentLoadBalancerModels),
2402
+ );
2403
+ }
2404
+
2405
+ /** @internal */
2406
+ export type RunAgentLoadBalancer1$Outbound = {
2407
+ type: string;
2408
+ models: Array<RunAgentLoadBalancerModels$Outbound>;
2409
+ };
2410
+
2411
+ /** @internal */
2412
+ export const RunAgentLoadBalancer1$outboundSchema: z.ZodType<
2413
+ RunAgentLoadBalancer1$Outbound,
2414
+ z.ZodTypeDef,
2415
+ RunAgentLoadBalancer1
2416
+ > = z.object({
2417
+ type: RunAgentLoadBalancerType$outboundSchema,
2418
+ models: z.array(z.lazy(() => RunAgentLoadBalancerModels$outboundSchema)),
2419
+ });
2420
+
2421
+ export function runAgentLoadBalancer1ToJSON(
2422
+ runAgentLoadBalancer1: RunAgentLoadBalancer1,
2423
+ ): string {
2424
+ return JSON.stringify(
2425
+ RunAgentLoadBalancer1$outboundSchema.parse(runAgentLoadBalancer1),
2426
+ );
2427
+ }
2428
+
2429
+ /** @internal */
2430
+ export type RunAgentModelConfigurationLoadBalancer$Outbound =
2431
+ RunAgentLoadBalancer1$Outbound;
2432
+
2433
+ /** @internal */
2434
+ export const RunAgentModelConfigurationLoadBalancer$outboundSchema: z.ZodType<
2435
+ RunAgentModelConfigurationLoadBalancer$Outbound,
2436
+ z.ZodTypeDef,
2437
+ RunAgentModelConfigurationLoadBalancer
2438
+ > = z.lazy(() => RunAgentLoadBalancer1$outboundSchema);
2439
+
2440
+ export function runAgentModelConfigurationLoadBalancerToJSON(
2441
+ runAgentModelConfigurationLoadBalancer:
2442
+ RunAgentModelConfigurationLoadBalancer,
2443
+ ): string {
2444
+ return JSON.stringify(
2445
+ RunAgentModelConfigurationLoadBalancer$outboundSchema.parse(
2446
+ runAgentModelConfigurationLoadBalancer,
2447
+ ),
2448
+ );
2449
+ }
2450
+
2451
+ /** @internal */
2452
+ export type RunAgentModelConfigurationTimeout$Outbound = {
2453
+ call_timeout: number;
2454
+ };
2455
+
2456
+ /** @internal */
2457
+ export const RunAgentModelConfigurationTimeout$outboundSchema: z.ZodType<
2458
+ RunAgentModelConfigurationTimeout$Outbound,
2459
+ z.ZodTypeDef,
2460
+ RunAgentModelConfigurationTimeout
2461
+ > = z.object({
2462
+ callTimeout: z.number(),
2463
+ }).transform((v) => {
2464
+ return remap$(v, {
2465
+ callTimeout: "call_timeout",
2466
+ });
2467
+ });
2468
+
2469
+ export function runAgentModelConfigurationTimeoutToJSON(
2470
+ runAgentModelConfigurationTimeout: RunAgentModelConfigurationTimeout,
2471
+ ): string {
2472
+ return JSON.stringify(
2473
+ RunAgentModelConfigurationTimeout$outboundSchema.parse(
2474
+ runAgentModelConfigurationTimeout,
2475
+ ),
2476
+ );
2477
+ }
2478
+
2479
+ /** @internal */
2480
+ export const RunAgentModelConfigurationAgentsType$outboundSchema:
2481
+ z.ZodNativeEnum<typeof RunAgentModelConfigurationAgentsType> = z.nativeEnum(
2482
+ RunAgentModelConfigurationAgentsType,
2483
+ );
2484
+
2485
+ /** @internal */
2486
+ export const RunAgentModelConfigurationTtl$outboundSchema: z.ZodNativeEnum<
2487
+ typeof RunAgentModelConfigurationTtl
2488
+ > = z.nativeEnum(RunAgentModelConfigurationTtl);
2489
+
2490
+ /** @internal */
2491
+ export type RunAgentModelConfigurationCacheControl$Outbound = {
2492
+ type: string;
2493
+ ttl: string;
2494
+ };
2495
+
2496
+ /** @internal */
2497
+ export const RunAgentModelConfigurationCacheControl$outboundSchema: z.ZodType<
2498
+ RunAgentModelConfigurationCacheControl$Outbound,
2499
+ z.ZodTypeDef,
2500
+ RunAgentModelConfigurationCacheControl
2501
+ > = z.object({
2502
+ type: RunAgentModelConfigurationAgentsType$outboundSchema,
2503
+ ttl: RunAgentModelConfigurationTtl$outboundSchema.default("5m"),
2504
+ });
2505
+
2506
+ export function runAgentModelConfigurationCacheControlToJSON(
2507
+ runAgentModelConfigurationCacheControl:
2508
+ RunAgentModelConfigurationCacheControl,
2509
+ ): string {
2510
+ return JSON.stringify(
2511
+ RunAgentModelConfigurationCacheControl$outboundSchema.parse(
2512
+ runAgentModelConfigurationCacheControl,
2513
+ ),
2514
+ );
2515
+ }
2516
+
2517
+ /** @internal */
2518
+ export type RunAgentModelConfigurationParameters$Outbound = {
2519
+ name?: string | undefined;
2520
+ frequency_penalty?: number | null | undefined;
2521
+ max_tokens?: number | null | undefined;
2522
+ max_completion_tokens?: number | null | undefined;
2523
+ presence_penalty?: number | null | undefined;
2524
+ response_format?:
2525
+ | RunAgentResponseFormatText$Outbound
2526
+ | RunAgentResponseFormatJSONObject$Outbound
2527
+ | RunAgentResponseFormatJSONSchema$Outbound
2528
+ | undefined;
2529
+ reasoning_effort?: string | undefined;
2530
+ verbosity?: string | undefined;
2531
+ seed?: number | null | undefined;
2532
+ stop?: string | Array<string> | null | undefined;
2533
+ thinking?:
2534
+ | components.ThinkingConfigDisabledSchema$Outbound
2535
+ | components.ThinkingConfigEnabledSchema$Outbound
2536
+ | components.ThinkingConfigAdaptiveSchema$Outbound
2537
+ | undefined;
2538
+ temperature?: number | null | undefined;
2539
+ top_p?: number | null | undefined;
2540
+ top_k?: number | null | undefined;
2541
+ tool_choice?: RunAgentToolChoice2$Outbound | string | undefined;
2542
+ parallel_tool_calls?: boolean | undefined;
2543
+ modalities?: Array<string> | null | undefined;
2544
+ guardrails?: Array<RunAgentModelConfigurationGuardrails$Outbound> | undefined;
2545
+ plugins?:
2546
+ | Array<
2547
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
2548
+ | components.ResponseHealingPlugin$Outbound
2549
+ | components.TraceScrubbingPlugin$Outbound
2550
+ >
2551
+ | undefined;
2552
+ fallbacks?: Array<RunAgentModelConfigurationFallbacks$Outbound> | undefined;
2553
+ cache?: RunAgentModelConfigurationCache$Outbound | undefined;
2554
+ load_balancer?: RunAgentLoadBalancer1$Outbound | undefined;
2555
+ timeout?: RunAgentModelConfigurationTimeout$Outbound | undefined;
2556
+ cache_control?: RunAgentModelConfigurationCacheControl$Outbound | undefined;
2557
+ prompt_cache_key?: string | undefined;
2558
+ };
2559
+
2560
+ /** @internal */
2561
+ export const RunAgentModelConfigurationParameters$outboundSchema: z.ZodType<
2562
+ RunAgentModelConfigurationParameters$Outbound,
2563
+ z.ZodTypeDef,
2564
+ RunAgentModelConfigurationParameters
2565
+ > = z.object({
2566
+ name: z.string().optional(),
2567
+ frequencyPenalty: z.nullable(z.number()).optional(),
2568
+ maxTokens: z.nullable(z.number().int()).optional(),
2569
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
2570
+ presencePenalty: z.nullable(z.number()).optional(),
2571
+ responseFormat: z.union([
2572
+ z.lazy(() => RunAgentResponseFormatText$outboundSchema),
2573
+ z.lazy(() => RunAgentResponseFormatJSONObject$outboundSchema),
2574
+ z.lazy(() => RunAgentResponseFormatJSONSchema$outboundSchema),
2575
+ ]).optional(),
2576
+ reasoningEffort: RunAgentModelConfigurationReasoningEffort$outboundSchema
2577
+ .optional(),
2578
+ verbosity: z.string().optional(),
2579
+ seed: z.nullable(z.number()).optional(),
2580
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2581
+ thinking: z.union([
2582
+ components.ThinkingConfigDisabledSchema$outboundSchema,
2583
+ components.ThinkingConfigEnabledSchema$outboundSchema,
2584
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
2585
+ ]).optional(),
2586
+ temperature: z.nullable(z.number()).optional(),
2587
+ topP: z.nullable(z.number()).optional(),
2588
+ topK: z.nullable(z.number()).optional(),
2589
+ toolChoice: z.union([
2590
+ z.lazy(() => RunAgentToolChoice2$outboundSchema),
2591
+ RunAgentToolChoice1$outboundSchema,
2592
+ ]).optional(),
2593
+ parallelToolCalls: z.boolean().optional(),
2594
+ modalities: z.nullable(
2595
+ z.array(RunAgentModelConfigurationModalities$outboundSchema),
2596
+ ).optional(),
2597
+ guardrails: z.array(
2598
+ z.lazy(() => RunAgentModelConfigurationGuardrails$outboundSchema),
2599
+ ).optional(),
2600
+ plugins: z.array(
2601
+ z.union([
2602
+ components.PIIRedactionPlugin$outboundSchema.and(
2603
+ z.object({ id: z.literal("pii_redaction") }),
2604
+ ),
2605
+ components.ResponseHealingPlugin$outboundSchema,
2606
+ components.TraceScrubbingPlugin$outboundSchema,
2607
+ ]),
2608
+ ).optional(),
2609
+ fallbacks: z.array(
2610
+ z.lazy(() => RunAgentModelConfigurationFallbacks$outboundSchema),
2611
+ ).optional(),
2612
+ cache: z.lazy(() => RunAgentModelConfigurationCache$outboundSchema)
2613
+ .optional(),
2614
+ loadBalancer: z.lazy(() => RunAgentLoadBalancer1$outboundSchema).optional(),
2615
+ timeout: z.lazy(() => RunAgentModelConfigurationTimeout$outboundSchema)
2616
+ .optional(),
2617
+ cacheControl: z.lazy(() =>
2618
+ RunAgentModelConfigurationCacheControl$outboundSchema
2619
+ ).optional(),
2620
+ promptCacheKey: z.string().optional(),
2621
+ }).transform((v) => {
2622
+ return remap$(v, {
2623
+ frequencyPenalty: "frequency_penalty",
2624
+ maxTokens: "max_tokens",
2625
+ maxCompletionTokens: "max_completion_tokens",
2626
+ presencePenalty: "presence_penalty",
2627
+ responseFormat: "response_format",
2628
+ reasoningEffort: "reasoning_effort",
2629
+ topP: "top_p",
2630
+ topK: "top_k",
2631
+ toolChoice: "tool_choice",
2632
+ parallelToolCalls: "parallel_tool_calls",
2633
+ loadBalancer: "load_balancer",
2634
+ cacheControl: "cache_control",
2635
+ promptCacheKey: "prompt_cache_key",
2636
+ });
2637
+ });
2638
+
2639
+ export function runAgentModelConfigurationParametersToJSON(
2640
+ runAgentModelConfigurationParameters: RunAgentModelConfigurationParameters,
2641
+ ): string {
2642
+ return JSON.stringify(
2643
+ RunAgentModelConfigurationParameters$outboundSchema.parse(
2644
+ runAgentModelConfigurationParameters,
2645
+ ),
2646
+ );
2647
+ }
2648
+
2649
+ /** @internal */
2650
+ export type RunAgentModelConfigurationRetry$Outbound = {
2651
+ count: number;
2652
+ on_codes?: Array<number> | undefined;
2653
+ };
2654
+
2655
+ /** @internal */
2656
+ export const RunAgentModelConfigurationRetry$outboundSchema: z.ZodType<
2657
+ RunAgentModelConfigurationRetry$Outbound,
2658
+ z.ZodTypeDef,
2659
+ RunAgentModelConfigurationRetry
2660
+ > = z.object({
2661
+ count: z.number().default(3),
2662
+ onCodes: z.array(z.number()).optional(),
2663
+ }).transform((v) => {
2664
+ return remap$(v, {
2665
+ onCodes: "on_codes",
2666
+ });
2667
+ });
2668
+
2669
+ export function runAgentModelConfigurationRetryToJSON(
2670
+ runAgentModelConfigurationRetry: RunAgentModelConfigurationRetry,
2671
+ ): string {
2672
+ return JSON.stringify(
2673
+ RunAgentModelConfigurationRetry$outboundSchema.parse(
2674
+ runAgentModelConfigurationRetry,
2675
+ ),
2676
+ );
2677
+ }
2678
+
2679
+ /** @internal */
2680
+ export type RunAgentModelConfiguration2$Outbound = {
2681
+ id: string;
2682
+ parameters?: RunAgentModelConfigurationParameters$Outbound | undefined;
2683
+ retry?: RunAgentModelConfigurationRetry$Outbound | undefined;
2684
+ };
2685
+
2686
+ /** @internal */
2687
+ export const RunAgentModelConfiguration2$outboundSchema: z.ZodType<
2688
+ RunAgentModelConfiguration2$Outbound,
2689
+ z.ZodTypeDef,
2690
+ RunAgentModelConfiguration2
2691
+ > = z.object({
2692
+ id: z.string(),
2693
+ parameters: z.lazy(() => RunAgentModelConfigurationParameters$outboundSchema)
2694
+ .optional(),
2695
+ retry: z.lazy(() => RunAgentModelConfigurationRetry$outboundSchema)
2696
+ .optional(),
2697
+ });
2698
+
2699
+ export function runAgentModelConfiguration2ToJSON(
2700
+ runAgentModelConfiguration2: RunAgentModelConfiguration2,
2701
+ ): string {
2702
+ return JSON.stringify(
2703
+ RunAgentModelConfiguration2$outboundSchema.parse(
2704
+ runAgentModelConfiguration2,
2705
+ ),
2706
+ );
2707
+ }
2708
+
2709
+ /** @internal */
2710
+ export type RunAgentModelConfiguration$Outbound =
2711
+ | RunAgentModelConfiguration2$Outbound
2712
+ | string;
2713
+
2714
+ /** @internal */
2715
+ export const RunAgentModelConfiguration$outboundSchema: z.ZodType<
2716
+ RunAgentModelConfiguration$Outbound,
2717
+ z.ZodTypeDef,
2718
+ RunAgentModelConfiguration
2719
+ > = z.union([
2720
+ z.lazy(() => RunAgentModelConfiguration2$outboundSchema),
2721
+ z.string(),
2722
+ ]);
2723
+
2724
+ export function runAgentModelConfigurationToJSON(
2725
+ runAgentModelConfiguration: RunAgentModelConfiguration,
2726
+ ): string {
2727
+ return JSON.stringify(
2728
+ RunAgentModelConfiguration$outboundSchema.parse(runAgentModelConfiguration),
2729
+ );
2730
+ }
2731
+
2732
+ /** @internal */
2733
+ export type RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
2734
+ {
2735
+ description?: string | undefined;
2736
+ name: string;
2737
+ schema?: any | undefined;
2738
+ strict: boolean;
2739
+ };
2740
+
2741
+ /** @internal */
2742
+ export const RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema:
2743
+ z.ZodType<
2744
+ RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound,
2745
+ z.ZodTypeDef,
2746
+ RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema
2747
+ > = z.object({
2748
+ description: z.string().optional(),
2749
+ name: z.string(),
2750
+ schema: z.any().optional(),
2751
+ strict: z.boolean().default(false),
2752
+ });
2753
+
2754
+ export function runAgentResponseFormatAgentsRequestRequestBodyJsonSchemaToJSON(
2755
+ runAgentResponseFormatAgentsRequestRequestBodyJsonSchema:
2756
+ RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema,
2757
+ ): string {
2758
+ return JSON.stringify(
2759
+ RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema
2760
+ .parse(runAgentResponseFormatAgentsRequestRequestBodyJsonSchema),
2761
+ );
2762
+ }
2763
+
2764
+ /** @internal */
2765
+ export type RunAgentResponseFormatAgentsRequestJSONSchema$Outbound = {
2766
+ type: "json_schema";
2767
+ json_schema:
2768
+ RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound;
2769
+ };
2770
+
2771
+ /** @internal */
2772
+ export const RunAgentResponseFormatAgentsRequestJSONSchema$outboundSchema:
2773
+ z.ZodType<
2774
+ RunAgentResponseFormatAgentsRequestJSONSchema$Outbound,
2775
+ z.ZodTypeDef,
2776
+ RunAgentResponseFormatAgentsRequestJSONSchema
2777
+ > = z.object({
2778
+ type: z.literal("json_schema"),
2779
+ jsonSchema: z.lazy(() =>
2780
+ RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSchema
2781
+ ),
2782
+ }).transform((v) => {
2783
+ return remap$(v, {
2784
+ jsonSchema: "json_schema",
2785
+ });
2786
+ });
2787
+
2788
+ export function runAgentResponseFormatAgentsRequestJSONSchemaToJSON(
2789
+ runAgentResponseFormatAgentsRequestJSONSchema:
2790
+ RunAgentResponseFormatAgentsRequestJSONSchema,
2791
+ ): string {
2792
+ return JSON.stringify(
2793
+ RunAgentResponseFormatAgentsRequestJSONSchema$outboundSchema.parse(
2794
+ runAgentResponseFormatAgentsRequestJSONSchema,
2795
+ ),
2796
+ );
2797
+ }
2798
+
2799
+ /** @internal */
2800
+ export type RunAgentResponseFormatAgentsJSONObject$Outbound = {
2801
+ type: "json_object";
2802
+ };
2803
+
2804
+ /** @internal */
2805
+ export const RunAgentResponseFormatAgentsJSONObject$outboundSchema: z.ZodType<
2806
+ RunAgentResponseFormatAgentsJSONObject$Outbound,
2807
+ z.ZodTypeDef,
2808
+ RunAgentResponseFormatAgentsJSONObject
2809
+ > = z.object({
2810
+ type: z.literal("json_object"),
2811
+ });
2812
+
2813
+ export function runAgentResponseFormatAgentsJSONObjectToJSON(
2814
+ runAgentResponseFormatAgentsJSONObject:
2815
+ RunAgentResponseFormatAgentsJSONObject,
2816
+ ): string {
2817
+ return JSON.stringify(
2818
+ RunAgentResponseFormatAgentsJSONObject$outboundSchema.parse(
2819
+ runAgentResponseFormatAgentsJSONObject,
2820
+ ),
2821
+ );
2822
+ }
2823
+
2824
+ /** @internal */
2825
+ export type RunAgentResponseFormatAgentsText$Outbound = {
2826
+ type: "text";
2827
+ };
2828
+
2829
+ /** @internal */
2830
+ export const RunAgentResponseFormatAgentsText$outboundSchema: z.ZodType<
2831
+ RunAgentResponseFormatAgentsText$Outbound,
2832
+ z.ZodTypeDef,
2833
+ RunAgentResponseFormatAgentsText
2834
+ > = z.object({
2835
+ type: z.literal("text"),
2836
+ });
2837
+
2838
+ export function runAgentResponseFormatAgentsTextToJSON(
2839
+ runAgentResponseFormatAgentsText: RunAgentResponseFormatAgentsText,
2840
+ ): string {
2841
+ return JSON.stringify(
2842
+ RunAgentResponseFormatAgentsText$outboundSchema.parse(
2843
+ runAgentResponseFormatAgentsText,
2844
+ ),
2845
+ );
2846
+ }
2847
+
2848
+ /** @internal */
2849
+ export type RunAgentFallbackModelConfigurationResponseFormat$Outbound =
2850
+ | RunAgentResponseFormatAgentsText$Outbound
2851
+ | RunAgentResponseFormatAgentsJSONObject$Outbound
2852
+ | RunAgentResponseFormatAgentsRequestJSONSchema$Outbound;
2853
+
2854
+ /** @internal */
2855
+ export const RunAgentFallbackModelConfigurationResponseFormat$outboundSchema:
2856
+ z.ZodType<
2857
+ RunAgentFallbackModelConfigurationResponseFormat$Outbound,
2858
+ z.ZodTypeDef,
2859
+ RunAgentFallbackModelConfigurationResponseFormat
2860
+ > = z.union([
2861
+ z.lazy(() => RunAgentResponseFormatAgentsText$outboundSchema),
2862
+ z.lazy(() => RunAgentResponseFormatAgentsJSONObject$outboundSchema),
2863
+ z.lazy(() => RunAgentResponseFormatAgentsRequestJSONSchema$outboundSchema),
2864
+ ]);
2865
+
2866
+ export function runAgentFallbackModelConfigurationResponseFormatToJSON(
2867
+ runAgentFallbackModelConfigurationResponseFormat:
2868
+ RunAgentFallbackModelConfigurationResponseFormat,
2869
+ ): string {
2870
+ return JSON.stringify(
2871
+ RunAgentFallbackModelConfigurationResponseFormat$outboundSchema.parse(
2872
+ runAgentFallbackModelConfigurationResponseFormat,
2873
+ ),
2874
+ );
2875
+ }
2876
+
2877
+ /** @internal */
2878
+ export const RunAgentFallbackModelConfigurationReasoningEffort$outboundSchema:
2879
+ z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationReasoningEffort> = z
2880
+ .nativeEnum(RunAgentFallbackModelConfigurationReasoningEffort);
2881
+
2882
+ /** @internal */
2883
+ export type RunAgentFallbackModelConfigurationStop$Outbound =
2884
+ | string
2885
+ | Array<string>;
2886
+
2887
+ /** @internal */
2888
+ export const RunAgentFallbackModelConfigurationStop$outboundSchema: z.ZodType<
2889
+ RunAgentFallbackModelConfigurationStop$Outbound,
2890
+ z.ZodTypeDef,
2891
+ RunAgentFallbackModelConfigurationStop
2892
+ > = z.union([z.string(), z.array(z.string())]);
2893
+
2894
+ export function runAgentFallbackModelConfigurationStopToJSON(
2895
+ runAgentFallbackModelConfigurationStop:
2896
+ RunAgentFallbackModelConfigurationStop,
2897
+ ): string {
2898
+ return JSON.stringify(
2899
+ RunAgentFallbackModelConfigurationStop$outboundSchema.parse(
2900
+ runAgentFallbackModelConfigurationStop,
2901
+ ),
2902
+ );
2903
+ }
2904
+
2905
+ /** @internal */
2906
+ export type RunAgentFallbackModelConfigurationThinking$Outbound =
2907
+ | components.ThinkingConfigDisabledSchema$Outbound
2908
+ | components.ThinkingConfigEnabledSchema$Outbound
2909
+ | components.ThinkingConfigAdaptiveSchema$Outbound;
2910
+
2911
+ /** @internal */
2912
+ export const RunAgentFallbackModelConfigurationThinking$outboundSchema:
2913
+ z.ZodType<
2914
+ RunAgentFallbackModelConfigurationThinking$Outbound,
2915
+ z.ZodTypeDef,
2916
+ RunAgentFallbackModelConfigurationThinking
2917
+ > = z.union([
2918
+ components.ThinkingConfigDisabledSchema$outboundSchema,
2919
+ components.ThinkingConfigEnabledSchema$outboundSchema,
2920
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
2921
+ ]);
2922
+
2923
+ export function runAgentFallbackModelConfigurationThinkingToJSON(
2924
+ runAgentFallbackModelConfigurationThinking:
2925
+ RunAgentFallbackModelConfigurationThinking,
2926
+ ): string {
2927
+ return JSON.stringify(
2928
+ RunAgentFallbackModelConfigurationThinking$outboundSchema.parse(
2929
+ runAgentFallbackModelConfigurationThinking,
2930
+ ),
2931
+ );
2932
+ }
2933
+
2934
+ /** @internal */
2935
+ export const RunAgentToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<
2936
+ typeof RunAgentToolChoiceAgentsType
2937
+ > = z.nativeEnum(RunAgentToolChoiceAgentsType);
2938
+
2939
+ /** @internal */
2940
+ export type RunAgentToolChoiceAgentsFunction$Outbound = {
2941
+ name: string;
2942
+ };
2943
+
2944
+ /** @internal */
2945
+ export const RunAgentToolChoiceAgentsFunction$outboundSchema: z.ZodType<
2946
+ RunAgentToolChoiceAgentsFunction$Outbound,
2947
+ z.ZodTypeDef,
2948
+ RunAgentToolChoiceAgentsFunction
2949
+ > = z.object({
2950
+ name: z.string(),
2951
+ });
2952
+
2953
+ export function runAgentToolChoiceAgentsFunctionToJSON(
2954
+ runAgentToolChoiceAgentsFunction: RunAgentToolChoiceAgentsFunction,
2955
+ ): string {
2956
+ return JSON.stringify(
2957
+ RunAgentToolChoiceAgentsFunction$outboundSchema.parse(
2958
+ runAgentToolChoiceAgentsFunction,
2959
+ ),
2960
+ );
2961
+ }
2962
+
2963
+ /** @internal */
2964
+ export type RunAgentToolChoiceAgents2$Outbound = {
2965
+ type?: string | undefined;
2966
+ function: RunAgentToolChoiceAgentsFunction$Outbound;
2967
+ };
2968
+
2969
+ /** @internal */
2970
+ export const RunAgentToolChoiceAgents2$outboundSchema: z.ZodType<
2971
+ RunAgentToolChoiceAgents2$Outbound,
2972
+ z.ZodTypeDef,
2973
+ RunAgentToolChoiceAgents2
2974
+ > = z.object({
2975
+ type: RunAgentToolChoiceAgentsType$outboundSchema.optional(),
2976
+ function: z.lazy(() => RunAgentToolChoiceAgentsFunction$outboundSchema),
2977
+ });
2978
+
2979
+ export function runAgentToolChoiceAgents2ToJSON(
2980
+ runAgentToolChoiceAgents2: RunAgentToolChoiceAgents2,
2981
+ ): string {
2982
+ return JSON.stringify(
2983
+ RunAgentToolChoiceAgents2$outboundSchema.parse(runAgentToolChoiceAgents2),
2984
+ );
2985
+ }
2986
+
2987
+ /** @internal */
2988
+ export const RunAgentToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<
2989
+ typeof RunAgentToolChoiceAgents1
2990
+ > = z.nativeEnum(RunAgentToolChoiceAgents1);
2991
+
2992
+ /** @internal */
2993
+ export type RunAgentFallbackModelConfigurationToolChoice$Outbound =
2994
+ | RunAgentToolChoiceAgents2$Outbound
2995
+ | string;
2996
+
2997
+ /** @internal */
2998
+ export const RunAgentFallbackModelConfigurationToolChoice$outboundSchema:
2999
+ z.ZodType<
3000
+ RunAgentFallbackModelConfigurationToolChoice$Outbound,
3001
+ z.ZodTypeDef,
3002
+ RunAgentFallbackModelConfigurationToolChoice
3003
+ > = z.union([
3004
+ z.lazy(() => RunAgentToolChoiceAgents2$outboundSchema),
3005
+ RunAgentToolChoiceAgents1$outboundSchema,
3006
+ ]);
3007
+
3008
+ export function runAgentFallbackModelConfigurationToolChoiceToJSON(
3009
+ runAgentFallbackModelConfigurationToolChoice:
3010
+ RunAgentFallbackModelConfigurationToolChoice,
3011
+ ): string {
3012
+ return JSON.stringify(
3013
+ RunAgentFallbackModelConfigurationToolChoice$outboundSchema.parse(
3014
+ runAgentFallbackModelConfigurationToolChoice,
3015
+ ),
3016
+ );
3017
+ }
3018
+
3019
+ /** @internal */
3020
+ export const RunAgentFallbackModelConfigurationModalities$outboundSchema:
3021
+ z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationModalities> = z
3022
+ .nativeEnum(RunAgentFallbackModelConfigurationModalities);
3023
+
3024
+ /** @internal */
3025
+ export const RunAgentIdAgents1$outboundSchema: z.ZodNativeEnum<
3026
+ typeof RunAgentIdAgents1
3027
+ > = z.nativeEnum(RunAgentIdAgents1);
3028
+
3029
+ /** @internal */
3030
+ export type RunAgentFallbackModelConfigurationId$Outbound = string | string;
3031
+
3032
+ /** @internal */
3033
+ export const RunAgentFallbackModelConfigurationId$outboundSchema: z.ZodType<
3034
+ RunAgentFallbackModelConfigurationId$Outbound,
3035
+ z.ZodTypeDef,
3036
+ RunAgentFallbackModelConfigurationId
3037
+ > = z.union([RunAgentIdAgents1$outboundSchema, z.string()]);
3038
+
3039
+ export function runAgentFallbackModelConfigurationIdToJSON(
3040
+ runAgentFallbackModelConfigurationId: RunAgentFallbackModelConfigurationId,
3041
+ ): string {
3042
+ return JSON.stringify(
3043
+ RunAgentFallbackModelConfigurationId$outboundSchema.parse(
3044
+ runAgentFallbackModelConfigurationId,
3045
+ ),
3046
+ );
3047
+ }
3048
+
3049
+ /** @internal */
3050
+ export const RunAgentFallbackModelConfigurationExecuteOn$outboundSchema:
3051
+ z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationExecuteOn> = z
3052
+ .nativeEnum(RunAgentFallbackModelConfigurationExecuteOn);
3053
+
3054
+ /** @internal */
3055
+ export type RunAgentFallbackModelConfigurationGuardrails$Outbound = {
3056
+ id: string | string;
3057
+ execute_on: string;
3058
+ };
3059
+
3060
+ /** @internal */
3061
+ export const RunAgentFallbackModelConfigurationGuardrails$outboundSchema:
3062
+ z.ZodType<
3063
+ RunAgentFallbackModelConfigurationGuardrails$Outbound,
3064
+ z.ZodTypeDef,
3065
+ RunAgentFallbackModelConfigurationGuardrails
3066
+ > = z.object({
3067
+ id: z.union([RunAgentIdAgents1$outboundSchema, z.string()]),
3068
+ executeOn: RunAgentFallbackModelConfigurationExecuteOn$outboundSchema,
3069
+ }).transform((v) => {
3070
+ return remap$(v, {
3071
+ executeOn: "execute_on",
3072
+ });
3073
+ });
3074
+
3075
+ export function runAgentFallbackModelConfigurationGuardrailsToJSON(
3076
+ runAgentFallbackModelConfigurationGuardrails:
3077
+ RunAgentFallbackModelConfigurationGuardrails,
3078
+ ): string {
3079
+ return JSON.stringify(
3080
+ RunAgentFallbackModelConfigurationGuardrails$outboundSchema.parse(
3081
+ runAgentFallbackModelConfigurationGuardrails,
3082
+ ),
3083
+ );
3084
+ }
3085
+
3086
+ /** @internal */
3087
+ export type RunAgentFallbackModelConfigurationPlugins$Outbound =
3088
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
3089
+ | components.ResponseHealingPlugin$Outbound
3090
+ | components.TraceScrubbingPlugin$Outbound;
3091
+
3092
+ /** @internal */
3093
+ export const RunAgentFallbackModelConfigurationPlugins$outboundSchema:
3094
+ z.ZodType<
3095
+ RunAgentFallbackModelConfigurationPlugins$Outbound,
3096
+ z.ZodTypeDef,
3097
+ RunAgentFallbackModelConfigurationPlugins
3098
+ > = z.union([
3099
+ components.PIIRedactionPlugin$outboundSchema.and(
3100
+ z.object({ id: z.literal("pii_redaction") }),
3101
+ ),
3102
+ components.ResponseHealingPlugin$outboundSchema,
3103
+ components.TraceScrubbingPlugin$outboundSchema,
3104
+ ]);
3105
+
3106
+ export function runAgentFallbackModelConfigurationPluginsToJSON(
3107
+ runAgentFallbackModelConfigurationPlugins:
3108
+ RunAgentFallbackModelConfigurationPlugins,
3109
+ ): string {
3110
+ return JSON.stringify(
3111
+ RunAgentFallbackModelConfigurationPlugins$outboundSchema.parse(
3112
+ runAgentFallbackModelConfigurationPlugins,
3113
+ ),
3114
+ );
3115
+ }
3116
+
3117
+ /** @internal */
3118
+ export type RunAgentFallbackModelConfigurationFallbacks$Outbound = {
3119
+ model: string;
3120
+ };
3121
+
3122
+ /** @internal */
3123
+ export const RunAgentFallbackModelConfigurationFallbacks$outboundSchema:
3124
+ z.ZodType<
3125
+ RunAgentFallbackModelConfigurationFallbacks$Outbound,
3126
+ z.ZodTypeDef,
3127
+ RunAgentFallbackModelConfigurationFallbacks
3128
+ > = z.object({
3129
+ model: z.string(),
3130
+ });
3131
+
3132
+ export function runAgentFallbackModelConfigurationFallbacksToJSON(
3133
+ runAgentFallbackModelConfigurationFallbacks:
3134
+ RunAgentFallbackModelConfigurationFallbacks,
3135
+ ): string {
3136
+ return JSON.stringify(
3137
+ RunAgentFallbackModelConfigurationFallbacks$outboundSchema.parse(
3138
+ runAgentFallbackModelConfigurationFallbacks,
3139
+ ),
3140
+ );
3141
+ }
3142
+
3143
+ /** @internal */
3144
+ export const RunAgentFallbackModelConfigurationType$outboundSchema:
3145
+ z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationType> = z.nativeEnum(
3146
+ RunAgentFallbackModelConfigurationType,
3147
+ );
3148
+
3149
+ /** @internal */
3150
+ export type RunAgentFallbackModelConfigurationCache$Outbound = {
3151
+ ttl: number;
3152
+ type: string;
3153
+ };
3154
+
3155
+ /** @internal */
3156
+ export const RunAgentFallbackModelConfigurationCache$outboundSchema: z.ZodType<
3157
+ RunAgentFallbackModelConfigurationCache$Outbound,
3158
+ z.ZodTypeDef,
3159
+ RunAgentFallbackModelConfigurationCache
3160
+ > = z.object({
3161
+ ttl: z.number().default(1800),
3162
+ type: RunAgentFallbackModelConfigurationType$outboundSchema,
3163
+ });
3164
+
3165
+ export function runAgentFallbackModelConfigurationCacheToJSON(
3166
+ runAgentFallbackModelConfigurationCache:
3167
+ RunAgentFallbackModelConfigurationCache,
3168
+ ): string {
3169
+ return JSON.stringify(
3170
+ RunAgentFallbackModelConfigurationCache$outboundSchema.parse(
3171
+ runAgentFallbackModelConfigurationCache,
3172
+ ),
3173
+ );
3174
+ }
3175
+
3176
+ /** @internal */
3177
+ export const RunAgentLoadBalancerAgentsType$outboundSchema: z.ZodNativeEnum<
3178
+ typeof RunAgentLoadBalancerAgentsType
3179
+ > = z.nativeEnum(RunAgentLoadBalancerAgentsType);
3180
+
3181
+ /** @internal */
3182
+ export type RunAgentLoadBalancerAgentsModels$Outbound = {
3183
+ model: string;
3184
+ weight: number;
3185
+ };
3186
+
3187
+ /** @internal */
3188
+ export const RunAgentLoadBalancerAgentsModels$outboundSchema: z.ZodType<
3189
+ RunAgentLoadBalancerAgentsModels$Outbound,
3190
+ z.ZodTypeDef,
3191
+ RunAgentLoadBalancerAgentsModels
3192
+ > = z.object({
3193
+ model: z.string(),
3194
+ weight: z.number().default(0.5),
3195
+ });
3196
+
3197
+ export function runAgentLoadBalancerAgentsModelsToJSON(
3198
+ runAgentLoadBalancerAgentsModels: RunAgentLoadBalancerAgentsModels,
3199
+ ): string {
3200
+ return JSON.stringify(
3201
+ RunAgentLoadBalancerAgentsModels$outboundSchema.parse(
3202
+ runAgentLoadBalancerAgentsModels,
3203
+ ),
3204
+ );
3205
+ }
3206
+
3207
+ /** @internal */
3208
+ export type RunAgentLoadBalancerAgents1$Outbound = {
3209
+ type: string;
3210
+ models: Array<RunAgentLoadBalancerAgentsModels$Outbound>;
3211
+ };
3212
+
3213
+ /** @internal */
3214
+ export const RunAgentLoadBalancerAgents1$outboundSchema: z.ZodType<
3215
+ RunAgentLoadBalancerAgents1$Outbound,
3216
+ z.ZodTypeDef,
3217
+ RunAgentLoadBalancerAgents1
3218
+ > = z.object({
3219
+ type: RunAgentLoadBalancerAgentsType$outboundSchema,
3220
+ models: z.array(
3221
+ z.lazy(() => RunAgentLoadBalancerAgentsModels$outboundSchema),
3222
+ ),
3223
+ });
3224
+
3225
+ export function runAgentLoadBalancerAgents1ToJSON(
3226
+ runAgentLoadBalancerAgents1: RunAgentLoadBalancerAgents1,
3227
+ ): string {
3228
+ return JSON.stringify(
3229
+ RunAgentLoadBalancerAgents1$outboundSchema.parse(
3230
+ runAgentLoadBalancerAgents1,
3231
+ ),
3232
+ );
3233
+ }
3234
+
3235
+ /** @internal */
3236
+ export type RunAgentFallbackModelConfigurationLoadBalancer$Outbound =
3237
+ RunAgentLoadBalancerAgents1$Outbound;
3238
+
3239
+ /** @internal */
3240
+ export const RunAgentFallbackModelConfigurationLoadBalancer$outboundSchema:
3241
+ z.ZodType<
3242
+ RunAgentFallbackModelConfigurationLoadBalancer$Outbound,
3243
+ z.ZodTypeDef,
3244
+ RunAgentFallbackModelConfigurationLoadBalancer
3245
+ > = z.lazy(() => RunAgentLoadBalancerAgents1$outboundSchema);
3246
+
3247
+ export function runAgentFallbackModelConfigurationLoadBalancerToJSON(
3248
+ runAgentFallbackModelConfigurationLoadBalancer:
3249
+ RunAgentFallbackModelConfigurationLoadBalancer,
3250
+ ): string {
3251
+ return JSON.stringify(
3252
+ RunAgentFallbackModelConfigurationLoadBalancer$outboundSchema.parse(
3253
+ runAgentFallbackModelConfigurationLoadBalancer,
3254
+ ),
3255
+ );
3256
+ }
3257
+
3258
+ /** @internal */
3259
+ export type RunAgentFallbackModelConfigurationTimeout$Outbound = {
3260
+ call_timeout: number;
3261
+ };
3262
+
3263
+ /** @internal */
3264
+ export const RunAgentFallbackModelConfigurationTimeout$outboundSchema:
3265
+ z.ZodType<
3266
+ RunAgentFallbackModelConfigurationTimeout$Outbound,
3267
+ z.ZodTypeDef,
3268
+ RunAgentFallbackModelConfigurationTimeout
3269
+ > = z.object({
3270
+ callTimeout: z.number(),
3271
+ }).transform((v) => {
3272
+ return remap$(v, {
3273
+ callTimeout: "call_timeout",
3274
+ });
3275
+ });
3276
+
3277
+ export function runAgentFallbackModelConfigurationTimeoutToJSON(
3278
+ runAgentFallbackModelConfigurationTimeout:
3279
+ RunAgentFallbackModelConfigurationTimeout,
3280
+ ): string {
3281
+ return JSON.stringify(
3282
+ RunAgentFallbackModelConfigurationTimeout$outboundSchema.parse(
3283
+ runAgentFallbackModelConfigurationTimeout,
3284
+ ),
3285
+ );
3286
+ }
3287
+
3288
+ /** @internal */
3289
+ export const RunAgentFallbackModelConfigurationAgentsType$outboundSchema:
3290
+ z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationAgentsType> = z
3291
+ .nativeEnum(RunAgentFallbackModelConfigurationAgentsType);
3292
+
3293
+ /** @internal */
3294
+ export const RunAgentFallbackModelConfigurationTtl$outboundSchema:
3295
+ z.ZodNativeEnum<typeof RunAgentFallbackModelConfigurationTtl> = z.nativeEnum(
3296
+ RunAgentFallbackModelConfigurationTtl,
3297
+ );
3298
+
3299
+ /** @internal */
3300
+ export type RunAgentFallbackModelConfigurationCacheControl$Outbound = {
3301
+ type: string;
3302
+ ttl: string;
3303
+ };
3304
+
3305
+ /** @internal */
3306
+ export const RunAgentFallbackModelConfigurationCacheControl$outboundSchema:
3307
+ z.ZodType<
3308
+ RunAgentFallbackModelConfigurationCacheControl$Outbound,
3309
+ z.ZodTypeDef,
3310
+ RunAgentFallbackModelConfigurationCacheControl
3311
+ > = z.object({
3312
+ type: RunAgentFallbackModelConfigurationAgentsType$outboundSchema,
3313
+ ttl: RunAgentFallbackModelConfigurationTtl$outboundSchema.default("5m"),
3314
+ });
3315
+
3316
+ export function runAgentFallbackModelConfigurationCacheControlToJSON(
3317
+ runAgentFallbackModelConfigurationCacheControl:
3318
+ RunAgentFallbackModelConfigurationCacheControl,
3319
+ ): string {
3320
+ return JSON.stringify(
3321
+ RunAgentFallbackModelConfigurationCacheControl$outboundSchema.parse(
3322
+ runAgentFallbackModelConfigurationCacheControl,
3323
+ ),
3324
+ );
3325
+ }
3326
+
3327
+ /** @internal */
3328
+ export type RunAgentFallbackModelConfigurationParameters$Outbound = {
3329
+ name?: string | undefined;
3330
+ frequency_penalty?: number | null | undefined;
3331
+ max_tokens?: number | null | undefined;
3332
+ max_completion_tokens?: number | null | undefined;
3333
+ presence_penalty?: number | null | undefined;
3334
+ response_format?:
3335
+ | RunAgentResponseFormatAgentsText$Outbound
3336
+ | RunAgentResponseFormatAgentsJSONObject$Outbound
3337
+ | RunAgentResponseFormatAgentsRequestJSONSchema$Outbound
3338
+ | undefined;
3339
+ reasoning_effort?: string | undefined;
3340
+ verbosity?: string | undefined;
3341
+ seed?: number | null | undefined;
3342
+ stop?: string | Array<string> | null | undefined;
3343
+ thinking?:
3344
+ | components.ThinkingConfigDisabledSchema$Outbound
3345
+ | components.ThinkingConfigEnabledSchema$Outbound
3346
+ | components.ThinkingConfigAdaptiveSchema$Outbound
3347
+ | undefined;
3348
+ temperature?: number | null | undefined;
3349
+ top_p?: number | null | undefined;
3350
+ top_k?: number | null | undefined;
3351
+ tool_choice?: RunAgentToolChoiceAgents2$Outbound | string | undefined;
3352
+ parallel_tool_calls?: boolean | undefined;
3353
+ modalities?: Array<string> | null | undefined;
3354
+ guardrails?:
3355
+ | Array<RunAgentFallbackModelConfigurationGuardrails$Outbound>
3356
+ | undefined;
3357
+ plugins?:
3358
+ | Array<
3359
+ | (components.PIIRedactionPlugin$Outbound & { id: "pii_redaction" })
3360
+ | components.ResponseHealingPlugin$Outbound
3361
+ | components.TraceScrubbingPlugin$Outbound
3362
+ >
3363
+ | undefined;
3364
+ fallbacks?:
3365
+ | Array<RunAgentFallbackModelConfigurationFallbacks$Outbound>
3366
+ | undefined;
3367
+ cache?: RunAgentFallbackModelConfigurationCache$Outbound | undefined;
3368
+ load_balancer?: RunAgentLoadBalancerAgents1$Outbound | undefined;
3369
+ timeout?: RunAgentFallbackModelConfigurationTimeout$Outbound | undefined;
3370
+ cache_control?:
3371
+ | RunAgentFallbackModelConfigurationCacheControl$Outbound
3372
+ | undefined;
3373
+ prompt_cache_key?: string | undefined;
3374
+ };
3375
+
3376
+ /** @internal */
3377
+ export const RunAgentFallbackModelConfigurationParameters$outboundSchema:
3378
+ z.ZodType<
3379
+ RunAgentFallbackModelConfigurationParameters$Outbound,
3380
+ z.ZodTypeDef,
3381
+ RunAgentFallbackModelConfigurationParameters
3382
+ > = z.object({
3383
+ name: z.string().optional(),
3384
+ frequencyPenalty: z.nullable(z.number()).optional(),
3385
+ maxTokens: z.nullable(z.number().int()).optional(),
3386
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
3387
+ presencePenalty: z.nullable(z.number()).optional(),
3388
+ responseFormat: z.union([
3389
+ z.lazy(() => RunAgentResponseFormatAgentsText$outboundSchema),
3390
+ z.lazy(() => RunAgentResponseFormatAgentsJSONObject$outboundSchema),
3391
+ z.lazy(() =>
3392
+ RunAgentResponseFormatAgentsRequestJSONSchema$outboundSchema
3393
+ ),
3394
+ ]).optional(),
3395
+ reasoningEffort:
3396
+ RunAgentFallbackModelConfigurationReasoningEffort$outboundSchema
3397
+ .optional(),
3398
+ verbosity: z.string().optional(),
3399
+ seed: z.nullable(z.number()).optional(),
3400
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3401
+ thinking: z.union([
3402
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3403
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3404
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3405
+ ]).optional(),
3406
+ temperature: z.nullable(z.number()).optional(),
3407
+ topP: z.nullable(z.number()).optional(),
3408
+ topK: z.nullable(z.number()).optional(),
3409
+ toolChoice: z.union([
3410
+ z.lazy(() => RunAgentToolChoiceAgents2$outboundSchema),
3411
+ RunAgentToolChoiceAgents1$outboundSchema,
3412
+ ]).optional(),
3413
+ parallelToolCalls: z.boolean().optional(),
3414
+ modalities: z.nullable(
3415
+ z.array(RunAgentFallbackModelConfigurationModalities$outboundSchema),
3416
+ ).optional(),
3417
+ guardrails: z.array(
3418
+ z.lazy(() => RunAgentFallbackModelConfigurationGuardrails$outboundSchema),
3419
+ ).optional(),
3420
+ plugins: z.array(
3421
+ z.union([
3422
+ components.PIIRedactionPlugin$outboundSchema.and(
3423
+ z.object({ id: z.literal("pii_redaction") }),
3424
+ ),
3425
+ components.ResponseHealingPlugin$outboundSchema,
3426
+ components.TraceScrubbingPlugin$outboundSchema,
3427
+ ]),
3428
+ ).optional(),
3429
+ fallbacks: z.array(
3430
+ z.lazy(() => RunAgentFallbackModelConfigurationFallbacks$outboundSchema),
3431
+ ).optional(),
3432
+ cache: z.lazy(() => RunAgentFallbackModelConfigurationCache$outboundSchema)
3433
+ .optional(),
3434
+ loadBalancer: z.lazy(() => RunAgentLoadBalancerAgents1$outboundSchema)
3435
+ .optional(),
3436
+ timeout: z.lazy(() =>
3437
+ RunAgentFallbackModelConfigurationTimeout$outboundSchema
3438
+ ).optional(),
3439
+ cacheControl: z.lazy(() =>
3440
+ RunAgentFallbackModelConfigurationCacheControl$outboundSchema
3441
+ ).optional(),
3442
+ promptCacheKey: z.string().optional(),
3443
+ }).transform((v) => {
3444
+ return remap$(v, {
3445
+ frequencyPenalty: "frequency_penalty",
3446
+ maxTokens: "max_tokens",
3447
+ maxCompletionTokens: "max_completion_tokens",
3448
+ presencePenalty: "presence_penalty",
3449
+ responseFormat: "response_format",
3450
+ reasoningEffort: "reasoning_effort",
3451
+ topP: "top_p",
3452
+ topK: "top_k",
3453
+ toolChoice: "tool_choice",
3454
+ parallelToolCalls: "parallel_tool_calls",
3455
+ loadBalancer: "load_balancer",
3456
+ cacheControl: "cache_control",
3457
+ promptCacheKey: "prompt_cache_key",
3458
+ });
3459
+ });
3460
+
3461
+ export function runAgentFallbackModelConfigurationParametersToJSON(
3462
+ runAgentFallbackModelConfigurationParameters:
3463
+ RunAgentFallbackModelConfigurationParameters,
3464
+ ): string {
3465
+ return JSON.stringify(
3466
+ RunAgentFallbackModelConfigurationParameters$outboundSchema.parse(
3467
+ runAgentFallbackModelConfigurationParameters,
3468
+ ),
3469
+ );
3470
+ }
3471
+
3472
+ /** @internal */
3473
+ export type RunAgentFallbackModelConfigurationRetry$Outbound = {
3474
+ count: number;
3475
+ on_codes?: Array<number> | undefined;
3476
+ };
3477
+
3478
+ /** @internal */
3479
+ export const RunAgentFallbackModelConfigurationRetry$outboundSchema: z.ZodType<
3480
+ RunAgentFallbackModelConfigurationRetry$Outbound,
3481
+ z.ZodTypeDef,
3482
+ RunAgentFallbackModelConfigurationRetry
3483
+ > = z.object({
3484
+ count: z.number().default(3),
3485
+ onCodes: z.array(z.number()).optional(),
3486
+ }).transform((v) => {
3487
+ return remap$(v, {
3488
+ onCodes: "on_codes",
3489
+ });
3490
+ });
3491
+
3492
+ export function runAgentFallbackModelConfigurationRetryToJSON(
3493
+ runAgentFallbackModelConfigurationRetry:
3494
+ RunAgentFallbackModelConfigurationRetry,
3495
+ ): string {
3496
+ return JSON.stringify(
3497
+ RunAgentFallbackModelConfigurationRetry$outboundSchema.parse(
3498
+ runAgentFallbackModelConfigurationRetry,
3499
+ ),
3500
+ );
3501
+ }
3502
+
3503
+ /** @internal */
3504
+ export type RunAgentFallbackModelConfiguration2$Outbound = {
3505
+ id: string;
3506
+ parameters?:
3507
+ | RunAgentFallbackModelConfigurationParameters$Outbound
3508
+ | undefined;
3509
+ retry?: RunAgentFallbackModelConfigurationRetry$Outbound | undefined;
3510
+ };
3511
+
3512
+ /** @internal */
3513
+ export const RunAgentFallbackModelConfiguration2$outboundSchema: z.ZodType<
3514
+ RunAgentFallbackModelConfiguration2$Outbound,
3515
+ z.ZodTypeDef,
3516
+ RunAgentFallbackModelConfiguration2
3517
+ > = z.object({
3518
+ id: z.string(),
3519
+ parameters: z.lazy(() =>
3520
+ RunAgentFallbackModelConfigurationParameters$outboundSchema
3521
+ ).optional(),
3522
+ retry: z.lazy(() => RunAgentFallbackModelConfigurationRetry$outboundSchema)
3523
+ .optional(),
3524
+ });
3525
+
3526
+ export function runAgentFallbackModelConfiguration2ToJSON(
3527
+ runAgentFallbackModelConfiguration2: RunAgentFallbackModelConfiguration2,
3528
+ ): string {
3529
+ return JSON.stringify(
3530
+ RunAgentFallbackModelConfiguration2$outboundSchema.parse(
3531
+ runAgentFallbackModelConfiguration2,
3532
+ ),
3533
+ );
3534
+ }
3535
+
3536
+ /** @internal */
3537
+ export type RunAgentFallbackModelConfiguration$Outbound =
3538
+ | RunAgentFallbackModelConfiguration2$Outbound
3539
+ | string;
3540
+
3541
+ /** @internal */
3542
+ export const RunAgentFallbackModelConfiguration$outboundSchema: z.ZodType<
3543
+ RunAgentFallbackModelConfiguration$Outbound,
3544
+ z.ZodTypeDef,
3545
+ RunAgentFallbackModelConfiguration
3546
+ > = z.union([
3547
+ z.lazy(() => RunAgentFallbackModelConfiguration2$outboundSchema),
3548
+ z.string(),
3549
+ ]);
3550
+
3551
+ export function runAgentFallbackModelConfigurationToJSON(
3552
+ runAgentFallbackModelConfiguration: RunAgentFallbackModelConfiguration,
3553
+ ): string {
3554
+ return JSON.stringify(
3555
+ RunAgentFallbackModelConfiguration$outboundSchema.parse(
3556
+ runAgentFallbackModelConfiguration,
3557
+ ),
3558
+ );
3559
+ }
3560
+
3561
+ /** @internal */
3562
+ export const RunAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
3563
+ typeof RunAgentRoleToolMessage
3564
+ > = z.nativeEnum(RunAgentRoleToolMessage);
3565
+
3566
+ /** @internal */
3567
+ export const RunAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
3568
+ typeof RunAgentRoleUserMessage
3569
+ > = z.nativeEnum(RunAgentRoleUserMessage);
3570
+
3571
+ /** @internal */
3572
+ export type RunAgentRole$Outbound = string | string;
3573
+
3574
+ /** @internal */
3575
+ export const RunAgentRole$outboundSchema: z.ZodType<
3576
+ RunAgentRole$Outbound,
3577
+ z.ZodTypeDef,
3578
+ RunAgentRole
3579
+ > = z.union([
3580
+ RunAgentRoleUserMessage$outboundSchema,
3581
+ RunAgentRoleToolMessage$outboundSchema,
3582
+ ]);
3583
+
3584
+ export function runAgentRoleToJSON(runAgentRole: RunAgentRole): string {
3585
+ return JSON.stringify(RunAgentRole$outboundSchema.parse(runAgentRole));
3586
+ }
3587
+
3588
+ /** @internal */
3589
+ export type RunAgentPublicMessagePart$Outbound =
3590
+ | components.TextPart$Outbound
3591
+ | components.FilePart$Outbound
3592
+ | components.ToolResultPart$Outbound
3593
+ | components.ErrorPart$Outbound;
3594
+
3595
+ /** @internal */
3596
+ export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
3597
+ RunAgentPublicMessagePart$Outbound,
3598
+ z.ZodTypeDef,
3599
+ RunAgentPublicMessagePart
3600
+ > = z.union([
3601
+ components.TextPart$outboundSchema,
3602
+ components.FilePart$outboundSchema,
3603
+ components.ToolResultPart$outboundSchema,
3604
+ components.ErrorPart$outboundSchema,
3605
+ ]);
3606
+
3607
+ export function runAgentPublicMessagePartToJSON(
3608
+ runAgentPublicMessagePart: RunAgentPublicMessagePart,
3609
+ ): string {
3610
+ return JSON.stringify(
3611
+ RunAgentPublicMessagePart$outboundSchema.parse(runAgentPublicMessagePart),
3612
+ );
3613
+ }
3614
+
3615
+ /** @internal */
3616
+ export type RunAgentA2AMessage$Outbound = {
3617
+ messageId?: string | undefined;
3618
+ role: string | string;
3619
+ parts: Array<
3620
+ | components.TextPart$Outbound
3621
+ | components.FilePart$Outbound
3622
+ | components.ToolResultPart$Outbound
3623
+ | components.ErrorPart$Outbound
3624
+ >;
3625
+ };
3626
+
3627
+ /** @internal */
3628
+ export const RunAgentA2AMessage$outboundSchema: z.ZodType<
3629
+ RunAgentA2AMessage$Outbound,
3630
+ z.ZodTypeDef,
3631
+ RunAgentA2AMessage
3632
+ > = z.object({
3633
+ messageId: z.string().optional(),
3634
+ role: z.union([
3635
+ RunAgentRoleUserMessage$outboundSchema,
3636
+ RunAgentRoleToolMessage$outboundSchema,
3637
+ ]),
3638
+ parts: z.array(
3639
+ z.union([
3640
+ components.TextPart$outboundSchema,
3641
+ components.FilePart$outboundSchema,
3642
+ components.ToolResultPart$outboundSchema,
3643
+ components.ErrorPart$outboundSchema,
3644
+ ]),
3645
+ ),
3646
+ });
3647
+
3648
+ export function runAgentA2AMessageToJSON(
3649
+ runAgentA2AMessage: RunAgentA2AMessage,
3650
+ ): string {
3651
+ return JSON.stringify(
3652
+ RunAgentA2AMessage$outboundSchema.parse(runAgentA2AMessage),
3653
+ );
3654
+ }
3655
+
3656
+ /** @internal */
3657
+ export type RunAgentIdentity$Outbound = {
3658
+ id: string;
3659
+ display_name?: string | undefined;
3660
+ email?: string | undefined;
3661
+ metadata?: Array<{ [k: string]: any }> | undefined;
3662
+ logo_url?: string | undefined;
3663
+ tags?: Array<string> | undefined;
3664
+ };
3665
+
3666
+ /** @internal */
3667
+ export const RunAgentIdentity$outboundSchema: z.ZodType<
3668
+ RunAgentIdentity$Outbound,
3669
+ z.ZodTypeDef,
3670
+ RunAgentIdentity
3671
+ > = z.object({
3672
+ id: z.string(),
3673
+ displayName: z.string().optional(),
3674
+ email: z.string().optional(),
3675
+ metadata: z.array(z.record(z.any())).optional(),
3676
+ logoUrl: z.string().optional(),
3677
+ tags: z.array(z.string()).optional(),
3678
+ }).transform((v) => {
3679
+ return remap$(v, {
3680
+ displayName: "display_name",
3681
+ logoUrl: "logo_url",
3682
+ });
3683
+ });
3684
+
3685
+ export function runAgentIdentityToJSON(
3686
+ runAgentIdentity: RunAgentIdentity,
3687
+ ): string {
3688
+ return JSON.stringify(
3689
+ RunAgentIdentity$outboundSchema.parse(runAgentIdentity),
3690
+ );
3691
+ }
3692
+
3693
+ /** @internal */
3694
+ export type RunAgentContact$Outbound = {
3695
+ id: string;
3696
+ display_name?: string | undefined;
3697
+ email?: string | undefined;
3698
+ metadata?: Array<{ [k: string]: any }> | undefined;
3699
+ logo_url?: string | undefined;
3700
+ tags?: Array<string> | undefined;
3701
+ };
3702
+
3703
+ /** @internal */
3704
+ export const RunAgentContact$outboundSchema: z.ZodType<
3705
+ RunAgentContact$Outbound,
3706
+ z.ZodTypeDef,
3707
+ RunAgentContact
3708
+ > = z.object({
3709
+ id: z.string(),
3710
+ displayName: z.string().optional(),
3711
+ email: z.string().optional(),
3712
+ metadata: z.array(z.record(z.any())).optional(),
3713
+ logoUrl: z.string().optional(),
3714
+ tags: z.array(z.string()).optional(),
3715
+ }).transform((v) => {
3716
+ return remap$(v, {
3717
+ displayName: "display_name",
3718
+ logoUrl: "logo_url",
3719
+ });
3720
+ });
3721
+
3722
+ export function runAgentContactToJSON(
3723
+ runAgentContact: RunAgentContact,
3724
+ ): string {
3725
+ return JSON.stringify(RunAgentContact$outboundSchema.parse(runAgentContact));
3726
+ }
3727
+
3728
+ /** @internal */
3729
+ export type RunAgentThread$Outbound = {
3730
+ id: string;
3731
+ tags?: Array<string> | undefined;
3732
+ };
3733
+
3734
+ /** @internal */
3735
+ export const RunAgentThread$outboundSchema: z.ZodType<
3736
+ RunAgentThread$Outbound,
3737
+ z.ZodTypeDef,
3738
+ RunAgentThread
3739
+ > = z.object({
3740
+ id: z.string(),
3741
+ tags: z.array(z.string()).optional(),
3742
+ });
3743
+
3744
+ export function runAgentThreadToJSON(runAgentThread: RunAgentThread): string {
3745
+ return JSON.stringify(RunAgentThread$outboundSchema.parse(runAgentThread));
3746
+ }
3747
+
3748
+ /** @internal */
3749
+ export type RunAgentMemory$Outbound = {
3750
+ entity_id: string;
3751
+ };
3752
+
3753
+ /** @internal */
3754
+ export const RunAgentMemory$outboundSchema: z.ZodType<
3755
+ RunAgentMemory$Outbound,
3756
+ z.ZodTypeDef,
3757
+ RunAgentMemory
3758
+ > = z.object({
3759
+ entityId: z.string(),
3760
+ }).transform((v) => {
3761
+ return remap$(v, {
3762
+ entityId: "entity_id",
3763
+ });
3764
+ });
3765
+
3766
+ export function runAgentMemoryToJSON(runAgentMemory: RunAgentMemory): string {
3767
+ return JSON.stringify(RunAgentMemory$outboundSchema.parse(runAgentMemory));
3768
+ }
3769
+
3770
+ /** @internal */
3771
+ export type RunAgentKnowledgeBases$Outbound = {
3772
+ knowledge_id: string;
3773
+ };
3774
+
3775
+ /** @internal */
3776
+ export const RunAgentKnowledgeBases$outboundSchema: z.ZodType<
3777
+ RunAgentKnowledgeBases$Outbound,
3778
+ z.ZodTypeDef,
3779
+ RunAgentKnowledgeBases
3780
+ > = z.object({
3781
+ knowledgeId: z.string(),
3782
+ }).transform((v) => {
3783
+ return remap$(v, {
3784
+ knowledgeId: "knowledge_id",
3785
+ });
3786
+ });
3787
+
3788
+ export function runAgentKnowledgeBasesToJSON(
3789
+ runAgentKnowledgeBases: RunAgentKnowledgeBases,
3790
+ ): string {
3791
+ return JSON.stringify(
3792
+ RunAgentKnowledgeBases$outboundSchema.parse(runAgentKnowledgeBases),
3793
+ );
3794
+ }
3795
+
3796
+ /** @internal */
3797
+ export type RunAgentTeamOfAgents$Outbound = {
3798
+ key: string;
3799
+ role?: string | undefined;
3800
+ };
3801
+
3802
+ /** @internal */
3803
+ export const RunAgentTeamOfAgents$outboundSchema: z.ZodType<
3804
+ RunAgentTeamOfAgents$Outbound,
3805
+ z.ZodTypeDef,
3806
+ RunAgentTeamOfAgents
3807
+ > = z.object({
3808
+ key: z.string(),
3809
+ role: z.string().optional(),
3810
+ });
3811
+
3812
+ export function runAgentTeamOfAgentsToJSON(
3813
+ runAgentTeamOfAgents: RunAgentTeamOfAgents,
3814
+ ): string {
3815
+ return JSON.stringify(
3816
+ RunAgentTeamOfAgents$outboundSchema.parse(runAgentTeamOfAgents),
3817
+ );
3818
+ }
3819
+
3820
+ /** @internal */
3821
+ export type AgentToolInputRunHeaders$Outbound = {
3822
+ value: string;
3823
+ encrypted: boolean;
3824
+ };
3825
+
3826
+ /** @internal */
3827
+ export const AgentToolInputRunHeaders$outboundSchema: z.ZodType<
3828
+ AgentToolInputRunHeaders$Outbound,
3829
+ z.ZodTypeDef,
3830
+ AgentToolInputRunHeaders
3831
+ > = z.object({
3832
+ value: z.string(),
3833
+ encrypted: z.boolean().default(false),
3834
+ });
3835
+
3836
+ export function agentToolInputRunHeadersToJSON(
3837
+ agentToolInputRunHeaders: AgentToolInputRunHeaders,
3838
+ ): string {
3839
+ return JSON.stringify(
3840
+ AgentToolInputRunHeaders$outboundSchema.parse(agentToolInputRunHeaders),
3841
+ );
3842
+ }
3843
+
3844
+ /** @internal */
3845
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools20McpType$outboundSchema:
3846
+ z.ZodNativeEnum<
3847
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools20McpType
3848
+ > = z.nativeEnum(
3849
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools20McpType,
3850
+ );
3851
+
3852
+ /** @internal */
3853
+ export type AgentToolInputRunSchema$Outbound = {
3854
+ type: string;
3855
+ properties?: { [k: string]: any } | undefined;
3856
+ required?: Array<string> | undefined;
3857
+ };
3858
+
3859
+ /** @internal */
3860
+ export const AgentToolInputRunSchema$outboundSchema: z.ZodType<
3861
+ AgentToolInputRunSchema$Outbound,
3862
+ z.ZodTypeDef,
3863
+ AgentToolInputRunSchema
3864
+ > = z.object({
3865
+ type:
3866
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools20McpType$outboundSchema,
3867
+ properties: z.record(z.any()).optional(),
3868
+ required: z.array(z.string()).optional(),
3869
+ });
3870
+
3871
+ export function agentToolInputRunSchemaToJSON(
3872
+ agentToolInputRunSchema: AgentToolInputRunSchema,
3873
+ ): string {
3874
+ return JSON.stringify(
3875
+ AgentToolInputRunSchema$outboundSchema.parse(agentToolInputRunSchema),
3876
+ );
3877
+ }
3878
+
3879
+ /** @internal */
3880
+ export type Tools$Outbound = {
3881
+ id: string;
3882
+ name: string;
3883
+ description?: string | undefined;
3884
+ schema: AgentToolInputRunSchema$Outbound;
3885
+ };
3886
+
3887
+ /** @internal */
3888
+ export const Tools$outboundSchema: z.ZodType<
3889
+ Tools$Outbound,
3890
+ z.ZodTypeDef,
3891
+ Tools
3892
+ > = z.object({
3893
+ id: z.string().default("01M2NEZRM1XWDP7B1GQKY7E8XN"),
3894
+ name: z.string(),
3895
+ description: z.string().optional(),
3896
+ schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
3897
+ });
3898
+
3899
+ export function toolsToJSON(tools: Tools): string {
3900
+ return JSON.stringify(Tools$outboundSchema.parse(tools));
3901
+ }
3902
+
3903
+ /** @internal */
3904
+ export const ConnectionType$outboundSchema: z.ZodNativeEnum<
3905
+ typeof ConnectionType
3906
+ > = z.nativeEnum(ConnectionType);
3907
+
3908
+ /** @internal */
3909
+ export type Mcp$Outbound = {
3910
+ server_url: string;
3911
+ headers?: { [k: string]: AgentToolInputRunHeaders$Outbound } | undefined;
3912
+ tools: Array<Tools$Outbound>;
3913
+ connection_type: string;
3914
+ };
3915
+
3916
+ /** @internal */
3917
+ export const Mcp$outboundSchema: z.ZodType<Mcp$Outbound, z.ZodTypeDef, Mcp> = z
3918
+ .object({
3919
+ serverUrl: z.string(),
3920
+ headers: z.record(z.lazy(() => AgentToolInputRunHeaders$outboundSchema))
3921
+ .optional(),
3922
+ tools: z.array(z.lazy(() => Tools$outboundSchema)),
3923
+ connectionType: ConnectionType$outboundSchema,
3924
+ }).transform((v) => {
3925
+ return remap$(v, {
3926
+ serverUrl: "server_url",
3927
+ connectionType: "connection_type",
3928
+ });
3929
+ });
3930
+
3931
+ export function mcpToJSON(mcp: Mcp): string {
3932
+ return JSON.stringify(Mcp$outboundSchema.parse(mcp));
3933
+ }
3934
+
3935
+ /** @internal */
3936
+ export type MCPToolRun$Outbound = {
3937
+ type: "mcp";
3938
+ key: string;
3939
+ _id?: string | undefined;
3940
+ display_name?: string | undefined;
3941
+ description: string;
3942
+ mcp: Mcp$Outbound;
3943
+ requires_approval: boolean;
3944
+ };
3945
+
3946
+ /** @internal */
3947
+ export const MCPToolRun$outboundSchema: z.ZodType<
3948
+ MCPToolRun$Outbound,
3949
+ z.ZodTypeDef,
3950
+ MCPToolRun
3951
+ > = z.object({
3952
+ type: z.literal("mcp"),
3953
+ key: z.string(),
3954
+ id: z.string().optional(),
3955
+ displayName: z.string().optional(),
3956
+ description: z.string(),
3957
+ mcp: z.lazy(() => Mcp$outboundSchema),
3958
+ requiresApproval: z.boolean().default(false),
3959
+ }).transform((v) => {
3960
+ return remap$(v, {
3961
+ id: "_id",
3962
+ displayName: "display_name",
3963
+ requiresApproval: "requires_approval",
3964
+ });
3965
+ });
3966
+
3967
+ export function mcpToolRunToJSON(mcpToolRun: MCPToolRun): string {
3968
+ return JSON.stringify(MCPToolRun$outboundSchema.parse(mcpToolRun));
3969
+ }
3970
+
3971
+ /** @internal */
3972
+ export type Schema$Outbound = {
3973
+ type: string;
3974
+ properties: { [k: string]: any };
3975
+ required: Array<string>;
3976
+ [additionalProperties: string]: unknown;
3977
+ };
3978
+
3979
+ /** @internal */
3980
+ export const Schema$outboundSchema: z.ZodType<
3981
+ Schema$Outbound,
3982
+ z.ZodTypeDef,
3983
+ Schema
3984
+ > = z.object({
3985
+ type: z.string(),
3986
+ properties: z.record(z.any()),
3987
+ required: z.array(z.string()),
3988
+ additionalProperties: z.record(z.any()).optional(),
3989
+ }).transform((v) => {
3990
+ return {
3991
+ ...v.additionalProperties,
3992
+ ...remap$(v, {
3993
+ additionalProperties: null,
3994
+ }),
3995
+ };
3996
+ });
3997
+
3998
+ export function schemaToJSON(schema: Schema): string {
3999
+ return JSON.stringify(Schema$outboundSchema.parse(schema));
4000
+ }
4001
+
4002
+ /** @internal */
4003
+ export type AgentToolInputRunJsonSchema$Outbound = {
4004
+ name: string;
4005
+ description: string;
4006
+ schema: Schema$Outbound;
4007
+ strict?: boolean | undefined;
4008
+ };
4009
+
4010
+ /** @internal */
4011
+ export const AgentToolInputRunJsonSchema$outboundSchema: z.ZodType<
4012
+ AgentToolInputRunJsonSchema$Outbound,
4013
+ z.ZodTypeDef,
4014
+ AgentToolInputRunJsonSchema
4015
+ > = z.object({
4016
+ name: z.string(),
4017
+ description: z.string(),
4018
+ schema: z.lazy(() => Schema$outboundSchema),
4019
+ strict: z.boolean().optional(),
4020
+ });
4021
+
4022
+ export function agentToolInputRunJsonSchemaToJSON(
4023
+ agentToolInputRunJsonSchema: AgentToolInputRunJsonSchema,
4024
+ ): string {
4025
+ return JSON.stringify(
4026
+ AgentToolInputRunJsonSchema$outboundSchema.parse(
4027
+ agentToolInputRunJsonSchema,
4028
+ ),
4029
+ );
4030
+ }
4031
+
4032
+ /** @internal */
4033
+ export type JSONSchemaToolRun$Outbound = {
4034
+ type: "json_schema";
4035
+ key: string;
4036
+ _id?: string | undefined;
4037
+ display_name?: string | undefined;
4038
+ description: string;
4039
+ json_schema: AgentToolInputRunJsonSchema$Outbound;
4040
+ requires_approval: boolean;
4041
+ };
4042
+
4043
+ /** @internal */
4044
+ export const JSONSchemaToolRun$outboundSchema: z.ZodType<
4045
+ JSONSchemaToolRun$Outbound,
4046
+ z.ZodTypeDef,
4047
+ JSONSchemaToolRun
4048
+ > = z.object({
4049
+ type: z.literal("json_schema"),
4050
+ key: z.string(),
4051
+ id: z.string().optional(),
4052
+ displayName: z.string().optional(),
4053
+ description: z.string(),
4054
+ jsonSchema: z.lazy(() => AgentToolInputRunJsonSchema$outboundSchema),
4055
+ requiresApproval: z.boolean().default(false),
4056
+ }).transform((v) => {
4057
+ return remap$(v, {
4058
+ id: "_id",
4059
+ displayName: "display_name",
4060
+ jsonSchema: "json_schema",
4061
+ requiresApproval: "requires_approval",
4062
+ });
4063
+ });
4064
+
4065
+ export function jsonSchemaToolRunToJSON(
4066
+ jsonSchemaToolRun: JSONSchemaToolRun,
4067
+ ): string {
4068
+ return JSON.stringify(
4069
+ JSONSchemaToolRun$outboundSchema.parse(jsonSchemaToolRun),
4070
+ );
4071
+ }
4072
+
4073
+ /** @internal */
4074
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
4075
+ z.ZodNativeEnum<
4076
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
4077
+ > = z.nativeEnum(
4078
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
4079
+ );
4080
+
4081
+ /** @internal */
4082
+ export type RunAgentAgentToolInputRunParameters$Outbound = {
4083
+ type: string;
4084
+ properties: { [k: string]: any };
4085
+ required: Array<string>;
4086
+ [additionalProperties: string]: unknown;
4087
+ };
4088
+
4089
+ /** @internal */
4090
+ export const RunAgentAgentToolInputRunParameters$outboundSchema: z.ZodType<
4091
+ RunAgentAgentToolInputRunParameters$Outbound,
4092
+ z.ZodTypeDef,
4093
+ RunAgentAgentToolInputRunParameters
4094
+ > = z.object({
4095
+ type:
4096
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
4097
+ properties: z.record(z.any()),
4098
+ required: z.array(z.string()),
4099
+ additionalProperties: z.record(z.any()).optional(),
4100
+ }).transform((v) => {
4101
+ return {
4102
+ ...v.additionalProperties,
4103
+ ...remap$(v, {
4104
+ additionalProperties: null,
4105
+ }),
4106
+ };
4107
+ });
4108
+
4109
+ export function runAgentAgentToolInputRunParametersToJSON(
4110
+ runAgentAgentToolInputRunParameters: RunAgentAgentToolInputRunParameters,
4111
+ ): string {
4112
+ return JSON.stringify(
4113
+ RunAgentAgentToolInputRunParameters$outboundSchema.parse(
4114
+ runAgentAgentToolInputRunParameters,
4115
+ ),
4116
+ );
4117
+ }
4118
+
4119
+ /** @internal */
4120
+ export type AgentToolInputRunFunction$Outbound = {
4121
+ name: string;
4122
+ description?: string | undefined;
4123
+ strict?: boolean | undefined;
4124
+ parameters?: RunAgentAgentToolInputRunParameters$Outbound | undefined;
4125
+ };
4126
+
4127
+ /** @internal */
4128
+ export const AgentToolInputRunFunction$outboundSchema: z.ZodType<
4129
+ AgentToolInputRunFunction$Outbound,
4130
+ z.ZodTypeDef,
4131
+ AgentToolInputRunFunction
4132
+ > = z.object({
4133
+ name: z.string(),
4134
+ description: z.string().optional(),
4135
+ strict: z.boolean().optional(),
4136
+ parameters: z.lazy(() => RunAgentAgentToolInputRunParameters$outboundSchema)
4137
+ .optional(),
4138
+ });
4139
+
4140
+ export function agentToolInputRunFunctionToJSON(
4141
+ agentToolInputRunFunction: AgentToolInputRunFunction,
4142
+ ): string {
4143
+ return JSON.stringify(
4144
+ AgentToolInputRunFunction$outboundSchema.parse(agentToolInputRunFunction),
4145
+ );
4146
+ }
4147
+
4148
+ /** @internal */
4149
+ export type FunctionToolRun$Outbound = {
4150
+ type: "function";
4151
+ key: string;
4152
+ _id?: string | undefined;
4153
+ display_name?: string | undefined;
4154
+ description?: string | undefined;
4155
+ function: AgentToolInputRunFunction$Outbound;
4156
+ requires_approval: boolean;
4157
+ };
4158
+
4159
+ /** @internal */
4160
+ export const FunctionToolRun$outboundSchema: z.ZodType<
4161
+ FunctionToolRun$Outbound,
4162
+ z.ZodTypeDef,
4163
+ FunctionToolRun
4164
+ > = z.object({
4165
+ type: z.literal("function"),
4166
+ key: z.string(),
4167
+ id: z.string().optional(),
4168
+ displayName: z.string().optional(),
4169
+ description: z.string().optional(),
4170
+ function: z.lazy(() => AgentToolInputRunFunction$outboundSchema),
4171
+ requiresApproval: z.boolean().default(false),
4172
+ }).transform((v) => {
4173
+ return remap$(v, {
4174
+ id: "_id",
4175
+ displayName: "display_name",
4176
+ requiresApproval: "requires_approval",
4177
+ });
4178
+ });
4179
+
4180
+ export function functionToolRunToJSON(
4181
+ functionToolRun: FunctionToolRun,
4182
+ ): string {
4183
+ return JSON.stringify(FunctionToolRun$outboundSchema.parse(functionToolRun));
4184
+ }
4185
+
4186
+ /** @internal */
4187
+ export const RunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
4188
+ z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> = z
4189
+ .nativeEnum(RunAgentAgentToolInputRunAgentsRequestType);
4190
+
4191
+ /** @internal */
4192
+ export type AgentToolInputRunParameters$Outbound = {
4193
+ type: string;
4194
+ properties: { [k: string]: any };
4195
+ required: Array<string>;
4196
+ [additionalProperties: string]: unknown;
4197
+ };
4198
+
4199
+ /** @internal */
4200
+ export const AgentToolInputRunParameters$outboundSchema: z.ZodType<
4201
+ AgentToolInputRunParameters$Outbound,
4202
+ z.ZodTypeDef,
4203
+ AgentToolInputRunParameters
4204
+ > = z.object({
4205
+ type: RunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
4206
+ properties: z.record(z.any()),
4207
+ required: z.array(z.string()),
4208
+ additionalProperties: z.record(z.any()).optional(),
4209
+ }).transform((v) => {
4210
+ return {
4211
+ ...v.additionalProperties,
4212
+ ...remap$(v, {
4213
+ additionalProperties: null,
4214
+ }),
4215
+ };
4216
+ });
4217
+
4218
+ export function agentToolInputRunParametersToJSON(
4219
+ agentToolInputRunParameters: AgentToolInputRunParameters,
4220
+ ): string {
4221
+ return JSON.stringify(
4222
+ AgentToolInputRunParameters$outboundSchema.parse(
4223
+ agentToolInputRunParameters,
4224
+ ),
4225
+ );
4226
+ }
4227
+
4228
+ /** @internal */
4229
+ export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> = z
4230
+ .nativeEnum(Language);
4231
+
4232
+ /** @internal */
4233
+ export type CodeTool$Outbound = {
4234
+ parameters?: AgentToolInputRunParameters$Outbound | undefined;
4235
+ language: string;
4236
+ code: string;
4237
+ };
4238
+
4239
+ /** @internal */
4240
+ export const CodeTool$outboundSchema: z.ZodType<
4241
+ CodeTool$Outbound,
4242
+ z.ZodTypeDef,
4243
+ CodeTool
4244
+ > = z.object({
4245
+ parameters: z.lazy(() => AgentToolInputRunParameters$outboundSchema)
4246
+ .optional(),
4247
+ language: Language$outboundSchema,
4248
+ code: z.string(),
4249
+ });
4250
+
4251
+ export function codeToolToJSON(codeTool: CodeTool): string {
4252
+ return JSON.stringify(CodeTool$outboundSchema.parse(codeTool));
4253
+ }
4254
+
4255
+ /** @internal */
4256
+ export type CodeToolRun$Outbound = {
4257
+ type: "code";
4258
+ key: string;
4259
+ _id?: string | undefined;
4260
+ display_name?: string | undefined;
4261
+ description: string;
4262
+ code_tool: CodeTool$Outbound;
4263
+ requires_approval: boolean;
4264
+ timeout?: number | undefined;
4265
+ };
4266
+
4267
+ /** @internal */
4268
+ export const CodeToolRun$outboundSchema: z.ZodType<
4269
+ CodeToolRun$Outbound,
4270
+ z.ZodTypeDef,
4271
+ CodeToolRun
4272
+ > = z.object({
4273
+ type: z.literal("code"),
4274
+ key: z.string(),
4275
+ id: z.string().optional(),
4276
+ displayName: z.string().optional(),
4277
+ description: z.string(),
4278
+ codeTool: z.lazy(() => CodeTool$outboundSchema),
4279
+ requiresApproval: z.boolean().default(false),
4280
+ timeout: z.number().optional(),
4281
+ }).transform((v) => {
4282
+ return remap$(v, {
4283
+ id: "_id",
4284
+ displayName: "display_name",
4285
+ codeTool: "code_tool",
4286
+ requiresApproval: "requires_approval",
4287
+ });
4288
+ });
4289
+
4290
+ export function codeToolRunToJSON(codeToolRun: CodeToolRun): string {
4291
+ return JSON.stringify(CodeToolRun$outboundSchema.parse(codeToolRun));
4292
+ }
4293
+
4294
+ /** @internal */
4295
+ export const Method$outboundSchema: z.ZodNativeEnum<typeof Method> = z
4296
+ .nativeEnum(Method);
4297
+
4298
+ /** @internal */
4299
+ export type Headers2$Outbound = {
4300
+ value: string;
4301
+ encrypted: boolean;
4302
+ };
4303
+
4304
+ /** @internal */
4305
+ export const Headers2$outboundSchema: z.ZodType<
4306
+ Headers2$Outbound,
4307
+ z.ZodTypeDef,
4308
+ Headers2
4309
+ > = z.object({
4310
+ value: z.string(),
4311
+ encrypted: z.boolean().default(false),
4312
+ });
4313
+
4314
+ export function headers2ToJSON(headers2: Headers2): string {
4315
+ return JSON.stringify(Headers2$outboundSchema.parse(headers2));
4316
+ }
4317
+
4318
+ /** @internal */
4319
+ export type Headers$Outbound = Headers2$Outbound | string;
4320
+
4321
+ /** @internal */
4322
+ export const Headers$outboundSchema: z.ZodType<
4323
+ Headers$Outbound,
4324
+ z.ZodTypeDef,
4325
+ Headers
4326
+ > = z.union([z.lazy(() => Headers2$outboundSchema), z.string()]);
4327
+
4328
+ export function headersToJSON(headers: Headers): string {
4329
+ return JSON.stringify(Headers$outboundSchema.parse(headers));
4330
+ }
4331
+
4332
+ /** @internal */
4333
+ export type Blueprint$Outbound = {
4334
+ url: string;
4335
+ method: string;
4336
+ headers?: { [k: string]: Headers2$Outbound | string } | undefined;
4337
+ body?: { [k: string]: any } | undefined;
4338
+ timeout?: number | undefined;
4339
+ };
4340
+
4341
+ /** @internal */
4342
+ export const Blueprint$outboundSchema: z.ZodType<
4343
+ Blueprint$Outbound,
4344
+ z.ZodTypeDef,
4345
+ Blueprint
4346
+ > = z.object({
4347
+ url: z.string(),
4348
+ method: Method$outboundSchema,
4349
+ headers: z.record(
4350
+ z.union([z.lazy(() => Headers2$outboundSchema), z.string()]),
4351
+ ).optional(),
4352
+ body: z.record(z.any()).optional(),
4353
+ timeout: z.number().optional(),
4354
+ });
4355
+
4356
+ export function blueprintToJSON(blueprint: Blueprint): string {
4357
+ return JSON.stringify(Blueprint$outboundSchema.parse(blueprint));
4358
+ }
4359
+
4360
+ /** @internal */
4361
+ export const RunAgentAgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
4362
+ typeof RunAgentAgentToolInputRunType
4363
+ > = z.nativeEnum(RunAgentAgentToolInputRunType);
4364
+
4365
+ /** @internal */
4366
+ export type DefaultValue$Outbound = string | number | boolean;
4367
+
4368
+ /** @internal */
4369
+ export const DefaultValue$outboundSchema: z.ZodType<
4370
+ DefaultValue$Outbound,
4371
+ z.ZodTypeDef,
4372
+ DefaultValue
4373
+ > = z.union([z.string(), z.number(), z.boolean()]);
4374
+
4375
+ export function defaultValueToJSON(defaultValue: DefaultValue): string {
4376
+ return JSON.stringify(DefaultValue$outboundSchema.parse(defaultValue));
4377
+ }
4378
+
4379
+ /** @internal */
4380
+ export type Arguments$Outbound = {
4381
+ type: string;
4382
+ description: string;
4383
+ send_to_model: boolean;
4384
+ default_value?: string | number | boolean | undefined;
4385
+ };
4386
+
4387
+ /** @internal */
4388
+ export const Arguments$outboundSchema: z.ZodType<
4389
+ Arguments$Outbound,
4390
+ z.ZodTypeDef,
4391
+ Arguments
4392
+ > = z.object({
4393
+ type: RunAgentAgentToolInputRunType$outboundSchema,
4394
+ description: z.string(),
4395
+ sendToModel: z.boolean().default(true),
4396
+ defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
4397
+ }).transform((v) => {
4398
+ return remap$(v, {
4399
+ sendToModel: "send_to_model",
4400
+ defaultValue: "default_value",
4401
+ });
4402
+ });
4403
+
4404
+ export function argumentsToJSON(value: Arguments): string {
4405
+ return JSON.stringify(Arguments$outboundSchema.parse(value));
4406
+ }
4407
+
4408
+ /** @internal */
4409
+ export type Http$Outbound = {
4410
+ blueprint: Blueprint$Outbound;
4411
+ arguments?: { [k: string]: Arguments$Outbound } | undefined;
4412
+ };
4413
+
4414
+ /** @internal */
4415
+ export const Http$outboundSchema: z.ZodType<Http$Outbound, z.ZodTypeDef, Http> =
4416
+ z.object({
4417
+ blueprint: z.lazy(() => Blueprint$outboundSchema),
4418
+ arguments: z.record(z.lazy(() => Arguments$outboundSchema)).optional(),
4419
+ });
4420
+
4421
+ export function httpToJSON(http: Http): string {
4422
+ return JSON.stringify(Http$outboundSchema.parse(http));
4423
+ }
4424
+
4425
+ /** @internal */
4426
+ export type HTTPToolRun$Outbound = {
4427
+ type: "http";
4428
+ key: string;
4429
+ _id?: string | undefined;
4430
+ display_name?: string | undefined;
4431
+ description: string;
4432
+ http: Http$Outbound;
4433
+ requires_approval: boolean;
4434
+ timeout?: number | undefined;
4435
+ };
4436
+
4437
+ /** @internal */
4438
+ export const HTTPToolRun$outboundSchema: z.ZodType<
4439
+ HTTPToolRun$Outbound,
4440
+ z.ZodTypeDef,
4441
+ HTTPToolRun
4442
+ > = z.object({
4443
+ type: z.literal("http"),
4444
+ key: z.string(),
4445
+ id: z.string().optional(),
4446
+ displayName: z.string().optional(),
4447
+ description: z.string(),
4448
+ http: z.lazy(() => Http$outboundSchema),
4449
+ requiresApproval: z.boolean().default(false),
4450
+ timeout: z.number().optional(),
4451
+ }).transform((v) => {
4452
+ return remap$(v, {
4453
+ id: "_id",
4454
+ displayName: "display_name",
4455
+ requiresApproval: "requires_approval",
4456
+ });
4457
+ });
4458
+
4459
+ export function httpToolRunToJSON(httpToolRun: HTTPToolRun): string {
4460
+ return JSON.stringify(HTTPToolRun$outboundSchema.parse(httpToolRun));
4461
+ }
4462
+
4463
+ /** @internal */
4464
+ export type AgentToolInputRun$Outbound =
4465
+ | components.GoogleSearchToolInput$Outbound
4466
+ | components.WebScraperToolInput$Outbound
4467
+ | components.CallSubAgentToolInput$Outbound
4468
+ | components.RetrieveAgentsToolInput$Outbound
4469
+ | components.QueryMemoryStoreToolInput$Outbound
4470
+ | components.WriteMemoryStoreToolInput$Outbound
4471
+ | components.RetrieveMemoryStoresToolInput$Outbound
4472
+ | components.DeleteMemoryDocumentToolInput$Outbound
4473
+ | components.RetrieveKnowledgeBasesToolInput$Outbound
4474
+ | components.QueryKnowledgeBaseToolInput$Outbound
4475
+ | components.CurrentDateToolInput$Outbound
4476
+ | components.AdvisorToolInput$Outbound
4477
+ | components.SidekickToolInput$Outbound
4478
+ | components.CodeInterpreterToolInput$Outbound
4479
+ | components.FileSystemToolInput$Outbound
4480
+ | HTTPToolRun$Outbound
4481
+ | CodeToolRun$Outbound
4482
+ | FunctionToolRun$Outbound
4483
+ | JSONSchemaToolRun$Outbound
4484
+ | MCPToolRun$Outbound;
4485
+
4486
+ /** @internal */
4487
+ export const AgentToolInputRun$outboundSchema: z.ZodType<
4488
+ AgentToolInputRun$Outbound,
4489
+ z.ZodTypeDef,
4490
+ AgentToolInputRun
4491
+ > = z.union([
4492
+ components.GoogleSearchToolInput$outboundSchema,
4493
+ components.WebScraperToolInput$outboundSchema,
4494
+ components.CallSubAgentToolInput$outboundSchema,
4495
+ components.RetrieveAgentsToolInput$outboundSchema,
4496
+ components.QueryMemoryStoreToolInput$outboundSchema,
4497
+ components.WriteMemoryStoreToolInput$outboundSchema,
4498
+ components.RetrieveMemoryStoresToolInput$outboundSchema,
4499
+ components.DeleteMemoryDocumentToolInput$outboundSchema,
4500
+ components.RetrieveKnowledgeBasesToolInput$outboundSchema,
4501
+ components.QueryKnowledgeBaseToolInput$outboundSchema,
4502
+ components.CurrentDateToolInput$outboundSchema,
4503
+ components.AdvisorToolInput$outboundSchema,
4504
+ components.SidekickToolInput$outboundSchema,
4505
+ components.CodeInterpreterToolInput$outboundSchema,
4506
+ components.FileSystemToolInput$outboundSchema,
4507
+ z.lazy(() => HTTPToolRun$outboundSchema),
4508
+ z.lazy(() => CodeToolRun$outboundSchema),
4509
+ z.lazy(() => FunctionToolRun$outboundSchema),
4510
+ z.lazy(() => JSONSchemaToolRun$outboundSchema),
4511
+ z.lazy(() => MCPToolRun$outboundSchema),
4512
+ ]);
4513
+
4514
+ export function agentToolInputRunToJSON(
4515
+ agentToolInputRun: AgentToolInputRun,
4516
+ ): string {
4517
+ return JSON.stringify(
4518
+ AgentToolInputRun$outboundSchema.parse(agentToolInputRun),
4519
+ );
4520
+ }
4521
+
4522
+ /** @internal */
4523
+ export const RunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
4524
+ typeof RunAgentToolApprovalRequired
4525
+ > = z.nativeEnum(RunAgentToolApprovalRequired);
4526
+
4527
+ /** @internal */
4528
+ export const RunAgentExecuteOn$outboundSchema: z.ZodNativeEnum<
4529
+ typeof RunAgentExecuteOn
4530
+ > = z.nativeEnum(RunAgentExecuteOn);
4531
+
4532
+ /** @internal */
4533
+ export type RunAgentEvaluators$Outbound = {
4534
+ id: string;
4535
+ sample_rate: number;
4536
+ execute_on: string;
4537
+ options?: { [k: string]: any } | undefined;
4538
+ };
4539
+
4540
+ /** @internal */
4541
+ export const RunAgentEvaluators$outboundSchema: z.ZodType<
4542
+ RunAgentEvaluators$Outbound,
4543
+ z.ZodTypeDef,
4544
+ RunAgentEvaluators
4545
+ > = z.object({
4546
+ id: z.string(),
4547
+ sampleRate: z.number().default(50),
4548
+ executeOn: RunAgentExecuteOn$outboundSchema,
4549
+ options: z.record(z.any()).optional(),
4550
+ }).transform((v) => {
4551
+ return remap$(v, {
4552
+ sampleRate: "sample_rate",
4553
+ executeOn: "execute_on",
4554
+ });
4555
+ });
4556
+
4557
+ export function runAgentEvaluatorsToJSON(
4558
+ runAgentEvaluators: RunAgentEvaluators,
4559
+ ): string {
4560
+ return JSON.stringify(
4561
+ RunAgentEvaluators$outboundSchema.parse(runAgentEvaluators),
4562
+ );
4563
+ }
4564
+
4565
+ /** @internal */
4566
+ export const RunAgentAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
4567
+ typeof RunAgentAgentsExecuteOn
4568
+ > = z.nativeEnum(RunAgentAgentsExecuteOn);
4569
+
4570
+ /** @internal */
4571
+ export type RunAgentGuardrails$Outbound = {
4572
+ id: string;
4573
+ sample_rate: number;
4574
+ execute_on: string;
4575
+ options?: { [k: string]: any } | undefined;
4576
+ };
4577
+
4578
+ /** @internal */
4579
+ export const RunAgentGuardrails$outboundSchema: z.ZodType<
4580
+ RunAgentGuardrails$Outbound,
4581
+ z.ZodTypeDef,
4582
+ RunAgentGuardrails
4583
+ > = z.object({
4584
+ id: z.string(),
4585
+ sampleRate: z.number().default(50),
4586
+ executeOn: RunAgentAgentsExecuteOn$outboundSchema,
4587
+ options: z.record(z.any()).optional(),
4588
+ }).transform((v) => {
4589
+ return remap$(v, {
4590
+ sampleRate: "sample_rate",
4591
+ executeOn: "execute_on",
4592
+ });
4593
+ });
4594
+
4595
+ export function runAgentGuardrailsToJSON(
4596
+ runAgentGuardrails: RunAgentGuardrails,
4597
+ ): string {
4598
+ return JSON.stringify(
4599
+ RunAgentGuardrails$outboundSchema.parse(runAgentGuardrails),
4600
+ );
4601
+ }
4602
+
4603
+ /** @internal */
4604
+ export type RunAgentSettings$Outbound = {
4605
+ tools?:
4606
+ | Array<
4607
+ | components.GoogleSearchToolInput$Outbound
4608
+ | components.WebScraperToolInput$Outbound
4609
+ | components.CallSubAgentToolInput$Outbound
4610
+ | components.RetrieveAgentsToolInput$Outbound
4611
+ | components.QueryMemoryStoreToolInput$Outbound
4612
+ | components.WriteMemoryStoreToolInput$Outbound
4613
+ | components.RetrieveMemoryStoresToolInput$Outbound
4614
+ | components.DeleteMemoryDocumentToolInput$Outbound
4615
+ | components.RetrieveKnowledgeBasesToolInput$Outbound
4616
+ | components.QueryKnowledgeBaseToolInput$Outbound
4617
+ | components.CurrentDateToolInput$Outbound
4618
+ | components.AdvisorToolInput$Outbound
4619
+ | components.SidekickToolInput$Outbound
4620
+ | components.CodeInterpreterToolInput$Outbound
4621
+ | components.FileSystemToolInput$Outbound
4622
+ | HTTPToolRun$Outbound
4623
+ | CodeToolRun$Outbound
4624
+ | FunctionToolRun$Outbound
4625
+ | JSONSchemaToolRun$Outbound
4626
+ | MCPToolRun$Outbound
4627
+ >
4628
+ | undefined;
4629
+ tool_approval_required: string;
4630
+ max_iterations: number;
4631
+ max_execution_time: number;
4632
+ max_cost: number;
4633
+ chat_exposed?: boolean | undefined;
4634
+ evaluators?: Array<RunAgentEvaluators$Outbound> | undefined;
4635
+ guardrails?: Array<RunAgentGuardrails$Outbound> | undefined;
4636
+ };
4637
+
4638
+ /** @internal */
4639
+ export const RunAgentSettings$outboundSchema: z.ZodType<
4640
+ RunAgentSettings$Outbound,
4641
+ z.ZodTypeDef,
4642
+ RunAgentSettings
4643
+ > = z.object({
4644
+ tools: z.array(
4645
+ z.union([
4646
+ components.GoogleSearchToolInput$outboundSchema,
4647
+ components.WebScraperToolInput$outboundSchema,
4648
+ components.CallSubAgentToolInput$outboundSchema,
4649
+ components.RetrieveAgentsToolInput$outboundSchema,
4650
+ components.QueryMemoryStoreToolInput$outboundSchema,
4651
+ components.WriteMemoryStoreToolInput$outboundSchema,
4652
+ components.RetrieveMemoryStoresToolInput$outboundSchema,
4653
+ components.DeleteMemoryDocumentToolInput$outboundSchema,
4654
+ components.RetrieveKnowledgeBasesToolInput$outboundSchema,
4655
+ components.QueryKnowledgeBaseToolInput$outboundSchema,
4656
+ components.CurrentDateToolInput$outboundSchema,
4657
+ components.AdvisorToolInput$outboundSchema,
4658
+ components.SidekickToolInput$outboundSchema,
4659
+ components.CodeInterpreterToolInput$outboundSchema,
4660
+ components.FileSystemToolInput$outboundSchema,
4661
+ z.lazy(() => HTTPToolRun$outboundSchema),
4662
+ z.lazy(() => CodeToolRun$outboundSchema),
4663
+ z.lazy(() => FunctionToolRun$outboundSchema),
4664
+ z.lazy(() => JSONSchemaToolRun$outboundSchema),
4665
+ z.lazy(() => MCPToolRun$outboundSchema),
4666
+ ]),
4667
+ ).optional(),
4668
+ toolApprovalRequired: RunAgentToolApprovalRequired$outboundSchema.default(
4669
+ "none",
4670
+ ),
4671
+ maxIterations: z.number().int().default(100),
4672
+ maxExecutionTime: z.number().int().default(600),
4673
+ maxCost: z.number().default(0),
4674
+ chatExposed: z.boolean().optional(),
4675
+ evaluators: z.array(z.lazy(() => RunAgentEvaluators$outboundSchema))
4676
+ .optional(),
4677
+ guardrails: z.array(z.lazy(() => RunAgentGuardrails$outboundSchema))
4678
+ .optional(),
4679
+ }).transform((v) => {
4680
+ return remap$(v, {
4681
+ toolApprovalRequired: "tool_approval_required",
4682
+ maxIterations: "max_iterations",
4683
+ maxExecutionTime: "max_execution_time",
4684
+ maxCost: "max_cost",
4685
+ chatExposed: "chat_exposed",
4686
+ });
4687
+ });
4688
+
4689
+ export function runAgentSettingsToJSON(
4690
+ runAgentSettings: RunAgentSettings,
4691
+ ): string {
4692
+ return JSON.stringify(
4693
+ RunAgentSettings$outboundSchema.parse(runAgentSettings),
4694
+ );
4695
+ }
4696
+
4697
+ /** @internal */
4698
+ export const RunAgentEngine$outboundSchema: z.ZodNativeEnum<
4699
+ typeof RunAgentEngine
4700
+ > = z.nativeEnum(RunAgentEngine);
4701
+
4702
+ /** @internal */
4703
+ export type RunAgentRequestBody$Outbound = {
4704
+ key: string;
4705
+ task_id?: string | undefined;
4706
+ model: RunAgentModelConfiguration2$Outbound | string;
4707
+ fallback_models?:
4708
+ | Array<RunAgentFallbackModelConfiguration2$Outbound | string>
4709
+ | undefined;
4710
+ role: string;
4711
+ instructions: string;
4712
+ message: RunAgentA2AMessage$Outbound;
4713
+ variables?: { [k: string]: any } | undefined;
4714
+ identity?: RunAgentIdentity$Outbound | undefined;
4715
+ contact?: RunAgentContact$Outbound | undefined;
4716
+ thread?: RunAgentThread$Outbound | undefined;
4717
+ memory?: RunAgentMemory$Outbound | undefined;
4718
+ path: string;
4719
+ description?: string | undefined;
4720
+ system_prompt?: string | null | undefined;
4721
+ memory_stores?: Array<string> | undefined;
4722
+ knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
4723
+ team_of_agents?: Array<RunAgentTeamOfAgents$Outbound> | undefined;
4724
+ settings: RunAgentSettings$Outbound;
4725
+ metadata?: { [k: string]: any } | undefined;
4726
+ engine: string;
4727
+ };
4728
+
4729
+ /** @internal */
4730
+ export const RunAgentRequestBody$outboundSchema: z.ZodType<
4731
+ RunAgentRequestBody$Outbound,
4732
+ z.ZodTypeDef,
4733
+ RunAgentRequestBody
4734
+ > = z.object({
4735
+ key: z.string(),
4736
+ taskId: z.string().optional(),
4737
+ model: z.union([
4738
+ z.lazy(() => RunAgentModelConfiguration2$outboundSchema),
4739
+ z.string(),
4740
+ ]),
4741
+ fallbackModels: z.array(
4742
+ z.union([
4743
+ z.lazy(() => RunAgentFallbackModelConfiguration2$outboundSchema),
4744
+ z.string(),
4745
+ ]),
4746
+ ).optional(),
4747
+ role: z.string(),
4748
+ instructions: z.string(),
4749
+ message: z.lazy(() => RunAgentA2AMessage$outboundSchema),
4750
+ variables: z.record(z.any()).optional(),
4751
+ identity: z.lazy(() => RunAgentIdentity$outboundSchema).optional(),
4752
+ contact: z.lazy(() => RunAgentContact$outboundSchema).optional(),
4753
+ thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
4754
+ memory: z.lazy(() => RunAgentMemory$outboundSchema).optional(),
4755
+ path: z.string(),
4756
+ description: z.string().optional(),
4757
+ systemPrompt: z.nullable(z.string()).optional(),
4758
+ memoryStores: z.array(z.string()).optional(),
4759
+ knowledgeBases: z.array(z.lazy(() => RunAgentKnowledgeBases$outboundSchema))
4760
+ .optional(),
4761
+ teamOfAgents: z.array(z.lazy(() => RunAgentTeamOfAgents$outboundSchema))
4762
+ .optional(),
4763
+ settings: z.lazy(() => RunAgentSettings$outboundSchema),
4764
+ metadata: z.record(z.any()).optional(),
4765
+ engine: RunAgentEngine$outboundSchema.default("text"),
4766
+ }).transform((v) => {
4767
+ return remap$(v, {
4768
+ taskId: "task_id",
4769
+ fallbackModels: "fallback_models",
4770
+ systemPrompt: "system_prompt",
4771
+ memoryStores: "memory_stores",
4772
+ knowledgeBases: "knowledge_bases",
4773
+ teamOfAgents: "team_of_agents",
4774
+ });
4775
+ });
4776
+
4777
+ export function runAgentRequestBodyToJSON(
4778
+ runAgentRequestBody: RunAgentRequestBody,
4779
+ ): string {
4780
+ return JSON.stringify(
4781
+ RunAgentRequestBody$outboundSchema.parse(runAgentRequestBody),
4782
+ );
4783
+ }
4784
+
4785
+ /** @internal */
4786
+ export const RunAgentKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentKind> =
4787
+ z.nativeEnum(RunAgentKind);
4788
+
4789
+ /** @internal */
4790
+ export const RunAgentTaskState$inboundSchema: z.ZodNativeEnum<
4791
+ typeof RunAgentTaskState
4792
+ > = z.nativeEnum(RunAgentTaskState);
4793
+
4794
+ /** @internal */
4795
+ export const RunAgentAgentsKind$inboundSchema: z.ZodNativeEnum<
4796
+ typeof RunAgentAgentsKind
4797
+ > = z.nativeEnum(RunAgentAgentsKind);
4798
+
4799
+ /** @internal */
4800
+ export const RunAgentExtendedMessageRole$inboundSchema: z.ZodNativeEnum<
4801
+ typeof RunAgentExtendedMessageRole
4802
+ > = z.nativeEnum(RunAgentExtendedMessageRole);
4803
+
4804
+ /** @internal */
4805
+ export const RunAgentParts$inboundSchema: z.ZodType<
4806
+ RunAgentParts,
4807
+ z.ZodTypeDef,
4808
+ unknown
4809
+ > = z.union([
4810
+ components.TextPart$inboundSchema,
4811
+ components.ErrorPart$inboundSchema,
4812
+ components.DataPart$inboundSchema,
4813
+ components.FilePart$inboundSchema,
4814
+ components.ToolCallPart$inboundSchema,
4815
+ components.ToolResultPart$inboundSchema,
4816
+ ]);
4817
+
4818
+ export function runAgentPartsFromJSON(
4819
+ jsonString: string,
4820
+ ): SafeParseResult<RunAgentParts, SDKValidationError> {
4821
+ return safeParse(
4822
+ jsonString,
4823
+ (x) => RunAgentParts$inboundSchema.parse(JSON.parse(x)),
4824
+ `Failed to parse 'RunAgentParts' from JSON`,
4825
+ );
4826
+ }
4827
+
4828
+ /** @internal */
4829
+ export const RunAgentTaskStatusMessage$inboundSchema: z.ZodType<
4830
+ RunAgentTaskStatusMessage,
4831
+ z.ZodTypeDef,
4832
+ unknown
4833
+ > = z.object({
4834
+ kind: RunAgentAgentsKind$inboundSchema,
4835
+ messageId: z.string(),
4836
+ role: RunAgentExtendedMessageRole$inboundSchema,
4837
+ parts: z.array(
4838
+ z.union([
4839
+ components.TextPart$inboundSchema,
4840
+ components.ErrorPart$inboundSchema,
4841
+ components.DataPart$inboundSchema,
4842
+ components.FilePart$inboundSchema,
4843
+ components.ToolCallPart$inboundSchema,
4844
+ components.ToolResultPart$inboundSchema,
4845
+ ]),
4846
+ ),
4847
+ });
4848
+
4849
+ export function runAgentTaskStatusMessageFromJSON(
4850
+ jsonString: string,
4851
+ ): SafeParseResult<RunAgentTaskStatusMessage, SDKValidationError> {
4852
+ return safeParse(
4853
+ jsonString,
4854
+ (x) => RunAgentTaskStatusMessage$inboundSchema.parse(JSON.parse(x)),
4855
+ `Failed to parse 'RunAgentTaskStatusMessage' from JSON`,
4856
+ );
4857
+ }
4858
+
4859
+ /** @internal */
4860
+ export const RunAgentTaskStatus$inboundSchema: z.ZodType<
4861
+ RunAgentTaskStatus,
4862
+ z.ZodTypeDef,
4863
+ unknown
4864
+ > = z.object({
4865
+ state: RunAgentTaskState$inboundSchema,
4866
+ timestamp: z.string().optional(),
4867
+ message: z.lazy(() => RunAgentTaskStatusMessage$inboundSchema).optional(),
4868
+ });
4869
+
4870
+ export function runAgentTaskStatusFromJSON(
4871
+ jsonString: string,
4872
+ ): SafeParseResult<RunAgentTaskStatus, SDKValidationError> {
4873
+ return safeParse(
4874
+ jsonString,
4875
+ (x) => RunAgentTaskStatus$inboundSchema.parse(JSON.parse(x)),
4876
+ `Failed to parse 'RunAgentTaskStatus' from JSON`,
4877
+ );
4878
+ }
4879
+
4880
+ /** @internal */
4881
+ export const RunAgentA2ATaskResponse$inboundSchema: z.ZodType<
4882
+ RunAgentA2ATaskResponse,
4883
+ z.ZodTypeDef,
4884
+ unknown
4885
+ > = z.object({
4886
+ id: z.string(),
4887
+ contextId: z.string(),
4888
+ kind: RunAgentKind$inboundSchema,
4889
+ status: z.lazy(() => RunAgentTaskStatus$inboundSchema),
4890
+ messages: z.array(components.ExtendedMessage$inboundSchema).optional(),
4891
+ metadata: z.record(z.any()).optional(),
4892
+ });
4893
+
4894
+ export function runAgentA2ATaskResponseFromJSON(
4895
+ jsonString: string,
4896
+ ): SafeParseResult<RunAgentA2ATaskResponse, SDKValidationError> {
4897
+ return safeParse(
4898
+ jsonString,
4899
+ (x) => RunAgentA2ATaskResponse$inboundSchema.parse(JSON.parse(x)),
4900
+ `Failed to parse 'RunAgentA2ATaskResponse' from JSON`,
4901
+ );
4902
+ }