@orq-ai/node 4.7.0 → 4.8.0-rc.0

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