@orq-ai/node 4.9.0 → 4.10.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 (604) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createcontact.js +1 -1
  7. package/models/operations/createdataset.js +1 -1
  8. package/models/operations/createdatasetitem.js +4 -4
  9. package/models/operations/createdatasource.js +1 -1
  10. package/models/operations/createeval.js +16 -16
  11. package/models/operations/createidentity.js +1 -1
  12. package/models/operations/createtool.js +6 -6
  13. package/models/operations/getalltools.js +6 -6
  14. package/models/operations/getevals.js +16 -16
  15. package/models/operations/getv2humanevalsets.js +2 -2
  16. package/models/operations/getv2humanevalsetsid.js +2 -2
  17. package/models/operations/listdatasetdatapoints.js +4 -4
  18. package/models/operations/listdatasets.js +1 -1
  19. package/models/operations/listdatasources.js +1 -1
  20. package/models/operations/listidentities.js +1 -1
  21. package/models/operations/patchv2humanevalsetsid.js +2 -2
  22. package/models/operations/postv2feedbackevaluation.js +3 -3
  23. package/models/operations/postv2humanevalsets.js +2 -2
  24. package/models/operations/retrievedatapoint.js +4 -4
  25. package/models/operations/retrievedataset.js +1 -1
  26. package/models/operations/retrievedatasource.js +1 -1
  27. package/models/operations/retrieveidentity.js +1 -1
  28. package/models/operations/retrievetool.js +6 -6
  29. package/models/operations/runagent.js +1 -1
  30. package/models/operations/streamrunagent.js +1 -1
  31. package/models/operations/updatedatapoint.js +4 -4
  32. package/models/operations/updatedataset.js +1 -1
  33. package/models/operations/updatedatasource.js +1 -1
  34. package/models/operations/updateeval.js +16 -16
  35. package/models/operations/updateidentity.js +1 -1
  36. package/models/operations/updatetool.js +7 -7
  37. package/package.json +8 -7
  38. package/src/lib/config.ts +2 -2
  39. package/src/models/components/reasoningpart.ts +1 -1
  40. package/src/models/operations/createcontact.ts +1 -1
  41. package/src/models/operations/createdataset.ts +1 -1
  42. package/src/models/operations/createdatasetitem.ts +4 -4
  43. package/src/models/operations/createdatasource.ts +1 -1
  44. package/src/models/operations/createeval.ts +16 -16
  45. package/src/models/operations/createidentity.ts +1 -1
  46. package/src/models/operations/createtool.ts +6 -6
  47. package/src/models/operations/getalltools.ts +6 -6
  48. package/src/models/operations/getevals.ts +16 -16
  49. package/src/models/operations/getv2humanevalsets.ts +2 -2
  50. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  51. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  52. package/src/models/operations/listdatasets.ts +1 -1
  53. package/src/models/operations/listdatasources.ts +1 -1
  54. package/src/models/operations/listidentities.ts +1 -1
  55. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  56. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  57. package/src/models/operations/postv2humanevalsets.ts +2 -2
  58. package/src/models/operations/retrievedatapoint.ts +4 -4
  59. package/src/models/operations/retrievedataset.ts +1 -1
  60. package/src/models/operations/retrievedatasource.ts +1 -1
  61. package/src/models/operations/retrieveidentity.ts +1 -1
  62. package/src/models/operations/retrievetool.ts +6 -6
  63. package/src/models/operations/runagent.ts +1 -1
  64. package/src/models/operations/streamrunagent.ts +1 -1
  65. package/src/models/operations/updatedatapoint.ts +4 -4
  66. package/src/models/operations/updatedataset.ts +1 -1
  67. package/src/models/operations/updatedatasource.ts +1 -1
  68. package/src/models/operations/updateeval.ts +16 -16
  69. package/src/models/operations/updateidentity.ts +1 -1
  70. package/src/models/operations/updatetool.ts +7 -7
  71. package/packages/orq-rc/examples/postV2FeedbackEvaluationRemove.example.ts +0 -24
  72. package/packages/orq-rc/src/core.ts +0 -13
  73. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -163
  74. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -181
  75. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -178
  76. package/packages/orq-rc/src/funcs/agentsList.ts +0 -186
  77. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +0 -180
  78. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -188
  79. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -184
  80. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +0 -183
  81. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -181
  82. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -164
  83. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -205
  84. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
  85. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -185
  86. package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -172
  87. package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -172
  88. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -162
  89. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -162
  90. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -168
  91. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -167
  92. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -172
  93. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -168
  94. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -183
  95. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -169
  96. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -175
  97. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -176
  98. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -182
  99. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -177
  100. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -180
  101. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -170
  102. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -178
  103. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -178
  104. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -171
  105. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -188
  106. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -175
  107. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -171
  108. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -174
  109. package/packages/orq-rc/src/funcs/evalsGetV2EvaluatorsIdVersions.ts +0 -184
  110. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -182
  111. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -174
  112. package/packages/orq-rc/src/funcs/feedbackPostV2Feedback.ts +0 -174
  113. package/packages/orq-rc/src/funcs/feedbackPostV2FeedbackRemove.ts +0 -169
  114. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -162
  115. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -165
  116. package/packages/orq-rc/src/funcs/filesGet.ts +0 -168
  117. package/packages/orq-rc/src/funcs/filesGetContent.ts +0 -168
  118. package/packages/orq-rc/src/funcs/filesList.ts +0 -170
  119. package/packages/orq-rc/src/funcs/filesUpdate.ts +0 -169
  120. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +0 -163
  121. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +0 -172
  122. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +0 -172
  123. package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +0 -170
  124. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +0 -172
  125. package/packages/orq-rc/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +0 -166
  126. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +0 -170
  127. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +0 -165
  128. package/packages/orq-rc/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +0 -166
  129. package/packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +0 -164
  130. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -167
  131. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -177
  132. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -172
  133. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -185
  134. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -177
  135. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -160
  136. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -172
  137. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -167
  138. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -168
  139. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -175
  140. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -171
  141. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -174
  142. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -171
  143. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -171
  144. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -179
  145. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -172
  146. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -175
  147. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -167
  148. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -174
  149. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -170
  150. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -168
  151. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -165
  152. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -175
  153. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -171
  154. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -164
  155. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -177
  156. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -171
  157. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -169
  158. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -186
  159. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -181
  160. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -180
  161. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -185
  162. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -178
  163. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -178
  164. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -180
  165. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -175
  166. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -169
  167. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -181
  168. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -176
  169. package/packages/orq-rc/src/funcs/policiesCreate.ts +0 -162
  170. package/packages/orq-rc/src/funcs/policiesDelete.ts +0 -168
  171. package/packages/orq-rc/src/funcs/policiesList.ts +0 -170
  172. package/packages/orq-rc/src/funcs/policiesRetrieve.ts +0 -167
  173. package/packages/orq-rc/src/funcs/policiesUpdate.ts +0 -168
  174. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts +0 -161
  175. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluationRemove.ts +0 -161
  176. package/packages/orq-rc/src/funcs/projectsCreate.ts +0 -162
  177. package/packages/orq-rc/src/funcs/projectsDelete.ts +0 -165
  178. package/packages/orq-rc/src/funcs/projectsGet.ts +0 -168
  179. package/packages/orq-rc/src/funcs/projectsList.ts +0 -170
  180. package/packages/orq-rc/src/funcs/projectsUpdate.ts +0 -171
  181. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -162
  182. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -174
  183. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -182
  184. package/packages/orq-rc/src/funcs/promptsList.ts +0 -169
  185. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -174
  186. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -167
  187. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -174
  188. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -163
  189. package/packages/orq-rc/src/funcs/responsesCreate.ts +0 -170
  190. package/packages/orq-rc/src/funcs/responsesGet.ts +0 -167
  191. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -163
  192. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -272
  193. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -262
  194. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -170
  195. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -170
  196. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -163
  197. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -224
  198. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -162
  199. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -220
  200. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -169
  201. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -160
  202. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -162
  203. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +0 -163
  204. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +0 -168
  205. package/packages/orq-rc/src/funcs/routingRulesList.ts +0 -170
  206. package/packages/orq-rc/src/funcs/routingRulesRetrieve.ts +0 -167
  207. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +0 -168
  208. package/packages/orq-rc/src/funcs/schedulesCreate.ts +0 -185
  209. package/packages/orq-rc/src/funcs/schedulesDelete.ts +0 -184
  210. package/packages/orq-rc/src/funcs/schedulesList.ts +0 -167
  211. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +0 -183
  212. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +0 -190
  213. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +0 -191
  214. package/packages/orq-rc/src/funcs/skillsCreate.ts +0 -162
  215. package/packages/orq-rc/src/funcs/skillsDelete.ts +0 -165
  216. package/packages/orq-rc/src/funcs/skillsGet.ts +0 -168
  217. package/packages/orq-rc/src/funcs/skillsList.ts +0 -170
  218. package/packages/orq-rc/src/funcs/skillsUpdate.ts +0 -171
  219. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -165
  220. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -168
  221. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -184
  222. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -191
  223. package/packages/orq-rc/src/funcs/toolsList.ts +0 -178
  224. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -167
  225. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -177
  226. package/packages/orq-rc/src/hooks/global.ts +0 -44
  227. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  228. package/packages/orq-rc/src/hooks/index.ts +0 -6
  229. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  230. package/packages/orq-rc/src/hooks/types.ts +0 -112
  231. package/packages/orq-rc/src/index.ts +0 -9
  232. package/packages/orq-rc/src/lib/base64.ts +0 -37
  233. package/packages/orq-rc/src/lib/config.ts +0 -74
  234. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  235. package/packages/orq-rc/src/lib/encodings.ts +0 -525
  236. package/packages/orq-rc/src/lib/env.ts +0 -89
  237. package/packages/orq-rc/src/lib/event-streams.ts +0 -165
  238. package/packages/orq-rc/src/lib/files.ts +0 -104
  239. package/packages/orq-rc/src/lib/http.ts +0 -323
  240. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  241. package/packages/orq-rc/src/lib/logger.ts +0 -9
  242. package/packages/orq-rc/src/lib/matchers.ts +0 -346
  243. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  244. package/packages/orq-rc/src/lib/retries.ts +0 -218
  245. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  246. package/packages/orq-rc/src/lib/sdks.ts +0 -406
  247. package/packages/orq-rc/src/lib/security.ts +0 -275
  248. package/packages/orq-rc/src/lib/url.ts +0 -35
  249. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  250. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  251. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  252. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  253. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  254. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  255. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  256. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  257. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -520
  258. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
  259. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  260. package/packages/orq-rc/src/models/components/budgetlimit.ts +0 -83
  261. package/packages/orq-rc/src/models/components/conversationparam.ts +0 -51
  262. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -305
  263. package/packages/orq-rc/src/models/components/createfilerequest.ts +0 -45
  264. package/packages/orq-rc/src/models/components/createfileresponse.ts +0 -32
  265. package/packages/orq-rc/src/models/components/createprojectrequest.ts +0 -34
  266. package/packages/orq-rc/src/models/components/createprojectresponse.ts +0 -32
  267. package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -52
  268. package/packages/orq-rc/src/models/components/createskillresponse.ts +0 -32
  269. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  270. package/packages/orq-rc/src/models/components/deletefileresponse.ts +0 -27
  271. package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +0 -27
  272. package/packages/orq-rc/src/models/components/deleteskillresponse.ts +0 -27
  273. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  274. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  275. package/packages/orq-rc/src/models/components/evaluatorref.ts +0 -89
  276. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  277. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  278. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  279. package/packages/orq-rc/src/models/components/expression.ts +0 -33
  280. package/packages/orq-rc/src/models/components/expressioninput.ts +0 -29
  281. package/packages/orq-rc/src/models/components/extendedmessage.ts +0 -146
  282. package/packages/orq-rc/src/models/components/fallbackconfig.ts +0 -27
  283. package/packages/orq-rc/src/models/components/file.ts +0 -48
  284. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  285. package/packages/orq-rc/src/models/components/filepart.ts +0 -223
  286. package/packages/orq-rc/src/models/components/getagentresponse.ts +0 -348
  287. package/packages/orq-rc/src/models/components/getfilecontentresponse.ts +0 -36
  288. package/packages/orq-rc/src/models/components/getfileresponse.ts +0 -32
  289. package/packages/orq-rc/src/models/components/getprojectresponse.ts +0 -32
  290. package/packages/orq-rc/src/models/components/getskillresponse.ts +0 -32
  291. package/packages/orq-rc/src/models/components/guardrailref.ts +0 -87
  292. package/packages/orq-rc/src/models/components/guardrailrule.ts +0 -66
  293. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  294. package/packages/orq-rc/src/models/components/incompletedetails.ts +0 -31
  295. package/packages/orq-rc/src/models/components/index.ts +0 -117
  296. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +0 -39
  297. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3450
  298. package/packages/orq-rc/src/models/components/limits.ts +0 -70
  299. package/packages/orq-rc/src/models/components/listfilesresponse.ts +0 -41
  300. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +0 -41
  301. package/packages/orq-rc/src/models/components/listskillsresponse.ts +0 -41
  302. package/packages/orq-rc/src/models/components/memoryparam.ts +0 -56
  303. package/packages/orq-rc/src/models/components/modelref.ts +0 -64
  304. package/packages/orq-rc/src/models/components/modelsconfig.ts +0 -73
  305. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +0 -36
  306. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  307. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  308. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -70
  309. package/packages/orq-rc/src/models/components/policy.ts +0 -80
  310. package/packages/orq-rc/src/models/components/policyretryconfig.ts +0 -64
  311. package/packages/orq-rc/src/models/components/project.ts +0 -64
  312. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
  313. package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
  314. package/packages/orq-rc/src/models/components/publicschedule.ts +0 -118
  315. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +0 -39
  316. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +0 -84
  317. package/packages/orq-rc/src/models/components/publicusage.ts +0 -77
  318. package/packages/orq-rc/src/models/components/reasoning.ts +0 -33
  319. package/packages/orq-rc/src/models/components/reasoningparam.ts +0 -30
  320. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  321. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  322. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  323. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  324. package/packages/orq-rc/src/models/components/requestlimit.ts +0 -69
  325. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -324
  326. package/packages/orq-rc/src/models/components/responseerror.ts +0 -33
  327. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +0 -52
  328. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  329. package/packages/orq-rc/src/models/components/responseidentity.ts +0 -48
  330. package/packages/orq-rc/src/models/components/responseretryconfig.ts +0 -45
  331. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -97
  332. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  333. package/packages/orq-rc/src/models/components/responsethread.ts +0 -30
  334. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  335. package/packages/orq-rc/src/models/components/routingrule.ts +0 -67
  336. package/packages/orq-rc/src/models/components/security.ts +0 -32
  337. package/packages/orq-rc/src/models/components/skill.ts +0 -75
  338. package/packages/orq-rc/src/models/components/streamoptions.ts +0 -32
  339. package/packages/orq-rc/src/models/components/telemetry.ts +0 -48
  340. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  341. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  342. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +0 -59
  343. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  344. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -107
  345. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  346. package/packages/orq-rc/src/models/components/tokenlimit.ts +0 -69
  347. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  348. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  349. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -235
  350. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -219
  351. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -205
  352. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  353. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  354. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  355. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  356. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  357. package/packages/orq-rc/src/models/components/updatefilerequest.ts +0 -40
  358. package/packages/orq-rc/src/models/components/updatefileresponse.ts +0 -32
  359. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -42
  360. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +0 -32
  361. package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -56
  362. package/packages/orq-rc/src/models/components/updateskillresponse.ts +0 -32
  363. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  364. package/packages/orq-rc/src/models/errors/createagentschedule.ts +0 -105
  365. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  366. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  367. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  368. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  369. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  370. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +0 -56
  371. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  372. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  373. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  374. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  375. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  376. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  377. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  378. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  379. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  380. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  381. package/packages/orq-rc/src/models/errors/index.ts +0 -42
  382. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  383. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  384. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
  385. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +0 -97
  386. package/packages/orq-rc/src/models/errors/postv2feedback.ts +0 -96
  387. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +0 -51
  388. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  389. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  390. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +0 -56
  391. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -118
  392. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  393. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  394. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  395. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +0 -105
  396. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  397. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +0 -105
  398. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  399. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  400. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  401. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  402. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  403. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -6467
  404. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -670
  405. package/packages/orq-rc/src/models/operations/createagentschedule.ts +0 -227
  406. package/packages/orq-rc/src/models/operations/createannotation.ts +0 -166
  407. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6398
  408. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  409. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3473
  410. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  411. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  412. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2554
  413. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
  414. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
  415. package/packages/orq-rc/src/models/operations/createeval.ts +0 -5046
  416. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  417. package/packages/orq-rc/src/models/operations/createimage.ts +0 -1034
  418. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
  419. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
  420. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -958
  421. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  422. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  423. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  424. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  425. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5408
  426. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
  427. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +0 -1509
  428. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
  429. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2494
  430. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
  431. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
  432. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  433. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +0 -46
  434. package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -82
  435. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  436. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  437. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  438. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  439. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  440. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  441. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
  442. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  443. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  444. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  445. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  446. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  447. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  448. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +0 -36
  449. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
  450. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4518
  451. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -737
  452. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1276
  453. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4661
  454. package/packages/orq-rc/src/models/operations/filecontent.ts +0 -36
  455. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -36
  456. package/packages/orq-rc/src/models/operations/fileget.ts +0 -32
  457. package/packages/orq-rc/src/models/operations/filelist.ts +0 -41
  458. package/packages/orq-rc/src/models/operations/fileupdate.ts +0 -41
  459. package/packages/orq-rc/src/models/operations/getagentresponse.ts +0 -46
  460. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  461. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  462. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  463. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3176
  464. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1389
  465. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
  466. package/packages/orq-rc/src/models/operations/getevals.ts +0 -3299
  467. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  468. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  469. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3101
  470. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3146
  471. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  472. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +0 -234
  473. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +0 -235
  474. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  475. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  476. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +0 -124
  477. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +0 -39
  478. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +0 -102
  479. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +0 -94
  480. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +0 -153
  481. package/packages/orq-rc/src/models/operations/index.ts +0 -154
  482. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -801
  483. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1257
  484. package/packages/orq-rc/src/models/operations/listagents.ts +0 -2783
  485. package/packages/orq-rc/src/models/operations/listagentschedules.ts +0 -69
  486. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
  487. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
  488. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  489. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  490. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
  491. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
  492. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  493. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3221
  494. package/packages/orq-rc/src/models/operations/parse.ts +0 -784
  495. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +0 -415
  496. package/packages/orq-rc/src/models/operations/policycreate.ts +0 -138
  497. package/packages/orq-rc/src/models/operations/policydelete.ts +0 -39
  498. package/packages/orq-rc/src/models/operations/policyget.ts +0 -110
  499. package/packages/orq-rc/src/models/operations/policylist.ts +0 -94
  500. package/packages/orq-rc/src/models/operations/policyupdate.ts +0 -174
  501. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -252
  502. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +0 -100
  503. package/packages/orq-rc/src/models/operations/postv2feedback.ts +0 -207
  504. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +0 -321
  505. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +0 -43
  506. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +0 -138
  507. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +0 -365
  508. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  509. package/packages/orq-rc/src/models/operations/projectdelete.ts +0 -36
  510. package/packages/orq-rc/src/models/operations/projectget.ts +0 -36
  511. package/packages/orq-rc/src/models/operations/projectlist.ts +0 -43
  512. package/packages/orq-rc/src/models/operations/projectupdate.ts +0 -41
  513. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  514. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -2845
  515. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +0 -162
  516. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  517. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  518. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  519. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -174
  520. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  521. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  522. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  523. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +0 -225
  524. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1370
  525. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +0 -124
  526. package/packages/orq-rc/src/models/operations/routingruledelete.ts +0 -39
  527. package/packages/orq-rc/src/models/operations/routingruleget.ts +0 -102
  528. package/packages/orq-rc/src/models/operations/routingrulelist.ts +0 -94
  529. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +0 -154
  530. package/packages/orq-rc/src/models/operations/runagent.ts +0 -4963
  531. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  532. package/packages/orq-rc/src/models/operations/skilldelete.ts +0 -36
  533. package/packages/orq-rc/src/models/operations/skillget.ts +0 -40
  534. package/packages/orq-rc/src/models/operations/skilllist.ts +0 -49
  535. package/packages/orq-rc/src/models/operations/skillupdate.ts +0 -41
  536. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -692
  537. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5125
  538. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +0 -86
  539. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -6875
  540. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +0 -241
  541. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  542. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  543. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  544. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  545. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -3790
  546. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
  547. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  548. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  549. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  550. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -188
  551. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5490
  552. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2801
  553. package/packages/orq-rc/src/sdk/agents.ts +0 -234
  554. package/packages/orq-rc/src/sdk/annotations.ts +0 -39
  555. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  556. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  557. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  558. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  559. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  560. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  561. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  562. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  563. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  564. package/packages/orq-rc/src/sdk/evals.ts +0 -102
  565. package/packages/orq-rc/src/sdk/feedback.ts +0 -33
  566. package/packages/orq-rc/src/sdk/files.ts +0 -115
  567. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  568. package/packages/orq-rc/src/sdk/guardrailrules.ts +0 -99
  569. package/packages/orq-rc/src/sdk/humanreviewsets.ts +0 -84
  570. package/packages/orq-rc/src/sdk/identities.ts +0 -99
  571. package/packages/orq-rc/src/sdk/images.ts +0 -25
  572. package/packages/orq-rc/src/sdk/index.ts +0 -5
  573. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  574. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  575. package/packages/orq-rc/src/sdk/metrics.ts +0 -29
  576. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  577. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  578. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -53
  579. package/packages/orq-rc/src/sdk/policies.ts +0 -99
  580. package/packages/orq-rc/src/sdk/projects.ts +0 -97
  581. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  582. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  583. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  584. package/packages/orq-rc/src/sdk/responses.ts +0 -47
  585. package/packages/orq-rc/src/sdk/router.ts +0 -66
  586. package/packages/orq-rc/src/sdk/routingrules.ts +0 -99
  587. package/packages/orq-rc/src/sdk/schedules.ts +0 -117
  588. package/packages/orq-rc/src/sdk/sdk.ts +0 -177
  589. package/packages/orq-rc/src/sdk/skills.ts +0 -97
  590. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  591. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  592. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  593. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  594. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  595. package/packages/orq-rc/src/types/async.ts +0 -68
  596. package/packages/orq-rc/src/types/blobs.ts +0 -32
  597. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  598. package/packages/orq-rc/src/types/enums.ts +0 -45
  599. package/packages/orq-rc/src/types/fp.ts +0 -50
  600. package/packages/orq-rc/src/types/index.ts +0 -11
  601. package/packages/orq-rc/src/types/operations.ts +0 -105
  602. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  603. package/packages/orq-rc/src/types/streams.ts +0 -21
  604. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
