@orq-ai/node 4.5.3 → 4.6.0-rc.2

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