@orq-ai/node 4.7.3 → 4.8.0-rc.1

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