@@ -1,2783 +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
- /**
1118
- * Entity storage path in the format: `project/folder/subfolder/...`
1119
- *
1120
- * @remarks
1121
- *
1122
- * The first element identifies the project, followed by nested folders (auto-created as needed).
1123
- *
1124
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1125
- */
1126
- path: string;
1127
- /**
1128
- * Array of memory store identifiers. Accepts both memory store IDs and keys.
1129
- */
1130
- memoryStores?: Array<string> | undefined;
1131
- /**
1132
- * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1133
- */
1134
- teamOfAgents?: Array<ListAgentsTeamOfAgents> | undefined;
1135
- /**
1136
- * List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
1137
- */
1138
- skills: Array<string>;
1139
- metrics?: ListAgentsMetrics | undefined;
1140
- /**
1141
- * Extracted variables from agent instructions
1142
- */
1143
- variables?: { [k: string]: any } | undefined;
1144
- /**
1145
- * Agent knowledge bases reference
1146
- */
1147
- knowledgeBases?: Array<ListAgentsKnowledgeBases> | undefined;
1148
- source?: ListAgentsSource | undefined;
1149
- engine: ListAgentsEngine;
1150
- /**
1151
- * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1152
- */
1153
- type: ListAgentsType;
1154
- role: string;
1155
- description: string;
1156
- systemPrompt?: string | null | undefined;
1157
- instructions: string;
1158
- settings?: ListAgentsSettings | undefined;
1159
- model: ListAgentsModel;
1160
- /**
1161
- * A2A configuration with agent endpoint and authentication. Only present for A2A agents.
1162
- */
1163
- a2a?: ListAgentsA2AAgentConfiguration | undefined;
1164
- };
1165
-
1166
- /**
1167
- * 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.
1168
- */
1169
- export type ListAgentsResponseBody = {
1170
- object: ListAgentsObject;
1171
- data: Array<ListAgentsData>;
1172
- hasMore: boolean;
1173
- };
1174
-
1175
- /** @internal */
1176
- export const QueryParamType$outboundSchema: z.ZodNativeEnum<
1177
- typeof QueryParamType
1178
- > = z.nativeEnum(QueryParamType);
1179
-
1180
- /** @internal */
1181
- export type ListAgentsRequest$Outbound = {
1182
- limit?: number | undefined;
1183
- starting_after?: string | undefined;
1184
- ending_before?: string | undefined;
1185
- type?: string | undefined;
1186
- };
1187
-
1188
- /** @internal */
1189
- export const ListAgentsRequest$outboundSchema: z.ZodType<
1190
- ListAgentsRequest$Outbound,
1191
- z.ZodTypeDef,
1192
- ListAgentsRequest
1193
- > = z.object({
1194
- limit: z.number().optional(),
1195
- startingAfter: z.string().optional(),
1196
- endingBefore: z.string().optional(),
1197
- type: QueryParamType$outboundSchema.optional(),
1198
- }).transform((v) => {
1199
- return remap$(v, {
1200
- startingAfter: "starting_after",
1201
- endingBefore: "ending_before",
1202
- });
1203
- });
1204
-
1205
- export function listAgentsRequestToJSON(
1206
- listAgentsRequest: ListAgentsRequest,
1207
- ): string {
1208
- return JSON.stringify(
1209
- ListAgentsRequest$outboundSchema.parse(listAgentsRequest),
1210
- );
1211
- }
1212
-
1213
- /** @internal */
1214
- export const ListAgentsObject$inboundSchema: z.ZodNativeEnum<
1215
- typeof ListAgentsObject
1216
- > = z.nativeEnum(ListAgentsObject);
1217
-
1218
- /** @internal */
1219
- export const ListAgentsStatus$inboundSchema: z.ZodNativeEnum<
1220
- typeof ListAgentsStatus
1221
- > = z.nativeEnum(ListAgentsStatus);
1222
-
1223
- /** @internal */
1224
- export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
1225
- ListAgentsTeamOfAgents,
1226
- z.ZodTypeDef,
1227
- unknown
1228
- > = z.object({
1229
- key: z.string(),
1230
- role: z.string().optional(),
1231
- });
1232
-
1233
- export function listAgentsTeamOfAgentsFromJSON(
1234
- jsonString: string,
1235
- ): SafeParseResult<ListAgentsTeamOfAgents, SDKValidationError> {
1236
- return safeParse(
1237
- jsonString,
1238
- (x) => ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1239
- `Failed to parse 'ListAgentsTeamOfAgents' from JSON`,
1240
- );
1241
- }
1242
-
1243
- /** @internal */
1244
- export const ListAgentsMetrics$inboundSchema: z.ZodType<
1245
- ListAgentsMetrics,
1246
- z.ZodTypeDef,
1247
- unknown
1248
- > = z.object({
1249
- total_cost: z.number().default(0),
1250
- }).transform((v) => {
1251
- return remap$(v, {
1252
- "total_cost": "totalCost",
1253
- });
1254
- });
1255
-
1256
- export function listAgentsMetricsFromJSON(
1257
- jsonString: string,
1258
- ): SafeParseResult<ListAgentsMetrics, SDKValidationError> {
1259
- return safeParse(
1260
- jsonString,
1261
- (x) => ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
1262
- `Failed to parse 'ListAgentsMetrics' from JSON`,
1263
- );
1264
- }
1265
-
1266
- /** @internal */
1267
- export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
1268
- ListAgentsKnowledgeBases,
1269
- z.ZodTypeDef,
1270
- unknown
1271
- > = z.object({
1272
- knowledge_id: z.string(),
1273
- }).transform((v) => {
1274
- return remap$(v, {
1275
- "knowledge_id": "knowledgeId",
1276
- });
1277
- });
1278
-
1279
- export function listAgentsKnowledgeBasesFromJSON(
1280
- jsonString: string,
1281
- ): SafeParseResult<ListAgentsKnowledgeBases, SDKValidationError> {
1282
- return safeParse(
1283
- jsonString,
1284
- (x) => ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1285
- `Failed to parse 'ListAgentsKnowledgeBases' from JSON`,
1286
- );
1287
- }
1288
-
1289
- /** @internal */
1290
- export const ListAgentsSource$inboundSchema: z.ZodNativeEnum<
1291
- typeof ListAgentsSource
1292
- > = z.nativeEnum(ListAgentsSource);
1293
-
1294
- /** @internal */
1295
- export const ListAgentsEngine$inboundSchema: z.ZodNativeEnum<
1296
- typeof ListAgentsEngine
1297
- > = z.nativeEnum(ListAgentsEngine);
1298
-
1299
- /** @internal */
1300
- export const ListAgentsType$inboundSchema: z.ZodNativeEnum<
1301
- typeof ListAgentsType
1302
- > = z.nativeEnum(ListAgentsType);
1303
-
1304
- /** @internal */
1305
- export const ListAgentsToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
1306
- typeof ListAgentsToolApprovalRequired
1307
- > = z.nativeEnum(ListAgentsToolApprovalRequired);
1308
-
1309
- /** @internal */
1310
- export const ListAgentsConditions$inboundSchema: z.ZodType<
1311
- ListAgentsConditions,
1312
- z.ZodTypeDef,
1313
- unknown
1314
- > = z.object({
1315
- condition: z.string(),
1316
- operator: z.string(),
1317
- value: z.string(),
1318
- });
1319
-
1320
- export function listAgentsConditionsFromJSON(
1321
- jsonString: string,
1322
- ): SafeParseResult<ListAgentsConditions, SDKValidationError> {
1323
- return safeParse(
1324
- jsonString,
1325
- (x) => ListAgentsConditions$inboundSchema.parse(JSON.parse(x)),
1326
- `Failed to parse 'ListAgentsConditions' from JSON`,
1327
- );
1328
- }
1329
-
1330
- /** @internal */
1331
- export const ListAgentsTools$inboundSchema: z.ZodType<
1332
- ListAgentsTools,
1333
- z.ZodTypeDef,
1334
- unknown
1335
- > = z.object({
1336
- id: z.string(),
1337
- key: z.string().optional(),
1338
- action_type: z.string(),
1339
- display_name: z.string().optional(),
1340
- description: z.string().optional(),
1341
- requires_approval: z.boolean().default(false),
1342
- tool_id: z.string().optional(),
1343
- conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
1344
- .optional(),
1345
- timeout: z.number().default(120),
1346
- }).transform((v) => {
1347
- return remap$(v, {
1348
- "action_type": "actionType",
1349
- "display_name": "displayName",
1350
- "requires_approval": "requiresApproval",
1351
- "tool_id": "toolId",
1352
- });
1353
- });
1354
-
1355
- export function listAgentsToolsFromJSON(
1356
- jsonString: string,
1357
- ): SafeParseResult<ListAgentsTools, SDKValidationError> {
1358
- return safeParse(
1359
- jsonString,
1360
- (x) => ListAgentsTools$inboundSchema.parse(JSON.parse(x)),
1361
- `Failed to parse 'ListAgentsTools' from JSON`,
1362
- );
1363
- }
1364
-
1365
- /** @internal */
1366
- export const ListAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1367
- typeof ListAgentsExecuteOn
1368
- > = z.nativeEnum(ListAgentsExecuteOn);
1369
-
1370
- /** @internal */
1371
- export const ListAgentsEvaluators$inboundSchema: z.ZodType<
1372
- ListAgentsEvaluators,
1373
- z.ZodTypeDef,
1374
- unknown
1375
- > = z.object({
1376
- id: z.string(),
1377
- sample_rate: z.number().default(50),
1378
- execute_on: ListAgentsExecuteOn$inboundSchema,
1379
- }).transform((v) => {
1380
- return remap$(v, {
1381
- "sample_rate": "sampleRate",
1382
- "execute_on": "executeOn",
1383
- });
1384
- });
1385
-
1386
- export function listAgentsEvaluatorsFromJSON(
1387
- jsonString: string,
1388
- ): SafeParseResult<ListAgentsEvaluators, SDKValidationError> {
1389
- return safeParse(
1390
- jsonString,
1391
- (x) => ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
1392
- `Failed to parse 'ListAgentsEvaluators' from JSON`,
1393
- );
1394
- }
1395
-
1396
- /** @internal */
1397
- export const ListAgentsAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1398
- typeof ListAgentsAgentsExecuteOn
1399
- > = z.nativeEnum(ListAgentsAgentsExecuteOn);
1400
-
1401
- /** @internal */
1402
- export const ListAgentsGuardrails$inboundSchema: z.ZodType<
1403
- ListAgentsGuardrails,
1404
- z.ZodTypeDef,
1405
- unknown
1406
- > = z.object({
1407
- id: z.string(),
1408
- sample_rate: z.number().default(50),
1409
- execute_on: ListAgentsAgentsExecuteOn$inboundSchema,
1410
- }).transform((v) => {
1411
- return remap$(v, {
1412
- "sample_rate": "sampleRate",
1413
- "execute_on": "executeOn",
1414
- });
1415
- });
1416
-
1417
- export function listAgentsGuardrailsFromJSON(
1418
- jsonString: string,
1419
- ): SafeParseResult<ListAgentsGuardrails, SDKValidationError> {
1420
- return safeParse(
1421
- jsonString,
1422
- (x) => ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1423
- `Failed to parse 'ListAgentsGuardrails' from JSON`,
1424
- );
1425
- }
1426
-
1427
- /** @internal */
1428
- export const ListAgentsSettings$inboundSchema: z.ZodType<
1429
- ListAgentsSettings,
1430
- z.ZodTypeDef,
1431
- unknown
1432
- > = z.object({
1433
- max_iterations: z.number().int().default(100),
1434
- max_execution_time: z.number().int().default(600),
1435
- max_cost: z.number().default(0),
1436
- tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
1437
- "respect_tool",
1438
- ),
1439
- tools: z.array(z.lazy(() => ListAgentsTools$inboundSchema)).optional(),
1440
- evaluators: z.array(z.lazy(() => ListAgentsEvaluators$inboundSchema))
1441
- .optional(),
1442
- guardrails: z.array(z.lazy(() => ListAgentsGuardrails$inboundSchema))
1443
- .optional(),
1444
- }).transform((v) => {
1445
- return remap$(v, {
1446
- "max_iterations": "maxIterations",
1447
- "max_execution_time": "maxExecutionTime",
1448
- "max_cost": "maxCost",
1449
- "tool_approval_required": "toolApprovalRequired",
1450
- });
1451
- });
1452
-
1453
- export function listAgentsSettingsFromJSON(
1454
- jsonString: string,
1455
- ): SafeParseResult<ListAgentsSettings, SDKValidationError> {
1456
- return safeParse(
1457
- jsonString,
1458
- (x) => ListAgentsSettings$inboundSchema.parse(JSON.parse(x)),
1459
- `Failed to parse 'ListAgentsSettings' from JSON`,
1460
- );
1461
- }
1462
-
1463
- /** @internal */
1464
- export const ListAgentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
1465
- ListAgentsResponseFormatJsonSchema,
1466
- z.ZodTypeDef,
1467
- unknown
1468
- > = z.object({
1469
- description: z.string().optional(),
1470
- name: z.string(),
1471
- schema: z.any().optional(),
1472
- strict: z.boolean().default(false),
1473
- });
1474
-
1475
- export function listAgentsResponseFormatJsonSchemaFromJSON(
1476
- jsonString: string,
1477
- ): SafeParseResult<ListAgentsResponseFormatJsonSchema, SDKValidationError> {
1478
- return safeParse(
1479
- jsonString,
1480
- (x) =>
1481
- ListAgentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1482
- `Failed to parse 'ListAgentsResponseFormatJsonSchema' from JSON`,
1483
- );
1484
- }
1485
-
1486
- /** @internal */
1487
- export const ListAgentsResponseFormatAgentsJSONSchema$inboundSchema: z.ZodType<
1488
- ListAgentsResponseFormatAgentsJSONSchema,
1489
- z.ZodTypeDef,
1490
- unknown
1491
- > = z.object({
1492
- type: z.literal("json_schema"),
1493
- json_schema: z.lazy(() => ListAgentsResponseFormatJsonSchema$inboundSchema),
1494
- }).transform((v) => {
1495
- return remap$(v, {
1496
- "json_schema": "jsonSchema",
1497
- });
1498
- });
1499
-
1500
- export function listAgentsResponseFormatAgentsJSONSchemaFromJSON(
1501
- jsonString: string,
1502
- ): SafeParseResult<
1503
- ListAgentsResponseFormatAgentsJSONSchema,
1504
- SDKValidationError
1505
- > {
1506
- return safeParse(
1507
- jsonString,
1508
- (x) =>
1509
- ListAgentsResponseFormatAgentsJSONSchema$inboundSchema.parse(
1510
- JSON.parse(x),
1511
- ),
1512
- `Failed to parse 'ListAgentsResponseFormatAgentsJSONSchema' from JSON`,
1513
- );
1514
- }
1515
-
1516
- /** @internal */
1517
- export const ListAgentsResponseFormatJSONObject$inboundSchema: z.ZodType<
1518
- ListAgentsResponseFormatJSONObject,
1519
- z.ZodTypeDef,
1520
- unknown
1521
- > = z.object({
1522
- type: z.literal("json_object"),
1523
- });
1524
-
1525
- export function listAgentsResponseFormatJSONObjectFromJSON(
1526
- jsonString: string,
1527
- ): SafeParseResult<ListAgentsResponseFormatJSONObject, SDKValidationError> {
1528
- return safeParse(
1529
- jsonString,
1530
- (x) =>
1531
- ListAgentsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)),
1532
- `Failed to parse 'ListAgentsResponseFormatJSONObject' from JSON`,
1533
- );
1534
- }
1535
-
1536
- /** @internal */
1537
- export const ListAgentsResponseFormatText$inboundSchema: z.ZodType<
1538
- ListAgentsResponseFormatText,
1539
- z.ZodTypeDef,
1540
- unknown
1541
- > = z.object({
1542
- type: z.literal("text"),
1543
- });
1544
-
1545
- export function listAgentsResponseFormatTextFromJSON(
1546
- jsonString: string,
1547
- ): SafeParseResult<ListAgentsResponseFormatText, SDKValidationError> {
1548
- return safeParse(
1549
- jsonString,
1550
- (x) => ListAgentsResponseFormatText$inboundSchema.parse(JSON.parse(x)),
1551
- `Failed to parse 'ListAgentsResponseFormatText' from JSON`,
1552
- );
1553
- }
1554
-
1555
- /** @internal */
1556
- export const ListAgentsResponseFormat$inboundSchema: z.ZodType<
1557
- ListAgentsResponseFormat,
1558
- z.ZodTypeDef,
1559
- unknown
1560
- > = z.union([
1561
- z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
1562
- z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
1563
- z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
1564
- ]);
1565
-
1566
- export function listAgentsResponseFormatFromJSON(
1567
- jsonString: string,
1568
- ): SafeParseResult<ListAgentsResponseFormat, SDKValidationError> {
1569
- return safeParse(
1570
- jsonString,
1571
- (x) => ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1572
- `Failed to parse 'ListAgentsResponseFormat' from JSON`,
1573
- );
1574
- }
1575
-
1576
- /** @internal */
1577
- export const ListAgentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1578
- typeof ListAgentsReasoningEffort
1579
- > = z.nativeEnum(ListAgentsReasoningEffort);
1580
-
1581
- /** @internal */
1582
- export const ListAgentsStop$inboundSchema: z.ZodType<
1583
- ListAgentsStop,
1584
- z.ZodTypeDef,
1585
- unknown
1586
- > = z.union([z.string(), z.array(z.string())]);
1587
-
1588
- export function listAgentsStopFromJSON(
1589
- jsonString: string,
1590
- ): SafeParseResult<ListAgentsStop, SDKValidationError> {
1591
- return safeParse(
1592
- jsonString,
1593
- (x) => ListAgentsStop$inboundSchema.parse(JSON.parse(x)),
1594
- `Failed to parse 'ListAgentsStop' from JSON`,
1595
- );
1596
- }
1597
-
1598
- /** @internal */
1599
- export const ListAgentsThinking$inboundSchema: z.ZodType<
1600
- ListAgentsThinking,
1601
- z.ZodTypeDef,
1602
- unknown
1603
- > = z.union([
1604
- components.ThinkingConfigDisabledSchema$inboundSchema,
1605
- components.ThinkingConfigEnabledSchema$inboundSchema,
1606
- components.ThinkingConfigAdaptiveSchema$inboundSchema,
1607
- ]);
1608
-
1609
- export function listAgentsThinkingFromJSON(
1610
- jsonString: string,
1611
- ): SafeParseResult<ListAgentsThinking, SDKValidationError> {
1612
- return safeParse(
1613
- jsonString,
1614
- (x) => ListAgentsThinking$inboundSchema.parse(JSON.parse(x)),
1615
- `Failed to parse 'ListAgentsThinking' from JSON`,
1616
- );
1617
- }
1618
-
1619
- /** @internal */
1620
- export const ListAgentsToolChoiceType$inboundSchema: z.ZodNativeEnum<
1621
- typeof ListAgentsToolChoiceType
1622
- > = z.nativeEnum(ListAgentsToolChoiceType);
1623
-
1624
- /** @internal */
1625
- export const ListAgentsToolChoiceFunction$inboundSchema: z.ZodType<
1626
- ListAgentsToolChoiceFunction,
1627
- z.ZodTypeDef,
1628
- unknown
1629
- > = z.object({
1630
- name: z.string(),
1631
- });
1632
-
1633
- export function listAgentsToolChoiceFunctionFromJSON(
1634
- jsonString: string,
1635
- ): SafeParseResult<ListAgentsToolChoiceFunction, SDKValidationError> {
1636
- return safeParse(
1637
- jsonString,
1638
- (x) => ListAgentsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
1639
- `Failed to parse 'ListAgentsToolChoiceFunction' from JSON`,
1640
- );
1641
- }
1642
-
1643
- /** @internal */
1644
- export const ListAgentsToolChoice2$inboundSchema: z.ZodType<
1645
- ListAgentsToolChoice2,
1646
- z.ZodTypeDef,
1647
- unknown
1648
- > = z.object({
1649
- type: ListAgentsToolChoiceType$inboundSchema.optional(),
1650
- function: z.lazy(() => ListAgentsToolChoiceFunction$inboundSchema),
1651
- });
1652
-
1653
- export function listAgentsToolChoice2FromJSON(
1654
- jsonString: string,
1655
- ): SafeParseResult<ListAgentsToolChoice2, SDKValidationError> {
1656
- return safeParse(
1657
- jsonString,
1658
- (x) => ListAgentsToolChoice2$inboundSchema.parse(JSON.parse(x)),
1659
- `Failed to parse 'ListAgentsToolChoice2' from JSON`,
1660
- );
1661
- }
1662
-
1663
- /** @internal */
1664
- export const ListAgentsToolChoice1$inboundSchema: z.ZodNativeEnum<
1665
- typeof ListAgentsToolChoice1
1666
- > = z.nativeEnum(ListAgentsToolChoice1);
1667
-
1668
- /** @internal */
1669
- export const ListAgentsToolChoice$inboundSchema: z.ZodType<
1670
- ListAgentsToolChoice,
1671
- z.ZodTypeDef,
1672
- unknown
1673
- > = z.union([
1674
- z.lazy(() => ListAgentsToolChoice2$inboundSchema),
1675
- ListAgentsToolChoice1$inboundSchema,
1676
- ]);
1677
-
1678
- export function listAgentsToolChoiceFromJSON(
1679
- jsonString: string,
1680
- ): SafeParseResult<ListAgentsToolChoice, SDKValidationError> {
1681
- return safeParse(
1682
- jsonString,
1683
- (x) => ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)),
1684
- `Failed to parse 'ListAgentsToolChoice' from JSON`,
1685
- );
1686
- }
1687
-
1688
- /** @internal */
1689
- export const ListAgentsModalities$inboundSchema: z.ZodNativeEnum<
1690
- typeof ListAgentsModalities
1691
- > = z.nativeEnum(ListAgentsModalities);
1692
-
1693
- /** @internal */
1694
- export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
1695
- typeof ListAgentsId1
1696
- > = z.nativeEnum(ListAgentsId1);
1697
-
1698
- /** @internal */
1699
- export const ListAgentsId$inboundSchema: z.ZodType<
1700
- ListAgentsId,
1701
- z.ZodTypeDef,
1702
- unknown
1703
- > = z.union([ListAgentsId1$inboundSchema, z.string()]);
1704
-
1705
- export function listAgentsIdFromJSON(
1706
- jsonString: string,
1707
- ): SafeParseResult<ListAgentsId, SDKValidationError> {
1708
- return safeParse(
1709
- jsonString,
1710
- (x) => ListAgentsId$inboundSchema.parse(JSON.parse(x)),
1711
- `Failed to parse 'ListAgentsId' from JSON`,
1712
- );
1713
- }
1714
-
1715
- /** @internal */
1716
- export const ListAgentsAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<
1717
- typeof ListAgentsAgentsResponseExecuteOn
1718
- > = z.nativeEnum(ListAgentsAgentsResponseExecuteOn);
1719
-
1720
- /** @internal */
1721
- export const ListAgentsAgentsGuardrails$inboundSchema: z.ZodType<
1722
- ListAgentsAgentsGuardrails,
1723
- z.ZodTypeDef,
1724
- unknown
1725
- > = z.object({
1726
- id: z.union([ListAgentsId1$inboundSchema, z.string()]),
1727
- execute_on: ListAgentsAgentsResponseExecuteOn$inboundSchema,
1728
- }).transform((v) => {
1729
- return remap$(v, {
1730
- "execute_on": "executeOn",
1731
- });
1732
- });
1733
-
1734
- export function listAgentsAgentsGuardrailsFromJSON(
1735
- jsonString: string,
1736
- ): SafeParseResult<ListAgentsAgentsGuardrails, SDKValidationError> {
1737
- return safeParse(
1738
- jsonString,
1739
- (x) => ListAgentsAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1740
- `Failed to parse 'ListAgentsAgentsGuardrails' from JSON`,
1741
- );
1742
- }
1743
-
1744
- /** @internal */
1745
- export const ListAgentsFallbacks$inboundSchema: z.ZodType<
1746
- ListAgentsFallbacks,
1747
- z.ZodTypeDef,
1748
- unknown
1749
- > = z.object({
1750
- model: z.string(),
1751
- });
1752
-
1753
- export function listAgentsFallbacksFromJSON(
1754
- jsonString: string,
1755
- ): SafeParseResult<ListAgentsFallbacks, SDKValidationError> {
1756
- return safeParse(
1757
- jsonString,
1758
- (x) => ListAgentsFallbacks$inboundSchema.parse(JSON.parse(x)),
1759
- `Failed to parse 'ListAgentsFallbacks' from JSON`,
1760
- );
1761
- }
1762
-
1763
- /** @internal */
1764
- export const ListAgentsAgentsType$inboundSchema: z.ZodNativeEnum<
1765
- typeof ListAgentsAgentsType
1766
- > = z.nativeEnum(ListAgentsAgentsType);
1767
-
1768
- /** @internal */
1769
- export const ListAgentsCache$inboundSchema: z.ZodType<
1770
- ListAgentsCache,
1771
- z.ZodTypeDef,
1772
- unknown
1773
- > = z.object({
1774
- ttl: z.number().default(1800),
1775
- type: ListAgentsAgentsType$inboundSchema,
1776
- });
1777
-
1778
- export function listAgentsCacheFromJSON(
1779
- jsonString: string,
1780
- ): SafeParseResult<ListAgentsCache, SDKValidationError> {
1781
- return safeParse(
1782
- jsonString,
1783
- (x) => ListAgentsCache$inboundSchema.parse(JSON.parse(x)),
1784
- `Failed to parse 'ListAgentsCache' from JSON`,
1785
- );
1786
- }
1787
-
1788
- /** @internal */
1789
- export const ListAgentsLoadBalancerType$inboundSchema: z.ZodNativeEnum<
1790
- typeof ListAgentsLoadBalancerType
1791
- > = z.nativeEnum(ListAgentsLoadBalancerType);
1792
-
1793
- /** @internal */
1794
- export const ListAgentsLoadBalancerModels$inboundSchema: z.ZodType<
1795
- ListAgentsLoadBalancerModels,
1796
- z.ZodTypeDef,
1797
- unknown
1798
- > = z.object({
1799
- model: z.string(),
1800
- weight: z.number().default(0.5),
1801
- });
1802
-
1803
- export function listAgentsLoadBalancerModelsFromJSON(
1804
- jsonString: string,
1805
- ): SafeParseResult<ListAgentsLoadBalancerModels, SDKValidationError> {
1806
- return safeParse(
1807
- jsonString,
1808
- (x) => ListAgentsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)),
1809
- `Failed to parse 'ListAgentsLoadBalancerModels' from JSON`,
1810
- );
1811
- }
1812
-
1813
- /** @internal */
1814
- export const ListAgentsLoadBalancer1$inboundSchema: z.ZodType<
1815
- ListAgentsLoadBalancer1,
1816
- z.ZodTypeDef,
1817
- unknown
1818
- > = z.object({
1819
- type: ListAgentsLoadBalancerType$inboundSchema,
1820
- models: z.array(z.lazy(() => ListAgentsLoadBalancerModels$inboundSchema)),
1821
- });
1822
-
1823
- export function listAgentsLoadBalancer1FromJSON(
1824
- jsonString: string,
1825
- ): SafeParseResult<ListAgentsLoadBalancer1, SDKValidationError> {
1826
- return safeParse(
1827
- jsonString,
1828
- (x) => ListAgentsLoadBalancer1$inboundSchema.parse(JSON.parse(x)),
1829
- `Failed to parse 'ListAgentsLoadBalancer1' from JSON`,
1830
- );
1831
- }
1832
-
1833
- /** @internal */
1834
- export const ListAgentsLoadBalancer$inboundSchema: z.ZodType<
1835
- ListAgentsLoadBalancer,
1836
- z.ZodTypeDef,
1837
- unknown
1838
- > = z.lazy(() => ListAgentsLoadBalancer1$inboundSchema);
1839
-
1840
- export function listAgentsLoadBalancerFromJSON(
1841
- jsonString: string,
1842
- ): SafeParseResult<ListAgentsLoadBalancer, SDKValidationError> {
1843
- return safeParse(
1844
- jsonString,
1845
- (x) => ListAgentsLoadBalancer$inboundSchema.parse(JSON.parse(x)),
1846
- `Failed to parse 'ListAgentsLoadBalancer' from JSON`,
1847
- );
1848
- }
1849
-
1850
- /** @internal */
1851
- export const ListAgentsTimeout$inboundSchema: z.ZodType<
1852
- ListAgentsTimeout,
1853
- z.ZodTypeDef,
1854
- unknown
1855
- > = z.object({
1856
- call_timeout: z.number(),
1857
- }).transform((v) => {
1858
- return remap$(v, {
1859
- "call_timeout": "callTimeout",
1860
- });
1861
- });
1862
-
1863
- export function listAgentsTimeoutFromJSON(
1864
- jsonString: string,
1865
- ): SafeParseResult<ListAgentsTimeout, SDKValidationError> {
1866
- return safeParse(
1867
- jsonString,
1868
- (x) => ListAgentsTimeout$inboundSchema.parse(JSON.parse(x)),
1869
- `Failed to parse 'ListAgentsTimeout' from JSON`,
1870
- );
1871
- }
1872
-
1873
- /** @internal */
1874
- export const ListAgentsParameters$inboundSchema: z.ZodType<
1875
- ListAgentsParameters,
1876
- z.ZodTypeDef,
1877
- unknown
1878
- > = z.object({
1879
- name: z.string().optional(),
1880
- frequency_penalty: z.nullable(z.number()).optional(),
1881
- max_tokens: z.nullable(z.number().int()).optional(),
1882
- max_completion_tokens: z.nullable(z.number().int()).optional(),
1883
- presence_penalty: z.nullable(z.number()).optional(),
1884
- response_format: z.union([
1885
- z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
1886
- z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
1887
- z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
1888
- ]).optional(),
1889
- reasoning_effort: ListAgentsReasoningEffort$inboundSchema.optional(),
1890
- verbosity: z.string().optional(),
1891
- seed: z.nullable(z.number()).optional(),
1892
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1893
- thinking: z.union([
1894
- components.ThinkingConfigDisabledSchema$inboundSchema,
1895
- components.ThinkingConfigEnabledSchema$inboundSchema,
1896
- components.ThinkingConfigAdaptiveSchema$inboundSchema,
1897
- ]).optional(),
1898
- temperature: z.nullable(z.number()).optional(),
1899
- top_p: z.nullable(z.number()).optional(),
1900
- top_k: z.nullable(z.number()).optional(),
1901
- tool_choice: z.union([
1902
- z.lazy(() => ListAgentsToolChoice2$inboundSchema),
1903
- ListAgentsToolChoice1$inboundSchema,
1904
- ]).optional(),
1905
- parallel_tool_calls: z.boolean().optional(),
1906
- modalities: z.nullable(z.array(ListAgentsModalities$inboundSchema))
1907
- .optional(),
1908
- guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$inboundSchema))
1909
- .optional(),
1910
- fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
1911
- .optional(),
1912
- cache: z.lazy(() => ListAgentsCache$inboundSchema).optional(),
1913
- load_balancer: z.lazy(() => ListAgentsLoadBalancer1$inboundSchema).optional(),
1914
- timeout: z.lazy(() => ListAgentsTimeout$inboundSchema).optional(),
1915
- }).transform((v) => {
1916
- return remap$(v, {
1917
- "frequency_penalty": "frequencyPenalty",
1918
- "max_tokens": "maxTokens",
1919
- "max_completion_tokens": "maxCompletionTokens",
1920
- "presence_penalty": "presencePenalty",
1921
- "response_format": "responseFormat",
1922
- "reasoning_effort": "reasoningEffort",
1923
- "top_p": "topP",
1924
- "top_k": "topK",
1925
- "tool_choice": "toolChoice",
1926
- "parallel_tool_calls": "parallelToolCalls",
1927
- "load_balancer": "loadBalancer",
1928
- });
1929
- });
1930
-
1931
- export function listAgentsParametersFromJSON(
1932
- jsonString: string,
1933
- ): SafeParseResult<ListAgentsParameters, SDKValidationError> {
1934
- return safeParse(
1935
- jsonString,
1936
- (x) => ListAgentsParameters$inboundSchema.parse(JSON.parse(x)),
1937
- `Failed to parse 'ListAgentsParameters' from JSON`,
1938
- );
1939
- }
1940
-
1941
- /** @internal */
1942
- export const ListAgentsRetry$inboundSchema: z.ZodType<
1943
- ListAgentsRetry,
1944
- z.ZodTypeDef,
1945
- unknown
1946
- > = z.object({
1947
- count: z.number().default(3),
1948
- on_codes: z.array(z.number()).optional(),
1949
- }).transform((v) => {
1950
- return remap$(v, {
1951
- "on_codes": "onCodes",
1952
- });
1953
- });
1954
-
1955
- export function listAgentsRetryFromJSON(
1956
- jsonString: string,
1957
- ): SafeParseResult<ListAgentsRetry, SDKValidationError> {
1958
- return safeParse(
1959
- jsonString,
1960
- (x) => ListAgentsRetry$inboundSchema.parse(JSON.parse(x)),
1961
- `Failed to parse 'ListAgentsRetry' from JSON`,
1962
- );
1963
- }
1964
-
1965
- /** @internal */
1966
- export const ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema:
1967
- z.ZodType<
1968
- ListAgentsResponseFormatAgentsResponseJsonSchema,
1969
- z.ZodTypeDef,
1970
- unknown
1971
- > = z.object({
1972
- description: z.string().optional(),
1973
- name: z.string(),
1974
- schema: z.any().optional(),
1975
- strict: z.boolean().default(false),
1976
- });
1977
-
1978
- export function listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON(
1979
- jsonString: string,
1980
- ): SafeParseResult<
1981
- ListAgentsResponseFormatAgentsResponseJsonSchema,
1982
- SDKValidationError
1983
- > {
1984
- return safeParse(
1985
- jsonString,
1986
- (x) =>
1987
- ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema.parse(
1988
- JSON.parse(x),
1989
- ),
1990
- `Failed to parse 'ListAgentsResponseFormatAgentsResponseJsonSchema' from JSON`,
1991
- );
1992
- }
1993
-
1994
- /** @internal */
1995
- export const ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema:
1996
- z.ZodType<
1997
- ListAgentsResponseFormatAgentsResponse200JSONSchema,
1998
- z.ZodTypeDef,
1999
- unknown
2000
- > = z.object({
2001
- type: z.literal("json_schema"),
2002
- json_schema: z.lazy(() =>
2003
- ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema
2004
- ),
2005
- }).transform((v) => {
2006
- return remap$(v, {
2007
- "json_schema": "jsonSchema",
2008
- });
2009
- });
2010
-
2011
- export function listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON(
2012
- jsonString: string,
2013
- ): SafeParseResult<
2014
- ListAgentsResponseFormatAgentsResponse200JSONSchema,
2015
- SDKValidationError
2016
- > {
2017
- return safeParse(
2018
- jsonString,
2019
- (x) =>
2020
- ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema.parse(
2021
- JSON.parse(x),
2022
- ),
2023
- `Failed to parse 'ListAgentsResponseFormatAgentsResponse200JSONSchema' from JSON`,
2024
- );
2025
- }
2026
-
2027
- /** @internal */
2028
- export const ListAgentsResponseFormatAgentsJSONObject$inboundSchema: z.ZodType<
2029
- ListAgentsResponseFormatAgentsJSONObject,
2030
- z.ZodTypeDef,
2031
- unknown
2032
- > = z.object({
2033
- type: z.literal("json_object"),
2034
- });
2035
-
2036
- export function listAgentsResponseFormatAgentsJSONObjectFromJSON(
2037
- jsonString: string,
2038
- ): SafeParseResult<
2039
- ListAgentsResponseFormatAgentsJSONObject,
2040
- SDKValidationError
2041
- > {
2042
- return safeParse(
2043
- jsonString,
2044
- (x) =>
2045
- ListAgentsResponseFormatAgentsJSONObject$inboundSchema.parse(
2046
- JSON.parse(x),
2047
- ),
2048
- `Failed to parse 'ListAgentsResponseFormatAgentsJSONObject' from JSON`,
2049
- );
2050
- }
2051
-
2052
- /** @internal */
2053
- export const ListAgentsResponseFormatAgentsText$inboundSchema: z.ZodType<
2054
- ListAgentsResponseFormatAgentsText,
2055
- z.ZodTypeDef,
2056
- unknown
2057
- > = z.object({
2058
- type: z.literal("text"),
2059
- });
2060
-
2061
- export function listAgentsResponseFormatAgentsTextFromJSON(
2062
- jsonString: string,
2063
- ): SafeParseResult<ListAgentsResponseFormatAgentsText, SDKValidationError> {
2064
- return safeParse(
2065
- jsonString,
2066
- (x) =>
2067
- ListAgentsResponseFormatAgentsText$inboundSchema.parse(JSON.parse(x)),
2068
- `Failed to parse 'ListAgentsResponseFormatAgentsText' from JSON`,
2069
- );
2070
- }
2071
-
2072
- /** @internal */
2073
- export const ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema:
2074
- z.ZodType<
2075
- ListAgentsFallbackModelConfigurationResponseFormat,
2076
- z.ZodTypeDef,
2077
- unknown
2078
- > = z.union([
2079
- z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
2080
- z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
2081
- z.lazy(() =>
2082
- ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
2083
- ),
2084
- ]);
2085
-
2086
- export function listAgentsFallbackModelConfigurationResponseFormatFromJSON(
2087
- jsonString: string,
2088
- ): SafeParseResult<
2089
- ListAgentsFallbackModelConfigurationResponseFormat,
2090
- SDKValidationError
2091
- > {
2092
- return safeParse(
2093
- jsonString,
2094
- (x) =>
2095
- ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema.parse(
2096
- JSON.parse(x),
2097
- ),
2098
- `Failed to parse 'ListAgentsFallbackModelConfigurationResponseFormat' from JSON`,
2099
- );
2100
- }
2101
-
2102
- /** @internal */
2103
- export const ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema:
2104
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationReasoningEffort> =
2105
- z.nativeEnum(ListAgentsFallbackModelConfigurationReasoningEffort);
2106
-
2107
- /** @internal */
2108
- export const ListAgentsFallbackModelConfigurationStop$inboundSchema: z.ZodType<
2109
- ListAgentsFallbackModelConfigurationStop,
2110
- z.ZodTypeDef,
2111
- unknown
2112
- > = z.union([z.string(), z.array(z.string())]);
2113
-
2114
- export function listAgentsFallbackModelConfigurationStopFromJSON(
2115
- jsonString: string,
2116
- ): SafeParseResult<
2117
- ListAgentsFallbackModelConfigurationStop,
2118
- SDKValidationError
2119
- > {
2120
- return safeParse(
2121
- jsonString,
2122
- (x) =>
2123
- ListAgentsFallbackModelConfigurationStop$inboundSchema.parse(
2124
- JSON.parse(x),
2125
- ),
2126
- `Failed to parse 'ListAgentsFallbackModelConfigurationStop' from JSON`,
2127
- );
2128
- }
2129
-
2130
- /** @internal */
2131
- export const ListAgentsFallbackModelConfigurationThinking$inboundSchema:
2132
- z.ZodType<
2133
- ListAgentsFallbackModelConfigurationThinking,
2134
- z.ZodTypeDef,
2135
- unknown
2136
- > = z.union([
2137
- components.ThinkingConfigDisabledSchema$inboundSchema,
2138
- components.ThinkingConfigEnabledSchema$inboundSchema,
2139
- components.ThinkingConfigAdaptiveSchema$inboundSchema,
2140
- ]);
2141
-
2142
- export function listAgentsFallbackModelConfigurationThinkingFromJSON(
2143
- jsonString: string,
2144
- ): SafeParseResult<
2145
- ListAgentsFallbackModelConfigurationThinking,
2146
- SDKValidationError
2147
- > {
2148
- return safeParse(
2149
- jsonString,
2150
- (x) =>
2151
- ListAgentsFallbackModelConfigurationThinking$inboundSchema.parse(
2152
- JSON.parse(x),
2153
- ),
2154
- `Failed to parse 'ListAgentsFallbackModelConfigurationThinking' from JSON`,
2155
- );
2156
- }
2157
-
2158
- /** @internal */
2159
- export const ListAgentsToolChoiceAgentsType$inboundSchema: z.ZodNativeEnum<
2160
- typeof ListAgentsToolChoiceAgentsType
2161
- > = z.nativeEnum(ListAgentsToolChoiceAgentsType);
2162
-
2163
- /** @internal */
2164
- export const ListAgentsToolChoiceAgentsFunction$inboundSchema: z.ZodType<
2165
- ListAgentsToolChoiceAgentsFunction,
2166
- z.ZodTypeDef,
2167
- unknown
2168
- > = z.object({
2169
- name: z.string(),
2170
- });
2171
-
2172
- export function listAgentsToolChoiceAgentsFunctionFromJSON(
2173
- jsonString: string,
2174
- ): SafeParseResult<ListAgentsToolChoiceAgentsFunction, SDKValidationError> {
2175
- return safeParse(
2176
- jsonString,
2177
- (x) =>
2178
- ListAgentsToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)),
2179
- `Failed to parse 'ListAgentsToolChoiceAgentsFunction' from JSON`,
2180
- );
2181
- }
2182
-
2183
- /** @internal */
2184
- export const ListAgentsToolChoiceAgents2$inboundSchema: z.ZodType<
2185
- ListAgentsToolChoiceAgents2,
2186
- z.ZodTypeDef,
2187
- unknown
2188
- > = z.object({
2189
- type: ListAgentsToolChoiceAgentsType$inboundSchema.optional(),
2190
- function: z.lazy(() => ListAgentsToolChoiceAgentsFunction$inboundSchema),
2191
- });
2192
-
2193
- export function listAgentsToolChoiceAgents2FromJSON(
2194
- jsonString: string,
2195
- ): SafeParseResult<ListAgentsToolChoiceAgents2, SDKValidationError> {
2196
- return safeParse(
2197
- jsonString,
2198
- (x) => ListAgentsToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)),
2199
- `Failed to parse 'ListAgentsToolChoiceAgents2' from JSON`,
2200
- );
2201
- }
2202
-
2203
- /** @internal */
2204
- export const ListAgentsToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
2205
- typeof ListAgentsToolChoiceAgents1
2206
- > = z.nativeEnum(ListAgentsToolChoiceAgents1);
2207
-
2208
- /** @internal */
2209
- export const ListAgentsFallbackModelConfigurationToolChoice$inboundSchema:
2210
- z.ZodType<
2211
- ListAgentsFallbackModelConfigurationToolChoice,
2212
- z.ZodTypeDef,
2213
- unknown
2214
- > = z.union([
2215
- z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
2216
- ListAgentsToolChoiceAgents1$inboundSchema,
2217
- ]);
2218
-
2219
- export function listAgentsFallbackModelConfigurationToolChoiceFromJSON(
2220
- jsonString: string,
2221
- ): SafeParseResult<
2222
- ListAgentsFallbackModelConfigurationToolChoice,
2223
- SDKValidationError
2224
- > {
2225
- return safeParse(
2226
- jsonString,
2227
- (x) =>
2228
- ListAgentsFallbackModelConfigurationToolChoice$inboundSchema.parse(
2229
- JSON.parse(x),
2230
- ),
2231
- `Failed to parse 'ListAgentsFallbackModelConfigurationToolChoice' from JSON`,
2232
- );
2233
- }
2234
-
2235
- /** @internal */
2236
- export const ListAgentsFallbackModelConfigurationModalities$inboundSchema:
2237
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationModalities> = z
2238
- .nativeEnum(ListAgentsFallbackModelConfigurationModalities);
2239
-
2240
- /** @internal */
2241
- export const ListAgentsIdAgents1$inboundSchema: z.ZodNativeEnum<
2242
- typeof ListAgentsIdAgents1
2243
- > = z.nativeEnum(ListAgentsIdAgents1);
2244
-
2245
- /** @internal */
2246
- export const ListAgentsFallbackModelConfigurationId$inboundSchema: z.ZodType<
2247
- ListAgentsFallbackModelConfigurationId,
2248
- z.ZodTypeDef,
2249
- unknown
2250
- > = z.union([ListAgentsIdAgents1$inboundSchema, z.string()]);
2251
-
2252
- export function listAgentsFallbackModelConfigurationIdFromJSON(
2253
- jsonString: string,
2254
- ): SafeParseResult<ListAgentsFallbackModelConfigurationId, SDKValidationError> {
2255
- return safeParse(
2256
- jsonString,
2257
- (x) =>
2258
- ListAgentsFallbackModelConfigurationId$inboundSchema.parse(JSON.parse(x)),
2259
- `Failed to parse 'ListAgentsFallbackModelConfigurationId' from JSON`,
2260
- );
2261
- }
2262
-
2263
- /** @internal */
2264
- export const ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema:
2265
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationExecuteOn> = z
2266
- .nativeEnum(ListAgentsFallbackModelConfigurationExecuteOn);
2267
-
2268
- /** @internal */
2269
- export const ListAgentsFallbackModelConfigurationGuardrails$inboundSchema:
2270
- z.ZodType<
2271
- ListAgentsFallbackModelConfigurationGuardrails,
2272
- z.ZodTypeDef,
2273
- unknown
2274
- > = z.object({
2275
- id: z.union([ListAgentsIdAgents1$inboundSchema, z.string()]),
2276
- execute_on: ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema,
2277
- }).transform((v) => {
2278
- return remap$(v, {
2279
- "execute_on": "executeOn",
2280
- });
2281
- });
2282
-
2283
- export function listAgentsFallbackModelConfigurationGuardrailsFromJSON(
2284
- jsonString: string,
2285
- ): SafeParseResult<
2286
- ListAgentsFallbackModelConfigurationGuardrails,
2287
- SDKValidationError
2288
- > {
2289
- return safeParse(
2290
- jsonString,
2291
- (x) =>
2292
- ListAgentsFallbackModelConfigurationGuardrails$inboundSchema.parse(
2293
- JSON.parse(x),
2294
- ),
2295
- `Failed to parse 'ListAgentsFallbackModelConfigurationGuardrails' from JSON`,
2296
- );
2297
- }
2298
-
2299
- /** @internal */
2300
- export const ListAgentsFallbackModelConfigurationFallbacks$inboundSchema:
2301
- z.ZodType<
2302
- ListAgentsFallbackModelConfigurationFallbacks,
2303
- z.ZodTypeDef,
2304
- unknown
2305
- > = z.object({
2306
- model: z.string(),
2307
- });
2308
-
2309
- export function listAgentsFallbackModelConfigurationFallbacksFromJSON(
2310
- jsonString: string,
2311
- ): SafeParseResult<
2312
- ListAgentsFallbackModelConfigurationFallbacks,
2313
- SDKValidationError
2314
- > {
2315
- return safeParse(
2316
- jsonString,
2317
- (x) =>
2318
- ListAgentsFallbackModelConfigurationFallbacks$inboundSchema.parse(
2319
- JSON.parse(x),
2320
- ),
2321
- `Failed to parse 'ListAgentsFallbackModelConfigurationFallbacks' from JSON`,
2322
- );
2323
- }
2324
-
2325
- /** @internal */
2326
- export const ListAgentsFallbackModelConfigurationType$inboundSchema:
2327
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationType> = z
2328
- .nativeEnum(ListAgentsFallbackModelConfigurationType);
2329
-
2330
- /** @internal */
2331
- export const ListAgentsFallbackModelConfigurationCache$inboundSchema: z.ZodType<
2332
- ListAgentsFallbackModelConfigurationCache,
2333
- z.ZodTypeDef,
2334
- unknown
2335
- > = z.object({
2336
- ttl: z.number().default(1800),
2337
- type: ListAgentsFallbackModelConfigurationType$inboundSchema,
2338
- });
2339
-
2340
- export function listAgentsFallbackModelConfigurationCacheFromJSON(
2341
- jsonString: string,
2342
- ): SafeParseResult<
2343
- ListAgentsFallbackModelConfigurationCache,
2344
- SDKValidationError
2345
- > {
2346
- return safeParse(
2347
- jsonString,
2348
- (x) =>
2349
- ListAgentsFallbackModelConfigurationCache$inboundSchema.parse(
2350
- JSON.parse(x),
2351
- ),
2352
- `Failed to parse 'ListAgentsFallbackModelConfigurationCache' from JSON`,
2353
- );
2354
- }
2355
-
2356
- /** @internal */
2357
- export const ListAgentsLoadBalancerAgentsType$inboundSchema: z.ZodNativeEnum<
2358
- typeof ListAgentsLoadBalancerAgentsType
2359
- > = z.nativeEnum(ListAgentsLoadBalancerAgentsType);
2360
-
2361
- /** @internal */
2362
- export const ListAgentsLoadBalancerAgentsModels$inboundSchema: z.ZodType<
2363
- ListAgentsLoadBalancerAgentsModels,
2364
- z.ZodTypeDef,
2365
- unknown
2366
- > = z.object({
2367
- model: z.string(),
2368
- weight: z.number().default(0.5),
2369
- });
2370
-
2371
- export function listAgentsLoadBalancerAgentsModelsFromJSON(
2372
- jsonString: string,
2373
- ): SafeParseResult<ListAgentsLoadBalancerAgentsModels, SDKValidationError> {
2374
- return safeParse(
2375
- jsonString,
2376
- (x) =>
2377
- ListAgentsLoadBalancerAgentsModels$inboundSchema.parse(JSON.parse(x)),
2378
- `Failed to parse 'ListAgentsLoadBalancerAgentsModels' from JSON`,
2379
- );
2380
- }
2381
-
2382
- /** @internal */
2383
- export const ListAgentsLoadBalancerAgents1$inboundSchema: z.ZodType<
2384
- ListAgentsLoadBalancerAgents1,
2385
- z.ZodTypeDef,
2386
- unknown
2387
- > = z.object({
2388
- type: ListAgentsLoadBalancerAgentsType$inboundSchema,
2389
- models: z.array(
2390
- z.lazy(() => ListAgentsLoadBalancerAgentsModels$inboundSchema),
2391
- ),
2392
- });
2393
-
2394
- export function listAgentsLoadBalancerAgents1FromJSON(
2395
- jsonString: string,
2396
- ): SafeParseResult<ListAgentsLoadBalancerAgents1, SDKValidationError> {
2397
- return safeParse(
2398
- jsonString,
2399
- (x) => ListAgentsLoadBalancerAgents1$inboundSchema.parse(JSON.parse(x)),
2400
- `Failed to parse 'ListAgentsLoadBalancerAgents1' from JSON`,
2401
- );
2402
- }
2403
-
2404
- /** @internal */
2405
- export const ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema:
2406
- z.ZodType<
2407
- ListAgentsFallbackModelConfigurationLoadBalancer,
2408
- z.ZodTypeDef,
2409
- unknown
2410
- > = z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema);
2411
-
2412
- export function listAgentsFallbackModelConfigurationLoadBalancerFromJSON(
2413
- jsonString: string,
2414
- ): SafeParseResult<
2415
- ListAgentsFallbackModelConfigurationLoadBalancer,
2416
- SDKValidationError
2417
- > {
2418
- return safeParse(
2419
- jsonString,
2420
- (x) =>
2421
- ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema.parse(
2422
- JSON.parse(x),
2423
- ),
2424
- `Failed to parse 'ListAgentsFallbackModelConfigurationLoadBalancer' from JSON`,
2425
- );
2426
- }
2427
-
2428
- /** @internal */
2429
- export const ListAgentsFallbackModelConfigurationTimeout$inboundSchema:
2430
- z.ZodType<
2431
- ListAgentsFallbackModelConfigurationTimeout,
2432
- z.ZodTypeDef,
2433
- unknown
2434
- > = z.object({
2435
- call_timeout: z.number(),
2436
- }).transform((v) => {
2437
- return remap$(v, {
2438
- "call_timeout": "callTimeout",
2439
- });
2440
- });
2441
-
2442
- export function listAgentsFallbackModelConfigurationTimeoutFromJSON(
2443
- jsonString: string,
2444
- ): SafeParseResult<
2445
- ListAgentsFallbackModelConfigurationTimeout,
2446
- SDKValidationError
2447
- > {
2448
- return safeParse(
2449
- jsonString,
2450
- (x) =>
2451
- ListAgentsFallbackModelConfigurationTimeout$inboundSchema.parse(
2452
- JSON.parse(x),
2453
- ),
2454
- `Failed to parse 'ListAgentsFallbackModelConfigurationTimeout' from JSON`,
2455
- );
2456
- }
2457
-
2458
- /** @internal */
2459
- export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2460
- z.ZodType<
2461
- ListAgentsFallbackModelConfigurationParameters,
2462
- z.ZodTypeDef,
2463
- unknown
2464
- > = z.object({
2465
- name: z.string().optional(),
2466
- frequency_penalty: z.nullable(z.number()).optional(),
2467
- max_tokens: z.nullable(z.number().int()).optional(),
2468
- max_completion_tokens: z.nullable(z.number().int()).optional(),
2469
- presence_penalty: z.nullable(z.number()).optional(),
2470
- response_format: z.union([
2471
- z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
2472
- z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
2473
- z.lazy(() =>
2474
- ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
2475
- ),
2476
- ]).optional(),
2477
- reasoning_effort:
2478
- ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema
2479
- .optional(),
2480
- verbosity: z.string().optional(),
2481
- seed: z.nullable(z.number()).optional(),
2482
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2483
- thinking: z.union([
2484
- components.ThinkingConfigDisabledSchema$inboundSchema,
2485
- components.ThinkingConfigEnabledSchema$inboundSchema,
2486
- components.ThinkingConfigAdaptiveSchema$inboundSchema,
2487
- ]).optional(),
2488
- temperature: z.nullable(z.number()).optional(),
2489
- top_p: z.nullable(z.number()).optional(),
2490
- top_k: z.nullable(z.number()).optional(),
2491
- tool_choice: z.union([
2492
- z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
2493
- ListAgentsToolChoiceAgents1$inboundSchema,
2494
- ]).optional(),
2495
- parallel_tool_calls: z.boolean().optional(),
2496
- modalities: z.nullable(
2497
- z.array(ListAgentsFallbackModelConfigurationModalities$inboundSchema),
2498
- ).optional(),
2499
- guardrails: z.array(
2500
- z.lazy(() =>
2501
- ListAgentsFallbackModelConfigurationGuardrails$inboundSchema
2502
- ),
2503
- ).optional(),
2504
- fallbacks: z.array(
2505
- z.lazy(() => ListAgentsFallbackModelConfigurationFallbacks$inboundSchema),
2506
- ).optional(),
2507
- cache: z.lazy(() => ListAgentsFallbackModelConfigurationCache$inboundSchema)
2508
- .optional(),
2509
- load_balancer: z.lazy(() => ListAgentsLoadBalancerAgents1$inboundSchema)
2510
- .optional(),
2511
- timeout: z.lazy(() =>
2512
- ListAgentsFallbackModelConfigurationTimeout$inboundSchema
2513
- ).optional(),
2514
- }).transform((v) => {
2515
- return remap$(v, {
2516
- "frequency_penalty": "frequencyPenalty",
2517
- "max_tokens": "maxTokens",
2518
- "max_completion_tokens": "maxCompletionTokens",
2519
- "presence_penalty": "presencePenalty",
2520
- "response_format": "responseFormat",
2521
- "reasoning_effort": "reasoningEffort",
2522
- "top_p": "topP",
2523
- "top_k": "topK",
2524
- "tool_choice": "toolChoice",
2525
- "parallel_tool_calls": "parallelToolCalls",
2526
- "load_balancer": "loadBalancer",
2527
- });
2528
- });
2529
-
2530
- export function listAgentsFallbackModelConfigurationParametersFromJSON(
2531
- jsonString: string,
2532
- ): SafeParseResult<
2533
- ListAgentsFallbackModelConfigurationParameters,
2534
- SDKValidationError
2535
- > {
2536
- return safeParse(
2537
- jsonString,
2538
- (x) =>
2539
- ListAgentsFallbackModelConfigurationParameters$inboundSchema.parse(
2540
- JSON.parse(x),
2541
- ),
2542
- `Failed to parse 'ListAgentsFallbackModelConfigurationParameters' from JSON`,
2543
- );
2544
- }
2545
-
2546
- /** @internal */
2547
- export const ListAgentsFallbackModelConfigurationRetry$inboundSchema: z.ZodType<
2548
- ListAgentsFallbackModelConfigurationRetry,
2549
- z.ZodTypeDef,
2550
- unknown
2551
- > = z.object({
2552
- count: z.number().default(3),
2553
- on_codes: z.array(z.number()).optional(),
2554
- }).transform((v) => {
2555
- return remap$(v, {
2556
- "on_codes": "onCodes",
2557
- });
2558
- });
2559
-
2560
- export function listAgentsFallbackModelConfigurationRetryFromJSON(
2561
- jsonString: string,
2562
- ): SafeParseResult<
2563
- ListAgentsFallbackModelConfigurationRetry,
2564
- SDKValidationError
2565
- > {
2566
- return safeParse(
2567
- jsonString,
2568
- (x) =>
2569
- ListAgentsFallbackModelConfigurationRetry$inboundSchema.parse(
2570
- JSON.parse(x),
2571
- ),
2572
- `Failed to parse 'ListAgentsFallbackModelConfigurationRetry' from JSON`,
2573
- );
2574
- }
2575
-
2576
- /** @internal */
2577
- export const ListAgentsFallbackModelConfiguration2$inboundSchema: z.ZodType<
2578
- ListAgentsFallbackModelConfiguration2,
2579
- z.ZodTypeDef,
2580
- unknown
2581
- > = z.object({
2582
- id: z.string(),
2583
- parameters: z.lazy(() =>
2584
- ListAgentsFallbackModelConfigurationParameters$inboundSchema
2585
- ).optional(),
2586
- retry: z.lazy(() => ListAgentsFallbackModelConfigurationRetry$inboundSchema)
2587
- .optional(),
2588
- });
2589
-
2590
- export function listAgentsFallbackModelConfiguration2FromJSON(
2591
- jsonString: string,
2592
- ): SafeParseResult<ListAgentsFallbackModelConfiguration2, SDKValidationError> {
2593
- return safeParse(
2594
- jsonString,
2595
- (x) =>
2596
- ListAgentsFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)),
2597
- `Failed to parse 'ListAgentsFallbackModelConfiguration2' from JSON`,
2598
- );
2599
- }
2600
-
2601
- /** @internal */
2602
- export const ListAgentsFallbackModelConfiguration$inboundSchema: z.ZodType<
2603
- ListAgentsFallbackModelConfiguration,
2604
- z.ZodTypeDef,
2605
- unknown
2606
- > = z.union([
2607
- z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
2608
- z.string(),
2609
- ]);
2610
-
2611
- export function listAgentsFallbackModelConfigurationFromJSON(
2612
- jsonString: string,
2613
- ): SafeParseResult<ListAgentsFallbackModelConfiguration, SDKValidationError> {
2614
- return safeParse(
2615
- jsonString,
2616
- (x) =>
2617
- ListAgentsFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
2618
- `Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`,
2619
- );
2620
- }
2621
-
2622
- /** @internal */
2623
- export const ListAgentsModel$inboundSchema: z.ZodType<
2624
- ListAgentsModel,
2625
- z.ZodTypeDef,
2626
- unknown
2627
- > = z.object({
2628
- id: z.string(),
2629
- integration_id: z.nullable(z.string()).optional(),
2630
- parameters: z.lazy(() => ListAgentsParameters$inboundSchema).optional(),
2631
- retry: z.lazy(() => ListAgentsRetry$inboundSchema).optional(),
2632
- fallback_models: z.nullable(
2633
- z.array(z.union([
2634
- z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
2635
- z.string(),
2636
- ])),
2637
- ).optional(),
2638
- }).transform((v) => {
2639
- return remap$(v, {
2640
- "integration_id": "integrationId",
2641
- "fallback_models": "fallbackModels",
2642
- });
2643
- });
2644
-
2645
- export function listAgentsModelFromJSON(
2646
- jsonString: string,
2647
- ): SafeParseResult<ListAgentsModel, SDKValidationError> {
2648
- return safeParse(
2649
- jsonString,
2650
- (x) => ListAgentsModel$inboundSchema.parse(JSON.parse(x)),
2651
- `Failed to parse 'ListAgentsModel' from JSON`,
2652
- );
2653
- }
2654
-
2655
- /** @internal */
2656
- export const ListAgentsHeaders$inboundSchema: z.ZodType<
2657
- ListAgentsHeaders,
2658
- z.ZodTypeDef,
2659
- unknown
2660
- > = z.object({
2661
- value: z.string(),
2662
- encrypted: z.boolean().default(false),
2663
- });
2664
-
2665
- export function listAgentsHeadersFromJSON(
2666
- jsonString: string,
2667
- ): SafeParseResult<ListAgentsHeaders, SDKValidationError> {
2668
- return safeParse(
2669
- jsonString,
2670
- (x) => ListAgentsHeaders$inboundSchema.parse(JSON.parse(x)),
2671
- `Failed to parse 'ListAgentsHeaders' from JSON`,
2672
- );
2673
- }
2674
-
2675
- /** @internal */
2676
- export const ListAgentsA2AAgentConfiguration$inboundSchema: z.ZodType<
2677
- ListAgentsA2AAgentConfiguration,
2678
- z.ZodTypeDef,
2679
- unknown
2680
- > = z.object({
2681
- agent_url: z.string(),
2682
- card_url: z.string().optional(),
2683
- headers: z.record(z.lazy(() => ListAgentsHeaders$inboundSchema)).optional(),
2684
- cached_card: z.any().optional(),
2685
- }).transform((v) => {
2686
- return remap$(v, {
2687
- "agent_url": "agentUrl",
2688
- "card_url": "cardUrl",
2689
- "cached_card": "cachedCard",
2690
- });
2691
- });
2692
-
2693
- export function listAgentsA2AAgentConfigurationFromJSON(
2694
- jsonString: string,
2695
- ): SafeParseResult<ListAgentsA2AAgentConfiguration, SDKValidationError> {
2696
- return safeParse(
2697
- jsonString,
2698
- (x) => ListAgentsA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)),
2699
- `Failed to parse 'ListAgentsA2AAgentConfiguration' from JSON`,
2700
- );
2701
- }
2702
-
2703
- /** @internal */
2704
- export const ListAgentsData$inboundSchema: z.ZodType<
2705
- ListAgentsData,
2706
- z.ZodTypeDef,
2707
- unknown
2708
- > = z.object({
2709
- _id: z.string(),
2710
- key: z.string(),
2711
- display_name: z.string().optional(),
2712
- created_by_id: z.nullable(z.string()).optional(),
2713
- updated_by_id: z.nullable(z.string()).optional(),
2714
- created: z.string().optional(),
2715
- updated: z.string().optional(),
2716
- status: ListAgentsStatus$inboundSchema,
2717
- version: z.string().optional(),
2718
- path: z.string(),
2719
- memory_stores: z.array(z.string()).optional(),
2720
- team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema))
2721
- .optional(),
2722
- skills: z.array(z.string()),
2723
- metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
2724
- variables: z.record(z.any()).optional(),
2725
- knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
2726
- .optional(),
2727
- source: ListAgentsSource$inboundSchema.optional(),
2728
- engine: ListAgentsEngine$inboundSchema.default("text"),
2729
- type: ListAgentsType$inboundSchema.default("internal"),
2730
- role: z.string(),
2731
- description: z.string(),
2732
- system_prompt: z.nullable(z.string()).optional(),
2733
- instructions: z.string(),
2734
- settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
2735
- model: z.lazy(() => ListAgentsModel$inboundSchema),
2736
- a2a: z.lazy(() => ListAgentsA2AAgentConfiguration$inboundSchema).optional(),
2737
- }).transform((v) => {
2738
- return remap$(v, {
2739
- "_id": "id",
2740
- "display_name": "displayName",
2741
- "created_by_id": "createdById",
2742
- "updated_by_id": "updatedById",
2743
- "memory_stores": "memoryStores",
2744
- "team_of_agents": "teamOfAgents",
2745
- "knowledge_bases": "knowledgeBases",
2746
- "system_prompt": "systemPrompt",
2747
- });
2748
- });
2749
-
2750
- export function listAgentsDataFromJSON(
2751
- jsonString: string,
2752
- ): SafeParseResult<ListAgentsData, SDKValidationError> {
2753
- return safeParse(
2754
- jsonString,
2755
- (x) => ListAgentsData$inboundSchema.parse(JSON.parse(x)),
2756
- `Failed to parse 'ListAgentsData' from JSON`,
2757
- );
2758
- }
2759
-
2760
- /** @internal */
2761
- export const ListAgentsResponseBody$inboundSchema: z.ZodType<
2762
- ListAgentsResponseBody,
2763
- z.ZodTypeDef,
2764
- unknown
2765
- > = z.object({
2766
- object: ListAgentsObject$inboundSchema,
2767
- data: z.array(z.lazy(() => ListAgentsData$inboundSchema)),
2768
- has_more: z.boolean(),
2769
- }).transform((v) => {
2770
- return remap$(v, {
2771
- "has_more": "hasMore",
2772
- });
2773
- });
2774
-
2775
- export function listAgentsResponseBodyFromJSON(
2776
- jsonString: string,
2777
- ): SafeParseResult<ListAgentsResponseBody, SDKValidationError> {
2778
- return safeParse(
2779
- jsonString,
2780
- (x) => ListAgentsResponseBody$inboundSchema.parse(JSON.parse(x)),
2781
- `Failed to parse 'ListAgentsResponseBody' from JSON`,
2782
- );
2783
- }