@orq-ai/node 4.4.2 → 4.5.0-rc.1

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