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

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