@orq-ai/node 4.5.0-rc.8 → 4.5.2

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 (710) hide show
  1. package/README.md +38 -28
  2. package/funcs/agentsList.d.ts +1 -1
  3. package/funcs/agentsList.d.ts.map +1 -1
  4. package/funcs/agentsList.js +5 -3
  5. package/funcs/agentsList.js.map +1 -1
  6. package/funcs/agentsPostV2AgentsA2a.d.ts +18 -0
  7. package/funcs/agentsPostV2AgentsA2a.d.ts.map +1 -0
  8. package/funcs/agentsPostV2AgentsA2a.js +120 -0
  9. package/funcs/agentsPostV2AgentsA2a.js.map +1 -0
  10. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts +18 -0
  11. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +1 -0
  12. package/funcs/agentsPostV2AgentsKeyCardRefresh.js +124 -0
  13. package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -0
  14. package/funcs/agentsResponsesGet.d.ts +19 -0
  15. package/funcs/agentsResponsesGet.d.ts.map +1 -0
  16. package/funcs/agentsResponsesGet.js +128 -0
  17. package/funcs/agentsResponsesGet.js.map +1 -0
  18. package/funcs/agentsStream.js +4 -2
  19. package/funcs/agentsStream.js.map +1 -1
  20. package/funcs/agentsStreamRun.js +4 -2
  21. package/funcs/agentsStreamRun.js.map +1 -1
  22. package/funcs/agentsUpdate.d.ts +1 -1
  23. package/funcs/agentsUpdate.d.ts.map +1 -1
  24. package/funcs/agentsUpdate.js.map +1 -1
  25. package/funcs/deploymentsStream.js +4 -2
  26. package/funcs/deploymentsStream.js.map +1 -1
  27. package/funcs/filesCreate.d.ts +1 -1
  28. package/funcs/filesCreate.js +8 -1
  29. package/funcs/filesCreate.js.map +1 -1
  30. package/funcs/routerAudioTranscriptionsCreate.js +7 -0
  31. package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
  32. package/funcs/routerAudioTranslationsCreate.js +7 -0
  33. package/funcs/routerAudioTranslationsCreate.js.map +1 -1
  34. package/jsr.json +1 -1
  35. package/lib/config.d.ts +3 -3
  36. package/lib/config.js +3 -3
  37. package/lib/config.js.map +1 -1
  38. package/lib/event-streams.d.ts +5 -0
  39. package/lib/event-streams.d.ts.map +1 -1
  40. package/lib/event-streams.js.map +1 -1
  41. package/lib/matchers.d.ts.map +1 -1
  42. package/lib/matchers.js +0 -1
  43. package/lib/matchers.js.map +1 -1
  44. package/lib/security.d.ts.map +1 -1
  45. package/lib/security.js +1 -2
  46. package/lib/security.js.map +1 -1
  47. package/models/components/createagentresponse.d.ts +5 -0
  48. package/models/components/createagentresponse.d.ts.map +1 -1
  49. package/models/components/createagentresponse.js +2 -0
  50. package/models/components/createagentresponse.js.map +1 -1
  51. package/models/components/extendedmessage.d.ts +71 -0
  52. package/models/components/extendedmessage.d.ts.map +1 -0
  53. package/models/components/extendedmessage.js +98 -0
  54. package/models/components/extendedmessage.js.map +1 -0
  55. package/models/components/getagentresponse.d.ts +157 -0
  56. package/models/components/getagentresponse.d.ts.map +1 -0
  57. package/models/components/getagentresponse.js +175 -0
  58. package/models/components/getagentresponse.js.map +1 -0
  59. package/models/components/index.d.ts +3 -0
  60. package/models/components/index.d.ts.map +1 -1
  61. package/models/components/index.js +3 -0
  62. package/models/components/index.js.map +1 -1
  63. package/models/components/partdoneevent.js +1 -1
  64. package/models/components/reasoningpart.js +1 -1
  65. package/models/components/responsedoneevent.d.ts +5 -0
  66. package/models/components/responsedoneevent.d.ts.map +1 -1
  67. package/models/components/responsedoneevent.js +2 -0
  68. package/models/components/responsedoneevent.js.map +1 -1
  69. package/models/components/responsestartedevent.d.ts +5 -0
  70. package/models/components/responsestartedevent.d.ts.map +1 -1
  71. package/models/components/responsestartedevent.js +2 -0
  72. package/models/components/responsestartedevent.js.map +1 -1
  73. package/models/components/telemetry.d.ts +20 -0
  74. package/models/components/telemetry.d.ts.map +1 -0
  75. package/models/components/telemetry.js +57 -0
  76. package/models/components/telemetry.js.map +1 -0
  77. package/models/errors/index.d.ts +2 -0
  78. package/models/errors/index.d.ts.map +1 -1
  79. package/models/errors/index.js +2 -0
  80. package/models/errors/index.js.map +1 -1
  81. package/models/errors/postv2agentsa2a.d.ts +43 -0
  82. package/models/errors/postv2agentsa2a.d.ts.map +1 -0
  83. package/models/errors/postv2agentsa2a.js +94 -0
  84. package/models/errors/postv2agentsa2a.js.map +1 -0
  85. package/models/errors/postv2agentskeycardrefresh.d.ts +43 -0
  86. package/models/errors/postv2agentskeycardrefresh.d.ts.map +1 -0
  87. package/models/errors/postv2agentskeycardrefresh.js +94 -0
  88. package/models/errors/postv2agentskeycardrefresh.js.map +1 -0
  89. package/models/operations/createagentrequest.d.ts +113 -500
  90. package/models/operations/createagentrequest.d.ts.map +1 -1
  91. package/models/operations/createagentrequest.js +103 -343
  92. package/models/operations/createagentrequest.js.map +1 -1
  93. package/models/operations/createagentresponserequest.d.ts +22 -1
  94. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  95. package/models/operations/createagentresponserequest.js +12 -2
  96. package/models/operations/createagentresponserequest.js.map +1 -1
  97. package/models/operations/createannotation.d.ts +1 -1
  98. package/models/operations/createannotation.d.ts.map +1 -1
  99. package/models/operations/createannotation.js +4 -0
  100. package/models/operations/createannotation.js.map +1 -1
  101. package/models/operations/createchatcompletion.d.ts +15 -2
  102. package/models/operations/createchatcompletion.d.ts.map +1 -1
  103. package/models/operations/createchatcompletion.js +3 -1
  104. package/models/operations/createchatcompletion.js.map +1 -1
  105. package/models/operations/createcompletion.d.ts +6 -2
  106. package/models/operations/createcompletion.d.ts.map +1 -1
  107. package/models/operations/createcompletion.js +2 -1
  108. package/models/operations/createcompletion.js.map +1 -1
  109. package/models/operations/createcontact.js +1 -1
  110. package/models/operations/createdataset.js +1 -1
  111. package/models/operations/createdatasetitem.js +4 -4
  112. package/models/operations/createdatasource.js +1 -1
  113. package/models/operations/createeval.js +16 -16
  114. package/models/operations/createfeedback.d.ts +2 -2
  115. package/models/operations/createidentity.js +1 -1
  116. package/models/operations/createprompt.d.ts +33 -32
  117. package/models/operations/createprompt.d.ts.map +1 -1
  118. package/models/operations/createprompt.js +33 -30
  119. package/models/operations/createprompt.js.map +1 -1
  120. package/models/operations/createresponse.d.ts.map +1 -1
  121. package/models/operations/createresponse.js +2 -1
  122. package/models/operations/createresponse.js.map +1 -1
  123. package/models/operations/createtool.js +6 -6
  124. package/models/operations/deploymentinvoke.d.ts +15 -0
  125. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  126. package/models/operations/deploymentinvoke.js +17 -1
  127. package/models/operations/deploymentinvoke.js.map +1 -1
  128. package/models/operations/deployments.d.ts +1 -0
  129. package/models/operations/deployments.d.ts.map +1 -1
  130. package/models/operations/deployments.js +1 -0
  131. package/models/operations/deployments.js.map +1 -1
  132. package/models/operations/deploymentstream.d.ts +15 -0
  133. package/models/operations/deploymentstream.d.ts.map +1 -1
  134. package/models/operations/deploymentstream.js +17 -1
  135. package/models/operations/deploymentstream.js.map +1 -1
  136. package/models/operations/fileget.js +1 -1
  137. package/models/operations/filelist.js +1 -1
  138. package/models/operations/fileupload.js +1 -1
  139. package/models/operations/getagentresponse.d.ts +20 -0
  140. package/models/operations/getagentresponse.d.ts.map +1 -0
  141. package/models/operations/getagentresponse.js +56 -0
  142. package/models/operations/getagentresponse.js.map +1 -0
  143. package/models/operations/getallprompts.d.ts +1 -0
  144. package/models/operations/getallprompts.d.ts.map +1 -1
  145. package/models/operations/getallprompts.js +1 -0
  146. package/models/operations/getallprompts.js.map +1 -1
  147. package/models/operations/getalltools.js +6 -6
  148. package/models/operations/getevals.js +16 -16
  149. package/models/operations/getoneprompt.d.ts +1 -0
  150. package/models/operations/getoneprompt.d.ts.map +1 -1
  151. package/models/operations/getoneprompt.js +1 -0
  152. package/models/operations/getoneprompt.js.map +1 -1
  153. package/models/operations/getpromptversion.d.ts +1 -0
  154. package/models/operations/getpromptversion.d.ts.map +1 -1
  155. package/models/operations/getpromptversion.js +1 -0
  156. package/models/operations/getpromptversion.js.map +1 -1
  157. package/models/operations/index.d.ts +3 -0
  158. package/models/operations/index.d.ts.map +1 -1
  159. package/models/operations/index.js +3 -0
  160. package/models/operations/index.js.map +1 -1
  161. package/models/operations/invokeagent.d.ts +26 -1
  162. package/models/operations/invokeagent.d.ts.map +1 -1
  163. package/models/operations/invokeagent.js +12 -1
  164. package/models/operations/invokeagent.js.map +1 -1
  165. package/models/operations/listagents.d.ts +114 -241
  166. package/models/operations/listagents.d.ts.map +1 -1
  167. package/models/operations/listagents.js +94 -182
  168. package/models/operations/listagents.js.map +1 -1
  169. package/models/operations/listdatasetdatapoints.js +4 -4
  170. package/models/operations/listdatasets.js +1 -1
  171. package/models/operations/listdatasources.js +1 -1
  172. package/models/operations/listidentities.js +1 -1
  173. package/models/operations/listpromptversions.d.ts +1 -0
  174. package/models/operations/listpromptversions.d.ts.map +1 -1
  175. package/models/operations/listpromptversions.js +1 -0
  176. package/models/operations/listpromptversions.js.map +1 -1
  177. package/models/operations/postv2agentsa2a.d.ts +119 -0
  178. package/models/operations/postv2agentsa2a.d.ts.map +1 -0
  179. package/models/operations/postv2agentsa2a.js +147 -0
  180. package/models/operations/postv2agentsa2a.js.map +1 -0
  181. package/models/operations/postv2agentskeycardrefresh.d.ts +35 -0
  182. package/models/operations/postv2agentskeycardrefresh.d.ts.map +1 -0
  183. package/models/operations/postv2agentskeycardrefresh.js +71 -0
  184. package/models/operations/postv2agentskeycardrefresh.js.map +1 -0
  185. package/models/operations/retrieveagentrequest.d.ts +96 -242
  186. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  187. package/models/operations/retrieveagentrequest.js +84 -185
  188. package/models/operations/retrieveagentrequest.js.map +1 -1
  189. package/models/operations/retrievedatapoint.js +4 -4
  190. package/models/operations/retrievedataset.js +1 -1
  191. package/models/operations/retrievedatasource.js +1 -1
  192. package/models/operations/retrieveidentity.js +1 -1
  193. package/models/operations/retrievetool.js +6 -6
  194. package/models/operations/runagent.d.ts +27 -265
  195. package/models/operations/runagent.d.ts.map +1 -1
  196. package/models/operations/runagent.js +26 -163
  197. package/models/operations/runagent.js.map +1 -1
  198. package/models/operations/streamagent.d.ts +22 -1
  199. package/models/operations/streamagent.d.ts.map +1 -1
  200. package/models/operations/streamagent.js +11 -1
  201. package/models/operations/streamagent.js.map +1 -1
  202. package/models/operations/streamrunagent.d.ts +13 -255
  203. package/models/operations/streamrunagent.d.ts.map +1 -1
  204. package/models/operations/streamrunagent.js +15 -152
  205. package/models/operations/streamrunagent.js.map +1 -1
  206. package/models/operations/updateagent.d.ts +190 -507
  207. package/models/operations/updateagent.d.ts.map +1 -1
  208. package/models/operations/updateagent.js +144 -348
  209. package/models/operations/updateagent.js.map +1 -1
  210. package/models/operations/updatedatapoint.js +4 -4
  211. package/models/operations/updatedataset.js +1 -1
  212. package/models/operations/updatedatasource.js +1 -1
  213. package/models/operations/updateeval.d.ts +48 -0
  214. package/models/operations/updateeval.d.ts.map +1 -1
  215. package/models/operations/updateeval.js +60 -20
  216. package/models/operations/updateeval.js.map +1 -1
  217. package/models/operations/updateidentity.js +1 -1
  218. package/models/operations/updatememorystore.d.ts +2 -43
  219. package/models/operations/updatememorystore.d.ts.map +1 -1
  220. package/models/operations/updatememorystore.js +2 -45
  221. package/models/operations/updatememorystore.js.map +1 -1
  222. package/models/operations/updateprompt.d.ts +1 -0
  223. package/models/operations/updateprompt.d.ts.map +1 -1
  224. package/models/operations/updateprompt.js +1 -0
  225. package/models/operations/updateprompt.js.map +1 -1
  226. package/models/operations/updatetool.d.ts +60 -0
  227. package/models/operations/updatetool.d.ts.map +1 -1
  228. package/models/operations/updatetool.js +63 -9
  229. package/models/operations/updatetool.js.map +1 -1
  230. package/package.json +3 -4
  231. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  232. package/packages/orq-rc/src/core.ts +13 -0
  233. package/packages/orq-rc/src/funcs/agentsCreate.ts +161 -0
  234. package/packages/orq-rc/src/funcs/agentsDelete.ts +180 -0
  235. package/packages/orq-rc/src/funcs/agentsInvoke.ts +177 -0
  236. package/packages/orq-rc/src/funcs/agentsList.ts +184 -0
  237. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  238. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
  239. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +183 -0
  240. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
  241. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +180 -0
  242. package/packages/orq-rc/src/funcs/agentsRun.ts +162 -0
  243. package/packages/orq-rc/src/funcs/agentsStream.ts +204 -0
  244. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +189 -0
  245. package/packages/orq-rc/src/funcs/agentsUpdate.ts +184 -0
  246. package/packages/orq-rc/src/funcs/annotationsCreate.ts +171 -0
  247. package/packages/orq-rc/src/funcs/annotationsDelete.ts +171 -0
  248. package/packages/orq-rc/src/funcs/chunkingParse.ts +160 -0
  249. package/packages/orq-rc/src/funcs/contactsCreate.ts +160 -0
  250. package/packages/orq-rc/src/funcs/datasetsClear.ts +167 -0
  251. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  252. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +171 -0
  253. package/packages/orq-rc/src/funcs/datasetsDelete.ts +167 -0
  254. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +182 -0
  255. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  256. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +174 -0
  257. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +175 -0
  258. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +181 -0
  259. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +176 -0
  260. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +179 -0
  261. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  262. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  263. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  264. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +168 -0
  265. package/packages/orq-rc/src/funcs/deploymentsStream.ts +186 -0
  266. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  267. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  268. package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
  269. package/packages/orq-rc/src/funcs/evalsInvoke.ts +181 -0
  270. package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
  271. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +183 -0
  272. package/packages/orq-rc/src/funcs/feedbackCreate.ts +160 -0
  273. package/packages/orq-rc/src/funcs/filesCreate.ts +198 -0
  274. package/packages/orq-rc/src/funcs/filesDelete.ts +164 -0
  275. package/packages/orq-rc/src/funcs/filesGet.ts +166 -0
  276. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  277. package/packages/orq-rc/src/funcs/identitiesCreate.ts +165 -0
  278. package/packages/orq-rc/src/funcs/identitiesDelete.ts +176 -0
  279. package/packages/orq-rc/src/funcs/identitiesList.ts +170 -0
  280. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +175 -0
  281. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +176 -0
  282. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  283. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +171 -0
  284. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +166 -0
  285. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +167 -0
  286. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +174 -0
  287. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
  288. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +173 -0
  289. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
  290. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  291. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +178 -0
  292. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
  293. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +174 -0
  294. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +166 -0
  295. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +173 -0
  296. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +169 -0
  297. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +167 -0
  298. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +164 -0
  299. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +174 -0
  300. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +170 -0
  301. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +162 -0
  302. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +176 -0
  303. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +170 -0
  304. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +168 -0
  305. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +185 -0
  306. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +180 -0
  307. package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
  308. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +184 -0
  309. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +177 -0
  310. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +177 -0
  311. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +179 -0
  312. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +174 -0
  313. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +168 -0
  314. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +180 -0
  315. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +175 -0
  316. package/packages/orq-rc/src/funcs/modelsList.ts +142 -0
  317. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  318. package/packages/orq-rc/src/funcs/promptsDelete.ts +173 -0
  319. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +181 -0
  320. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  321. package/packages/orq-rc/src/funcs/promptsListVersions.ts +173 -0
  322. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +166 -0
  323. package/packages/orq-rc/src/funcs/promptsUpdate.ts +173 -0
  324. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  325. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +161 -0
  326. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +273 -0
  327. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +263 -0
  328. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +168 -0
  329. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +168 -0
  330. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +161 -0
  331. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +222 -0
  332. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +160 -0
  333. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +218 -0
  334. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +167 -0
  335. package/packages/orq-rc/src/funcs/routerOcr.ts +158 -0
  336. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +160 -0
  337. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +167 -0
  338. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  339. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  340. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +183 -0
  341. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +190 -0
  342. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  343. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  344. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  345. package/packages/orq-rc/src/hooks/global.ts +44 -0
  346. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  347. package/packages/orq-rc/src/hooks/index.ts +6 -0
  348. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  349. package/packages/orq-rc/src/hooks/types.ts +112 -0
  350. package/packages/orq-rc/src/index.ts +9 -0
  351. package/packages/orq-rc/src/lib/base64.ts +37 -0
  352. package/packages/orq-rc/src/lib/config.ts +74 -0
  353. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  354. package/packages/orq-rc/src/lib/encodings.ts +497 -0
  355. package/packages/orq-rc/src/lib/env.ts +89 -0
  356. package/packages/orq-rc/src/lib/event-streams.ts +161 -0
  357. package/packages/orq-rc/src/lib/files.ts +82 -0
  358. package/packages/orq-rc/src/lib/http.ts +323 -0
  359. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  360. package/packages/orq-rc/src/lib/logger.ts +9 -0
  361. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  362. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  363. package/packages/orq-rc/src/lib/retries.ts +218 -0
  364. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  365. package/packages/orq-rc/src/lib/sdks.ts +407 -0
  366. package/packages/orq-rc/src/lib/security.ts +263 -0
  367. package/packages/orq-rc/src/lib/url.ts +33 -0
  368. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  369. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +185 -0
  370. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  371. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  372. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  373. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  374. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  375. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  376. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +517 -0
  377. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  378. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  379. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  380. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  381. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  382. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  383. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  384. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  385. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  386. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  387. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  388. package/packages/orq-rc/src/models/components/filepart.ts +218 -0
  389. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  390. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  391. package/packages/orq-rc/src/models/components/index.ts +59 -0
  392. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3450 -0
  393. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  394. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  395. package/packages/orq-rc/src/models/components/partdoneevent.ts +139 -0
  396. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  397. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  398. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  399. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  400. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  401. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  402. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  403. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  404. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  405. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  406. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  407. package/packages/orq-rc/src/models/components/security.ts +32 -0
  408. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  409. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +207 -0
  410. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  411. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  412. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
  413. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  414. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  415. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  416. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +230 -0
  417. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +214 -0
  418. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +200 -0
  419. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  420. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  421. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  422. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  423. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  424. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  425. package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
  426. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  427. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  428. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  429. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  430. package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
  431. package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
  432. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  433. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  434. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  435. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  436. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  437. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  438. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  439. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  440. package/packages/orq-rc/src/models/errors/index.ts +35 -0
  441. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  442. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  443. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
  444. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  445. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  446. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  447. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +62 -0
  448. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  449. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  450. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  451. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  452. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  453. package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
  454. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  455. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  456. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  457. package/packages/orq-rc/src/models/operations/createagentrequest.ts +6393 -0
  458. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +644 -0
  459. package/packages/orq-rc/src/models/operations/createannotation.ts +166 -0
  460. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6392 -0
  461. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  462. package/packages/orq-rc/src/models/operations/createcompletion.ts +3418 -0
  463. package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
  464. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  465. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2551 -0
  466. package/packages/orq-rc/src/models/operations/createdatasource.ts +437 -0
  467. package/packages/orq-rc/src/models/operations/createembedding.ts +947 -0
  468. package/packages/orq-rc/src/models/operations/createeval.ts +4170 -0
  469. package/packages/orq-rc/src/models/operations/createfeedback.ts +144 -0
  470. package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
  471. package/packages/orq-rc/src/models/operations/createimage.ts +1028 -0
  472. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  473. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  474. package/packages/orq-rc/src/models/operations/createknowledge.ts +944 -0
  475. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  476. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  477. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  478. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  479. package/packages/orq-rc/src/models/operations/createprompt.ts +5391 -0
  480. package/packages/orq-rc/src/models/operations/creatererank.ts +890 -0
  481. package/packages/orq-rc/src/models/operations/createresponse.ts +3325 -0
  482. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  483. package/packages/orq-rc/src/models/operations/createtool.ts +2499 -0
  484. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  485. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  486. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  487. package/packages/orq-rc/src/models/operations/deleteannotation.ts +79 -0
  488. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  489. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  490. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  491. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  492. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  493. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  494. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  495. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  496. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  497. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  498. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  499. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  500. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  501. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2370 -0
  502. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4525 -0
  503. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +729 -0
  504. package/packages/orq-rc/src/models/operations/deployments.ts +1269 -0
  505. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4653 -0
  506. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  507. package/packages/orq-rc/src/models/operations/fileget.ts +116 -0
  508. package/packages/orq-rc/src/models/operations/filelist.ts +172 -0
  509. package/packages/orq-rc/src/models/operations/fileupload.ts +170 -0
  510. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  511. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  512. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  513. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +200 -0
  514. package/packages/orq-rc/src/models/operations/getallprompts.ts +3165 -0
  515. package/packages/orq-rc/src/models/operations/getalltools.ts +1398 -0
  516. package/packages/orq-rc/src/models/operations/getchunkscount.ts +121 -0
  517. package/packages/orq-rc/src/models/operations/getevals.ts +2842 -0
  518. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  519. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  520. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3090 -0
  521. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3135 -0
  522. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  523. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  524. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  525. package/packages/orq-rc/src/models/operations/index.ts +116 -0
  526. package/packages/orq-rc/src/models/operations/invokeagent.ts +777 -0
  527. package/packages/orq-rc/src/models/operations/invokeeval.ts +1253 -0
  528. package/packages/orq-rc/src/models/operations/listagents.ts +2754 -0
  529. package/packages/orq-rc/src/models/operations/listchunks.ts +260 -0
  530. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +263 -0
  531. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1498 -0
  532. package/packages/orq-rc/src/models/operations/listdatasets.ts +205 -0
  533. package/packages/orq-rc/src/models/operations/listdatasources.ts +235 -0
  534. package/packages/orq-rc/src/models/operations/listidentities.ts +275 -0
  535. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +642 -0
  536. package/packages/orq-rc/src/models/operations/listmodels.ts +143 -0
  537. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3210 -0
  538. package/packages/orq-rc/src/models/operations/parse.ts +777 -0
  539. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
  540. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  541. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  542. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
  543. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2814 -0
  544. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1402 -0
  545. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  546. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +152 -0
  547. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +117 -0
  548. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  549. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  550. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  551. package/packages/orq-rc/src/models/operations/retrievetool.ts +1379 -0
  552. package/packages/orq-rc/src/models/operations/runagent.ts +4927 -0
  553. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  554. package/packages/orq-rc/src/models/operations/streamagent.ts +668 -0
  555. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5089 -0
  556. package/packages/orq-rc/src/models/operations/updateagent.ts +6824 -0
  557. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  558. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2555 -0
  559. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  560. package/packages/orq-rc/src/models/operations/updatedatasource.ts +186 -0
  561. package/packages/orq-rc/src/models/operations/updateeval.ts +4152 -0
  562. package/packages/orq-rc/src/models/operations/updateidentity.ts +189 -0
  563. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  564. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  565. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  566. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  567. package/packages/orq-rc/src/models/operations/updateprompt.ts +5473 -0
  568. package/packages/orq-rc/src/models/operations/updatetool.ts +2810 -0
  569. package/packages/orq-rc/src/sdk/agents.ts +234 -0
  570. package/packages/orq-rc/src/sdk/annotations.ts +39 -0
  571. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  572. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  573. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  574. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  575. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  576. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  577. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  578. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  579. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  580. package/packages/orq-rc/src/sdk/evals.ts +84 -0
  581. package/packages/orq-rc/src/sdk/evaluators.ts +27 -0
  582. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  583. package/packages/orq-rc/src/sdk/files.ts +78 -0
  584. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  585. package/packages/orq-rc/src/sdk/identities.ts +99 -0
  586. package/packages/orq-rc/src/sdk/images.ts +25 -0
  587. package/packages/orq-rc/src/sdk/index.ts +5 -0
  588. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  589. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  590. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  591. package/packages/orq-rc/src/sdk/models.ts +25 -0
  592. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  593. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  594. package/packages/orq-rc/src/sdk/orqresponses.ts +32 -0
  595. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  596. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  597. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  598. package/packages/orq-rc/src/sdk/responses.ts +53 -0
  599. package/packages/orq-rc/src/sdk/router.ts +72 -0
  600. package/packages/orq-rc/src/sdk/sdk.ts +115 -0
  601. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  602. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  603. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  604. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  605. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  606. package/packages/orq-rc/src/types/async.ts +68 -0
  607. package/packages/orq-rc/src/types/blobs.ts +32 -0
  608. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  609. package/packages/orq-rc/src/types/enums.ts +45 -0
  610. package/packages/orq-rc/src/types/fp.ts +50 -0
  611. package/packages/orq-rc/src/types/index.ts +11 -0
  612. package/packages/orq-rc/src/types/operations.ts +105 -0
  613. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  614. package/packages/orq-rc/src/types/streams.ts +21 -0
  615. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  616. package/sdk/agents.d.ts +16 -2
  617. package/sdk/agents.d.ts.map +1 -1
  618. package/sdk/agents.js +22 -2
  619. package/sdk/agents.js.map +1 -1
  620. package/sdk/files.d.ts +1 -1
  621. package/sdk/files.js +1 -1
  622. package/sdk/responses.d.ts +8 -0
  623. package/sdk/responses.d.ts.map +1 -1
  624. package/sdk/responses.js +10 -0
  625. package/sdk/responses.js.map +1 -1
  626. package/src/funcs/agentsList.ts +5 -0
  627. package/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  628. package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
  629. package/src/funcs/agentsResponsesGet.ts +182 -0
  630. package/src/funcs/agentsStream.ts +4 -1
  631. package/src/funcs/agentsStreamRun.ts +4 -1
  632. package/src/funcs/agentsUpdate.ts +2 -2
  633. package/src/funcs/deploymentsStream.ts +4 -1
  634. package/src/funcs/filesCreate.ts +12 -1
  635. package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
  636. package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
  637. package/src/lib/config.ts +3 -3
  638. package/src/lib/event-streams.ts +10 -1
  639. package/src/lib/matchers.ts +3 -2
  640. package/src/lib/security.ts +1 -2
  641. package/src/models/components/createagentresponse.ts +6 -0
  642. package/src/models/components/extendedmessage.ts +146 -0
  643. package/src/models/components/getagentresponse.ts +348 -0
  644. package/src/models/components/index.ts +3 -0
  645. package/src/models/components/partdoneevent.ts +1 -1
  646. package/src/models/components/reasoningpart.ts +1 -1
  647. package/src/models/components/responsedoneevent.ts +6 -0
  648. package/src/models/components/responsestartedevent.ts +6 -0
  649. package/src/models/components/telemetry.ts +48 -0
  650. package/src/models/errors/index.ts +2 -0
  651. package/src/models/errors/postv2agentsa2a.ts +96 -0
  652. package/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  653. package/src/models/operations/createagentrequest.ts +243 -943
  654. package/src/models/operations/createagentresponserequest.ts +37 -2
  655. package/src/models/operations/createannotation.ts +5 -1
  656. package/src/models/operations/createchatcompletion.ts +14 -3
  657. package/src/models/operations/createcompletion.ts +8 -3
  658. package/src/models/operations/createcontact.ts +1 -1
  659. package/src/models/operations/createdataset.ts +1 -1
  660. package/src/models/operations/createdatasetitem.ts +4 -4
  661. package/src/models/operations/createdatasource.ts +1 -1
  662. package/src/models/operations/createeval.ts +16 -16
  663. package/src/models/operations/createfeedback.ts +2 -2
  664. package/src/models/operations/createidentity.ts +1 -1
  665. package/src/models/operations/createprompt.ts +59 -69
  666. package/src/models/operations/createresponse.ts +2 -1
  667. package/src/models/operations/createtool.ts +6 -6
  668. package/src/models/operations/deploymentinvoke.ts +39 -0
  669. package/src/models/operations/deployments.ts +1 -0
  670. package/src/models/operations/deploymentstream.ts +39 -0
  671. package/src/models/operations/fileget.ts +1 -1
  672. package/src/models/operations/filelist.ts +1 -1
  673. package/src/models/operations/fileupload.ts +1 -1
  674. package/src/models/operations/getagentresponse.ts +46 -0
  675. package/src/models/operations/getallprompts.ts +1 -0
  676. package/src/models/operations/getalltools.ts +6 -6
  677. package/src/models/operations/getevals.ts +16 -16
  678. package/src/models/operations/getoneprompt.ts +1 -0
  679. package/src/models/operations/getpromptversion.ts +1 -0
  680. package/src/models/operations/index.ts +3 -0
  681. package/src/models/operations/invokeagent.ts +45 -1
  682. package/src/models/operations/listagents.ts +218 -482
  683. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  684. package/src/models/operations/listdatasets.ts +1 -1
  685. package/src/models/operations/listdatasources.ts +1 -1
  686. package/src/models/operations/listidentities.ts +1 -1
  687. package/src/models/operations/listpromptversions.ts +1 -0
  688. package/src/models/operations/postv2agentsa2a.ts +252 -0
  689. package/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  690. package/src/models/operations/retrieveagentrequest.ts +207 -497
  691. package/src/models/operations/retrievedatapoint.ts +4 -4
  692. package/src/models/operations/retrievedataset.ts +1 -1
  693. package/src/models/operations/retrievedatasource.ts +1 -1
  694. package/src/models/operations/retrieveidentity.ts +1 -1
  695. package/src/models/operations/retrievetool.ts +6 -6
  696. package/src/models/operations/runagent.ts +69 -493
  697. package/src/models/operations/streamagent.ts +40 -1
  698. package/src/models/operations/streamrunagent.ts +36 -493
  699. package/src/models/operations/updateagent.ts +380 -1003
  700. package/src/models/operations/updatedatapoint.ts +4 -4
  701. package/src/models/operations/updatedataset.ts +1 -1
  702. package/src/models/operations/updatedatasource.ts +1 -1
  703. package/src/models/operations/updateeval.ts +102 -16
  704. package/src/models/operations/updateidentity.ts +1 -1
  705. package/src/models/operations/updatememorystore.ts +3 -61
  706. package/src/models/operations/updateprompt.ts +1 -0
  707. package/src/models/operations/updatetool.ts +121 -7
  708. package/src/sdk/agents.ts +39 -1
  709. package/src/sdk/files.ts +1 -1
  710. package/src/sdk/responses.ts +19 -0
@@ -0,0 +1,2754 @@
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
+ /**
14
+ * Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
15
+ */
16
+ export const QueryParamType = {
17
+ Internal: "internal",
18
+ A2a: "a2a",
19
+ } as const;
20
+ /**
21
+ * Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
22
+ */
23
+ export type QueryParamType = ClosedEnum<typeof QueryParamType>;
24
+
25
+ export type ListAgentsRequest = {
26
+ /**
27
+ * A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
28
+ */
29
+ limit?: number | undefined;
30
+ /**
31
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
32
+ */
33
+ startingAfter?: string | undefined;
34
+ /**
35
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
36
+ */
37
+ endingBefore?: string | undefined;
38
+ /**
39
+ * Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
40
+ */
41
+ type?: QueryParamType | undefined;
42
+ };
43
+
44
+ export const ListAgentsObject = {
45
+ List: "list",
46
+ } as const;
47
+ export type ListAgentsObject = ClosedEnum<typeof ListAgentsObject>;
48
+
49
+ /**
50
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
51
+ */
52
+ export const ListAgentsStatus = {
53
+ Live: "live",
54
+ Draft: "draft",
55
+ Pending: "pending",
56
+ Published: "published",
57
+ } as const;
58
+ /**
59
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
60
+ */
61
+ export type ListAgentsStatus = ClosedEnum<typeof ListAgentsStatus>;
62
+
63
+ export type ListAgentsTeamOfAgents = {
64
+ /**
65
+ * The unique key of the agent within the workspace
66
+ */
67
+ key: string;
68
+ /**
69
+ * 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.
70
+ */
71
+ role?: string | undefined;
72
+ };
73
+
74
+ export type ListAgentsMetrics = {
75
+ totalCost: number;
76
+ };
77
+
78
+ export type ListAgentsKnowledgeBases = {
79
+ /**
80
+ * Unique identifier of the knowledge base to search
81
+ */
82
+ knowledgeId: string;
83
+ };
84
+
85
+ export const ListAgentsSource = {
86
+ Internal: "internal",
87
+ External: "external",
88
+ Experiment: "experiment",
89
+ } as const;
90
+ export type ListAgentsSource = ClosedEnum<typeof ListAgentsSource>;
91
+
92
+ /**
93
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
94
+ */
95
+ export const ListAgentsType = {
96
+ Internal: "internal",
97
+ A2a: "a2a",
98
+ } as const;
99
+ /**
100
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
101
+ */
102
+ export type ListAgentsType = ClosedEnum<typeof ListAgentsType>;
103
+
104
+ /**
105
+ * 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.
106
+ */
107
+ export const ListAgentsToolApprovalRequired = {
108
+ All: "all",
109
+ RespectTool: "respect_tool",
110
+ None: "none",
111
+ } as const;
112
+ /**
113
+ * 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.
114
+ */
115
+ export type ListAgentsToolApprovalRequired = ClosedEnum<
116
+ typeof ListAgentsToolApprovalRequired
117
+ >;
118
+
119
+ export type ListAgentsConditions = {
120
+ /**
121
+ * The argument of the tool call to evaluate
122
+ */
123
+ condition: string;
124
+ /**
125
+ * The operator to use
126
+ */
127
+ operator: string;
128
+ /**
129
+ * The value to compare against
130
+ */
131
+ value: string;
132
+ };
133
+
134
+ export type ListAgentsTools = {
135
+ /**
136
+ * The id of the resource
137
+ */
138
+ id: string;
139
+ /**
140
+ * Optional tool key for custom tools
141
+ */
142
+ key?: string | undefined;
143
+ actionType: string;
144
+ displayName?: string | undefined;
145
+ /**
146
+ * Optional tool description
147
+ */
148
+ description?: string | undefined;
149
+ requiresApproval: boolean;
150
+ /**
151
+ * Nested tool ID for MCP tools (identifies specific tool within MCP server)
152
+ */
153
+ toolId?: string | undefined;
154
+ conditions?: Array<ListAgentsConditions> | undefined;
155
+ /**
156
+ * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
157
+ */
158
+ timeout: number;
159
+ };
160
+
161
+ /**
162
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
163
+ */
164
+ export const ListAgentsExecuteOn = {
165
+ Input: "input",
166
+ Output: "output",
167
+ } as const;
168
+ /**
169
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
170
+ */
171
+ export type ListAgentsExecuteOn = ClosedEnum<typeof ListAgentsExecuteOn>;
172
+
173
+ export type ListAgentsEvaluators = {
174
+ /**
175
+ * Unique key or identifier of the evaluator
176
+ */
177
+ id: string;
178
+ /**
179
+ * 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.
180
+ */
181
+ sampleRate: number;
182
+ /**
183
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
184
+ */
185
+ executeOn: ListAgentsExecuteOn;
186
+ };
187
+
188
+ /**
189
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
190
+ */
191
+ export const ListAgentsAgentsExecuteOn = {
192
+ Input: "input",
193
+ Output: "output",
194
+ } as const;
195
+ /**
196
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
197
+ */
198
+ export type ListAgentsAgentsExecuteOn = ClosedEnum<
199
+ typeof ListAgentsAgentsExecuteOn
200
+ >;
201
+
202
+ export type ListAgentsGuardrails = {
203
+ /**
204
+ * Unique key or identifier of the evaluator
205
+ */
206
+ id: string;
207
+ /**
208
+ * 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.
209
+ */
210
+ sampleRate: number;
211
+ /**
212
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
213
+ */
214
+ executeOn: ListAgentsAgentsExecuteOn;
215
+ };
216
+
217
+ export type ListAgentsSettings = {
218
+ /**
219
+ * Maximum iterations(llm calls) before the agent will stop executing.
220
+ */
221
+ maxIterations: number;
222
+ /**
223
+ * 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.
224
+ */
225
+ maxExecutionTime: number;
226
+ /**
227
+ * 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
228
+ */
229
+ maxCost: number;
230
+ /**
231
+ * 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.
232
+ */
233
+ toolApprovalRequired: ListAgentsToolApprovalRequired;
234
+ tools?: Array<ListAgentsTools> | undefined;
235
+ /**
236
+ * Configuration for an evaluator applied to the agent
237
+ */
238
+ evaluators?: Array<ListAgentsEvaluators> | undefined;
239
+ /**
240
+ * Configuration for a guardrail applied to the agent
241
+ */
242
+ guardrails?: Array<ListAgentsGuardrails> | undefined;
243
+ };
244
+
245
+ export type ListAgentsResponseFormatJsonSchema = {
246
+ /**
247
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
248
+ */
249
+ description?: string | undefined;
250
+ /**
251
+ * 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.
252
+ */
253
+ name: string;
254
+ /**
255
+ * The schema for the response format, described as a JSON Schema object.
256
+ */
257
+ schema?: any | undefined;
258
+ /**
259
+ * 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.
260
+ */
261
+ strict: boolean;
262
+ };
263
+
264
+ /**
265
+ * @remarks
266
+ *
267
+ * JSON Schema response format. Used to generate structured JSON responses
268
+ */
269
+ export type ListAgentsResponseFormatAgentsJSONSchema = {
270
+ type: "json_schema";
271
+ jsonSchema: ListAgentsResponseFormatJsonSchema;
272
+ };
273
+
274
+ /**
275
+ * @remarks
276
+ *
277
+ * 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.
278
+ */
279
+ export type ListAgentsResponseFormatJSONObject = {
280
+ type: "json_object";
281
+ };
282
+
283
+ /**
284
+ * @remarks
285
+ *
286
+ * Default response format. Used to generate text responses
287
+ */
288
+ export type ListAgentsResponseFormatText = {
289
+ type: "text";
290
+ };
291
+
292
+ /**
293
+ * An object specifying the format that the model must output
294
+ */
295
+ export type ListAgentsResponseFormat =
296
+ | ListAgentsResponseFormatText
297
+ | ListAgentsResponseFormatJSONObject
298
+ | ListAgentsResponseFormatAgentsJSONSchema;
299
+
300
+ /**
301
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
302
+ *
303
+ * @remarks
304
+ *
305
+ * - `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.
306
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
307
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
308
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
309
+ *
310
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
311
+ */
312
+ export const ListAgentsReasoningEffort = {
313
+ None: "none",
314
+ Minimal: "minimal",
315
+ Low: "low",
316
+ Medium: "medium",
317
+ High: "high",
318
+ Xhigh: "xhigh",
319
+ } as const;
320
+ /**
321
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
322
+ *
323
+ * @remarks
324
+ *
325
+ * - `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.
326
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
327
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
328
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
329
+ *
330
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
331
+ */
332
+ export type ListAgentsReasoningEffort = ClosedEnum<
333
+ typeof ListAgentsReasoningEffort
334
+ >;
335
+
336
+ /**
337
+ * Up to 4 sequences where the API will stop generating further tokens.
338
+ */
339
+ export type ListAgentsStop = string | Array<string>;
340
+
341
+ export type ListAgentsThinking =
342
+ | components.ThinkingConfigDisabledSchema
343
+ | components.ThinkingConfigEnabledSchema;
344
+
345
+ /**
346
+ * The type of the tool. Currently, only function is supported.
347
+ */
348
+ export const ListAgentsToolChoiceType = {
349
+ Function: "function",
350
+ } as const;
351
+ /**
352
+ * The type of the tool. Currently, only function is supported.
353
+ */
354
+ export type ListAgentsToolChoiceType = ClosedEnum<
355
+ typeof ListAgentsToolChoiceType
356
+ >;
357
+
358
+ export type ListAgentsToolChoiceFunction = {
359
+ /**
360
+ * The name of the function to call.
361
+ */
362
+ name: string;
363
+ };
364
+
365
+ export type ListAgentsToolChoice2 = {
366
+ /**
367
+ * The type of the tool. Currently, only function is supported.
368
+ */
369
+ type?: ListAgentsToolChoiceType | undefined;
370
+ function: ListAgentsToolChoiceFunction;
371
+ };
372
+
373
+ export const ListAgentsToolChoice1 = {
374
+ None: "none",
375
+ Auto: "auto",
376
+ Required: "required",
377
+ } as const;
378
+ export type ListAgentsToolChoice1 = ClosedEnum<typeof ListAgentsToolChoice1>;
379
+
380
+ /**
381
+ * Controls which (if any) tool is called by the model.
382
+ */
383
+ export type ListAgentsToolChoice =
384
+ | ListAgentsToolChoice2
385
+ | ListAgentsToolChoice1;
386
+
387
+ export const ListAgentsModalities = {
388
+ Text: "text",
389
+ Audio: "audio",
390
+ } as const;
391
+ export type ListAgentsModalities = ClosedEnum<typeof ListAgentsModalities>;
392
+
393
+ /**
394
+ * The key of the guardrail.
395
+ */
396
+ export const ListAgentsId1 = {
397
+ OrqPiiDetection: "orq_pii_detection",
398
+ OrqSexualModeration: "orq_sexual_moderation",
399
+ OrqHarmfulModeration: "orq_harmful_moderation",
400
+ } as const;
401
+ /**
402
+ * The key of the guardrail.
403
+ */
404
+ export type ListAgentsId1 = ClosedEnum<typeof ListAgentsId1>;
405
+
406
+ export type ListAgentsId = ListAgentsId1 | string;
407
+
408
+ /**
409
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
410
+ */
411
+ export const ListAgentsAgentsResponseExecuteOn = {
412
+ Input: "input",
413
+ Output: "output",
414
+ } as const;
415
+ /**
416
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
417
+ */
418
+ export type ListAgentsAgentsResponseExecuteOn = ClosedEnum<
419
+ typeof ListAgentsAgentsResponseExecuteOn
420
+ >;
421
+
422
+ export type ListAgentsAgentsGuardrails = {
423
+ id: ListAgentsId1 | string;
424
+ /**
425
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
426
+ */
427
+ executeOn: ListAgentsAgentsResponseExecuteOn;
428
+ };
429
+
430
+ export type ListAgentsFallbacks = {
431
+ /**
432
+ * Fallback model identifier
433
+ */
434
+ model: string;
435
+ };
436
+
437
+ export const ListAgentsAgentsType = {
438
+ ExactMatch: "exact_match",
439
+ } as const;
440
+ export type ListAgentsAgentsType = ClosedEnum<typeof ListAgentsAgentsType>;
441
+
442
+ /**
443
+ * Cache configuration for the request.
444
+ */
445
+ export type ListAgentsCache = {
446
+ /**
447
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
448
+ */
449
+ ttl: number;
450
+ type: ListAgentsAgentsType;
451
+ };
452
+
453
+ export const ListAgentsLoadBalancerType = {
454
+ WeightBased: "weight_based",
455
+ } as const;
456
+ export type ListAgentsLoadBalancerType = ClosedEnum<
457
+ typeof ListAgentsLoadBalancerType
458
+ >;
459
+
460
+ export type ListAgentsLoadBalancerModels = {
461
+ /**
462
+ * Model identifier for load balancing
463
+ */
464
+ model: string;
465
+ /**
466
+ * Weight assigned to this model for load balancing
467
+ */
468
+ weight: number;
469
+ };
470
+
471
+ export type ListAgentsLoadBalancer1 = {
472
+ type: ListAgentsLoadBalancerType;
473
+ models: Array<ListAgentsLoadBalancerModels>;
474
+ };
475
+
476
+ /**
477
+ * Load balancer configuration for the request.
478
+ */
479
+ export type ListAgentsLoadBalancer = ListAgentsLoadBalancer1;
480
+
481
+ /**
482
+ * 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.
483
+ */
484
+ export type ListAgentsTimeout = {
485
+ /**
486
+ * Timeout value in milliseconds
487
+ */
488
+ callTimeout: number;
489
+ };
490
+
491
+ /**
492
+ * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
493
+ */
494
+ export type ListAgentsParameters = {
495
+ /**
496
+ * The name to display on the trace. If not specified, the default system name will be used.
497
+ */
498
+ name?: string | undefined;
499
+ /**
500
+ * 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.
501
+ */
502
+ frequencyPenalty?: number | null | undefined;
503
+ /**
504
+ * `[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.
505
+ *
506
+ * @remarks
507
+ *
508
+ * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
509
+ */
510
+ maxTokens?: number | null | undefined;
511
+ /**
512
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
513
+ */
514
+ maxCompletionTokens?: number | null | undefined;
515
+ /**
516
+ * 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.
517
+ */
518
+ presencePenalty?: number | null | undefined;
519
+ /**
520
+ * An object specifying the format that the model must output
521
+ */
522
+ responseFormat?:
523
+ | ListAgentsResponseFormatText
524
+ | ListAgentsResponseFormatJSONObject
525
+ | ListAgentsResponseFormatAgentsJSONSchema
526
+ | undefined;
527
+ /**
528
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
529
+ *
530
+ * @remarks
531
+ *
532
+ * - `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.
533
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
534
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
535
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
536
+ *
537
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
538
+ */
539
+ reasoningEffort?: ListAgentsReasoningEffort | undefined;
540
+ /**
541
+ * Adjusts response verbosity. Lower levels yield shorter answers.
542
+ */
543
+ verbosity?: string | undefined;
544
+ /**
545
+ * 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.
546
+ */
547
+ seed?: number | null | undefined;
548
+ /**
549
+ * Up to 4 sequences where the API will stop generating further tokens.
550
+ */
551
+ stop?: string | Array<string> | null | undefined;
552
+ thinking?:
553
+ | components.ThinkingConfigDisabledSchema
554
+ | components.ThinkingConfigEnabledSchema
555
+ | undefined;
556
+ /**
557
+ * 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.
558
+ */
559
+ temperature?: number | null | undefined;
560
+ /**
561
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
562
+ */
563
+ topP?: number | null | undefined;
564
+ /**
565
+ * Limits the model to consider only the top k most likely tokens at each step.
566
+ */
567
+ topK?: number | null | undefined;
568
+ /**
569
+ * Controls which (if any) tool is called by the model.
570
+ */
571
+ toolChoice?: ListAgentsToolChoice2 | ListAgentsToolChoice1 | undefined;
572
+ /**
573
+ * Whether to enable parallel function calling during tool use.
574
+ */
575
+ parallelToolCalls?: boolean | undefined;
576
+ /**
577
+ * 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"].
578
+ */
579
+ modalities?: Array<ListAgentsModalities> | null | undefined;
580
+ /**
581
+ * A list of guardrails to apply to the request.
582
+ */
583
+ guardrails?: Array<ListAgentsAgentsGuardrails> | undefined;
584
+ /**
585
+ * Array of fallback models to use if primary model fails
586
+ */
587
+ fallbacks?: Array<ListAgentsFallbacks> | undefined;
588
+ /**
589
+ * Cache configuration for the request.
590
+ */
591
+ cache?: ListAgentsCache | undefined;
592
+ /**
593
+ * Load balancer configuration for the request.
594
+ */
595
+ loadBalancer?: ListAgentsLoadBalancer1 | undefined;
596
+ /**
597
+ * 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.
598
+ */
599
+ timeout?: ListAgentsTimeout | undefined;
600
+ };
601
+
602
+ /**
603
+ * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
604
+ */
605
+ export type ListAgentsRetry = {
606
+ /**
607
+ * Number of retry attempts (1-5)
608
+ */
609
+ count: number;
610
+ /**
611
+ * HTTP status codes that trigger retry logic
612
+ */
613
+ onCodes?: Array<number> | undefined;
614
+ };
615
+
616
+ export type ListAgentsResponseFormatAgentsResponseJsonSchema = {
617
+ /**
618
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
619
+ */
620
+ description?: string | undefined;
621
+ /**
622
+ * 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.
623
+ */
624
+ name: string;
625
+ /**
626
+ * The schema for the response format, described as a JSON Schema object.
627
+ */
628
+ schema?: any | undefined;
629
+ /**
630
+ * 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.
631
+ */
632
+ strict: boolean;
633
+ };
634
+
635
+ /**
636
+ * @remarks
637
+ *
638
+ * JSON Schema response format. Used to generate structured JSON responses
639
+ */
640
+ export type ListAgentsResponseFormatAgentsResponse200JSONSchema = {
641
+ type: "json_schema";
642
+ jsonSchema: ListAgentsResponseFormatAgentsResponseJsonSchema;
643
+ };
644
+
645
+ /**
646
+ * @remarks
647
+ *
648
+ * 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.
649
+ */
650
+ export type ListAgentsResponseFormatAgentsJSONObject = {
651
+ type: "json_object";
652
+ };
653
+
654
+ /**
655
+ * @remarks
656
+ *
657
+ * Default response format. Used to generate text responses
658
+ */
659
+ export type ListAgentsResponseFormatAgentsText = {
660
+ type: "text";
661
+ };
662
+
663
+ /**
664
+ * An object specifying the format that the model must output
665
+ */
666
+ export type ListAgentsFallbackModelConfigurationResponseFormat =
667
+ | ListAgentsResponseFormatAgentsText
668
+ | ListAgentsResponseFormatAgentsJSONObject
669
+ | ListAgentsResponseFormatAgentsResponse200JSONSchema;
670
+
671
+ /**
672
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
673
+ *
674
+ * @remarks
675
+ *
676
+ * - `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.
677
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
678
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
679
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
680
+ *
681
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
682
+ */
683
+ export const ListAgentsFallbackModelConfigurationReasoningEffort = {
684
+ None: "none",
685
+ Minimal: "minimal",
686
+ Low: "low",
687
+ Medium: "medium",
688
+ High: "high",
689
+ Xhigh: "xhigh",
690
+ } as const;
691
+ /**
692
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
693
+ *
694
+ * @remarks
695
+ *
696
+ * - `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.
697
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
698
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
699
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
700
+ *
701
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
702
+ */
703
+ export type ListAgentsFallbackModelConfigurationReasoningEffort = ClosedEnum<
704
+ typeof ListAgentsFallbackModelConfigurationReasoningEffort
705
+ >;
706
+
707
+ /**
708
+ * Up to 4 sequences where the API will stop generating further tokens.
709
+ */
710
+ export type ListAgentsFallbackModelConfigurationStop = string | Array<string>;
711
+
712
+ export type ListAgentsFallbackModelConfigurationThinking =
713
+ | components.ThinkingConfigDisabledSchema
714
+ | components.ThinkingConfigEnabledSchema;
715
+
716
+ /**
717
+ * The type of the tool. Currently, only function is supported.
718
+ */
719
+ export const ListAgentsToolChoiceAgentsType = {
720
+ Function: "function",
721
+ } as const;
722
+ /**
723
+ * The type of the tool. Currently, only function is supported.
724
+ */
725
+ export type ListAgentsToolChoiceAgentsType = ClosedEnum<
726
+ typeof ListAgentsToolChoiceAgentsType
727
+ >;
728
+
729
+ export type ListAgentsToolChoiceAgentsFunction = {
730
+ /**
731
+ * The name of the function to call.
732
+ */
733
+ name: string;
734
+ };
735
+
736
+ export type ListAgentsToolChoiceAgents2 = {
737
+ /**
738
+ * The type of the tool. Currently, only function is supported.
739
+ */
740
+ type?: ListAgentsToolChoiceAgentsType | undefined;
741
+ function: ListAgentsToolChoiceAgentsFunction;
742
+ };
743
+
744
+ export const ListAgentsToolChoiceAgents1 = {
745
+ None: "none",
746
+ Auto: "auto",
747
+ Required: "required",
748
+ } as const;
749
+ export type ListAgentsToolChoiceAgents1 = ClosedEnum<
750
+ typeof ListAgentsToolChoiceAgents1
751
+ >;
752
+
753
+ /**
754
+ * Controls which (if any) tool is called by the model.
755
+ */
756
+ export type ListAgentsFallbackModelConfigurationToolChoice =
757
+ | ListAgentsToolChoiceAgents2
758
+ | ListAgentsToolChoiceAgents1;
759
+
760
+ export const ListAgentsFallbackModelConfigurationModalities = {
761
+ Text: "text",
762
+ Audio: "audio",
763
+ } as const;
764
+ export type ListAgentsFallbackModelConfigurationModalities = ClosedEnum<
765
+ typeof ListAgentsFallbackModelConfigurationModalities
766
+ >;
767
+
768
+ /**
769
+ * The key of the guardrail.
770
+ */
771
+ export const ListAgentsIdAgents1 = {
772
+ OrqPiiDetection: "orq_pii_detection",
773
+ OrqSexualModeration: "orq_sexual_moderation",
774
+ OrqHarmfulModeration: "orq_harmful_moderation",
775
+ } as const;
776
+ /**
777
+ * The key of the guardrail.
778
+ */
779
+ export type ListAgentsIdAgents1 = ClosedEnum<typeof ListAgentsIdAgents1>;
780
+
781
+ export type ListAgentsFallbackModelConfigurationId =
782
+ | ListAgentsIdAgents1
783
+ | string;
784
+
785
+ /**
786
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
787
+ */
788
+ export const ListAgentsFallbackModelConfigurationExecuteOn = {
789
+ Input: "input",
790
+ Output: "output",
791
+ } as const;
792
+ /**
793
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
794
+ */
795
+ export type ListAgentsFallbackModelConfigurationExecuteOn = ClosedEnum<
796
+ typeof ListAgentsFallbackModelConfigurationExecuteOn
797
+ >;
798
+
799
+ export type ListAgentsFallbackModelConfigurationGuardrails = {
800
+ id: ListAgentsIdAgents1 | string;
801
+ /**
802
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
803
+ */
804
+ executeOn: ListAgentsFallbackModelConfigurationExecuteOn;
805
+ };
806
+
807
+ export type ListAgentsFallbackModelConfigurationFallbacks = {
808
+ /**
809
+ * Fallback model identifier
810
+ */
811
+ model: string;
812
+ };
813
+
814
+ export const ListAgentsFallbackModelConfigurationType = {
815
+ ExactMatch: "exact_match",
816
+ } as const;
817
+ export type ListAgentsFallbackModelConfigurationType = ClosedEnum<
818
+ typeof ListAgentsFallbackModelConfigurationType
819
+ >;
820
+
821
+ /**
822
+ * Cache configuration for the request.
823
+ */
824
+ export type ListAgentsFallbackModelConfigurationCache = {
825
+ /**
826
+ * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
827
+ */
828
+ ttl: number;
829
+ type: ListAgentsFallbackModelConfigurationType;
830
+ };
831
+
832
+ export const ListAgentsLoadBalancerAgentsType = {
833
+ WeightBased: "weight_based",
834
+ } as const;
835
+ export type ListAgentsLoadBalancerAgentsType = ClosedEnum<
836
+ typeof ListAgentsLoadBalancerAgentsType
837
+ >;
838
+
839
+ export type ListAgentsLoadBalancerAgentsModels = {
840
+ /**
841
+ * Model identifier for load balancing
842
+ */
843
+ model: string;
844
+ /**
845
+ * Weight assigned to this model for load balancing
846
+ */
847
+ weight: number;
848
+ };
849
+
850
+ export type ListAgentsLoadBalancerAgents1 = {
851
+ type: ListAgentsLoadBalancerAgentsType;
852
+ models: Array<ListAgentsLoadBalancerAgentsModels>;
853
+ };
854
+
855
+ /**
856
+ * Load balancer configuration for the request.
857
+ */
858
+ export type ListAgentsFallbackModelConfigurationLoadBalancer =
859
+ ListAgentsLoadBalancerAgents1;
860
+
861
+ /**
862
+ * 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.
863
+ */
864
+ export type ListAgentsFallbackModelConfigurationTimeout = {
865
+ /**
866
+ * Timeout value in milliseconds
867
+ */
868
+ callTimeout: number;
869
+ };
870
+
871
+ /**
872
+ * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
873
+ */
874
+ export type ListAgentsFallbackModelConfigurationParameters = {
875
+ /**
876
+ * The name to display on the trace. If not specified, the default system name will be used.
877
+ */
878
+ name?: string | undefined;
879
+ /**
880
+ * 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.
881
+ */
882
+ frequencyPenalty?: number | null | undefined;
883
+ /**
884
+ * `[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.
885
+ *
886
+ * @remarks
887
+ *
888
+ * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
889
+ */
890
+ maxTokens?: number | null | undefined;
891
+ /**
892
+ * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
893
+ */
894
+ maxCompletionTokens?: number | null | undefined;
895
+ /**
896
+ * 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.
897
+ */
898
+ presencePenalty?: number | null | undefined;
899
+ /**
900
+ * An object specifying the format that the model must output
901
+ */
902
+ responseFormat?:
903
+ | ListAgentsResponseFormatAgentsText
904
+ | ListAgentsResponseFormatAgentsJSONObject
905
+ | ListAgentsResponseFormatAgentsResponse200JSONSchema
906
+ | undefined;
907
+ /**
908
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
909
+ *
910
+ * @remarks
911
+ *
912
+ * - `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.
913
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
914
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
915
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
916
+ *
917
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
918
+ */
919
+ reasoningEffort?:
920
+ | ListAgentsFallbackModelConfigurationReasoningEffort
921
+ | undefined;
922
+ /**
923
+ * Adjusts response verbosity. Lower levels yield shorter answers.
924
+ */
925
+ verbosity?: string | undefined;
926
+ /**
927
+ * 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.
928
+ */
929
+ seed?: number | null | undefined;
930
+ /**
931
+ * Up to 4 sequences where the API will stop generating further tokens.
932
+ */
933
+ stop?: string | Array<string> | null | undefined;
934
+ thinking?:
935
+ | components.ThinkingConfigDisabledSchema
936
+ | components.ThinkingConfigEnabledSchema
937
+ | undefined;
938
+ /**
939
+ * 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.
940
+ */
941
+ temperature?: number | null | undefined;
942
+ /**
943
+ * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
944
+ */
945
+ topP?: number | null | undefined;
946
+ /**
947
+ * Limits the model to consider only the top k most likely tokens at each step.
948
+ */
949
+ topK?: number | null | undefined;
950
+ /**
951
+ * Controls which (if any) tool is called by the model.
952
+ */
953
+ toolChoice?:
954
+ | ListAgentsToolChoiceAgents2
955
+ | ListAgentsToolChoiceAgents1
956
+ | undefined;
957
+ /**
958
+ * Whether to enable parallel function calling during tool use.
959
+ */
960
+ parallelToolCalls?: boolean | undefined;
961
+ /**
962
+ * 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"].
963
+ */
964
+ modalities?:
965
+ | Array<ListAgentsFallbackModelConfigurationModalities>
966
+ | null
967
+ | undefined;
968
+ /**
969
+ * A list of guardrails to apply to the request.
970
+ */
971
+ guardrails?:
972
+ | Array<ListAgentsFallbackModelConfigurationGuardrails>
973
+ | undefined;
974
+ /**
975
+ * Array of fallback models to use if primary model fails
976
+ */
977
+ fallbacks?: Array<ListAgentsFallbackModelConfigurationFallbacks> | undefined;
978
+ /**
979
+ * Cache configuration for the request.
980
+ */
981
+ cache?: ListAgentsFallbackModelConfigurationCache | undefined;
982
+ /**
983
+ * Load balancer configuration for the request.
984
+ */
985
+ loadBalancer?: ListAgentsLoadBalancerAgents1 | undefined;
986
+ /**
987
+ * 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.
988
+ */
989
+ timeout?: ListAgentsFallbackModelConfigurationTimeout | undefined;
990
+ };
991
+
992
+ /**
993
+ * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
994
+ */
995
+ export type ListAgentsFallbackModelConfigurationRetry = {
996
+ /**
997
+ * Number of retry attempts (1-5)
998
+ */
999
+ count: number;
1000
+ /**
1001
+ * HTTP status codes that trigger retry logic
1002
+ */
1003
+ onCodes?: Array<number> | undefined;
1004
+ };
1005
+
1006
+ /**
1007
+ * Fallback model configuration with optional parameters and retry settings.
1008
+ */
1009
+ export type ListAgentsFallbackModelConfiguration2 = {
1010
+ /**
1011
+ * A fallback model ID string. Must support tool calling.
1012
+ */
1013
+ id: string;
1014
+ /**
1015
+ * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
1016
+ */
1017
+ parameters?: ListAgentsFallbackModelConfigurationParameters | undefined;
1018
+ /**
1019
+ * Retry configuration for this fallback model. Allows customizing retry count (1-5) and HTTP status codes that trigger retries.
1020
+ */
1021
+ retry?: ListAgentsFallbackModelConfigurationRetry | undefined;
1022
+ };
1023
+
1024
+ /**
1025
+ * 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.
1026
+ */
1027
+ export type ListAgentsFallbackModelConfiguration =
1028
+ | ListAgentsFallbackModelConfiguration2
1029
+ | string;
1030
+
1031
+ export type ListAgentsModel = {
1032
+ /**
1033
+ * The database ID of the primary model
1034
+ */
1035
+ id: string;
1036
+ /**
1037
+ * Optional integration ID for custom model configurations
1038
+ */
1039
+ integrationId?: string | null | undefined;
1040
+ /**
1041
+ * Model behavior parameters (snake_case) stored as part of the agent configuration. These become the default parameters used when the agent is executed. Commonly used: temperature (0-1, controls randomness), max_completion_tokens (response length), top_p (nucleus sampling). Advanced: frequency_penalty, presence_penalty, response_format (JSON/structured output), reasoning_effort (for o1/thinking models), seed (reproducibility), stop sequences. Model-specific support varies. Runtime parameters in agent execution requests can override these defaults.
1042
+ */
1043
+ parameters?: ListAgentsParameters | undefined;
1044
+ /**
1045
+ * Retry configuration for model requests. Allows customizing retry count (1-5) and HTTP status codes that trigger retries. Default codes: [429]. Common codes: 500 (internal error), 429 (rate limit), 502/503/504 (gateway errors).
1046
+ */
1047
+ retry?: ListAgentsRetry | undefined;
1048
+ /**
1049
+ * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
1050
+ */
1051
+ fallbackModels?:
1052
+ | Array<ListAgentsFallbackModelConfiguration2 | string>
1053
+ | null
1054
+ | undefined;
1055
+ };
1056
+
1057
+ export type ListAgentsHeaders = {
1058
+ /**
1059
+ * Header value. **Update behavior**: Provide empty string ("") to preserve existing encrypted value without re-entering credentials. Provide new value to rotate. Omit header entirely to remove.
1060
+ */
1061
+ value: string;
1062
+ encrypted: boolean;
1063
+ };
1064
+
1065
+ /**
1066
+ * A2A configuration with agent endpoint and authentication. Only present for A2A agents.
1067
+ */
1068
+ export type ListAgentsA2AAgentConfiguration = {
1069
+ /**
1070
+ * The A2A agent endpoint URL (e.g., https://example.com/agent/a2a)
1071
+ */
1072
+ agentUrl: string;
1073
+ /**
1074
+ * Optional explicit URL to fetch agent card. Defaults to {agent_url}/card if not provided
1075
+ */
1076
+ cardUrl?: string | undefined;
1077
+ /**
1078
+ * HTTP headers for A2A agent requests with encryption support (max 20 headers). **Update behavior**: Empty string values preserve existing encrypted headers, allowing partial updates without credential re-entry.
1079
+ */
1080
+ headers?: { [k: string]: ListAgentsHeaders } | undefined;
1081
+ /**
1082
+ * Cached agent card from discovery. Refreshed periodically.
1083
+ */
1084
+ cachedCard?: any | undefined;
1085
+ };
1086
+
1087
+ export type ListAgentsData = {
1088
+ id: string;
1089
+ /**
1090
+ * Unique identifier for the agent within the workspace
1091
+ */
1092
+ key: string;
1093
+ displayName?: string | undefined;
1094
+ createdById?: string | null | undefined;
1095
+ updatedById?: string | null | undefined;
1096
+ created?: string | undefined;
1097
+ updated?: string | undefined;
1098
+ /**
1099
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
1100
+ */
1101
+ status: ListAgentsStatus;
1102
+ versionHash?: string | undefined;
1103
+ /**
1104
+ * Entity storage path in the format: `project/folder/subfolder/...`
1105
+ *
1106
+ * @remarks
1107
+ *
1108
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
1109
+ *
1110
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1111
+ */
1112
+ path: string;
1113
+ /**
1114
+ * Array of memory store identifiers. Accepts both memory store IDs and keys.
1115
+ */
1116
+ memoryStores?: Array<string> | undefined;
1117
+ /**
1118
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1119
+ */
1120
+ teamOfAgents?: Array<ListAgentsTeamOfAgents> | undefined;
1121
+ metrics?: ListAgentsMetrics | undefined;
1122
+ /**
1123
+ * Extracted variables from agent instructions
1124
+ */
1125
+ variables?: { [k: string]: any } | undefined;
1126
+ /**
1127
+ * Agent knowledge bases reference
1128
+ */
1129
+ knowledgeBases?: Array<ListAgentsKnowledgeBases> | undefined;
1130
+ source?: ListAgentsSource | undefined;
1131
+ /**
1132
+ * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1133
+ */
1134
+ type: ListAgentsType;
1135
+ role: string;
1136
+ description: string;
1137
+ systemPrompt?: string | undefined;
1138
+ instructions: string;
1139
+ settings?: ListAgentsSettings | undefined;
1140
+ model: ListAgentsModel;
1141
+ /**
1142
+ * A2A configuration with agent endpoint and authentication. Only present for A2A agents.
1143
+ */
1144
+ a2a?: ListAgentsA2AAgentConfiguration | undefined;
1145
+ };
1146
+
1147
+ /**
1148
+ * Successfully retrieved the list of agents. Returns a paginated response containing agent manifests with complete configurations, including primary and fallback models, tools, knowledge bases, and execution settings.
1149
+ */
1150
+ export type ListAgentsResponseBody = {
1151
+ object: ListAgentsObject;
1152
+ data: Array<ListAgentsData>;
1153
+ hasMore: boolean;
1154
+ };
1155
+
1156
+ /** @internal */
1157
+ export const QueryParamType$outboundSchema: z.ZodNativeEnum<
1158
+ typeof QueryParamType
1159
+ > = z.nativeEnum(QueryParamType);
1160
+
1161
+ /** @internal */
1162
+ export type ListAgentsRequest$Outbound = {
1163
+ limit?: number | undefined;
1164
+ starting_after?: string | undefined;
1165
+ ending_before?: string | undefined;
1166
+ type?: string | undefined;
1167
+ };
1168
+
1169
+ /** @internal */
1170
+ export const ListAgentsRequest$outboundSchema: z.ZodType<
1171
+ ListAgentsRequest$Outbound,
1172
+ z.ZodTypeDef,
1173
+ ListAgentsRequest
1174
+ > = z.object({
1175
+ limit: z.number().optional(),
1176
+ startingAfter: z.string().optional(),
1177
+ endingBefore: z.string().optional(),
1178
+ type: QueryParamType$outboundSchema.optional(),
1179
+ }).transform((v) => {
1180
+ return remap$(v, {
1181
+ startingAfter: "starting_after",
1182
+ endingBefore: "ending_before",
1183
+ });
1184
+ });
1185
+
1186
+ export function listAgentsRequestToJSON(
1187
+ listAgentsRequest: ListAgentsRequest,
1188
+ ): string {
1189
+ return JSON.stringify(
1190
+ ListAgentsRequest$outboundSchema.parse(listAgentsRequest),
1191
+ );
1192
+ }
1193
+
1194
+ /** @internal */
1195
+ export const ListAgentsObject$inboundSchema: z.ZodNativeEnum<
1196
+ typeof ListAgentsObject
1197
+ > = z.nativeEnum(ListAgentsObject);
1198
+
1199
+ /** @internal */
1200
+ export const ListAgentsStatus$inboundSchema: z.ZodNativeEnum<
1201
+ typeof ListAgentsStatus
1202
+ > = z.nativeEnum(ListAgentsStatus);
1203
+
1204
+ /** @internal */
1205
+ export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
1206
+ ListAgentsTeamOfAgents,
1207
+ z.ZodTypeDef,
1208
+ unknown
1209
+ > = z.object({
1210
+ key: z.string(),
1211
+ role: z.string().optional(),
1212
+ });
1213
+
1214
+ export function listAgentsTeamOfAgentsFromJSON(
1215
+ jsonString: string,
1216
+ ): SafeParseResult<ListAgentsTeamOfAgents, SDKValidationError> {
1217
+ return safeParse(
1218
+ jsonString,
1219
+ (x) => ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1220
+ `Failed to parse 'ListAgentsTeamOfAgents' from JSON`,
1221
+ );
1222
+ }
1223
+
1224
+ /** @internal */
1225
+ export const ListAgentsMetrics$inboundSchema: z.ZodType<
1226
+ ListAgentsMetrics,
1227
+ z.ZodTypeDef,
1228
+ unknown
1229
+ > = z.object({
1230
+ total_cost: z.number().default(0),
1231
+ }).transform((v) => {
1232
+ return remap$(v, {
1233
+ "total_cost": "totalCost",
1234
+ });
1235
+ });
1236
+
1237
+ export function listAgentsMetricsFromJSON(
1238
+ jsonString: string,
1239
+ ): SafeParseResult<ListAgentsMetrics, SDKValidationError> {
1240
+ return safeParse(
1241
+ jsonString,
1242
+ (x) => ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
1243
+ `Failed to parse 'ListAgentsMetrics' from JSON`,
1244
+ );
1245
+ }
1246
+
1247
+ /** @internal */
1248
+ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
1249
+ ListAgentsKnowledgeBases,
1250
+ z.ZodTypeDef,
1251
+ unknown
1252
+ > = z.object({
1253
+ knowledge_id: z.string(),
1254
+ }).transform((v) => {
1255
+ return remap$(v, {
1256
+ "knowledge_id": "knowledgeId",
1257
+ });
1258
+ });
1259
+
1260
+ export function listAgentsKnowledgeBasesFromJSON(
1261
+ jsonString: string,
1262
+ ): SafeParseResult<ListAgentsKnowledgeBases, SDKValidationError> {
1263
+ return safeParse(
1264
+ jsonString,
1265
+ (x) => ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1266
+ `Failed to parse 'ListAgentsKnowledgeBases' from JSON`,
1267
+ );
1268
+ }
1269
+
1270
+ /** @internal */
1271
+ export const ListAgentsSource$inboundSchema: z.ZodNativeEnum<
1272
+ typeof ListAgentsSource
1273
+ > = z.nativeEnum(ListAgentsSource);
1274
+
1275
+ /** @internal */
1276
+ export const ListAgentsType$inboundSchema: z.ZodNativeEnum<
1277
+ typeof ListAgentsType
1278
+ > = z.nativeEnum(ListAgentsType);
1279
+
1280
+ /** @internal */
1281
+ export const ListAgentsToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
1282
+ typeof ListAgentsToolApprovalRequired
1283
+ > = z.nativeEnum(ListAgentsToolApprovalRequired);
1284
+
1285
+ /** @internal */
1286
+ export const ListAgentsConditions$inboundSchema: z.ZodType<
1287
+ ListAgentsConditions,
1288
+ z.ZodTypeDef,
1289
+ unknown
1290
+ > = z.object({
1291
+ condition: z.string(),
1292
+ operator: z.string(),
1293
+ value: z.string(),
1294
+ });
1295
+
1296
+ export function listAgentsConditionsFromJSON(
1297
+ jsonString: string,
1298
+ ): SafeParseResult<ListAgentsConditions, SDKValidationError> {
1299
+ return safeParse(
1300
+ jsonString,
1301
+ (x) => ListAgentsConditions$inboundSchema.parse(JSON.parse(x)),
1302
+ `Failed to parse 'ListAgentsConditions' from JSON`,
1303
+ );
1304
+ }
1305
+
1306
+ /** @internal */
1307
+ export const ListAgentsTools$inboundSchema: z.ZodType<
1308
+ ListAgentsTools,
1309
+ z.ZodTypeDef,
1310
+ unknown
1311
+ > = z.object({
1312
+ id: z.string(),
1313
+ key: z.string().optional(),
1314
+ action_type: z.string(),
1315
+ display_name: z.string().optional(),
1316
+ description: z.string().optional(),
1317
+ requires_approval: z.boolean().default(false),
1318
+ tool_id: z.string().optional(),
1319
+ conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
1320
+ .optional(),
1321
+ timeout: z.number().default(120),
1322
+ }).transform((v) => {
1323
+ return remap$(v, {
1324
+ "action_type": "actionType",
1325
+ "display_name": "displayName",
1326
+ "requires_approval": "requiresApproval",
1327
+ "tool_id": "toolId",
1328
+ });
1329
+ });
1330
+
1331
+ export function listAgentsToolsFromJSON(
1332
+ jsonString: string,
1333
+ ): SafeParseResult<ListAgentsTools, SDKValidationError> {
1334
+ return safeParse(
1335
+ jsonString,
1336
+ (x) => ListAgentsTools$inboundSchema.parse(JSON.parse(x)),
1337
+ `Failed to parse 'ListAgentsTools' from JSON`,
1338
+ );
1339
+ }
1340
+
1341
+ /** @internal */
1342
+ export const ListAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1343
+ typeof ListAgentsExecuteOn
1344
+ > = z.nativeEnum(ListAgentsExecuteOn);
1345
+
1346
+ /** @internal */
1347
+ export const ListAgentsEvaluators$inboundSchema: z.ZodType<
1348
+ ListAgentsEvaluators,
1349
+ z.ZodTypeDef,
1350
+ unknown
1351
+ > = z.object({
1352
+ id: z.string(),
1353
+ sample_rate: z.number().default(50),
1354
+ execute_on: ListAgentsExecuteOn$inboundSchema,
1355
+ }).transform((v) => {
1356
+ return remap$(v, {
1357
+ "sample_rate": "sampleRate",
1358
+ "execute_on": "executeOn",
1359
+ });
1360
+ });
1361
+
1362
+ export function listAgentsEvaluatorsFromJSON(
1363
+ jsonString: string,
1364
+ ): SafeParseResult<ListAgentsEvaluators, SDKValidationError> {
1365
+ return safeParse(
1366
+ jsonString,
1367
+ (x) => ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
1368
+ `Failed to parse 'ListAgentsEvaluators' from JSON`,
1369
+ );
1370
+ }
1371
+
1372
+ /** @internal */
1373
+ export const ListAgentsAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1374
+ typeof ListAgentsAgentsExecuteOn
1375
+ > = z.nativeEnum(ListAgentsAgentsExecuteOn);
1376
+
1377
+ /** @internal */
1378
+ export const ListAgentsGuardrails$inboundSchema: z.ZodType<
1379
+ ListAgentsGuardrails,
1380
+ z.ZodTypeDef,
1381
+ unknown
1382
+ > = z.object({
1383
+ id: z.string(),
1384
+ sample_rate: z.number().default(50),
1385
+ execute_on: ListAgentsAgentsExecuteOn$inboundSchema,
1386
+ }).transform((v) => {
1387
+ return remap$(v, {
1388
+ "sample_rate": "sampleRate",
1389
+ "execute_on": "executeOn",
1390
+ });
1391
+ });
1392
+
1393
+ export function listAgentsGuardrailsFromJSON(
1394
+ jsonString: string,
1395
+ ): SafeParseResult<ListAgentsGuardrails, SDKValidationError> {
1396
+ return safeParse(
1397
+ jsonString,
1398
+ (x) => ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1399
+ `Failed to parse 'ListAgentsGuardrails' from JSON`,
1400
+ );
1401
+ }
1402
+
1403
+ /** @internal */
1404
+ export const ListAgentsSettings$inboundSchema: z.ZodType<
1405
+ ListAgentsSettings,
1406
+ z.ZodTypeDef,
1407
+ unknown
1408
+ > = z.object({
1409
+ max_iterations: z.number().int().default(100),
1410
+ max_execution_time: z.number().int().default(600),
1411
+ max_cost: z.number().default(0),
1412
+ tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
1413
+ "respect_tool",
1414
+ ),
1415
+ tools: z.array(z.lazy(() => ListAgentsTools$inboundSchema)).optional(),
1416
+ evaluators: z.array(z.lazy(() => ListAgentsEvaluators$inboundSchema))
1417
+ .optional(),
1418
+ guardrails: z.array(z.lazy(() => ListAgentsGuardrails$inboundSchema))
1419
+ .optional(),
1420
+ }).transform((v) => {
1421
+ return remap$(v, {
1422
+ "max_iterations": "maxIterations",
1423
+ "max_execution_time": "maxExecutionTime",
1424
+ "max_cost": "maxCost",
1425
+ "tool_approval_required": "toolApprovalRequired",
1426
+ });
1427
+ });
1428
+
1429
+ export function listAgentsSettingsFromJSON(
1430
+ jsonString: string,
1431
+ ): SafeParseResult<ListAgentsSettings, SDKValidationError> {
1432
+ return safeParse(
1433
+ jsonString,
1434
+ (x) => ListAgentsSettings$inboundSchema.parse(JSON.parse(x)),
1435
+ `Failed to parse 'ListAgentsSettings' from JSON`,
1436
+ );
1437
+ }
1438
+
1439
+ /** @internal */
1440
+ export const ListAgentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
1441
+ ListAgentsResponseFormatJsonSchema,
1442
+ z.ZodTypeDef,
1443
+ unknown
1444
+ > = z.object({
1445
+ description: z.string().optional(),
1446
+ name: z.string(),
1447
+ schema: z.any().optional(),
1448
+ strict: z.boolean().default(false),
1449
+ });
1450
+
1451
+ export function listAgentsResponseFormatJsonSchemaFromJSON(
1452
+ jsonString: string,
1453
+ ): SafeParseResult<ListAgentsResponseFormatJsonSchema, SDKValidationError> {
1454
+ return safeParse(
1455
+ jsonString,
1456
+ (x) =>
1457
+ ListAgentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1458
+ `Failed to parse 'ListAgentsResponseFormatJsonSchema' from JSON`,
1459
+ );
1460
+ }
1461
+
1462
+ /** @internal */
1463
+ export const ListAgentsResponseFormatAgentsJSONSchema$inboundSchema: z.ZodType<
1464
+ ListAgentsResponseFormatAgentsJSONSchema,
1465
+ z.ZodTypeDef,
1466
+ unknown
1467
+ > = z.object({
1468
+ type: z.literal("json_schema"),
1469
+ json_schema: z.lazy(() => ListAgentsResponseFormatJsonSchema$inboundSchema),
1470
+ }).transform((v) => {
1471
+ return remap$(v, {
1472
+ "json_schema": "jsonSchema",
1473
+ });
1474
+ });
1475
+
1476
+ export function listAgentsResponseFormatAgentsJSONSchemaFromJSON(
1477
+ jsonString: string,
1478
+ ): SafeParseResult<
1479
+ ListAgentsResponseFormatAgentsJSONSchema,
1480
+ SDKValidationError
1481
+ > {
1482
+ return safeParse(
1483
+ jsonString,
1484
+ (x) =>
1485
+ ListAgentsResponseFormatAgentsJSONSchema$inboundSchema.parse(
1486
+ JSON.parse(x),
1487
+ ),
1488
+ `Failed to parse 'ListAgentsResponseFormatAgentsJSONSchema' from JSON`,
1489
+ );
1490
+ }
1491
+
1492
+ /** @internal */
1493
+ export const ListAgentsResponseFormatJSONObject$inboundSchema: z.ZodType<
1494
+ ListAgentsResponseFormatJSONObject,
1495
+ z.ZodTypeDef,
1496
+ unknown
1497
+ > = z.object({
1498
+ type: z.literal("json_object"),
1499
+ });
1500
+
1501
+ export function listAgentsResponseFormatJSONObjectFromJSON(
1502
+ jsonString: string,
1503
+ ): SafeParseResult<ListAgentsResponseFormatJSONObject, SDKValidationError> {
1504
+ return safeParse(
1505
+ jsonString,
1506
+ (x) =>
1507
+ ListAgentsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)),
1508
+ `Failed to parse 'ListAgentsResponseFormatJSONObject' from JSON`,
1509
+ );
1510
+ }
1511
+
1512
+ /** @internal */
1513
+ export const ListAgentsResponseFormatText$inboundSchema: z.ZodType<
1514
+ ListAgentsResponseFormatText,
1515
+ z.ZodTypeDef,
1516
+ unknown
1517
+ > = z.object({
1518
+ type: z.literal("text"),
1519
+ });
1520
+
1521
+ export function listAgentsResponseFormatTextFromJSON(
1522
+ jsonString: string,
1523
+ ): SafeParseResult<ListAgentsResponseFormatText, SDKValidationError> {
1524
+ return safeParse(
1525
+ jsonString,
1526
+ (x) => ListAgentsResponseFormatText$inboundSchema.parse(JSON.parse(x)),
1527
+ `Failed to parse 'ListAgentsResponseFormatText' from JSON`,
1528
+ );
1529
+ }
1530
+
1531
+ /** @internal */
1532
+ export const ListAgentsResponseFormat$inboundSchema: z.ZodType<
1533
+ ListAgentsResponseFormat,
1534
+ z.ZodTypeDef,
1535
+ unknown
1536
+ > = z.union([
1537
+ z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
1538
+ z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
1539
+ z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
1540
+ ]);
1541
+
1542
+ export function listAgentsResponseFormatFromJSON(
1543
+ jsonString: string,
1544
+ ): SafeParseResult<ListAgentsResponseFormat, SDKValidationError> {
1545
+ return safeParse(
1546
+ jsonString,
1547
+ (x) => ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1548
+ `Failed to parse 'ListAgentsResponseFormat' from JSON`,
1549
+ );
1550
+ }
1551
+
1552
+ /** @internal */
1553
+ export const ListAgentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1554
+ typeof ListAgentsReasoningEffort
1555
+ > = z.nativeEnum(ListAgentsReasoningEffort);
1556
+
1557
+ /** @internal */
1558
+ export const ListAgentsStop$inboundSchema: z.ZodType<
1559
+ ListAgentsStop,
1560
+ z.ZodTypeDef,
1561
+ unknown
1562
+ > = z.union([z.string(), z.array(z.string())]);
1563
+
1564
+ export function listAgentsStopFromJSON(
1565
+ jsonString: string,
1566
+ ): SafeParseResult<ListAgentsStop, SDKValidationError> {
1567
+ return safeParse(
1568
+ jsonString,
1569
+ (x) => ListAgentsStop$inboundSchema.parse(JSON.parse(x)),
1570
+ `Failed to parse 'ListAgentsStop' from JSON`,
1571
+ );
1572
+ }
1573
+
1574
+ /** @internal */
1575
+ export const ListAgentsThinking$inboundSchema: z.ZodType<
1576
+ ListAgentsThinking,
1577
+ z.ZodTypeDef,
1578
+ unknown
1579
+ > = z.union([
1580
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1581
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1582
+ ]);
1583
+
1584
+ export function listAgentsThinkingFromJSON(
1585
+ jsonString: string,
1586
+ ): SafeParseResult<ListAgentsThinking, SDKValidationError> {
1587
+ return safeParse(
1588
+ jsonString,
1589
+ (x) => ListAgentsThinking$inboundSchema.parse(JSON.parse(x)),
1590
+ `Failed to parse 'ListAgentsThinking' from JSON`,
1591
+ );
1592
+ }
1593
+
1594
+ /** @internal */
1595
+ export const ListAgentsToolChoiceType$inboundSchema: z.ZodNativeEnum<
1596
+ typeof ListAgentsToolChoiceType
1597
+ > = z.nativeEnum(ListAgentsToolChoiceType);
1598
+
1599
+ /** @internal */
1600
+ export const ListAgentsToolChoiceFunction$inboundSchema: z.ZodType<
1601
+ ListAgentsToolChoiceFunction,
1602
+ z.ZodTypeDef,
1603
+ unknown
1604
+ > = z.object({
1605
+ name: z.string(),
1606
+ });
1607
+
1608
+ export function listAgentsToolChoiceFunctionFromJSON(
1609
+ jsonString: string,
1610
+ ): SafeParseResult<ListAgentsToolChoiceFunction, SDKValidationError> {
1611
+ return safeParse(
1612
+ jsonString,
1613
+ (x) => ListAgentsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
1614
+ `Failed to parse 'ListAgentsToolChoiceFunction' from JSON`,
1615
+ );
1616
+ }
1617
+
1618
+ /** @internal */
1619
+ export const ListAgentsToolChoice2$inboundSchema: z.ZodType<
1620
+ ListAgentsToolChoice2,
1621
+ z.ZodTypeDef,
1622
+ unknown
1623
+ > = z.object({
1624
+ type: ListAgentsToolChoiceType$inboundSchema.optional(),
1625
+ function: z.lazy(() => ListAgentsToolChoiceFunction$inboundSchema),
1626
+ });
1627
+
1628
+ export function listAgentsToolChoice2FromJSON(
1629
+ jsonString: string,
1630
+ ): SafeParseResult<ListAgentsToolChoice2, SDKValidationError> {
1631
+ return safeParse(
1632
+ jsonString,
1633
+ (x) => ListAgentsToolChoice2$inboundSchema.parse(JSON.parse(x)),
1634
+ `Failed to parse 'ListAgentsToolChoice2' from JSON`,
1635
+ );
1636
+ }
1637
+
1638
+ /** @internal */
1639
+ export const ListAgentsToolChoice1$inboundSchema: z.ZodNativeEnum<
1640
+ typeof ListAgentsToolChoice1
1641
+ > = z.nativeEnum(ListAgentsToolChoice1);
1642
+
1643
+ /** @internal */
1644
+ export const ListAgentsToolChoice$inboundSchema: z.ZodType<
1645
+ ListAgentsToolChoice,
1646
+ z.ZodTypeDef,
1647
+ unknown
1648
+ > = z.union([
1649
+ z.lazy(() => ListAgentsToolChoice2$inboundSchema),
1650
+ ListAgentsToolChoice1$inboundSchema,
1651
+ ]);
1652
+
1653
+ export function listAgentsToolChoiceFromJSON(
1654
+ jsonString: string,
1655
+ ): SafeParseResult<ListAgentsToolChoice, SDKValidationError> {
1656
+ return safeParse(
1657
+ jsonString,
1658
+ (x) => ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)),
1659
+ `Failed to parse 'ListAgentsToolChoice' from JSON`,
1660
+ );
1661
+ }
1662
+
1663
+ /** @internal */
1664
+ export const ListAgentsModalities$inboundSchema: z.ZodNativeEnum<
1665
+ typeof ListAgentsModalities
1666
+ > = z.nativeEnum(ListAgentsModalities);
1667
+
1668
+ /** @internal */
1669
+ export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
1670
+ typeof ListAgentsId1
1671
+ > = z.nativeEnum(ListAgentsId1);
1672
+
1673
+ /** @internal */
1674
+ export const ListAgentsId$inboundSchema: z.ZodType<
1675
+ ListAgentsId,
1676
+ z.ZodTypeDef,
1677
+ unknown
1678
+ > = z.union([ListAgentsId1$inboundSchema, z.string()]);
1679
+
1680
+ export function listAgentsIdFromJSON(
1681
+ jsonString: string,
1682
+ ): SafeParseResult<ListAgentsId, SDKValidationError> {
1683
+ return safeParse(
1684
+ jsonString,
1685
+ (x) => ListAgentsId$inboundSchema.parse(JSON.parse(x)),
1686
+ `Failed to parse 'ListAgentsId' from JSON`,
1687
+ );
1688
+ }
1689
+
1690
+ /** @internal */
1691
+ export const ListAgentsAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<
1692
+ typeof ListAgentsAgentsResponseExecuteOn
1693
+ > = z.nativeEnum(ListAgentsAgentsResponseExecuteOn);
1694
+
1695
+ /** @internal */
1696
+ export const ListAgentsAgentsGuardrails$inboundSchema: z.ZodType<
1697
+ ListAgentsAgentsGuardrails,
1698
+ z.ZodTypeDef,
1699
+ unknown
1700
+ > = z.object({
1701
+ id: z.union([ListAgentsId1$inboundSchema, z.string()]),
1702
+ execute_on: ListAgentsAgentsResponseExecuteOn$inboundSchema,
1703
+ }).transform((v) => {
1704
+ return remap$(v, {
1705
+ "execute_on": "executeOn",
1706
+ });
1707
+ });
1708
+
1709
+ export function listAgentsAgentsGuardrailsFromJSON(
1710
+ jsonString: string,
1711
+ ): SafeParseResult<ListAgentsAgentsGuardrails, SDKValidationError> {
1712
+ return safeParse(
1713
+ jsonString,
1714
+ (x) => ListAgentsAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1715
+ `Failed to parse 'ListAgentsAgentsGuardrails' from JSON`,
1716
+ );
1717
+ }
1718
+
1719
+ /** @internal */
1720
+ export const ListAgentsFallbacks$inboundSchema: z.ZodType<
1721
+ ListAgentsFallbacks,
1722
+ z.ZodTypeDef,
1723
+ unknown
1724
+ > = z.object({
1725
+ model: z.string(),
1726
+ });
1727
+
1728
+ export function listAgentsFallbacksFromJSON(
1729
+ jsonString: string,
1730
+ ): SafeParseResult<ListAgentsFallbacks, SDKValidationError> {
1731
+ return safeParse(
1732
+ jsonString,
1733
+ (x) => ListAgentsFallbacks$inboundSchema.parse(JSON.parse(x)),
1734
+ `Failed to parse 'ListAgentsFallbacks' from JSON`,
1735
+ );
1736
+ }
1737
+
1738
+ /** @internal */
1739
+ export const ListAgentsAgentsType$inboundSchema: z.ZodNativeEnum<
1740
+ typeof ListAgentsAgentsType
1741
+ > = z.nativeEnum(ListAgentsAgentsType);
1742
+
1743
+ /** @internal */
1744
+ export const ListAgentsCache$inboundSchema: z.ZodType<
1745
+ ListAgentsCache,
1746
+ z.ZodTypeDef,
1747
+ unknown
1748
+ > = z.object({
1749
+ ttl: z.number().default(1800),
1750
+ type: ListAgentsAgentsType$inboundSchema,
1751
+ });
1752
+
1753
+ export function listAgentsCacheFromJSON(
1754
+ jsonString: string,
1755
+ ): SafeParseResult<ListAgentsCache, SDKValidationError> {
1756
+ return safeParse(
1757
+ jsonString,
1758
+ (x) => ListAgentsCache$inboundSchema.parse(JSON.parse(x)),
1759
+ `Failed to parse 'ListAgentsCache' from JSON`,
1760
+ );
1761
+ }
1762
+
1763
+ /** @internal */
1764
+ export const ListAgentsLoadBalancerType$inboundSchema: z.ZodNativeEnum<
1765
+ typeof ListAgentsLoadBalancerType
1766
+ > = z.nativeEnum(ListAgentsLoadBalancerType);
1767
+
1768
+ /** @internal */
1769
+ export const ListAgentsLoadBalancerModels$inboundSchema: z.ZodType<
1770
+ ListAgentsLoadBalancerModels,
1771
+ z.ZodTypeDef,
1772
+ unknown
1773
+ > = z.object({
1774
+ model: z.string(),
1775
+ weight: z.number().default(0.5),
1776
+ });
1777
+
1778
+ export function listAgentsLoadBalancerModelsFromJSON(
1779
+ jsonString: string,
1780
+ ): SafeParseResult<ListAgentsLoadBalancerModels, SDKValidationError> {
1781
+ return safeParse(
1782
+ jsonString,
1783
+ (x) => ListAgentsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
1784
+ `Failed to parse 'ListAgentsLoadBalancerModels' from JSON`,
1785
+ );
1786
+ }
1787
+
1788
+ /** @internal */
1789
+ export const ListAgentsLoadBalancer1$inboundSchema: z.ZodType<
1790
+ ListAgentsLoadBalancer1,
1791
+ z.ZodTypeDef,
1792
+ unknown
1793
+ > = z.object({
1794
+ type: ListAgentsLoadBalancerType$inboundSchema,
1795
+ models: z.array(z.lazy(() => ListAgentsLoadBalancerModels$inboundSchema)),
1796
+ });
1797
+
1798
+ export function listAgentsLoadBalancer1FromJSON(
1799
+ jsonString: string,
1800
+ ): SafeParseResult<ListAgentsLoadBalancer1, SDKValidationError> {
1801
+ return safeParse(
1802
+ jsonString,
1803
+ (x) => ListAgentsLoadBalancer1$inboundSchema.parse(JSON.parse(x)),
1804
+ `Failed to parse 'ListAgentsLoadBalancer1' from JSON`,
1805
+ );
1806
+ }
1807
+
1808
+ /** @internal */
1809
+ export const ListAgentsLoadBalancer$inboundSchema: z.ZodType<
1810
+ ListAgentsLoadBalancer,
1811
+ z.ZodTypeDef,
1812
+ unknown
1813
+ > = z.lazy(() => ListAgentsLoadBalancer1$inboundSchema);
1814
+
1815
+ export function listAgentsLoadBalancerFromJSON(
1816
+ jsonString: string,
1817
+ ): SafeParseResult<ListAgentsLoadBalancer, SDKValidationError> {
1818
+ return safeParse(
1819
+ jsonString,
1820
+ (x) => ListAgentsLoadBalancer$inboundSchema.parse(JSON.parse(x)),
1821
+ `Failed to parse 'ListAgentsLoadBalancer' from JSON`,
1822
+ );
1823
+ }
1824
+
1825
+ /** @internal */
1826
+ export const ListAgentsTimeout$inboundSchema: z.ZodType<
1827
+ ListAgentsTimeout,
1828
+ z.ZodTypeDef,
1829
+ unknown
1830
+ > = z.object({
1831
+ call_timeout: z.number(),
1832
+ }).transform((v) => {
1833
+ return remap$(v, {
1834
+ "call_timeout": "callTimeout",
1835
+ });
1836
+ });
1837
+
1838
+ export function listAgentsTimeoutFromJSON(
1839
+ jsonString: string,
1840
+ ): SafeParseResult<ListAgentsTimeout, SDKValidationError> {
1841
+ return safeParse(
1842
+ jsonString,
1843
+ (x) => ListAgentsTimeout$inboundSchema.parse(JSON.parse(x)),
1844
+ `Failed to parse 'ListAgentsTimeout' from JSON`,
1845
+ );
1846
+ }
1847
+
1848
+ /** @internal */
1849
+ export const ListAgentsParameters$inboundSchema: z.ZodType<
1850
+ ListAgentsParameters,
1851
+ z.ZodTypeDef,
1852
+ unknown
1853
+ > = z.object({
1854
+ name: z.string().optional(),
1855
+ frequency_penalty: z.nullable(z.number()).optional(),
1856
+ max_tokens: z.nullable(z.number().int()).optional(),
1857
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
1858
+ presence_penalty: z.nullable(z.number()).optional(),
1859
+ response_format: z.union([
1860
+ z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
1861
+ z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
1862
+ z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
1863
+ ]).optional(),
1864
+ reasoning_effort: ListAgentsReasoningEffort$inboundSchema.optional(),
1865
+ verbosity: z.string().optional(),
1866
+ seed: z.nullable(z.number()).optional(),
1867
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1868
+ thinking: z.union([
1869
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1870
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1871
+ ]).optional(),
1872
+ temperature: z.nullable(z.number()).optional(),
1873
+ top_p: z.nullable(z.number()).optional(),
1874
+ top_k: z.nullable(z.number()).optional(),
1875
+ tool_choice: z.union([
1876
+ z.lazy(() => ListAgentsToolChoice2$inboundSchema),
1877
+ ListAgentsToolChoice1$inboundSchema,
1878
+ ]).optional(),
1879
+ parallel_tool_calls: z.boolean().optional(),
1880
+ modalities: z.nullable(z.array(ListAgentsModalities$inboundSchema))
1881
+ .optional(),
1882
+ guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$inboundSchema))
1883
+ .optional(),
1884
+ fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
1885
+ .optional(),
1886
+ cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
1887
+ load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
1888
+ timeout: z.lazy(() => ListAgentsTimeout$inboundSchema).optional(),
1889
+ }).transform((v) => {
1890
+ return remap$(v, {
1891
+ "frequency_penalty": "frequencyPenalty",
1892
+ "max_tokens": "maxTokens",
1893
+ "max_completion_tokens": "maxCompletionTokens",
1894
+ "presence_penalty": "presencePenalty",
1895
+ "response_format": "responseFormat",
1896
+ "reasoning_effort": "reasoningEffort",
1897
+ "top_p": "topP",
1898
+ "top_k": "topK",
1899
+ "tool_choice": "toolChoice",
1900
+ "parallel_tool_calls": "parallelToolCalls",
1901
+ "load_balancer": "loadBalancer",
1902
+ });
1903
+ });
1904
+
1905
+ export function listAgentsParametersFromJSON(
1906
+ jsonString: string,
1907
+ ): SafeParseResult<ListAgentsParameters, SDKValidationError> {
1908
+ return safeParse(
1909
+ jsonString,
1910
+ (x) => ListAgentsParameters$inboundSchema.parse(JSON.parse(x)),
1911
+ `Failed to parse 'ListAgentsParameters' from JSON`,
1912
+ );
1913
+ }
1914
+
1915
+ /** @internal */
1916
+ export const ListAgentsRetry$inboundSchema: z.ZodType<
1917
+ ListAgentsRetry,
1918
+ z.ZodTypeDef,
1919
+ unknown
1920
+ > = z.object({
1921
+ count: z.number().default(3),
1922
+ on_codes: z.array(z.number()).optional(),
1923
+ }).transform((v) => {
1924
+ return remap$(v, {
1925
+ "on_codes": "onCodes",
1926
+ });
1927
+ });
1928
+
1929
+ export function listAgentsRetryFromJSON(
1930
+ jsonString: string,
1931
+ ): SafeParseResult<ListAgentsRetry, SDKValidationError> {
1932
+ return safeParse(
1933
+ jsonString,
1934
+ (x) => ListAgentsRetry$inboundSchema.parse(JSON.parse(x)),
1935
+ `Failed to parse 'ListAgentsRetry' from JSON`,
1936
+ );
1937
+ }
1938
+
1939
+ /** @internal */
1940
+ export const ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema:
1941
+ z.ZodType<
1942
+ ListAgentsResponseFormatAgentsResponseJsonSchema,
1943
+ z.ZodTypeDef,
1944
+ unknown
1945
+ > = z.object({
1946
+ description: z.string().optional(),
1947
+ name: z.string(),
1948
+ schema: z.any().optional(),
1949
+ strict: z.boolean().default(false),
1950
+ });
1951
+
1952
+ export function listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON(
1953
+ jsonString: string,
1954
+ ): SafeParseResult<
1955
+ ListAgentsResponseFormatAgentsResponseJsonSchema,
1956
+ SDKValidationError
1957
+ > {
1958
+ return safeParse(
1959
+ jsonString,
1960
+ (x) =>
1961
+ ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema.parse(
1962
+ JSON.parse(x),
1963
+ ),
1964
+ `Failed to parse 'ListAgentsResponseFormatAgentsResponseJsonSchema' from JSON`,
1965
+ );
1966
+ }
1967
+
1968
+ /** @internal */
1969
+ export const ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema:
1970
+ z.ZodType<
1971
+ ListAgentsResponseFormatAgentsResponse200JSONSchema,
1972
+ z.ZodTypeDef,
1973
+ unknown
1974
+ > = z.object({
1975
+ type: z.literal("json_schema"),
1976
+ json_schema: z.lazy(() =>
1977
+ ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema
1978
+ ),
1979
+ }).transform((v) => {
1980
+ return remap$(v, {
1981
+ "json_schema": "jsonSchema",
1982
+ });
1983
+ });
1984
+
1985
+ export function listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON(
1986
+ jsonString: string,
1987
+ ): SafeParseResult<
1988
+ ListAgentsResponseFormatAgentsResponse200JSONSchema,
1989
+ SDKValidationError
1990
+ > {
1991
+ return safeParse(
1992
+ jsonString,
1993
+ (x) =>
1994
+ ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema.parse(
1995
+ JSON.parse(x),
1996
+ ),
1997
+ `Failed to parse 'ListAgentsResponseFormatAgentsResponse200JSONSchema' from JSON`,
1998
+ );
1999
+ }
2000
+
2001
+ /** @internal */
2002
+ export const ListAgentsResponseFormatAgentsJSONObject$inboundSchema: z.ZodType<
2003
+ ListAgentsResponseFormatAgentsJSONObject,
2004
+ z.ZodTypeDef,
2005
+ unknown
2006
+ > = z.object({
2007
+ type: z.literal("json_object"),
2008
+ });
2009
+
2010
+ export function listAgentsResponseFormatAgentsJSONObjectFromJSON(
2011
+ jsonString: string,
2012
+ ): SafeParseResult<
2013
+ ListAgentsResponseFormatAgentsJSONObject,
2014
+ SDKValidationError
2015
+ > {
2016
+ return safeParse(
2017
+ jsonString,
2018
+ (x) =>
2019
+ ListAgentsResponseFormatAgentsJSONObject$inboundSchema.parse(
2020
+ JSON.parse(x),
2021
+ ),
2022
+ `Failed to parse 'ListAgentsResponseFormatAgentsJSONObject' from JSON`,
2023
+ );
2024
+ }
2025
+
2026
+ /** @internal */
2027
+ export const ListAgentsResponseFormatAgentsText$inboundSchema: z.ZodType<
2028
+ ListAgentsResponseFormatAgentsText,
2029
+ z.ZodTypeDef,
2030
+ unknown
2031
+ > = z.object({
2032
+ type: z.literal("text"),
2033
+ });
2034
+
2035
+ export function listAgentsResponseFormatAgentsTextFromJSON(
2036
+ jsonString: string,
2037
+ ): SafeParseResult<ListAgentsResponseFormatAgentsText, SDKValidationError> {
2038
+ return safeParse(
2039
+ jsonString,
2040
+ (x) =>
2041
+ ListAgentsResponseFormatAgentsText$inboundSchema.parse(JSON.parse(x)),
2042
+ `Failed to parse 'ListAgentsResponseFormatAgentsText' from JSON`,
2043
+ );
2044
+ }
2045
+
2046
+ /** @internal */
2047
+ export const ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema:
2048
+ z.ZodType<
2049
+ ListAgentsFallbackModelConfigurationResponseFormat,
2050
+ z.ZodTypeDef,
2051
+ unknown
2052
+ > = z.union([
2053
+ z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
2054
+ z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
2055
+ z.lazy(() =>
2056
+ ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
2057
+ ),
2058
+ ]);
2059
+
2060
+ export function listAgentsFallbackModelConfigurationResponseFormatFromJSON(
2061
+ jsonString: string,
2062
+ ): SafeParseResult<
2063
+ ListAgentsFallbackModelConfigurationResponseFormat,
2064
+ SDKValidationError
2065
+ > {
2066
+ return safeParse(
2067
+ jsonString,
2068
+ (x) =>
2069
+ ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema.parse(
2070
+ JSON.parse(x),
2071
+ ),
2072
+ `Failed to parse 'ListAgentsFallbackModelConfigurationResponseFormat' from JSON`,
2073
+ );
2074
+ }
2075
+
2076
+ /** @internal */
2077
+ export const ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema:
2078
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationReasoningEffort> =
2079
+ z.nativeEnum(ListAgentsFallbackModelConfigurationReasoningEffort);
2080
+
2081
+ /** @internal */
2082
+ export const ListAgentsFallbackModelConfigurationStop$inboundSchema: z.ZodType<
2083
+ ListAgentsFallbackModelConfigurationStop,
2084
+ z.ZodTypeDef,
2085
+ unknown
2086
+ > = z.union([z.string(), z.array(z.string())]);
2087
+
2088
+ export function listAgentsFallbackModelConfigurationStopFromJSON(
2089
+ jsonString: string,
2090
+ ): SafeParseResult<
2091
+ ListAgentsFallbackModelConfigurationStop,
2092
+ SDKValidationError
2093
+ > {
2094
+ return safeParse(
2095
+ jsonString,
2096
+ (x) =>
2097
+ ListAgentsFallbackModelConfigurationStop$inboundSchema.parse(
2098
+ JSON.parse(x),
2099
+ ),
2100
+ `Failed to parse 'ListAgentsFallbackModelConfigurationStop' from JSON`,
2101
+ );
2102
+ }
2103
+
2104
+ /** @internal */
2105
+ export const ListAgentsFallbackModelConfigurationThinking$inboundSchema:
2106
+ z.ZodType<
2107
+ ListAgentsFallbackModelConfigurationThinking,
2108
+ z.ZodTypeDef,
2109
+ unknown
2110
+ > = z.union([
2111
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2112
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2113
+ ]);
2114
+
2115
+ export function listAgentsFallbackModelConfigurationThinkingFromJSON(
2116
+ jsonString: string,
2117
+ ): SafeParseResult<
2118
+ ListAgentsFallbackModelConfigurationThinking,
2119
+ SDKValidationError
2120
+ > {
2121
+ return safeParse(
2122
+ jsonString,
2123
+ (x) =>
2124
+ ListAgentsFallbackModelConfigurationThinking$inboundSchema.parse(
2125
+ JSON.parse(x),
2126
+ ),
2127
+ `Failed to parse 'ListAgentsFallbackModelConfigurationThinking' from JSON`,
2128
+ );
2129
+ }
2130
+
2131
+ /** @internal */
2132
+ export const ListAgentsToolChoiceAgentsType$inboundSchema: z.ZodNativeEnum<
2133
+ typeof ListAgentsToolChoiceAgentsType
2134
+ > = z.nativeEnum(ListAgentsToolChoiceAgentsType);
2135
+
2136
+ /** @internal */
2137
+ export const ListAgentsToolChoiceAgentsFunction$inboundSchema: z.ZodType<
2138
+ ListAgentsToolChoiceAgentsFunction,
2139
+ z.ZodTypeDef,
2140
+ unknown
2141
+ > = z.object({
2142
+ name: z.string(),
2143
+ });
2144
+
2145
+ export function listAgentsToolChoiceAgentsFunctionFromJSON(
2146
+ jsonString: string,
2147
+ ): SafeParseResult<ListAgentsToolChoiceAgentsFunction, SDKValidationError> {
2148
+ return safeParse(
2149
+ jsonString,
2150
+ (x) =>
2151
+ ListAgentsToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)),
2152
+ `Failed to parse 'ListAgentsToolChoiceAgentsFunction' from JSON`,
2153
+ );
2154
+ }
2155
+
2156
+ /** @internal */
2157
+ export const ListAgentsToolChoiceAgents2$inboundSchema: z.ZodType<
2158
+ ListAgentsToolChoiceAgents2,
2159
+ z.ZodTypeDef,
2160
+ unknown
2161
+ > = z.object({
2162
+ type: ListAgentsToolChoiceAgentsType$inboundSchema.optional(),
2163
+ function: z.lazy(() => ListAgentsToolChoiceAgentsFunction$inboundSchema),
2164
+ });
2165
+
2166
+ export function listAgentsToolChoiceAgents2FromJSON(
2167
+ jsonString: string,
2168
+ ): SafeParseResult<ListAgentsToolChoiceAgents2, SDKValidationError> {
2169
+ return safeParse(
2170
+ jsonString,
2171
+ (x) => ListAgentsToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)),
2172
+ `Failed to parse 'ListAgentsToolChoiceAgents2' from JSON`,
2173
+ );
2174
+ }
2175
+
2176
+ /** @internal */
2177
+ export const ListAgentsToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
2178
+ typeof ListAgentsToolChoiceAgents1
2179
+ > = z.nativeEnum(ListAgentsToolChoiceAgents1);
2180
+
2181
+ /** @internal */
2182
+ export const ListAgentsFallbackModelConfigurationToolChoice$inboundSchema:
2183
+ z.ZodType<
2184
+ ListAgentsFallbackModelConfigurationToolChoice,
2185
+ z.ZodTypeDef,
2186
+ unknown
2187
+ > = z.union([
2188
+ z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
2189
+ ListAgentsToolChoiceAgents1$inboundSchema,
2190
+ ]);
2191
+
2192
+ export function listAgentsFallbackModelConfigurationToolChoiceFromJSON(
2193
+ jsonString: string,
2194
+ ): SafeParseResult<
2195
+ ListAgentsFallbackModelConfigurationToolChoice,
2196
+ SDKValidationError
2197
+ > {
2198
+ return safeParse(
2199
+ jsonString,
2200
+ (x) =>
2201
+ ListAgentsFallbackModelConfigurationToolChoice$inboundSchema.parse(
2202
+ JSON.parse(x),
2203
+ ),
2204
+ `Failed to parse 'ListAgentsFallbackModelConfigurationToolChoice' from JSON`,
2205
+ );
2206
+ }
2207
+
2208
+ /** @internal */
2209
+ export const ListAgentsFallbackModelConfigurationModalities$inboundSchema:
2210
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationModalities> = z
2211
+ .nativeEnum(ListAgentsFallbackModelConfigurationModalities);
2212
+
2213
+ /** @internal */
2214
+ export const ListAgentsIdAgents1$inboundSchema: z.ZodNativeEnum<
2215
+ typeof ListAgentsIdAgents1
2216
+ > = z.nativeEnum(ListAgentsIdAgents1);
2217
+
2218
+ /** @internal */
2219
+ export const ListAgentsFallbackModelConfigurationId$inboundSchema: z.ZodType<
2220
+ ListAgentsFallbackModelConfigurationId,
2221
+ z.ZodTypeDef,
2222
+ unknown
2223
+ > = z.union([ListAgentsIdAgents1$inboundSchema, z.string()]);
2224
+
2225
+ export function listAgentsFallbackModelConfigurationIdFromJSON(
2226
+ jsonString: string,
2227
+ ): SafeParseResult<ListAgentsFallbackModelConfigurationId, SDKValidationError> {
2228
+ return safeParse(
2229
+ jsonString,
2230
+ (x) =>
2231
+ ListAgentsFallbackModelConfigurationId$inboundSchema.parse(JSON.parse(x)),
2232
+ `Failed to parse 'ListAgentsFallbackModelConfigurationId' from JSON`,
2233
+ );
2234
+ }
2235
+
2236
+ /** @internal */
2237
+ export const ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema:
2238
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationExecuteOn> = z
2239
+ .nativeEnum(ListAgentsFallbackModelConfigurationExecuteOn);
2240
+
2241
+ /** @internal */
2242
+ export const ListAgentsFallbackModelConfigurationGuardrails$inboundSchema:
2243
+ z.ZodType<
2244
+ ListAgentsFallbackModelConfigurationGuardrails,
2245
+ z.ZodTypeDef,
2246
+ unknown
2247
+ > = z.object({
2248
+ id: z.union([ListAgentsIdAgents1$inboundSchema, z.string()]),
2249
+ execute_on: ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema,
2250
+ }).transform((v) => {
2251
+ return remap$(v, {
2252
+ "execute_on": "executeOn",
2253
+ });
2254
+ });
2255
+
2256
+ export function listAgentsFallbackModelConfigurationGuardrailsFromJSON(
2257
+ jsonString: string,
2258
+ ): SafeParseResult<
2259
+ ListAgentsFallbackModelConfigurationGuardrails,
2260
+ SDKValidationError
2261
+ > {
2262
+ return safeParse(
2263
+ jsonString,
2264
+ (x) =>
2265
+ ListAgentsFallbackModelConfigurationGuardrails$inboundSchema.parse(
2266
+ JSON.parse(x),
2267
+ ),
2268
+ `Failed to parse 'ListAgentsFallbackModelConfigurationGuardrails' from JSON`,
2269
+ );
2270
+ }
2271
+
2272
+ /** @internal */
2273
+ export const ListAgentsFallbackModelConfigurationFallbacks$inboundSchema:
2274
+ z.ZodType<
2275
+ ListAgentsFallbackModelConfigurationFallbacks,
2276
+ z.ZodTypeDef,
2277
+ unknown
2278
+ > = z.object({
2279
+ model: z.string(),
2280
+ });
2281
+
2282
+ export function listAgentsFallbackModelConfigurationFallbacksFromJSON(
2283
+ jsonString: string,
2284
+ ): SafeParseResult<
2285
+ ListAgentsFallbackModelConfigurationFallbacks,
2286
+ SDKValidationError
2287
+ > {
2288
+ return safeParse(
2289
+ jsonString,
2290
+ (x) =>
2291
+ ListAgentsFallbackModelConfigurationFallbacks$inboundSchema.parse(
2292
+ JSON.parse(x),
2293
+ ),
2294
+ `Failed to parse 'ListAgentsFallbackModelConfigurationFallbacks' from JSON`,
2295
+ );
2296
+ }
2297
+
2298
+ /** @internal */
2299
+ export const ListAgentsFallbackModelConfigurationType$inboundSchema:
2300
+ z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationType> = z
2301
+ .nativeEnum(ListAgentsFallbackModelConfigurationType);
2302
+
2303
+ /** @internal */
2304
+ export const ListAgentsFallbackModelConfigurationCache$inboundSchema: z.ZodType<
2305
+ ListAgentsFallbackModelConfigurationCache,
2306
+ z.ZodTypeDef,
2307
+ unknown
2308
+ > = z.object({
2309
+ ttl: z.number().default(1800),
2310
+ type: ListAgentsFallbackModelConfigurationType$inboundSchema,
2311
+ });
2312
+
2313
+ export function listAgentsFallbackModelConfigurationCacheFromJSON(
2314
+ jsonString: string,
2315
+ ): SafeParseResult<
2316
+ ListAgentsFallbackModelConfigurationCache,
2317
+ SDKValidationError
2318
+ > {
2319
+ return safeParse(
2320
+ jsonString,
2321
+ (x) =>
2322
+ ListAgentsFallbackModelConfigurationCache$inboundSchema.parse(
2323
+ JSON.parse(x),
2324
+ ),
2325
+ `Failed to parse 'ListAgentsFallbackModelConfigurationCache' from JSON`,
2326
+ );
2327
+ }
2328
+
2329
+ /** @internal */
2330
+ export const ListAgentsLoadBalancerAgentsType$inboundSchema: z.ZodNativeEnum<
2331
+ typeof ListAgentsLoadBalancerAgentsType
2332
+ > = z.nativeEnum(ListAgentsLoadBalancerAgentsType);
2333
+
2334
+ /** @internal */
2335
+ export const ListAgentsLoadBalancerAgentsModels$inboundSchema: z.ZodType<
2336
+ ListAgentsLoadBalancerAgentsModels,
2337
+ z.ZodTypeDef,
2338
+ unknown
2339
+ > = z.object({
2340
+ model: z.string(),
2341
+ weight: z.number().default(0.5),
2342
+ });
2343
+
2344
+ export function listAgentsLoadBalancerAgentsModelsFromJSON(
2345
+ jsonString: string,
2346
+ ): SafeParseResult<ListAgentsLoadBalancerAgentsModels, SDKValidationError> {
2347
+ return safeParse(
2348
+ jsonString,
2349
+ (x) =>
2350
+ ListAgentsLoadBalancerAgentsModels$inboundSchema.parse(JSON.parse(x)),
2351
+ `Failed to parse 'ListAgentsLoadBalancerAgentsModels' from JSON`,
2352
+ );
2353
+ }
2354
+
2355
+ /** @internal */
2356
+ export const ListAgentsLoadBalancerAgents1$inboundSchema: z.ZodType<
2357
+ ListAgentsLoadBalancerAgents1,
2358
+ z.ZodTypeDef,
2359
+ unknown
2360
+ > = z.object({
2361
+ type: ListAgentsLoadBalancerAgentsType$inboundSchema,
2362
+ models: z.array(
2363
+ z.lazy(() => ListAgentsLoadBalancerAgentsModels$inboundSchema),
2364
+ ),
2365
+ });
2366
+
2367
+ export function listAgentsLoadBalancerAgents1FromJSON(
2368
+ jsonString: string,
2369
+ ): SafeParseResult<ListAgentsLoadBalancerAgents1, SDKValidationError> {
2370
+ return safeParse(
2371
+ jsonString,
2372
+ (x) => ListAgentsLoadBalancerAgents1$inboundSchema.parse(JSON.parse(x)),
2373
+ `Failed to parse 'ListAgentsLoadBalancerAgents1' from JSON`,
2374
+ );
2375
+ }
2376
+
2377
+ /** @internal */
2378
+ export const ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema:
2379
+ z.ZodType<
2380
+ ListAgentsFallbackModelConfigurationLoadBalancer,
2381
+ z.ZodTypeDef,
2382
+ unknown
2383
+ > = z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema);
2384
+
2385
+ export function listAgentsFallbackModelConfigurationLoadBalancerFromJSON(
2386
+ jsonString: string,
2387
+ ): SafeParseResult<
2388
+ ListAgentsFallbackModelConfigurationLoadBalancer,
2389
+ SDKValidationError
2390
+ > {
2391
+ return safeParse(
2392
+ jsonString,
2393
+ (x) =>
2394
+ ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema.parse(
2395
+ JSON.parse(x),
2396
+ ),
2397
+ `Failed to parse 'ListAgentsFallbackModelConfigurationLoadBalancer' from JSON`,
2398
+ );
2399
+ }
2400
+
2401
+ /** @internal */
2402
+ export const ListAgentsFallbackModelConfigurationTimeout$inboundSchema:
2403
+ z.ZodType<
2404
+ ListAgentsFallbackModelConfigurationTimeout,
2405
+ z.ZodTypeDef,
2406
+ unknown
2407
+ > = z.object({
2408
+ call_timeout: z.number(),
2409
+ }).transform((v) => {
2410
+ return remap$(v, {
2411
+ "call_timeout": "callTimeout",
2412
+ });
2413
+ });
2414
+
2415
+ export function listAgentsFallbackModelConfigurationTimeoutFromJSON(
2416
+ jsonString: string,
2417
+ ): SafeParseResult<
2418
+ ListAgentsFallbackModelConfigurationTimeout,
2419
+ SDKValidationError
2420
+ > {
2421
+ return safeParse(
2422
+ jsonString,
2423
+ (x) =>
2424
+ ListAgentsFallbackModelConfigurationTimeout$inboundSchema.parse(
2425
+ JSON.parse(x),
2426
+ ),
2427
+ `Failed to parse 'ListAgentsFallbackModelConfigurationTimeout' from JSON`,
2428
+ );
2429
+ }
2430
+
2431
+ /** @internal */
2432
+ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2433
+ z.ZodType<
2434
+ ListAgentsFallbackModelConfigurationParameters,
2435
+ z.ZodTypeDef,
2436
+ unknown
2437
+ > = z.object({
2438
+ name: z.string().optional(),
2439
+ frequency_penalty: z.nullable(z.number()).optional(),
2440
+ max_tokens: z.nullable(z.number().int()).optional(),
2441
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
2442
+ presence_penalty: z.nullable(z.number()).optional(),
2443
+ response_format: z.union([
2444
+ z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
2445
+ z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
2446
+ z.lazy(() =>
2447
+ ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
2448
+ ),
2449
+ ]).optional(),
2450
+ reasoning_effort:
2451
+ ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema
2452
+ .optional(),
2453
+ verbosity: z.string().optional(),
2454
+ seed: z.nullable(z.number()).optional(),
2455
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2456
+ thinking: z.union([
2457
+ components.ThinkingConfigDisabledSchema$inboundSchema,
2458
+ components.ThinkingConfigEnabledSchema$inboundSchema,
2459
+ ]).optional(),
2460
+ temperature: z.nullable(z.number()).optional(),
2461
+ top_p: z.nullable(z.number()).optional(),
2462
+ top_k: z.nullable(z.number()).optional(),
2463
+ tool_choice: z.union([
2464
+ z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
2465
+ ListAgentsToolChoiceAgents1$inboundSchema,
2466
+ ]).optional(),
2467
+ parallel_tool_calls: z.boolean().optional(),
2468
+ modalities: z.nullable(
2469
+ z.array(ListAgentsFallbackModelConfigurationModalities$inboundSchema),
2470
+ ).optional(),
2471
+ guardrails: z.array(
2472
+ z.lazy(() =>
2473
+ ListAgentsFallbackModelConfigurationGuardrails$inboundSchema
2474
+ ),
2475
+ ).optional(),
2476
+ fallbacks: z.array(
2477
+ z.lazy(() => ListAgentsFallbackModelConfigurationFallbacks$inboundSchema),
2478
+ ).optional(),
2479
+ cache: z.lazy(() => ListAgentsFallbackModelConfigurationCache$inboundSchema)
2480
+ .optional(),
2481
+ load_balancer: z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema)
2482
+ .optional(),
2483
+ timeout: z.lazy(() =>
2484
+ ListAgentsFallbackModelConfigurationTimeout$inboundSchema
2485
+ ).optional(),
2486
+ }).transform((v) => {
2487
+ return remap$(v, {
2488
+ "frequency_penalty": "frequencyPenalty",
2489
+ "max_tokens": "maxTokens",
2490
+ "max_completion_tokens": "maxCompletionTokens",
2491
+ "presence_penalty": "presencePenalty",
2492
+ "response_format": "responseFormat",
2493
+ "reasoning_effort": "reasoningEffort",
2494
+ "top_p": "topP",
2495
+ "top_k": "topK",
2496
+ "tool_choice": "toolChoice",
2497
+ "parallel_tool_calls": "parallelToolCalls",
2498
+ "load_balancer": "loadBalancer",
2499
+ });
2500
+ });
2501
+
2502
+ export function listAgentsFallbackModelConfigurationParametersFromJSON(
2503
+ jsonString: string,
2504
+ ): SafeParseResult<
2505
+ ListAgentsFallbackModelConfigurationParameters,
2506
+ SDKValidationError
2507
+ > {
2508
+ return safeParse(
2509
+ jsonString,
2510
+ (x) =>
2511
+ ListAgentsFallbackModelConfigurationParameters$inboundSchema.parse(
2512
+ JSON.parse(x),
2513
+ ),
2514
+ `Failed to parse 'ListAgentsFallbackModelConfigurationParameters' from JSON`,
2515
+ );
2516
+ }
2517
+
2518
+ /** @internal */
2519
+ export const ListAgentsFallbackModelConfigurationRetry$inboundSchema: z.ZodType<
2520
+ ListAgentsFallbackModelConfigurationRetry,
2521
+ z.ZodTypeDef,
2522
+ unknown
2523
+ > = z.object({
2524
+ count: z.number().default(3),
2525
+ on_codes: z.array(z.number()).optional(),
2526
+ }).transform((v) => {
2527
+ return remap$(v, {
2528
+ "on_codes": "onCodes",
2529
+ });
2530
+ });
2531
+
2532
+ export function listAgentsFallbackModelConfigurationRetryFromJSON(
2533
+ jsonString: string,
2534
+ ): SafeParseResult<
2535
+ ListAgentsFallbackModelConfigurationRetry,
2536
+ SDKValidationError
2537
+ > {
2538
+ return safeParse(
2539
+ jsonString,
2540
+ (x) =>
2541
+ ListAgentsFallbackModelConfigurationRetry$inboundSchema.parse(
2542
+ JSON.parse(x),
2543
+ ),
2544
+ `Failed to parse 'ListAgentsFallbackModelConfigurationRetry' from JSON`,
2545
+ );
2546
+ }
2547
+
2548
+ /** @internal */
2549
+ export const ListAgentsFallbackModelConfiguration2$inboundSchema: z.ZodType<
2550
+ ListAgentsFallbackModelConfiguration2,
2551
+ z.ZodTypeDef,
2552
+ unknown
2553
+ > = z.object({
2554
+ id: z.string(),
2555
+ parameters: z.lazy(() =>
2556
+ ListAgentsFallbackModelConfigurationParameters$inboundSchema
2557
+ ).optional(),
2558
+ retry: z.lazy(() => ListAgentsFallbackModelConfigurationRetry$inboundSchema)
2559
+ .optional(),
2560
+ });
2561
+
2562
+ export function listAgentsFallbackModelConfiguration2FromJSON(
2563
+ jsonString: string,
2564
+ ): SafeParseResult<ListAgentsFallbackModelConfiguration2, SDKValidationError> {
2565
+ return safeParse(
2566
+ jsonString,
2567
+ (x) =>
2568
+ ListAgentsFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)),
2569
+ `Failed to parse 'ListAgentsFallbackModelConfiguration2' from JSON`,
2570
+ );
2571
+ }
2572
+
2573
+ /** @internal */
2574
+ export const ListAgentsFallbackModelConfiguration$inboundSchema: z.ZodType<
2575
+ ListAgentsFallbackModelConfiguration,
2576
+ z.ZodTypeDef,
2577
+ unknown
2578
+ > = z.union([
2579
+ z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
2580
+ z.string(),
2581
+ ]);
2582
+
2583
+ export function listAgentsFallbackModelConfigurationFromJSON(
2584
+ jsonString: string,
2585
+ ): SafeParseResult<ListAgentsFallbackModelConfiguration, SDKValidationError> {
2586
+ return safeParse(
2587
+ jsonString,
2588
+ (x) =>
2589
+ ListAgentsFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
2590
+ `Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`,
2591
+ );
2592
+ }
2593
+
2594
+ /** @internal */
2595
+ export const ListAgentsModel$inboundSchema: z.ZodType<
2596
+ ListAgentsModel,
2597
+ z.ZodTypeDef,
2598
+ unknown
2599
+ > = z.object({
2600
+ id: z.string(),
2601
+ integration_id: z.nullable(z.string()).optional(),
2602
+ parameters: z.lazy(() => ListAgentsParameters$inboundSchema).optional(),
2603
+ retry: z.lazy(() => ListAgentsRetry$inboundSchema).optional(),
2604
+ fallback_models: z.nullable(
2605
+ z.array(z.union([
2606
+ z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
2607
+ z.string(),
2608
+ ])),
2609
+ ).optional(),
2610
+ }).transform((v) => {
2611
+ return remap$(v, {
2612
+ "integration_id": "integrationId",
2613
+ "fallback_models": "fallbackModels",
2614
+ });
2615
+ });
2616
+
2617
+ export function listAgentsModelFromJSON(
2618
+ jsonString: string,
2619
+ ): SafeParseResult<ListAgentsModel, SDKValidationError> {
2620
+ return safeParse(
2621
+ jsonString,
2622
+ (x) => ListAgentsModel$inboundSchema.parse(JSON.parse(x)),
2623
+ `Failed to parse 'ListAgentsModel' from JSON`,
2624
+ );
2625
+ }
2626
+
2627
+ /** @internal */
2628
+ export const ListAgentsHeaders$inboundSchema: z.ZodType<
2629
+ ListAgentsHeaders,
2630
+ z.ZodTypeDef,
2631
+ unknown
2632
+ > = z.object({
2633
+ value: z.string(),
2634
+ encrypted: z.boolean().default(false),
2635
+ });
2636
+
2637
+ export function listAgentsHeadersFromJSON(
2638
+ jsonString: string,
2639
+ ): SafeParseResult<ListAgentsHeaders, SDKValidationError> {
2640
+ return safeParse(
2641
+ jsonString,
2642
+ (x) => ListAgentsHeaders$inboundSchema.parse(JSON.parse(x)),
2643
+ `Failed to parse 'ListAgentsHeaders' from JSON`,
2644
+ );
2645
+ }
2646
+
2647
+ /** @internal */
2648
+ export const ListAgentsA2AAgentConfiguration$inboundSchema: z.ZodType<
2649
+ ListAgentsA2AAgentConfiguration,
2650
+ z.ZodTypeDef,
2651
+ unknown
2652
+ > = z.object({
2653
+ agent_url: z.string(),
2654
+ card_url: z.string().optional(),
2655
+ headers: z.record(z.lazy(() => ListAgentsHeaders$inboundSchema)).optional(),
2656
+ cached_card: z.any().optional(),
2657
+ }).transform((v) => {
2658
+ return remap$(v, {
2659
+ "agent_url": "agentUrl",
2660
+ "card_url": "cardUrl",
2661
+ "cached_card": "cachedCard",
2662
+ });
2663
+ });
2664
+
2665
+ export function listAgentsA2AAgentConfigurationFromJSON(
2666
+ jsonString: string,
2667
+ ): SafeParseResult<ListAgentsA2AAgentConfiguration, SDKValidationError> {
2668
+ return safeParse(
2669
+ jsonString,
2670
+ (x) => ListAgentsA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
2671
+ `Failed to parse 'ListAgentsA2AAgentConfiguration' from JSON`,
2672
+ );
2673
+ }
2674
+
2675
+ /** @internal */
2676
+ export const ListAgentsData$inboundSchema: z.ZodType<
2677
+ ListAgentsData,
2678
+ z.ZodTypeDef,
2679
+ unknown
2680
+ > = z.object({
2681
+ _id: z.string(),
2682
+ key: z.string(),
2683
+ display_name: z.string().optional(),
2684
+ created_by_id: z.nullable(z.string()).optional(),
2685
+ updated_by_id: z.nullable(z.string()).optional(),
2686
+ created: z.string().optional(),
2687
+ updated: z.string().optional(),
2688
+ status: ListAgentsStatus$inboundSchema,
2689
+ version_hash: z.string().optional(),
2690
+ path: z.string(),
2691
+ memory_stores: z.array(z.string()).optional(),
2692
+ team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema))
2693
+ .optional(),
2694
+ metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
2695
+ variables: z.record(z.any()).optional(),
2696
+ knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
2697
+ .optional(),
2698
+ source: ListAgentsSource$inboundSchema.optional(),
2699
+ type: ListAgentsType$inboundSchema.default("internal"),
2700
+ role: z.string(),
2701
+ description: z.string(),
2702
+ system_prompt: z.string().optional(),
2703
+ instructions: z.string(),
2704
+ settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
2705
+ model: z.lazy(() => ListAgentsModel$inboundSchema),
2706
+ a2a: z.lazy(() => ListAgentsA2AAgentConfiguration$inboundSchema).optional(),
2707
+ }).transform((v) => {
2708
+ return remap$(v, {
2709
+ "_id": "id",
2710
+ "display_name": "displayName",
2711
+ "created_by_id": "createdById",
2712
+ "updated_by_id": "updatedById",
2713
+ "version_hash": "versionHash",
2714
+ "memory_stores": "memoryStores",
2715
+ "team_of_agents": "teamOfAgents",
2716
+ "knowledge_bases": "knowledgeBases",
2717
+ "system_prompt": "systemPrompt",
2718
+ });
2719
+ });
2720
+
2721
+ export function listAgentsDataFromJSON(
2722
+ jsonString: string,
2723
+ ): SafeParseResult<ListAgentsData, SDKValidationError> {
2724
+ return safeParse(
2725
+ jsonString,
2726
+ (x) => ListAgentsData$inboundSchema.parse(JSON.parse(x)),
2727
+ `Failed to parse 'ListAgentsData' from JSON`,
2728
+ );
2729
+ }
2730
+
2731
+ /** @internal */
2732
+ export const ListAgentsResponseBody$inboundSchema: z.ZodType<
2733
+ ListAgentsResponseBody,
2734
+ z.ZodTypeDef,
2735
+ unknown
2736
+ > = z.object({
2737
+ object: ListAgentsObject$inboundSchema,
2738
+ data: z.array(z.lazy(() => ListAgentsData$inboundSchema)),
2739
+ has_more: z.boolean(),
2740
+ }).transform((v) => {
2741
+ return remap$(v, {
2742
+ "has_more": "hasMore",
2743
+ });
2744
+ });
2745
+
2746
+ export function listAgentsResponseBodyFromJSON(
2747
+ jsonString: string,
2748
+ ): SafeParseResult<ListAgentsResponseBody, SDKValidationError> {
2749
+ return safeParse(
2750
+ jsonString,
2751
+ (x) => ListAgentsResponseBody$inboundSchema.parse(JSON.parse(x)),
2752
+ `Failed to parse 'ListAgentsResponseBody' from JSON`,
2753
+ );
2754
+ }