@orq-ai/node 4.1.4 → 4.2.0-rc.10

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 (559) hide show
  1. package/README.md +18 -0
  2. package/bin/mcp-server.js +835 -380
  3. package/bin/mcp-server.js.map +61 -58
  4. package/examples/package-lock.json +4 -7
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/config.js.map +1 -1
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/mcp-server.js.map +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/mcp-server/server.js.map +1 -1
  13. package/models/components/conversationresponse.js +2 -2
  14. package/models/components/invokedeploymentrequest.d.ts +1 -1
  15. package/models/components/partdoneevent.js +2 -2
  16. package/models/components/reasoningpart.js +2 -2
  17. package/models/operations/createcontact.js +2 -2
  18. package/models/operations/createconversation.js +2 -2
  19. package/models/operations/createdataset.js +2 -2
  20. package/models/operations/createdatasetitem.js +8 -8
  21. package/models/operations/createdatasource.js +2 -2
  22. package/models/operations/createeval.js +28 -28
  23. package/models/operations/createtool.js +12 -12
  24. package/models/operations/deploymentgetconfig.d.ts +1 -1
  25. package/models/operations/deploymentstream.d.ts +1 -1
  26. package/models/operations/fileget.js +2 -2
  27. package/models/operations/filelist.js +2 -2
  28. package/models/operations/fileupload.js +2 -2
  29. package/models/operations/generateconversationname.js +2 -2
  30. package/models/operations/getalltools.js +12 -12
  31. package/models/operations/getevals.js +28 -28
  32. package/models/operations/listcontacts.js +2 -2
  33. package/models/operations/listdatasetdatapoints.js +8 -8
  34. package/models/operations/listdatasets.js +2 -2
  35. package/models/operations/listdatasources.js +2 -2
  36. package/models/operations/retrievecontact.js +2 -2
  37. package/models/operations/retrieveconversation.js +2 -2
  38. package/models/operations/retrievedatapoint.js +8 -8
  39. package/models/operations/retrievedataset.js +2 -2
  40. package/models/operations/retrievedatasource.js +2 -2
  41. package/models/operations/retrievetool.js +12 -12
  42. package/models/operations/runagent.js +2 -2
  43. package/models/operations/streamrunagent.js +2 -2
  44. package/models/operations/updatecontact.js +2 -2
  45. package/models/operations/updateconversation.js +2 -2
  46. package/models/operations/updatedatapoint.js +8 -8
  47. package/models/operations/updatedataset.js +2 -2
  48. package/models/operations/updatedatasource.js +2 -2
  49. package/models/operations/updateeval.js +28 -28
  50. package/models/operations/updatetool.js +14 -14
  51. package/package.json +4 -3
  52. package/src/lib/config.ts +3 -3
  53. package/src/mcp-server/mcp-server.ts +1 -1
  54. package/src/mcp-server/server.ts +1 -1
  55. package/src/models/components/conversationresponse.ts +2 -2
  56. package/src/models/components/invokedeploymentrequest.ts +1 -1
  57. package/src/models/components/partdoneevent.ts +2 -2
  58. package/src/models/components/reasoningpart.ts +2 -2
  59. package/src/models/operations/createcontact.ts +2 -2
  60. package/src/models/operations/createconversation.ts +2 -2
  61. package/src/models/operations/createdataset.ts +2 -2
  62. package/src/models/operations/createdatasetitem.ts +8 -8
  63. package/src/models/operations/createdatasource.ts +2 -2
  64. package/src/models/operations/createeval.ts +28 -28
  65. package/src/models/operations/createtool.ts +12 -12
  66. package/src/models/operations/deploymentgetconfig.ts +1 -1
  67. package/src/models/operations/deploymentstream.ts +1 -1
  68. package/src/models/operations/fileget.ts +2 -2
  69. package/src/models/operations/filelist.ts +2 -2
  70. package/src/models/operations/fileupload.ts +2 -2
  71. package/src/models/operations/generateconversationname.ts +2 -2
  72. package/src/models/operations/getalltools.ts +12 -12
  73. package/src/models/operations/getevals.ts +28 -28
  74. package/src/models/operations/listcontacts.ts +2 -2
  75. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  76. package/src/models/operations/listdatasets.ts +2 -2
  77. package/src/models/operations/listdatasources.ts +2 -2
  78. package/src/models/operations/retrievecontact.ts +2 -2
  79. package/src/models/operations/retrieveconversation.ts +2 -2
  80. package/src/models/operations/retrievedatapoint.ts +8 -8
  81. package/src/models/operations/retrievedataset.ts +2 -2
  82. package/src/models/operations/retrievedatasource.ts +2 -2
  83. package/src/models/operations/retrievetool.ts +12 -12
  84. package/src/models/operations/runagent.ts +2 -2
  85. package/src/models/operations/streamrunagent.ts +2 -2
  86. package/src/models/operations/updatecontact.ts +2 -2
  87. package/src/models/operations/updateconversation.ts +2 -2
  88. package/src/models/operations/updatedatapoint.ts +8 -8
  89. package/src/models/operations/updatedataset.ts +2 -2
  90. package/src/models/operations/updatedatasource.ts +2 -2
  91. package/src/models/operations/updateeval.ts +28 -28
  92. package/src/models/operations/updatetool.ts +14 -14
  93. package/_speakeasy/.github/action-inputs-config.json +0 -53
  94. package/_speakeasy/.github/action-security-config.json +0 -88
  95. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  96. package/packages/orq-rc/examples/package-lock.json +0 -619
  97. package/packages/orq-rc/examples/package.json +0 -18
  98. package/packages/orq-rc/jsr.json +0 -28
  99. package/packages/orq-rc/package-lock.json +0 -3552
  100. package/packages/orq-rc/package.json +0 -40
  101. package/packages/orq-rc/src/core.ts +0 -13
  102. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -170
  103. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  104. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  105. package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
  106. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
  107. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  108. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
  109. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
  110. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
  111. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  112. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  113. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  114. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  115. package/packages/orq-rc/src/funcs/contactsList.ts +0 -170
  116. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  117. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  118. package/packages/orq-rc/src/funcs/conversationsCreate.ts +0 -161
  119. package/packages/orq-rc/src/funcs/conversationsDelete.ts +0 -180
  120. package/packages/orq-rc/src/funcs/conversationsGenerateName.ts +0 -194
  121. package/packages/orq-rc/src/funcs/conversationsList.ts +0 -181
  122. package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +0 -180
  123. package/packages/orq-rc/src/funcs/conversationsUpdate.ts +0 -184
  124. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  125. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  126. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  127. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  128. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  129. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  130. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  131. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  132. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  133. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  134. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  135. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  136. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  137. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  138. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  139. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  140. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  141. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  142. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  143. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
  144. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  145. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
  146. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -190
  147. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  148. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  149. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  150. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  151. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  152. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  153. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  154. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  155. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  156. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  157. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  158. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  159. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  160. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  161. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  162. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  163. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  164. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  165. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  166. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  167. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  168. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  169. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  170. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  171. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  172. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
  173. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  174. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  175. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
  176. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
  177. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  178. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -183
  179. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
  180. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  181. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
  182. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
  183. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  184. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
  185. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
  186. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  187. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  188. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  189. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  190. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  191. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  192. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  193. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  194. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  195. package/packages/orq-rc/src/funcs/routerChatCompletions.ts +0 -172
  196. package/packages/orq-rc/src/funcs/routerImagesGenerate.ts +0 -160
  197. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
  198. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  199. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
  200. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
  201. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  202. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  203. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  204. package/packages/orq-rc/src/hooks/global.ts +0 -44
  205. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  206. package/packages/orq-rc/src/hooks/index.ts +0 -6
  207. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  208. package/packages/orq-rc/src/hooks/types.ts +0 -112
  209. package/packages/orq-rc/src/index.ts +0 -9
  210. package/packages/orq-rc/src/lib/base64.ts +0 -37
  211. package/packages/orq-rc/src/lib/config.ts +0 -74
  212. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  213. package/packages/orq-rc/src/lib/encodings.ts +0 -497
  214. package/packages/orq-rc/src/lib/env.ts +0 -89
  215. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  216. package/packages/orq-rc/src/lib/files.ts +0 -82
  217. package/packages/orq-rc/src/lib/http.ts +0 -323
  218. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  219. package/packages/orq-rc/src/lib/logger.ts +0 -9
  220. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  221. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  222. package/packages/orq-rc/src/lib/retries.ts +0 -218
  223. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  224. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  225. package/packages/orq-rc/src/lib/security.ts +0 -264
  226. package/packages/orq-rc/src/lib/url.ts +0 -33
  227. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
  228. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  229. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  230. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  231. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  232. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  233. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -121
  234. package/packages/orq-rc/src/mcp-server/resources.ts +0 -176
  235. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  236. package/packages/orq-rc/src/mcp-server/server.ts +0 -267
  237. package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
  238. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
  239. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
  240. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
  241. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
  242. package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -40
  243. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
  245. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
  246. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
  247. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -40
  248. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  249. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  250. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  251. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  252. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  253. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  254. package/packages/orq-rc/src/mcp-server/tools/conversationsCreate.ts +0 -37
  255. package/packages/orq-rc/src/mcp-server/tools/conversationsDelete.ts +0 -35
  256. package/packages/orq-rc/src/mcp-server/tools/conversationsGenerateName.ts +0 -40
  257. package/packages/orq-rc/src/mcp-server/tools/conversationsList.ts +0 -41
  258. package/packages/orq-rc/src/mcp-server/tools/conversationsRetrieve.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/conversationsUpdate.ts +0 -40
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  277. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  278. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +0 -35
  280. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  281. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -39
  282. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -40
  283. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  284. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  285. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  286. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  287. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  308. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  309. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  310. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  311. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  312. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  313. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
  314. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  316. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  317. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  318. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  320. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
  321. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
  322. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  323. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  324. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  325. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  326. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  327. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  328. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  329. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  330. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  331. package/packages/orq-rc/src/mcp-server/tools/routerChatCompletions.ts +0 -37
  332. package/packages/orq-rc/src/mcp-server/tools/routerImagesGenerate.ts +0 -37
  333. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
  334. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
  335. package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersions.ts +0 -37
  336. package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -39
  337. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
  338. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  339. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
  340. package/packages/orq-rc/src/mcp-server/tools.ts +0 -133
  341. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -173
  342. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -309
  343. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -125
  344. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -150
  345. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -125
  346. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -801
  347. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -305
  348. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -185
  349. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -822
  350. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -1399
  351. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  352. package/packages/orq-rc/src/models/components/conversationresponse.ts +0 -194
  353. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -340
  354. package/packages/orq-rc/src/models/components/datapart.ts +0 -58
  355. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -112
  356. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -125
  357. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -105
  358. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -113
  359. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  360. package/packages/orq-rc/src/models/components/filepart.ts +0 -218
  361. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  362. package/packages/orq-rc/src/models/components/index.ts +0 -55
  363. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -5271
  364. package/packages/orq-rc/src/models/components/partdelta.ts +0 -80
  365. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -120
  366. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -216
  367. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -99
  368. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -90
  369. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  370. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  371. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  372. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -526
  373. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -118
  374. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -124
  375. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -148
  376. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -27
  377. package/packages/orq-rc/src/models/components/security.ts +0 -56
  378. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  379. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  380. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  381. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
  382. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -108
  383. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -83
  384. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -121
  385. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -392
  386. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -360
  387. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -336
  388. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -123
  389. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  390. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -130
  391. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -141
  392. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -132
  393. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  394. package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
  395. package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
  396. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
  397. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
  398. package/packages/orq-rc/src/models/errors/deleteconversation.ts +0 -67
  399. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
  400. package/packages/orq-rc/src/models/errors/generateconversationname.ts +0 -132
  401. package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
  402. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
  403. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -67
  404. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversionsversionid.ts +0 -69
  405. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -67
  406. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -69
  407. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
  408. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  409. package/packages/orq-rc/src/models/errors/index.ts +0 -35
  410. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -128
  411. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  412. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  413. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
  414. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
  415. package/packages/orq-rc/src/models/errors/retrieveconversation.ts +0 -67
  416. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  417. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
  418. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
  419. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
  420. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
  421. package/packages/orq-rc/src/models/errors/updateconversation.ts +0 -67
  422. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
  423. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
  424. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
  425. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
  426. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8610
  427. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -770
  428. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -8948
  429. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
  430. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
  431. package/packages/orq-rc/src/models/operations/createconversation.ts +0 -314
  432. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
  433. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -4044
  434. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -662
  435. package/packages/orq-rc/src/models/operations/createeval.ts +0 -5397
  436. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
  437. package/packages/orq-rc/src/models/operations/createimage.ts +0 -966
  438. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
  439. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -241
  440. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -245
  441. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
  442. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5320
  443. package/packages/orq-rc/src/models/operations/createtool.ts +0 -3791
  444. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
  445. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
  446. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
  447. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
  448. package/packages/orq-rc/src/models/operations/deleteconversation.ts +0 -63
  449. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
  450. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
  451. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
  452. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
  453. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
  454. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
  455. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
  456. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
  457. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
  458. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
  459. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -3596
  460. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -7042
  461. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1136
  462. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2005
  463. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -7134
  464. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
  465. package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
  466. package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
  467. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
  468. package/packages/orq-rc/src/models/operations/generateconversationname.ts +0 -319
  469. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -280
  470. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -305
  471. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
  472. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -1991
  473. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2214
  474. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
  475. package/packages/orq-rc/src/models/operations/getevals.ts +0 -4268
  476. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
  477. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
  478. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1875
  479. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1892
  480. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -274
  481. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversionsversionid.ts +0 -193
  482. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -276
  483. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -194
  484. package/packages/orq-rc/src/models/operations/index.ts +0 -106
  485. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -957
  486. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1878
  487. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3811
  488. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
  489. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
  490. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -420
  491. package/packages/orq-rc/src/models/operations/listconversations.ts +0 -151
  492. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -2486
  493. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
  494. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
  495. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1048
  496. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
  497. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -1989
  498. package/packages/orq-rc/src/models/operations/parse.ts +0 -945
  499. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
  500. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3956
  501. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
  502. package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -262
  503. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2334
  504. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
  505. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
  506. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -183
  507. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -192
  508. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
  509. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2262
  510. package/packages/orq-rc/src/models/operations/runagent.ts +0 -6502
  511. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
  512. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -838
  513. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -6833
  514. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -9054
  515. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
  516. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
  517. package/packages/orq-rc/src/models/operations/updateconversation.ts +0 -377
  518. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -4058
  519. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
  520. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
  521. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -5776
  522. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
  523. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -250
  524. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -254
  525. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -375
  526. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5618
  527. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4114
  528. package/packages/orq-rc/src/sdk/agents.ts +0 -196
  529. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  530. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  531. package/packages/orq-rc/src/sdk/conversations.ts +0 -125
  532. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  533. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  534. package/packages/orq-rc/src/sdk/evals.ts +0 -84
  535. package/packages/orq-rc/src/sdk/evaluators.ts +0 -45
  536. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  537. package/packages/orq-rc/src/sdk/files.ts +0 -78
  538. package/packages/orq-rc/src/sdk/index.ts +0 -5
  539. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  540. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  541. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  542. package/packages/orq-rc/src/sdk/models.ts +0 -25
  543. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  544. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  545. package/packages/orq-rc/src/sdk/responses.ts +0 -34
  546. package/packages/orq-rc/src/sdk/router.ts +0 -52
  547. package/packages/orq-rc/src/sdk/sdk.ts +0 -109
  548. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  549. package/packages/orq-rc/src/types/async.ts +0 -68
  550. package/packages/orq-rc/src/types/blobs.ts +0 -32
  551. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  552. package/packages/orq-rc/src/types/enums.ts +0 -45
  553. package/packages/orq-rc/src/types/fp.ts +0 -50
  554. package/packages/orq-rc/src/types/index.ts +0 -11
  555. package/packages/orq-rc/src/types/operations.ts +0 -105
  556. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  557. package/packages/orq-rc/src/types/streams.ts +0 -21
  558. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
  559. package/packages/orq-rc/tsconfig.json +0 -40
@@ -1,3811 +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 ListAgentsRequest = {
14
- /**
15
- * A limit on the number of objects to be returned. Limit can range between 1 and 200. When not provided, returns all agents without pagination.
16
- */
17
- limit?: number | undefined;
18
- /**
19
- * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
20
- */
21
- startingAfter?: string | undefined;
22
- /**
23
- * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
24
- */
25
- endingBefore?: string | undefined;
26
- };
27
-
28
- export const ListAgentsObject = {
29
- List: "list",
30
- } as const;
31
- export type ListAgentsObject = ClosedEnum<typeof ListAgentsObject>;
32
-
33
- /**
34
- * 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.
35
- */
36
- export const ListAgentsStatus = {
37
- Live: "live",
38
- Draft: "draft",
39
- Pending: "pending",
40
- Published: "published",
41
- } as const;
42
- /**
43
- * 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.
44
- */
45
- export type ListAgentsStatus = ClosedEnum<typeof ListAgentsStatus>;
46
-
47
- /**
48
- * 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.
49
- */
50
- export const ListAgentsToolApprovalRequired = {
51
- All: "all",
52
- RespectTool: "respect_tool",
53
- None: "none",
54
- } as const;
55
- /**
56
- * 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.
57
- */
58
- export type ListAgentsToolApprovalRequired = ClosedEnum<
59
- typeof ListAgentsToolApprovalRequired
60
- >;
61
-
62
- export type ListAgentsConditions = {
63
- /**
64
- * The argument of the tool call to evaluate
65
- */
66
- condition: string;
67
- /**
68
- * The operator to use
69
- */
70
- operator: string;
71
- /**
72
- * The value to compare against
73
- */
74
- value: string;
75
- };
76
-
77
- export type ListAgentsTools = {
78
- /**
79
- * The id of the resource
80
- */
81
- id: string;
82
- /**
83
- * Optional tool key for custom tools
84
- */
85
- key?: string | undefined;
86
- actionType: string;
87
- displayName?: string | undefined;
88
- /**
89
- * Optional tool description
90
- */
91
- description?: string | undefined;
92
- requiresApproval?: boolean | undefined;
93
- /**
94
- * Nested tool ID for MCP tools (identifies specific tool within MCP server)
95
- */
96
- toolId?: string | undefined;
97
- conditions?: Array<ListAgentsConditions> | undefined;
98
- /**
99
- * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
100
- */
101
- timeout?: number | undefined;
102
- };
103
-
104
- /**
105
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
106
- */
107
- export const ListAgentsExecuteOn = {
108
- Input: "input",
109
- Output: "output",
110
- } as const;
111
- /**
112
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
113
- */
114
- export type ListAgentsExecuteOn = ClosedEnum<typeof ListAgentsExecuteOn>;
115
-
116
- export type ListAgentsEvaluators = {
117
- /**
118
- * Unique key or identifier of the evaluator
119
- */
120
- id: string;
121
- /**
122
- * 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.
123
- */
124
- sampleRate?: number | undefined;
125
- /**
126
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
127
- */
128
- executeOn: ListAgentsExecuteOn;
129
- };
130
-
131
- /**
132
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
133
- */
134
- export const ListAgentsAgentsExecuteOn = {
135
- Input: "input",
136
- Output: "output",
137
- } as const;
138
- /**
139
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
140
- */
141
- export type ListAgentsAgentsExecuteOn = ClosedEnum<
142
- typeof ListAgentsAgentsExecuteOn
143
- >;
144
-
145
- export type ListAgentsGuardrails = {
146
- /**
147
- * Unique key or identifier of the evaluator
148
- */
149
- id: string;
150
- /**
151
- * 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.
152
- */
153
- sampleRate?: number | undefined;
154
- /**
155
- * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
156
- */
157
- executeOn: ListAgentsAgentsExecuteOn;
158
- };
159
-
160
- export type ListAgentsSettings = {
161
- /**
162
- * Maximum iterations(llm calls) before the agent will stop executing.
163
- */
164
- maxIterations?: number | undefined;
165
- /**
166
- * 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.
167
- */
168
- maxExecutionTime?: number | undefined;
169
- /**
170
- * 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.
171
- */
172
- toolApprovalRequired?: ListAgentsToolApprovalRequired | undefined;
173
- tools?: Array<ListAgentsTools> | undefined;
174
- /**
175
- * Configuration for an evaluator applied to the agent
176
- */
177
- evaluators?: Array<ListAgentsEvaluators> | undefined;
178
- /**
179
- * Configuration for a guardrail applied to the agent
180
- */
181
- guardrails?: Array<ListAgentsGuardrails> | undefined;
182
- };
183
-
184
- /**
185
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
186
- */
187
- export const ListAgentsVoice = {
188
- Alloy: "alloy",
189
- Echo: "echo",
190
- Fable: "fable",
191
- Onyx: "onyx",
192
- Nova: "nova",
193
- Shimmer: "shimmer",
194
- } as const;
195
- /**
196
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
197
- */
198
- export type ListAgentsVoice = ClosedEnum<typeof ListAgentsVoice>;
199
-
200
- /**
201
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
202
- */
203
- export const ListAgentsFormat = {
204
- Wav: "wav",
205
- Mp3: "mp3",
206
- Flac: "flac",
207
- Opus: "opus",
208
- Pcm16: "pcm16",
209
- } as const;
210
- /**
211
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
212
- */
213
- export type ListAgentsFormat = ClosedEnum<typeof ListAgentsFormat>;
214
-
215
- /**
216
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
217
- */
218
- export type ListAgentsAudio = {
219
- /**
220
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
221
- */
222
- voice: ListAgentsVoice;
223
- /**
224
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
225
- */
226
- format: ListAgentsFormat;
227
- };
228
-
229
- export type ListAgentsResponseFormatJsonSchema = {
230
- /**
231
- * A description of what the response format is for, used by the model to determine how to respond in the format.
232
- */
233
- description?: string | undefined;
234
- /**
235
- * 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.
236
- */
237
- name: string;
238
- /**
239
- * The schema for the response format, described as a JSON Schema object.
240
- */
241
- schema?: any | undefined;
242
- /**
243
- * 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.
244
- */
245
- strict?: boolean | undefined;
246
- };
247
-
248
- /**
249
- * @remarks
250
- *
251
- * JSON Schema response format. Used to generate structured JSON responses
252
- */
253
- export type ListAgentsResponseFormatAgentsJSONSchema = {
254
- type: "json_schema";
255
- jsonSchema: ListAgentsResponseFormatJsonSchema;
256
- };
257
-
258
- /**
259
- * @remarks
260
- *
261
- * 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.
262
- */
263
- export type ListAgentsResponseFormatJSONObject = {
264
- type: "json_object";
265
- };
266
-
267
- /**
268
- * @remarks
269
- *
270
- * Default response format. Used to generate text responses
271
- */
272
- export type ListAgentsResponseFormatText = {
273
- type: "text";
274
- };
275
-
276
- /**
277
- * An object specifying the format that the model must output
278
- */
279
- export type ListAgentsResponseFormat =
280
- | ListAgentsResponseFormatText
281
- | ListAgentsResponseFormatJSONObject
282
- | ListAgentsResponseFormatAgentsJSONSchema;
283
-
284
- /**
285
- * 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.
286
- *
287
- * @remarks
288
- *
289
- * - `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.
290
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
291
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
292
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
293
- *
294
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
295
- */
296
- export const ListAgentsReasoningEffort = {
297
- None: "none",
298
- Minimal: "minimal",
299
- Low: "low",
300
- Medium: "medium",
301
- High: "high",
302
- Xhigh: "xhigh",
303
- } as const;
304
- /**
305
- * 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.
306
- *
307
- * @remarks
308
- *
309
- * - `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.
310
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
311
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
312
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
313
- *
314
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
315
- */
316
- export type ListAgentsReasoningEffort = ClosedEnum<
317
- typeof ListAgentsReasoningEffort
318
- >;
319
-
320
- /**
321
- * Up to 4 sequences where the API will stop generating further tokens.
322
- */
323
- export type ListAgentsStop = string | Array<string>;
324
-
325
- /**
326
- * Options for streaming response. Only set this when you set stream: true.
327
- */
328
- export type ListAgentsStreamOptions = {
329
- /**
330
- * If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
331
- */
332
- includeUsage?: boolean | undefined;
333
- };
334
-
335
- export type ListAgentsThinking =
336
- | components.ThinkingConfigDisabledSchema
337
- | components.ThinkingConfigEnabledSchema;
338
-
339
- /**
340
- * The type of the tool. Currently, only function is supported.
341
- */
342
- export const ListAgentsToolChoiceType = {
343
- Function: "function",
344
- } as const;
345
- /**
346
- * The type of the tool. Currently, only function is supported.
347
- */
348
- export type ListAgentsToolChoiceType = ClosedEnum<
349
- typeof ListAgentsToolChoiceType
350
- >;
351
-
352
- export type ListAgentsToolChoiceFunction = {
353
- /**
354
- * The name of the function to call.
355
- */
356
- name: string;
357
- };
358
-
359
- export type ListAgentsToolChoice2 = {
360
- /**
361
- * The type of the tool. Currently, only function is supported.
362
- */
363
- type?: ListAgentsToolChoiceType | undefined;
364
- function: ListAgentsToolChoiceFunction;
365
- };
366
-
367
- export const ListAgentsToolChoice1 = {
368
- None: "none",
369
- Auto: "auto",
370
- Required: "required",
371
- } as const;
372
- export type ListAgentsToolChoice1 = ClosedEnum<typeof ListAgentsToolChoice1>;
373
-
374
- /**
375
- * Controls which (if any) tool is called by the model.
376
- */
377
- export type ListAgentsToolChoice =
378
- | ListAgentsToolChoice2
379
- | ListAgentsToolChoice1;
380
-
381
- export const ListAgentsModalities = {
382
- Text: "text",
383
- Audio: "audio",
384
- } as const;
385
- export type ListAgentsModalities = ClosedEnum<typeof ListAgentsModalities>;
386
-
387
- /**
388
- * The key of the guardrail.
389
- */
390
- export const ListAgentsId1 = {
391
- OrqPiiDetection: "orq_pii_detection",
392
- OrqSexualModeration: "orq_sexual_moderation",
393
- OrqHarmfulModeration: "orq_harmful_moderation",
394
- } as const;
395
- /**
396
- * The key of the guardrail.
397
- */
398
- export type ListAgentsId1 = ClosedEnum<typeof ListAgentsId1>;
399
-
400
- export type ListAgentsId = ListAgentsId1 | string;
401
-
402
- /**
403
- * Determines whether the guardrail runs on the input (user message) or output (model response).
404
- */
405
- export const ListAgentsAgentsResponseExecuteOn = {
406
- Input: "input",
407
- Output: "output",
408
- } as const;
409
- /**
410
- * Determines whether the guardrail runs on the input (user message) or output (model response).
411
- */
412
- export type ListAgentsAgentsResponseExecuteOn = ClosedEnum<
413
- typeof ListAgentsAgentsResponseExecuteOn
414
- >;
415
-
416
- export type ListAgentsAgentsGuardrails = {
417
- id: ListAgentsId1 | string;
418
- /**
419
- * Determines whether the guardrail runs on the input (user message) or output (model response).
420
- */
421
- executeOn: ListAgentsAgentsResponseExecuteOn;
422
- };
423
-
424
- /**
425
- * 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.
426
- */
427
- export type ListAgentsParameters = {
428
- /**
429
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
430
- */
431
- audio?: ListAgentsAudio | null | undefined;
432
- /**
433
- * 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.
434
- */
435
- frequencyPenalty?: number | null | undefined;
436
- /**
437
- * `[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.
438
- *
439
- * @remarks
440
- *
441
- * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
442
- */
443
- maxTokens?: number | null | undefined;
444
- /**
445
- * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
446
- */
447
- maxCompletionTokens?: number | null | undefined;
448
- /**
449
- * Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
450
- */
451
- logprobs?: boolean | null | undefined;
452
- /**
453
- * An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
454
- */
455
- topLogprobs?: number | null | undefined;
456
- /**
457
- * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
458
- */
459
- n?: number | null | undefined;
460
- /**
461
- * 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.
462
- */
463
- presencePenalty?: number | null | undefined;
464
- /**
465
- * An object specifying the format that the model must output
466
- */
467
- responseFormat?:
468
- | ListAgentsResponseFormatText
469
- | ListAgentsResponseFormatJSONObject
470
- | ListAgentsResponseFormatAgentsJSONSchema
471
- | undefined;
472
- /**
473
- * 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.
474
- *
475
- * @remarks
476
- *
477
- * - `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.
478
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
479
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
480
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
481
- *
482
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
483
- */
484
- reasoningEffort?: ListAgentsReasoningEffort | undefined;
485
- /**
486
- * Adjusts response verbosity. Lower levels yield shorter answers.
487
- */
488
- verbosity?: string | undefined;
489
- /**
490
- * 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.
491
- */
492
- seed?: number | null | undefined;
493
- /**
494
- * Up to 4 sequences where the API will stop generating further tokens.
495
- */
496
- stop?: string | Array<string> | null | undefined;
497
- /**
498
- * Options for streaming response. Only set this when you set stream: true.
499
- */
500
- streamOptions?: ListAgentsStreamOptions | null | undefined;
501
- thinking?:
502
- | components.ThinkingConfigDisabledSchema
503
- | components.ThinkingConfigEnabledSchema
504
- | undefined;
505
- /**
506
- * 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.
507
- */
508
- temperature?: number | null | undefined;
509
- /**
510
- * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
511
- */
512
- topP?: number | null | undefined;
513
- /**
514
- * Limits the model to consider only the top k most likely tokens at each step.
515
- */
516
- topK?: number | null | undefined;
517
- /**
518
- * Controls which (if any) tool is called by the model.
519
- */
520
- toolChoice?: ListAgentsToolChoice2 | ListAgentsToolChoice1 | undefined;
521
- /**
522
- * Whether to enable parallel function calling during tool use.
523
- */
524
- parallelToolCalls?: boolean | undefined;
525
- /**
526
- * 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"].
527
- */
528
- modalities?: Array<ListAgentsModalities> | null | undefined;
529
- /**
530
- * A list of guardrails to apply to the request.
531
- */
532
- guardrails?: Array<ListAgentsAgentsGuardrails> | undefined;
533
- };
534
-
535
- /**
536
- * 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).
537
- */
538
- export type ListAgentsRetry = {
539
- /**
540
- * Number of retry attempts (1-5)
541
- */
542
- count?: number | undefined;
543
- /**
544
- * HTTP status codes that trigger retry logic
545
- */
546
- onCodes?: Array<number> | undefined;
547
- };
548
-
549
- /**
550
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
551
- */
552
- export const ListAgentsFallbackModelConfigurationVoice = {
553
- Alloy: "alloy",
554
- Echo: "echo",
555
- Fable: "fable",
556
- Onyx: "onyx",
557
- Nova: "nova",
558
- Shimmer: "shimmer",
559
- } as const;
560
- /**
561
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
562
- */
563
- export type ListAgentsFallbackModelConfigurationVoice = ClosedEnum<
564
- typeof ListAgentsFallbackModelConfigurationVoice
565
- >;
566
-
567
- /**
568
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
569
- */
570
- export const ListAgentsFallbackModelConfigurationFormat = {
571
- Wav: "wav",
572
- Mp3: "mp3",
573
- Flac: "flac",
574
- Opus: "opus",
575
- Pcm16: "pcm16",
576
- } as const;
577
- /**
578
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
579
- */
580
- export type ListAgentsFallbackModelConfigurationFormat = ClosedEnum<
581
- typeof ListAgentsFallbackModelConfigurationFormat
582
- >;
583
-
584
- /**
585
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
586
- */
587
- export type ListAgentsFallbackModelConfigurationAudio = {
588
- /**
589
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
590
- */
591
- voice: ListAgentsFallbackModelConfigurationVoice;
592
- /**
593
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
594
- */
595
- format: ListAgentsFallbackModelConfigurationFormat;
596
- };
597
-
598
- export type ListAgentsResponseFormatAgentsResponseJsonSchema = {
599
- /**
600
- * A description of what the response format is for, used by the model to determine how to respond in the format.
601
- */
602
- description?: string | undefined;
603
- /**
604
- * 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.
605
- */
606
- name: string;
607
- /**
608
- * The schema for the response format, described as a JSON Schema object.
609
- */
610
- schema?: any | undefined;
611
- /**
612
- * 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.
613
- */
614
- strict?: boolean | undefined;
615
- };
616
-
617
- /**
618
- * @remarks
619
- *
620
- * JSON Schema response format. Used to generate structured JSON responses
621
- */
622
- export type ListAgentsResponseFormatAgentsResponse200JSONSchema = {
623
- type: "json_schema";
624
- jsonSchema: ListAgentsResponseFormatAgentsResponseJsonSchema;
625
- };
626
-
627
- /**
628
- * @remarks
629
- *
630
- * 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.
631
- */
632
- export type ListAgentsResponseFormatAgentsJSONObject = {
633
- type: "json_object";
634
- };
635
-
636
- /**
637
- * @remarks
638
- *
639
- * Default response format. Used to generate text responses
640
- */
641
- export type ListAgentsResponseFormatAgentsText = {
642
- type: "text";
643
- };
644
-
645
- /**
646
- * An object specifying the format that the model must output
647
- */
648
- export type ListAgentsFallbackModelConfigurationResponseFormat =
649
- | ListAgentsResponseFormatAgentsText
650
- | ListAgentsResponseFormatAgentsJSONObject
651
- | ListAgentsResponseFormatAgentsResponse200JSONSchema;
652
-
653
- /**
654
- * 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.
655
- *
656
- * @remarks
657
- *
658
- * - `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.
659
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
660
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
661
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
662
- *
663
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
664
- */
665
- export const ListAgentsFallbackModelConfigurationReasoningEffort = {
666
- None: "none",
667
- Minimal: "minimal",
668
- Low: "low",
669
- Medium: "medium",
670
- High: "high",
671
- Xhigh: "xhigh",
672
- } as const;
673
- /**
674
- * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
675
- *
676
- * @remarks
677
- *
678
- * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
679
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
680
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
681
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
682
- *
683
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
684
- */
685
- export type ListAgentsFallbackModelConfigurationReasoningEffort = ClosedEnum<
686
- typeof ListAgentsFallbackModelConfigurationReasoningEffort
687
- >;
688
-
689
- /**
690
- * Up to 4 sequences where the API will stop generating further tokens.
691
- */
692
- export type ListAgentsFallbackModelConfigurationStop = string | Array<string>;
693
-
694
- /**
695
- * Options for streaming response. Only set this when you set stream: true.
696
- */
697
- export type ListAgentsFallbackModelConfigurationStreamOptions = {
698
- /**
699
- * If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
700
- */
701
- includeUsage?: boolean | undefined;
702
- };
703
-
704
- export type ListAgentsFallbackModelConfigurationThinking =
705
- | components.ThinkingConfigDisabledSchema
706
- | components.ThinkingConfigEnabledSchema;
707
-
708
- /**
709
- * The type of the tool. Currently, only function is supported.
710
- */
711
- export const ListAgentsToolChoiceAgentsType = {
712
- Function: "function",
713
- } as const;
714
- /**
715
- * The type of the tool. Currently, only function is supported.
716
- */
717
- export type ListAgentsToolChoiceAgentsType = ClosedEnum<
718
- typeof ListAgentsToolChoiceAgentsType
719
- >;
720
-
721
- export type ListAgentsToolChoiceAgentsFunction = {
722
- /**
723
- * The name of the function to call.
724
- */
725
- name: string;
726
- };
727
-
728
- export type ListAgentsToolChoiceAgents2 = {
729
- /**
730
- * The type of the tool. Currently, only function is supported.
731
- */
732
- type?: ListAgentsToolChoiceAgentsType | undefined;
733
- function: ListAgentsToolChoiceAgentsFunction;
734
- };
735
-
736
- export const ListAgentsToolChoiceAgents1 = {
737
- None: "none",
738
- Auto: "auto",
739
- Required: "required",
740
- } as const;
741
- export type ListAgentsToolChoiceAgents1 = ClosedEnum<
742
- typeof ListAgentsToolChoiceAgents1
743
- >;
744
-
745
- /**
746
- * Controls which (if any) tool is called by the model.
747
- */
748
- export type ListAgentsFallbackModelConfigurationToolChoice =
749
- | ListAgentsToolChoiceAgents2
750
- | ListAgentsToolChoiceAgents1;
751
-
752
- export const ListAgentsFallbackModelConfigurationModalities = {
753
- Text: "text",
754
- Audio: "audio",
755
- } as const;
756
- export type ListAgentsFallbackModelConfigurationModalities = ClosedEnum<
757
- typeof ListAgentsFallbackModelConfigurationModalities
758
- >;
759
-
760
- /**
761
- * The key of the guardrail.
762
- */
763
- export const ListAgentsIdAgents1 = {
764
- OrqPiiDetection: "orq_pii_detection",
765
- OrqSexualModeration: "orq_sexual_moderation",
766
- OrqHarmfulModeration: "orq_harmful_moderation",
767
- } as const;
768
- /**
769
- * The key of the guardrail.
770
- */
771
- export type ListAgentsIdAgents1 = ClosedEnum<typeof ListAgentsIdAgents1>;
772
-
773
- export type ListAgentsFallbackModelConfigurationId =
774
- | ListAgentsIdAgents1
775
- | string;
776
-
777
- /**
778
- * Determines whether the guardrail runs on the input (user message) or output (model response).
779
- */
780
- export const ListAgentsFallbackModelConfigurationExecuteOn = {
781
- Input: "input",
782
- Output: "output",
783
- } as const;
784
- /**
785
- * Determines whether the guardrail runs on the input (user message) or output (model response).
786
- */
787
- export type ListAgentsFallbackModelConfigurationExecuteOn = ClosedEnum<
788
- typeof ListAgentsFallbackModelConfigurationExecuteOn
789
- >;
790
-
791
- export type ListAgentsFallbackModelConfigurationGuardrails = {
792
- id: ListAgentsIdAgents1 | string;
793
- /**
794
- * Determines whether the guardrail runs on the input (user message) or output (model response).
795
- */
796
- executeOn: ListAgentsFallbackModelConfigurationExecuteOn;
797
- };
798
-
799
- /**
800
- * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
801
- */
802
- export type ListAgentsFallbackModelConfigurationParameters = {
803
- /**
804
- * Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
805
- */
806
- audio?: ListAgentsFallbackModelConfigurationAudio | null | undefined;
807
- /**
808
- * 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.
809
- */
810
- frequencyPenalty?: number | null | undefined;
811
- /**
812
- * `[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.
813
- *
814
- * @remarks
815
- *
816
- * This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
817
- */
818
- maxTokens?: number | null | undefined;
819
- /**
820
- * An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
821
- */
822
- maxCompletionTokens?: number | null | undefined;
823
- /**
824
- * Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
825
- */
826
- logprobs?: boolean | null | undefined;
827
- /**
828
- * An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
829
- */
830
- topLogprobs?: number | null | undefined;
831
- /**
832
- * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
833
- */
834
- n?: number | null | undefined;
835
- /**
836
- * 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.
837
- */
838
- presencePenalty?: number | null | undefined;
839
- /**
840
- * An object specifying the format that the model must output
841
- */
842
- responseFormat?:
843
- | ListAgentsResponseFormatAgentsText
844
- | ListAgentsResponseFormatAgentsJSONObject
845
- | ListAgentsResponseFormatAgentsResponse200JSONSchema
846
- | undefined;
847
- /**
848
- * 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.
849
- *
850
- * @remarks
851
- *
852
- * - `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.
853
- * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
854
- * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
855
- * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
856
- *
857
- * Any of "none", "minimal", "low", "medium", "high", "xhigh".
858
- */
859
- reasoningEffort?:
860
- | ListAgentsFallbackModelConfigurationReasoningEffort
861
- | undefined;
862
- /**
863
- * Adjusts response verbosity. Lower levels yield shorter answers.
864
- */
865
- verbosity?: string | undefined;
866
- /**
867
- * 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.
868
- */
869
- seed?: number | null | undefined;
870
- /**
871
- * Up to 4 sequences where the API will stop generating further tokens.
872
- */
873
- stop?: string | Array<string> | null | undefined;
874
- /**
875
- * Options for streaming response. Only set this when you set stream: true.
876
- */
877
- streamOptions?:
878
- | ListAgentsFallbackModelConfigurationStreamOptions
879
- | null
880
- | undefined;
881
- thinking?:
882
- | components.ThinkingConfigDisabledSchema
883
- | components.ThinkingConfigEnabledSchema
884
- | undefined;
885
- /**
886
- * 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.
887
- */
888
- temperature?: number | null | undefined;
889
- /**
890
- * An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
891
- */
892
- topP?: number | null | undefined;
893
- /**
894
- * Limits the model to consider only the top k most likely tokens at each step.
895
- */
896
- topK?: number | null | undefined;
897
- /**
898
- * Controls which (if any) tool is called by the model.
899
- */
900
- toolChoice?:
901
- | ListAgentsToolChoiceAgents2
902
- | ListAgentsToolChoiceAgents1
903
- | undefined;
904
- /**
905
- * Whether to enable parallel function calling during tool use.
906
- */
907
- parallelToolCalls?: boolean | undefined;
908
- /**
909
- * 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"].
910
- */
911
- modalities?:
912
- | Array<ListAgentsFallbackModelConfigurationModalities>
913
- | null
914
- | undefined;
915
- /**
916
- * A list of guardrails to apply to the request.
917
- */
918
- guardrails?:
919
- | Array<ListAgentsFallbackModelConfigurationGuardrails>
920
- | undefined;
921
- };
922
-
923
- /**
924
- * Fallback model configuration with optional parameters.
925
- */
926
- export type ListAgentsFallbackModelConfiguration2 = {
927
- /**
928
- * A fallback model ID string. Must support tool calling.
929
- */
930
- id: string;
931
- /**
932
- * Optional model parameters specific to this fallback model. Overrides primary model parameters if this fallback is used.
933
- */
934
- parameters?: ListAgentsFallbackModelConfigurationParameters | undefined;
935
- };
936
-
937
- /**
938
- * 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.
939
- */
940
- export type ListAgentsFallbackModelConfiguration =
941
- | ListAgentsFallbackModelConfiguration2
942
- | string;
943
-
944
- export type ListAgentsModel = {
945
- /**
946
- * The database ID of the primary model
947
- */
948
- id: string;
949
- /**
950
- * Optional integration ID for custom model configurations
951
- */
952
- integrationId?: string | null | undefined;
953
- /**
954
- * 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.
955
- */
956
- parameters?: ListAgentsParameters | undefined;
957
- /**
958
- * 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).
959
- */
960
- retry?: ListAgentsRetry | undefined;
961
- /**
962
- * Optional array of fallback models (string IDs or config objects) that will be used automatically in order if the primary model fails
963
- */
964
- fallbackModels?:
965
- | Array<ListAgentsFallbackModelConfiguration2 | string>
966
- | null
967
- | undefined;
968
- };
969
-
970
- export type ListAgentsTeamOfAgents = {
971
- /**
972
- * The unique key of the agent within the workspace
973
- */
974
- key: string;
975
- /**
976
- * 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.
977
- */
978
- role?: string | undefined;
979
- };
980
-
981
- export type ListAgentsMetrics = {
982
- totalCost?: number | undefined;
983
- };
984
-
985
- export type ListAgentsKnowledgeBases = {
986
- /**
987
- * Unique identifier of the knowledge base to search
988
- */
989
- knowledgeId: string;
990
- };
991
-
992
- export type ListAgentsData = {
993
- id: string;
994
- /**
995
- * Unique identifier for the agent within the workspace
996
- */
997
- key: string;
998
- displayName: string;
999
- createdById?: string | null | undefined;
1000
- updatedById?: string | null | undefined;
1001
- created?: string | undefined;
1002
- updated?: string | undefined;
1003
- role: string;
1004
- description: string;
1005
- systemPrompt?: string | undefined;
1006
- instructions: string;
1007
- /**
1008
- * 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.
1009
- */
1010
- status: ListAgentsStatus;
1011
- settings?: ListAgentsSettings | undefined;
1012
- model: ListAgentsModel;
1013
- versionHash?: string | undefined;
1014
- /**
1015
- * Entity storage path in the format: `project/folder/subfolder/...`
1016
- *
1017
- * @remarks
1018
- *
1019
- * The first element identifies the project, followed by nested folders (auto-created as needed).
1020
- *
1021
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1022
- */
1023
- path: string;
1024
- /**
1025
- * Array of memory store identifiers. Accepts both memory store IDs and keys.
1026
- */
1027
- memoryStores: Array<string>;
1028
- /**
1029
- * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
1030
- */
1031
- teamOfAgents: Array<ListAgentsTeamOfAgents>;
1032
- metrics?: ListAgentsMetrics | undefined;
1033
- /**
1034
- * Extracted variables from agent instructions
1035
- */
1036
- variables?: { [k: string]: any } | undefined;
1037
- /**
1038
- * Agent knowledge bases reference
1039
- */
1040
- knowledgeBases?: Array<ListAgentsKnowledgeBases> | undefined;
1041
- };
1042
-
1043
- /**
1044
- * Successfully retrieved the list of agents. Returns a paginated response containing agent manifests with complete configurations, including primary and fallback models, tools, knowledge bases, and execution settings.
1045
- */
1046
- export type ListAgentsResponseBody = {
1047
- object: ListAgentsObject;
1048
- data: Array<ListAgentsData>;
1049
- hasMore: boolean;
1050
- };
1051
-
1052
- /** @internal */
1053
- export const ListAgentsRequest$inboundSchema: z.ZodType<
1054
- ListAgentsRequest,
1055
- z.ZodTypeDef,
1056
- unknown
1057
- > = z.object({
1058
- limit: z.number().optional(),
1059
- starting_after: z.string().optional(),
1060
- ending_before: z.string().optional(),
1061
- }).transform((v) => {
1062
- return remap$(v, {
1063
- "starting_after": "startingAfter",
1064
- "ending_before": "endingBefore",
1065
- });
1066
- });
1067
- /** @internal */
1068
- export type ListAgentsRequest$Outbound = {
1069
- limit?: number | undefined;
1070
- starting_after?: string | undefined;
1071
- ending_before?: string | undefined;
1072
- };
1073
-
1074
- /** @internal */
1075
- export const ListAgentsRequest$outboundSchema: z.ZodType<
1076
- ListAgentsRequest$Outbound,
1077
- z.ZodTypeDef,
1078
- ListAgentsRequest
1079
- > = z.object({
1080
- limit: z.number().optional(),
1081
- startingAfter: z.string().optional(),
1082
- endingBefore: z.string().optional(),
1083
- }).transform((v) => {
1084
- return remap$(v, {
1085
- startingAfter: "starting_after",
1086
- endingBefore: "ending_before",
1087
- });
1088
- });
1089
-
1090
- export function listAgentsRequestToJSON(
1091
- listAgentsRequest: ListAgentsRequest,
1092
- ): string {
1093
- return JSON.stringify(
1094
- ListAgentsRequest$outboundSchema.parse(listAgentsRequest),
1095
- );
1096
- }
1097
- export function listAgentsRequestFromJSON(
1098
- jsonString: string,
1099
- ): SafeParseResult<ListAgentsRequest, SDKValidationError> {
1100
- return safeParse(
1101
- jsonString,
1102
- (x) => ListAgentsRequest$inboundSchema.parse(JSON.parse(x)),
1103
- `Failed to parse 'ListAgentsRequest' from JSON`,
1104
- );
1105
- }
1106
-
1107
- /** @internal */
1108
- export const ListAgentsObject$inboundSchema: z.ZodNativeEnum<
1109
- typeof ListAgentsObject
1110
- > = z.nativeEnum(ListAgentsObject);
1111
- /** @internal */
1112
- export const ListAgentsObject$outboundSchema: z.ZodNativeEnum<
1113
- typeof ListAgentsObject
1114
- > = ListAgentsObject$inboundSchema;
1115
-
1116
- /** @internal */
1117
- export const ListAgentsStatus$inboundSchema: z.ZodNativeEnum<
1118
- typeof ListAgentsStatus
1119
- > = z.nativeEnum(ListAgentsStatus);
1120
- /** @internal */
1121
- export const ListAgentsStatus$outboundSchema: z.ZodNativeEnum<
1122
- typeof ListAgentsStatus
1123
- > = ListAgentsStatus$inboundSchema;
1124
-
1125
- /** @internal */
1126
- export const ListAgentsToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
1127
- typeof ListAgentsToolApprovalRequired
1128
- > = z.nativeEnum(ListAgentsToolApprovalRequired);
1129
- /** @internal */
1130
- export const ListAgentsToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
1131
- typeof ListAgentsToolApprovalRequired
1132
- > = ListAgentsToolApprovalRequired$inboundSchema;
1133
-
1134
- /** @internal */
1135
- export const ListAgentsConditions$inboundSchema: z.ZodType<
1136
- ListAgentsConditions,
1137
- z.ZodTypeDef,
1138
- unknown
1139
- > = z.object({
1140
- condition: z.string(),
1141
- operator: z.string(),
1142
- value: z.string(),
1143
- });
1144
- /** @internal */
1145
- export type ListAgentsConditions$Outbound = {
1146
- condition: string;
1147
- operator: string;
1148
- value: string;
1149
- };
1150
-
1151
- /** @internal */
1152
- export const ListAgentsConditions$outboundSchema: z.ZodType<
1153
- ListAgentsConditions$Outbound,
1154
- z.ZodTypeDef,
1155
- ListAgentsConditions
1156
- > = z.object({
1157
- condition: z.string(),
1158
- operator: z.string(),
1159
- value: z.string(),
1160
- });
1161
-
1162
- export function listAgentsConditionsToJSON(
1163
- listAgentsConditions: ListAgentsConditions,
1164
- ): string {
1165
- return JSON.stringify(
1166
- ListAgentsConditions$outboundSchema.parse(listAgentsConditions),
1167
- );
1168
- }
1169
- export function listAgentsConditionsFromJSON(
1170
- jsonString: string,
1171
- ): SafeParseResult<ListAgentsConditions, SDKValidationError> {
1172
- return safeParse(
1173
- jsonString,
1174
- (x) => ListAgentsConditions$inboundSchema.parse(JSON.parse(x)),
1175
- `Failed to parse 'ListAgentsConditions' from JSON`,
1176
- );
1177
- }
1178
-
1179
- /** @internal */
1180
- export const ListAgentsTools$inboundSchema: z.ZodType<
1181
- ListAgentsTools,
1182
- z.ZodTypeDef,
1183
- unknown
1184
- > = z.object({
1185
- id: z.string(),
1186
- key: z.string().optional(),
1187
- action_type: z.string(),
1188
- display_name: z.string().optional(),
1189
- description: z.string().optional(),
1190
- requires_approval: z.boolean().default(false),
1191
- tool_id: z.string().optional(),
1192
- conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
1193
- .optional(),
1194
- timeout: z.number().default(120),
1195
- }).transform((v) => {
1196
- return remap$(v, {
1197
- "action_type": "actionType",
1198
- "display_name": "displayName",
1199
- "requires_approval": "requiresApproval",
1200
- "tool_id": "toolId",
1201
- });
1202
- });
1203
- /** @internal */
1204
- export type ListAgentsTools$Outbound = {
1205
- id: string;
1206
- key?: string | undefined;
1207
- action_type: string;
1208
- display_name?: string | undefined;
1209
- description?: string | undefined;
1210
- requires_approval: boolean;
1211
- tool_id?: string | undefined;
1212
- conditions?: Array<ListAgentsConditions$Outbound> | undefined;
1213
- timeout: number;
1214
- };
1215
-
1216
- /** @internal */
1217
- export const ListAgentsTools$outboundSchema: z.ZodType<
1218
- ListAgentsTools$Outbound,
1219
- z.ZodTypeDef,
1220
- ListAgentsTools
1221
- > = z.object({
1222
- id: z.string(),
1223
- key: z.string().optional(),
1224
- actionType: z.string(),
1225
- displayName: z.string().optional(),
1226
- description: z.string().optional(),
1227
- requiresApproval: z.boolean().default(false),
1228
- toolId: z.string().optional(),
1229
- conditions: z.array(z.lazy(() => ListAgentsConditions$outboundSchema))
1230
- .optional(),
1231
- timeout: z.number().default(120),
1232
- }).transform((v) => {
1233
- return remap$(v, {
1234
- actionType: "action_type",
1235
- displayName: "display_name",
1236
- requiresApproval: "requires_approval",
1237
- toolId: "tool_id",
1238
- });
1239
- });
1240
-
1241
- export function listAgentsToolsToJSON(
1242
- listAgentsTools: ListAgentsTools,
1243
- ): string {
1244
- return JSON.stringify(ListAgentsTools$outboundSchema.parse(listAgentsTools));
1245
- }
1246
- export function listAgentsToolsFromJSON(
1247
- jsonString: string,
1248
- ): SafeParseResult<ListAgentsTools, SDKValidationError> {
1249
- return safeParse(
1250
- jsonString,
1251
- (x) => ListAgentsTools$inboundSchema.parse(JSON.parse(x)),
1252
- `Failed to parse 'ListAgentsTools' from JSON`,
1253
- );
1254
- }
1255
-
1256
- /** @internal */
1257
- export const ListAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1258
- typeof ListAgentsExecuteOn
1259
- > = z.nativeEnum(ListAgentsExecuteOn);
1260
- /** @internal */
1261
- export const ListAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
1262
- typeof ListAgentsExecuteOn
1263
- > = ListAgentsExecuteOn$inboundSchema;
1264
-
1265
- /** @internal */
1266
- export const ListAgentsEvaluators$inboundSchema: z.ZodType<
1267
- ListAgentsEvaluators,
1268
- z.ZodTypeDef,
1269
- unknown
1270
- > = z.object({
1271
- id: z.string(),
1272
- sample_rate: z.number().default(50),
1273
- execute_on: ListAgentsExecuteOn$inboundSchema,
1274
- }).transform((v) => {
1275
- return remap$(v, {
1276
- "sample_rate": "sampleRate",
1277
- "execute_on": "executeOn",
1278
- });
1279
- });
1280
- /** @internal */
1281
- export type ListAgentsEvaluators$Outbound = {
1282
- id: string;
1283
- sample_rate: number;
1284
- execute_on: string;
1285
- };
1286
-
1287
- /** @internal */
1288
- export const ListAgentsEvaluators$outboundSchema: z.ZodType<
1289
- ListAgentsEvaluators$Outbound,
1290
- z.ZodTypeDef,
1291
- ListAgentsEvaluators
1292
- > = z.object({
1293
- id: z.string(),
1294
- sampleRate: z.number().default(50),
1295
- executeOn: ListAgentsExecuteOn$outboundSchema,
1296
- }).transform((v) => {
1297
- return remap$(v, {
1298
- sampleRate: "sample_rate",
1299
- executeOn: "execute_on",
1300
- });
1301
- });
1302
-
1303
- export function listAgentsEvaluatorsToJSON(
1304
- listAgentsEvaluators: ListAgentsEvaluators,
1305
- ): string {
1306
- return JSON.stringify(
1307
- ListAgentsEvaluators$outboundSchema.parse(listAgentsEvaluators),
1308
- );
1309
- }
1310
- export function listAgentsEvaluatorsFromJSON(
1311
- jsonString: string,
1312
- ): SafeParseResult<ListAgentsEvaluators, SDKValidationError> {
1313
- return safeParse(
1314
- jsonString,
1315
- (x) => ListAgentsEvaluators$inboundSchema.parse(JSON.parse(x)),
1316
- `Failed to parse 'ListAgentsEvaluators' from JSON`,
1317
- );
1318
- }
1319
-
1320
- /** @internal */
1321
- export const ListAgentsAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1322
- typeof ListAgentsAgentsExecuteOn
1323
- > = z.nativeEnum(ListAgentsAgentsExecuteOn);
1324
- /** @internal */
1325
- export const ListAgentsAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
1326
- typeof ListAgentsAgentsExecuteOn
1327
- > = ListAgentsAgentsExecuteOn$inboundSchema;
1328
-
1329
- /** @internal */
1330
- export const ListAgentsGuardrails$inboundSchema: z.ZodType<
1331
- ListAgentsGuardrails,
1332
- z.ZodTypeDef,
1333
- unknown
1334
- > = z.object({
1335
- id: z.string(),
1336
- sample_rate: z.number().default(50),
1337
- execute_on: ListAgentsAgentsExecuteOn$inboundSchema,
1338
- }).transform((v) => {
1339
- return remap$(v, {
1340
- "sample_rate": "sampleRate",
1341
- "execute_on": "executeOn",
1342
- });
1343
- });
1344
- /** @internal */
1345
- export type ListAgentsGuardrails$Outbound = {
1346
- id: string;
1347
- sample_rate: number;
1348
- execute_on: string;
1349
- };
1350
-
1351
- /** @internal */
1352
- export const ListAgentsGuardrails$outboundSchema: z.ZodType<
1353
- ListAgentsGuardrails$Outbound,
1354
- z.ZodTypeDef,
1355
- ListAgentsGuardrails
1356
- > = z.object({
1357
- id: z.string(),
1358
- sampleRate: z.number().default(50),
1359
- executeOn: ListAgentsAgentsExecuteOn$outboundSchema,
1360
- }).transform((v) => {
1361
- return remap$(v, {
1362
- sampleRate: "sample_rate",
1363
- executeOn: "execute_on",
1364
- });
1365
- });
1366
-
1367
- export function listAgentsGuardrailsToJSON(
1368
- listAgentsGuardrails: ListAgentsGuardrails,
1369
- ): string {
1370
- return JSON.stringify(
1371
- ListAgentsGuardrails$outboundSchema.parse(listAgentsGuardrails),
1372
- );
1373
- }
1374
- export function listAgentsGuardrailsFromJSON(
1375
- jsonString: string,
1376
- ): SafeParseResult<ListAgentsGuardrails, SDKValidationError> {
1377
- return safeParse(
1378
- jsonString,
1379
- (x) => ListAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
1380
- `Failed to parse 'ListAgentsGuardrails' from JSON`,
1381
- );
1382
- }
1383
-
1384
- /** @internal */
1385
- export const ListAgentsSettings$inboundSchema: z.ZodType<
1386
- ListAgentsSettings,
1387
- z.ZodTypeDef,
1388
- unknown
1389
- > = z.object({
1390
- max_iterations: z.number().int().default(100),
1391
- max_execution_time: z.number().int().default(600),
1392
- tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
1393
- "respect_tool",
1394
- ),
1395
- tools: z.array(z.lazy(() => ListAgentsTools$inboundSchema)).optional(),
1396
- evaluators: z.array(z.lazy(() => ListAgentsEvaluators$inboundSchema))
1397
- .optional(),
1398
- guardrails: z.array(z.lazy(() => ListAgentsGuardrails$inboundSchema))
1399
- .optional(),
1400
- }).transform((v) => {
1401
- return remap$(v, {
1402
- "max_iterations": "maxIterations",
1403
- "max_execution_time": "maxExecutionTime",
1404
- "tool_approval_required": "toolApprovalRequired",
1405
- });
1406
- });
1407
- /** @internal */
1408
- export type ListAgentsSettings$Outbound = {
1409
- max_iterations: number;
1410
- max_execution_time: number;
1411
- tool_approval_required: string;
1412
- tools?: Array<ListAgentsTools$Outbound> | undefined;
1413
- evaluators?: Array<ListAgentsEvaluators$Outbound> | undefined;
1414
- guardrails?: Array<ListAgentsGuardrails$Outbound> | undefined;
1415
- };
1416
-
1417
- /** @internal */
1418
- export const ListAgentsSettings$outboundSchema: z.ZodType<
1419
- ListAgentsSettings$Outbound,
1420
- z.ZodTypeDef,
1421
- ListAgentsSettings
1422
- > = z.object({
1423
- maxIterations: z.number().int().default(100),
1424
- maxExecutionTime: z.number().int().default(600),
1425
- toolApprovalRequired: ListAgentsToolApprovalRequired$outboundSchema.default(
1426
- "respect_tool",
1427
- ),
1428
- tools: z.array(z.lazy(() => ListAgentsTools$outboundSchema)).optional(),
1429
- evaluators: z.array(z.lazy(() => ListAgentsEvaluators$outboundSchema))
1430
- .optional(),
1431
- guardrails: z.array(z.lazy(() => ListAgentsGuardrails$outboundSchema))
1432
- .optional(),
1433
- }).transform((v) => {
1434
- return remap$(v, {
1435
- maxIterations: "max_iterations",
1436
- maxExecutionTime: "max_execution_time",
1437
- toolApprovalRequired: "tool_approval_required",
1438
- });
1439
- });
1440
-
1441
- export function listAgentsSettingsToJSON(
1442
- listAgentsSettings: ListAgentsSettings,
1443
- ): string {
1444
- return JSON.stringify(
1445
- ListAgentsSettings$outboundSchema.parse(listAgentsSettings),
1446
- );
1447
- }
1448
- export function listAgentsSettingsFromJSON(
1449
- jsonString: string,
1450
- ): SafeParseResult<ListAgentsSettings, SDKValidationError> {
1451
- return safeParse(
1452
- jsonString,
1453
- (x) => ListAgentsSettings$inboundSchema.parse(JSON.parse(x)),
1454
- `Failed to parse 'ListAgentsSettings' from JSON`,
1455
- );
1456
- }
1457
-
1458
- /** @internal */
1459
- export const ListAgentsVoice$inboundSchema: z.ZodNativeEnum<
1460
- typeof ListAgentsVoice
1461
- > = z.nativeEnum(ListAgentsVoice);
1462
- /** @internal */
1463
- export const ListAgentsVoice$outboundSchema: z.ZodNativeEnum<
1464
- typeof ListAgentsVoice
1465
- > = ListAgentsVoice$inboundSchema;
1466
-
1467
- /** @internal */
1468
- export const ListAgentsFormat$inboundSchema: z.ZodNativeEnum<
1469
- typeof ListAgentsFormat
1470
- > = z.nativeEnum(ListAgentsFormat);
1471
- /** @internal */
1472
- export const ListAgentsFormat$outboundSchema: z.ZodNativeEnum<
1473
- typeof ListAgentsFormat
1474
- > = ListAgentsFormat$inboundSchema;
1475
-
1476
- /** @internal */
1477
- export const ListAgentsAudio$inboundSchema: z.ZodType<
1478
- ListAgentsAudio,
1479
- z.ZodTypeDef,
1480
- unknown
1481
- > = z.object({
1482
- voice: ListAgentsVoice$inboundSchema,
1483
- format: ListAgentsFormat$inboundSchema,
1484
- });
1485
- /** @internal */
1486
- export type ListAgentsAudio$Outbound = {
1487
- voice: string;
1488
- format: string;
1489
- };
1490
-
1491
- /** @internal */
1492
- export const ListAgentsAudio$outboundSchema: z.ZodType<
1493
- ListAgentsAudio$Outbound,
1494
- z.ZodTypeDef,
1495
- ListAgentsAudio
1496
- > = z.object({
1497
- voice: ListAgentsVoice$outboundSchema,
1498
- format: ListAgentsFormat$outboundSchema,
1499
- });
1500
-
1501
- export function listAgentsAudioToJSON(
1502
- listAgentsAudio: ListAgentsAudio,
1503
- ): string {
1504
- return JSON.stringify(ListAgentsAudio$outboundSchema.parse(listAgentsAudio));
1505
- }
1506
- export function listAgentsAudioFromJSON(
1507
- jsonString: string,
1508
- ): SafeParseResult<ListAgentsAudio, SDKValidationError> {
1509
- return safeParse(
1510
- jsonString,
1511
- (x) => ListAgentsAudio$inboundSchema.parse(JSON.parse(x)),
1512
- `Failed to parse 'ListAgentsAudio' from JSON`,
1513
- );
1514
- }
1515
-
1516
- /** @internal */
1517
- export const ListAgentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
1518
- ListAgentsResponseFormatJsonSchema,
1519
- z.ZodTypeDef,
1520
- unknown
1521
- > = z.object({
1522
- description: z.string().optional(),
1523
- name: z.string(),
1524
- schema: z.any().optional(),
1525
- strict: z.boolean().default(false),
1526
- });
1527
- /** @internal */
1528
- export type ListAgentsResponseFormatJsonSchema$Outbound = {
1529
- description?: string | undefined;
1530
- name: string;
1531
- schema?: any | undefined;
1532
- strict: boolean;
1533
- };
1534
-
1535
- /** @internal */
1536
- export const ListAgentsResponseFormatJsonSchema$outboundSchema: z.ZodType<
1537
- ListAgentsResponseFormatJsonSchema$Outbound,
1538
- z.ZodTypeDef,
1539
- ListAgentsResponseFormatJsonSchema
1540
- > = z.object({
1541
- description: z.string().optional(),
1542
- name: z.string(),
1543
- schema: z.any().optional(),
1544
- strict: z.boolean().default(false),
1545
- });
1546
-
1547
- export function listAgentsResponseFormatJsonSchemaToJSON(
1548
- listAgentsResponseFormatJsonSchema: ListAgentsResponseFormatJsonSchema,
1549
- ): string {
1550
- return JSON.stringify(
1551
- ListAgentsResponseFormatJsonSchema$outboundSchema.parse(
1552
- listAgentsResponseFormatJsonSchema,
1553
- ),
1554
- );
1555
- }
1556
- export function listAgentsResponseFormatJsonSchemaFromJSON(
1557
- jsonString: string,
1558
- ): SafeParseResult<ListAgentsResponseFormatJsonSchema, SDKValidationError> {
1559
- return safeParse(
1560
- jsonString,
1561
- (x) =>
1562
- ListAgentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1563
- `Failed to parse 'ListAgentsResponseFormatJsonSchema' from JSON`,
1564
- );
1565
- }
1566
-
1567
- /** @internal */
1568
- export const ListAgentsResponseFormatAgentsJSONSchema$inboundSchema: z.ZodType<
1569
- ListAgentsResponseFormatAgentsJSONSchema,
1570
- z.ZodTypeDef,
1571
- unknown
1572
- > = z.object({
1573
- type: z.literal("json_schema"),
1574
- json_schema: z.lazy(() => ListAgentsResponseFormatJsonSchema$inboundSchema),
1575
- }).transform((v) => {
1576
- return remap$(v, {
1577
- "json_schema": "jsonSchema",
1578
- });
1579
- });
1580
- /** @internal */
1581
- export type ListAgentsResponseFormatAgentsJSONSchema$Outbound = {
1582
- type: "json_schema";
1583
- json_schema: ListAgentsResponseFormatJsonSchema$Outbound;
1584
- };
1585
-
1586
- /** @internal */
1587
- export const ListAgentsResponseFormatAgentsJSONSchema$outboundSchema: z.ZodType<
1588
- ListAgentsResponseFormatAgentsJSONSchema$Outbound,
1589
- z.ZodTypeDef,
1590
- ListAgentsResponseFormatAgentsJSONSchema
1591
- > = z.object({
1592
- type: z.literal("json_schema"),
1593
- jsonSchema: z.lazy(() => ListAgentsResponseFormatJsonSchema$outboundSchema),
1594
- }).transform((v) => {
1595
- return remap$(v, {
1596
- jsonSchema: "json_schema",
1597
- });
1598
- });
1599
-
1600
- export function listAgentsResponseFormatAgentsJSONSchemaToJSON(
1601
- listAgentsResponseFormatAgentsJSONSchema:
1602
- ListAgentsResponseFormatAgentsJSONSchema,
1603
- ): string {
1604
- return JSON.stringify(
1605
- ListAgentsResponseFormatAgentsJSONSchema$outboundSchema.parse(
1606
- listAgentsResponseFormatAgentsJSONSchema,
1607
- ),
1608
- );
1609
- }
1610
- export function listAgentsResponseFormatAgentsJSONSchemaFromJSON(
1611
- jsonString: string,
1612
- ): SafeParseResult<
1613
- ListAgentsResponseFormatAgentsJSONSchema,
1614
- SDKValidationError
1615
- > {
1616
- return safeParse(
1617
- jsonString,
1618
- (x) =>
1619
- ListAgentsResponseFormatAgentsJSONSchema$inboundSchema.parse(
1620
- JSON.parse(x),
1621
- ),
1622
- `Failed to parse 'ListAgentsResponseFormatAgentsJSONSchema' from JSON`,
1623
- );
1624
- }
1625
-
1626
- /** @internal */
1627
- export const ListAgentsResponseFormatJSONObject$inboundSchema: z.ZodType<
1628
- ListAgentsResponseFormatJSONObject,
1629
- z.ZodTypeDef,
1630
- unknown
1631
- > = z.object({
1632
- type: z.literal("json_object"),
1633
- });
1634
- /** @internal */
1635
- export type ListAgentsResponseFormatJSONObject$Outbound = {
1636
- type: "json_object";
1637
- };
1638
-
1639
- /** @internal */
1640
- export const ListAgentsResponseFormatJSONObject$outboundSchema: z.ZodType<
1641
- ListAgentsResponseFormatJSONObject$Outbound,
1642
- z.ZodTypeDef,
1643
- ListAgentsResponseFormatJSONObject
1644
- > = z.object({
1645
- type: z.literal("json_object"),
1646
- });
1647
-
1648
- export function listAgentsResponseFormatJSONObjectToJSON(
1649
- listAgentsResponseFormatJSONObject: ListAgentsResponseFormatJSONObject,
1650
- ): string {
1651
- return JSON.stringify(
1652
- ListAgentsResponseFormatJSONObject$outboundSchema.parse(
1653
- listAgentsResponseFormatJSONObject,
1654
- ),
1655
- );
1656
- }
1657
- export function listAgentsResponseFormatJSONObjectFromJSON(
1658
- jsonString: string,
1659
- ): SafeParseResult<ListAgentsResponseFormatJSONObject, SDKValidationError> {
1660
- return safeParse(
1661
- jsonString,
1662
- (x) =>
1663
- ListAgentsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)),
1664
- `Failed to parse 'ListAgentsResponseFormatJSONObject' from JSON`,
1665
- );
1666
- }
1667
-
1668
- /** @internal */
1669
- export const ListAgentsResponseFormatText$inboundSchema: z.ZodType<
1670
- ListAgentsResponseFormatText,
1671
- z.ZodTypeDef,
1672
- unknown
1673
- > = z.object({
1674
- type: z.literal("text"),
1675
- });
1676
- /** @internal */
1677
- export type ListAgentsResponseFormatText$Outbound = {
1678
- type: "text";
1679
- };
1680
-
1681
- /** @internal */
1682
- export const ListAgentsResponseFormatText$outboundSchema: z.ZodType<
1683
- ListAgentsResponseFormatText$Outbound,
1684
- z.ZodTypeDef,
1685
- ListAgentsResponseFormatText
1686
- > = z.object({
1687
- type: z.literal("text"),
1688
- });
1689
-
1690
- export function listAgentsResponseFormatTextToJSON(
1691
- listAgentsResponseFormatText: ListAgentsResponseFormatText,
1692
- ): string {
1693
- return JSON.stringify(
1694
- ListAgentsResponseFormatText$outboundSchema.parse(
1695
- listAgentsResponseFormatText,
1696
- ),
1697
- );
1698
- }
1699
- export function listAgentsResponseFormatTextFromJSON(
1700
- jsonString: string,
1701
- ): SafeParseResult<ListAgentsResponseFormatText, SDKValidationError> {
1702
- return safeParse(
1703
- jsonString,
1704
- (x) => ListAgentsResponseFormatText$inboundSchema.parse(JSON.parse(x)),
1705
- `Failed to parse 'ListAgentsResponseFormatText' from JSON`,
1706
- );
1707
- }
1708
-
1709
- /** @internal */
1710
- export const ListAgentsResponseFormat$inboundSchema: z.ZodType<
1711
- ListAgentsResponseFormat,
1712
- z.ZodTypeDef,
1713
- unknown
1714
- > = z.union([
1715
- z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
1716
- z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
1717
- z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
1718
- ]);
1719
- /** @internal */
1720
- export type ListAgentsResponseFormat$Outbound =
1721
- | ListAgentsResponseFormatText$Outbound
1722
- | ListAgentsResponseFormatJSONObject$Outbound
1723
- | ListAgentsResponseFormatAgentsJSONSchema$Outbound;
1724
-
1725
- /** @internal */
1726
- export const ListAgentsResponseFormat$outboundSchema: z.ZodType<
1727
- ListAgentsResponseFormat$Outbound,
1728
- z.ZodTypeDef,
1729
- ListAgentsResponseFormat
1730
- > = z.union([
1731
- z.lazy(() => ListAgentsResponseFormatText$outboundSchema),
1732
- z.lazy(() => ListAgentsResponseFormatJSONObject$outboundSchema),
1733
- z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$outboundSchema),
1734
- ]);
1735
-
1736
- export function listAgentsResponseFormatToJSON(
1737
- listAgentsResponseFormat: ListAgentsResponseFormat,
1738
- ): string {
1739
- return JSON.stringify(
1740
- ListAgentsResponseFormat$outboundSchema.parse(listAgentsResponseFormat),
1741
- );
1742
- }
1743
- export function listAgentsResponseFormatFromJSON(
1744
- jsonString: string,
1745
- ): SafeParseResult<ListAgentsResponseFormat, SDKValidationError> {
1746
- return safeParse(
1747
- jsonString,
1748
- (x) => ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1749
- `Failed to parse 'ListAgentsResponseFormat' from JSON`,
1750
- );
1751
- }
1752
-
1753
- /** @internal */
1754
- export const ListAgentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1755
- typeof ListAgentsReasoningEffort
1756
- > = z.nativeEnum(ListAgentsReasoningEffort);
1757
- /** @internal */
1758
- export const ListAgentsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1759
- typeof ListAgentsReasoningEffort
1760
- > = ListAgentsReasoningEffort$inboundSchema;
1761
-
1762
- /** @internal */
1763
- export const ListAgentsStop$inboundSchema: z.ZodType<
1764
- ListAgentsStop,
1765
- z.ZodTypeDef,
1766
- unknown
1767
- > = z.union([z.string(), z.array(z.string())]);
1768
- /** @internal */
1769
- export type ListAgentsStop$Outbound = string | Array<string>;
1770
-
1771
- /** @internal */
1772
- export const ListAgentsStop$outboundSchema: z.ZodType<
1773
- ListAgentsStop$Outbound,
1774
- z.ZodTypeDef,
1775
- ListAgentsStop
1776
- > = z.union([z.string(), z.array(z.string())]);
1777
-
1778
- export function listAgentsStopToJSON(listAgentsStop: ListAgentsStop): string {
1779
- return JSON.stringify(ListAgentsStop$outboundSchema.parse(listAgentsStop));
1780
- }
1781
- export function listAgentsStopFromJSON(
1782
- jsonString: string,
1783
- ): SafeParseResult<ListAgentsStop, SDKValidationError> {
1784
- return safeParse(
1785
- jsonString,
1786
- (x) => ListAgentsStop$inboundSchema.parse(JSON.parse(x)),
1787
- `Failed to parse 'ListAgentsStop' from JSON`,
1788
- );
1789
- }
1790
-
1791
- /** @internal */
1792
- export const ListAgentsStreamOptions$inboundSchema: z.ZodType<
1793
- ListAgentsStreamOptions,
1794
- z.ZodTypeDef,
1795
- unknown
1796
- > = z.object({
1797
- include_usage: z.boolean().optional(),
1798
- }).transform((v) => {
1799
- return remap$(v, {
1800
- "include_usage": "includeUsage",
1801
- });
1802
- });
1803
- /** @internal */
1804
- export type ListAgentsStreamOptions$Outbound = {
1805
- include_usage?: boolean | undefined;
1806
- };
1807
-
1808
- /** @internal */
1809
- export const ListAgentsStreamOptions$outboundSchema: z.ZodType<
1810
- ListAgentsStreamOptions$Outbound,
1811
- z.ZodTypeDef,
1812
- ListAgentsStreamOptions
1813
- > = z.object({
1814
- includeUsage: z.boolean().optional(),
1815
- }).transform((v) => {
1816
- return remap$(v, {
1817
- includeUsage: "include_usage",
1818
- });
1819
- });
1820
-
1821
- export function listAgentsStreamOptionsToJSON(
1822
- listAgentsStreamOptions: ListAgentsStreamOptions,
1823
- ): string {
1824
- return JSON.stringify(
1825
- ListAgentsStreamOptions$outboundSchema.parse(listAgentsStreamOptions),
1826
- );
1827
- }
1828
- export function listAgentsStreamOptionsFromJSON(
1829
- jsonString: string,
1830
- ): SafeParseResult<ListAgentsStreamOptions, SDKValidationError> {
1831
- return safeParse(
1832
- jsonString,
1833
- (x) => ListAgentsStreamOptions$inboundSchema.parse(JSON.parse(x)),
1834
- `Failed to parse 'ListAgentsStreamOptions' from JSON`,
1835
- );
1836
- }
1837
-
1838
- /** @internal */
1839
- export const ListAgentsThinking$inboundSchema: z.ZodType<
1840
- ListAgentsThinking,
1841
- z.ZodTypeDef,
1842
- unknown
1843
- > = z.union([
1844
- components.ThinkingConfigDisabledSchema$inboundSchema,
1845
- components.ThinkingConfigEnabledSchema$inboundSchema,
1846
- ]);
1847
- /** @internal */
1848
- export type ListAgentsThinking$Outbound =
1849
- | components.ThinkingConfigDisabledSchema$Outbound
1850
- | components.ThinkingConfigEnabledSchema$Outbound;
1851
-
1852
- /** @internal */
1853
- export const ListAgentsThinking$outboundSchema: z.ZodType<
1854
- ListAgentsThinking$Outbound,
1855
- z.ZodTypeDef,
1856
- ListAgentsThinking
1857
- > = z.union([
1858
- components.ThinkingConfigDisabledSchema$outboundSchema,
1859
- components.ThinkingConfigEnabledSchema$outboundSchema,
1860
- ]);
1861
-
1862
- export function listAgentsThinkingToJSON(
1863
- listAgentsThinking: ListAgentsThinking,
1864
- ): string {
1865
- return JSON.stringify(
1866
- ListAgentsThinking$outboundSchema.parse(listAgentsThinking),
1867
- );
1868
- }
1869
- export function listAgentsThinkingFromJSON(
1870
- jsonString: string,
1871
- ): SafeParseResult<ListAgentsThinking, SDKValidationError> {
1872
- return safeParse(
1873
- jsonString,
1874
- (x) => ListAgentsThinking$inboundSchema.parse(JSON.parse(x)),
1875
- `Failed to parse 'ListAgentsThinking' from JSON`,
1876
- );
1877
- }
1878
-
1879
- /** @internal */
1880
- export const ListAgentsToolChoiceType$inboundSchema: z.ZodNativeEnum<
1881
- typeof ListAgentsToolChoiceType
1882
- > = z.nativeEnum(ListAgentsToolChoiceType);
1883
- /** @internal */
1884
- export const ListAgentsToolChoiceType$outboundSchema: z.ZodNativeEnum<
1885
- typeof ListAgentsToolChoiceType
1886
- > = ListAgentsToolChoiceType$inboundSchema;
1887
-
1888
- /** @internal */
1889
- export const ListAgentsToolChoiceFunction$inboundSchema: z.ZodType<
1890
- ListAgentsToolChoiceFunction,
1891
- z.ZodTypeDef,
1892
- unknown
1893
- > = z.object({
1894
- name: z.string(),
1895
- });
1896
- /** @internal */
1897
- export type ListAgentsToolChoiceFunction$Outbound = {
1898
- name: string;
1899
- };
1900
-
1901
- /** @internal */
1902
- export const ListAgentsToolChoiceFunction$outboundSchema: z.ZodType<
1903
- ListAgentsToolChoiceFunction$Outbound,
1904
- z.ZodTypeDef,
1905
- ListAgentsToolChoiceFunction
1906
- > = z.object({
1907
- name: z.string(),
1908
- });
1909
-
1910
- export function listAgentsToolChoiceFunctionToJSON(
1911
- listAgentsToolChoiceFunction: ListAgentsToolChoiceFunction,
1912
- ): string {
1913
- return JSON.stringify(
1914
- ListAgentsToolChoiceFunction$outboundSchema.parse(
1915
- listAgentsToolChoiceFunction,
1916
- ),
1917
- );
1918
- }
1919
- export function listAgentsToolChoiceFunctionFromJSON(
1920
- jsonString: string,
1921
- ): SafeParseResult<ListAgentsToolChoiceFunction, SDKValidationError> {
1922
- return safeParse(
1923
- jsonString,
1924
- (x) => ListAgentsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
1925
- `Failed to parse 'ListAgentsToolChoiceFunction' from JSON`,
1926
- );
1927
- }
1928
-
1929
- /** @internal */
1930
- export const ListAgentsToolChoice2$inboundSchema: z.ZodType<
1931
- ListAgentsToolChoice2,
1932
- z.ZodTypeDef,
1933
- unknown
1934
- > = z.object({
1935
- type: ListAgentsToolChoiceType$inboundSchema.optional(),
1936
- function: z.lazy(() => ListAgentsToolChoiceFunction$inboundSchema),
1937
- });
1938
- /** @internal */
1939
- export type ListAgentsToolChoice2$Outbound = {
1940
- type?: string | undefined;
1941
- function: ListAgentsToolChoiceFunction$Outbound;
1942
- };
1943
-
1944
- /** @internal */
1945
- export const ListAgentsToolChoice2$outboundSchema: z.ZodType<
1946
- ListAgentsToolChoice2$Outbound,
1947
- z.ZodTypeDef,
1948
- ListAgentsToolChoice2
1949
- > = z.object({
1950
- type: ListAgentsToolChoiceType$outboundSchema.optional(),
1951
- function: z.lazy(() => ListAgentsToolChoiceFunction$outboundSchema),
1952
- });
1953
-
1954
- export function listAgentsToolChoice2ToJSON(
1955
- listAgentsToolChoice2: ListAgentsToolChoice2,
1956
- ): string {
1957
- return JSON.stringify(
1958
- ListAgentsToolChoice2$outboundSchema.parse(listAgentsToolChoice2),
1959
- );
1960
- }
1961
- export function listAgentsToolChoice2FromJSON(
1962
- jsonString: string,
1963
- ): SafeParseResult<ListAgentsToolChoice2, SDKValidationError> {
1964
- return safeParse(
1965
- jsonString,
1966
- (x) => ListAgentsToolChoice2$inboundSchema.parse(JSON.parse(x)),
1967
- `Failed to parse 'ListAgentsToolChoice2' from JSON`,
1968
- );
1969
- }
1970
-
1971
- /** @internal */
1972
- export const ListAgentsToolChoice1$inboundSchema: z.ZodNativeEnum<
1973
- typeof ListAgentsToolChoice1
1974
- > = z.nativeEnum(ListAgentsToolChoice1);
1975
- /** @internal */
1976
- export const ListAgentsToolChoice1$outboundSchema: z.ZodNativeEnum<
1977
- typeof ListAgentsToolChoice1
1978
- > = ListAgentsToolChoice1$inboundSchema;
1979
-
1980
- /** @internal */
1981
- export const ListAgentsToolChoice$inboundSchema: z.ZodType<
1982
- ListAgentsToolChoice,
1983
- z.ZodTypeDef,
1984
- unknown
1985
- > = z.union([
1986
- z.lazy(() => ListAgentsToolChoice2$inboundSchema),
1987
- ListAgentsToolChoice1$inboundSchema,
1988
- ]);
1989
- /** @internal */
1990
- export type ListAgentsToolChoice$Outbound =
1991
- | ListAgentsToolChoice2$Outbound
1992
- | string;
1993
-
1994
- /** @internal */
1995
- export const ListAgentsToolChoice$outboundSchema: z.ZodType<
1996
- ListAgentsToolChoice$Outbound,
1997
- z.ZodTypeDef,
1998
- ListAgentsToolChoice
1999
- > = z.union([
2000
- z.lazy(() => ListAgentsToolChoice2$outboundSchema),
2001
- ListAgentsToolChoice1$outboundSchema,
2002
- ]);
2003
-
2004
- export function listAgentsToolChoiceToJSON(
2005
- listAgentsToolChoice: ListAgentsToolChoice,
2006
- ): string {
2007
- return JSON.stringify(
2008
- ListAgentsToolChoice$outboundSchema.parse(listAgentsToolChoice),
2009
- );
2010
- }
2011
- export function listAgentsToolChoiceFromJSON(
2012
- jsonString: string,
2013
- ): SafeParseResult<ListAgentsToolChoice, SDKValidationError> {
2014
- return safeParse(
2015
- jsonString,
2016
- (x) => ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)),
2017
- `Failed to parse 'ListAgentsToolChoice' from JSON`,
2018
- );
2019
- }
2020
-
2021
- /** @internal */
2022
- export const ListAgentsModalities$inboundSchema: z.ZodNativeEnum<
2023
- typeof ListAgentsModalities
2024
- > = z.nativeEnum(ListAgentsModalities);
2025
- /** @internal */
2026
- export const ListAgentsModalities$outboundSchema: z.ZodNativeEnum<
2027
- typeof ListAgentsModalities
2028
- > = ListAgentsModalities$inboundSchema;
2029
-
2030
- /** @internal */
2031
- export const ListAgentsId1$inboundSchema: z.ZodNativeEnum<
2032
- typeof ListAgentsId1
2033
- > = z.nativeEnum(ListAgentsId1);
2034
- /** @internal */
2035
- export const ListAgentsId1$outboundSchema: z.ZodNativeEnum<
2036
- typeof ListAgentsId1
2037
- > = ListAgentsId1$inboundSchema;
2038
-
2039
- /** @internal */
2040
- export const ListAgentsId$inboundSchema: z.ZodType<
2041
- ListAgentsId,
2042
- z.ZodTypeDef,
2043
- unknown
2044
- > = z.union([ListAgentsId1$inboundSchema, z.string()]);
2045
- /** @internal */
2046
- export type ListAgentsId$Outbound = string | string;
2047
-
2048
- /** @internal */
2049
- export const ListAgentsId$outboundSchema: z.ZodType<
2050
- ListAgentsId$Outbound,
2051
- z.ZodTypeDef,
2052
- ListAgentsId
2053
- > = z.union([ListAgentsId1$outboundSchema, z.string()]);
2054
-
2055
- export function listAgentsIdToJSON(listAgentsId: ListAgentsId): string {
2056
- return JSON.stringify(ListAgentsId$outboundSchema.parse(listAgentsId));
2057
- }
2058
- export function listAgentsIdFromJSON(
2059
- jsonString: string,
2060
- ): SafeParseResult<ListAgentsId, SDKValidationError> {
2061
- return safeParse(
2062
- jsonString,
2063
- (x) => ListAgentsId$inboundSchema.parse(JSON.parse(x)),
2064
- `Failed to parse 'ListAgentsId' from JSON`,
2065
- );
2066
- }
2067
-
2068
- /** @internal */
2069
- export const ListAgentsAgentsResponseExecuteOn$inboundSchema: z.ZodNativeEnum<
2070
- typeof ListAgentsAgentsResponseExecuteOn
2071
- > = z.nativeEnum(ListAgentsAgentsResponseExecuteOn);
2072
- /** @internal */
2073
- export const ListAgentsAgentsResponseExecuteOn$outboundSchema: z.ZodNativeEnum<
2074
- typeof ListAgentsAgentsResponseExecuteOn
2075
- > = ListAgentsAgentsResponseExecuteOn$inboundSchema;
2076
-
2077
- /** @internal */
2078
- export const ListAgentsAgentsGuardrails$inboundSchema: z.ZodType<
2079
- ListAgentsAgentsGuardrails,
2080
- z.ZodTypeDef,
2081
- unknown
2082
- > = z.object({
2083
- id: z.union([ListAgentsId1$inboundSchema, z.string()]),
2084
- execute_on: ListAgentsAgentsResponseExecuteOn$inboundSchema,
2085
- }).transform((v) => {
2086
- return remap$(v, {
2087
- "execute_on": "executeOn",
2088
- });
2089
- });
2090
- /** @internal */
2091
- export type ListAgentsAgentsGuardrails$Outbound = {
2092
- id: string | string;
2093
- execute_on: string;
2094
- };
2095
-
2096
- /** @internal */
2097
- export const ListAgentsAgentsGuardrails$outboundSchema: z.ZodType<
2098
- ListAgentsAgentsGuardrails$Outbound,
2099
- z.ZodTypeDef,
2100
- ListAgentsAgentsGuardrails
2101
- > = z.object({
2102
- id: z.union([ListAgentsId1$outboundSchema, z.string()]),
2103
- executeOn: ListAgentsAgentsResponseExecuteOn$outboundSchema,
2104
- }).transform((v) => {
2105
- return remap$(v, {
2106
- executeOn: "execute_on",
2107
- });
2108
- });
2109
-
2110
- export function listAgentsAgentsGuardrailsToJSON(
2111
- listAgentsAgentsGuardrails: ListAgentsAgentsGuardrails,
2112
- ): string {
2113
- return JSON.stringify(
2114
- ListAgentsAgentsGuardrails$outboundSchema.parse(listAgentsAgentsGuardrails),
2115
- );
2116
- }
2117
- export function listAgentsAgentsGuardrailsFromJSON(
2118
- jsonString: string,
2119
- ): SafeParseResult<ListAgentsAgentsGuardrails, SDKValidationError> {
2120
- return safeParse(
2121
- jsonString,
2122
- (x) => ListAgentsAgentsGuardrails$inboundSchema.parse(JSON.parse(x)),
2123
- `Failed to parse 'ListAgentsAgentsGuardrails' from JSON`,
2124
- );
2125
- }
2126
-
2127
- /** @internal */
2128
- export const ListAgentsParameters$inboundSchema: z.ZodType<
2129
- ListAgentsParameters,
2130
- z.ZodTypeDef,
2131
- unknown
2132
- > = z.object({
2133
- audio: z.nullable(z.lazy(() => ListAgentsAudio$inboundSchema)).optional(),
2134
- frequency_penalty: z.nullable(z.number()).optional(),
2135
- max_tokens: z.nullable(z.number().int()).optional(),
2136
- max_completion_tokens: z.nullable(z.number().int()).optional(),
2137
- logprobs: z.nullable(z.boolean()).optional(),
2138
- top_logprobs: z.nullable(z.number().int()).optional(),
2139
- n: z.nullable(z.number().int()).optional(),
2140
- presence_penalty: z.nullable(z.number()).optional(),
2141
- response_format: z.union([
2142
- z.lazy(() => ListAgentsResponseFormatText$inboundSchema),
2143
- z.lazy(() => ListAgentsResponseFormatJSONObject$inboundSchema),
2144
- z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
2145
- ]).optional(),
2146
- reasoning_effort: ListAgentsReasoningEffort$inboundSchema.optional(),
2147
- verbosity: z.string().optional(),
2148
- seed: z.nullable(z.number()).optional(),
2149
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2150
- stream_options: z.nullable(
2151
- z.lazy(() => ListAgentsStreamOptions$inboundSchema),
2152
- ).optional(),
2153
- thinking: z.union([
2154
- components.ThinkingConfigDisabledSchema$inboundSchema,
2155
- components.ThinkingConfigEnabledSchema$inboundSchema,
2156
- ]).optional(),
2157
- temperature: z.nullable(z.number()).optional(),
2158
- top_p: z.nullable(z.number()).optional(),
2159
- top_k: z.nullable(z.number()).optional(),
2160
- tool_choice: z.union([
2161
- z.lazy(() => ListAgentsToolChoice2$inboundSchema),
2162
- ListAgentsToolChoice1$inboundSchema,
2163
- ]).optional(),
2164
- parallel_tool_calls: z.boolean().optional(),
2165
- modalities: z.nullable(z.array(ListAgentsModalities$inboundSchema))
2166
- .optional(),
2167
- guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$inboundSchema))
2168
- .optional(),
2169
- }).transform((v) => {
2170
- return remap$(v, {
2171
- "frequency_penalty": "frequencyPenalty",
2172
- "max_tokens": "maxTokens",
2173
- "max_completion_tokens": "maxCompletionTokens",
2174
- "top_logprobs": "topLogprobs",
2175
- "presence_penalty": "presencePenalty",
2176
- "response_format": "responseFormat",
2177
- "reasoning_effort": "reasoningEffort",
2178
- "stream_options": "streamOptions",
2179
- "top_p": "topP",
2180
- "top_k": "topK",
2181
- "tool_choice": "toolChoice",
2182
- "parallel_tool_calls": "parallelToolCalls",
2183
- });
2184
- });
2185
- /** @internal */
2186
- export type ListAgentsParameters$Outbound = {
2187
- audio?: ListAgentsAudio$Outbound | null | undefined;
2188
- frequency_penalty?: number | null | undefined;
2189
- max_tokens?: number | null | undefined;
2190
- max_completion_tokens?: number | null | undefined;
2191
- logprobs?: boolean | null | undefined;
2192
- top_logprobs?: number | null | undefined;
2193
- n?: number | null | undefined;
2194
- presence_penalty?: number | null | undefined;
2195
- response_format?:
2196
- | ListAgentsResponseFormatText$Outbound
2197
- | ListAgentsResponseFormatJSONObject$Outbound
2198
- | ListAgentsResponseFormatAgentsJSONSchema$Outbound
2199
- | undefined;
2200
- reasoning_effort?: string | undefined;
2201
- verbosity?: string | undefined;
2202
- seed?: number | null | undefined;
2203
- stop?: string | Array<string> | null | undefined;
2204
- stream_options?: ListAgentsStreamOptions$Outbound | null | undefined;
2205
- thinking?:
2206
- | components.ThinkingConfigDisabledSchema$Outbound
2207
- | components.ThinkingConfigEnabledSchema$Outbound
2208
- | undefined;
2209
- temperature?: number | null | undefined;
2210
- top_p?: number | null | undefined;
2211
- top_k?: number | null | undefined;
2212
- tool_choice?: ListAgentsToolChoice2$Outbound | string | undefined;
2213
- parallel_tool_calls?: boolean | undefined;
2214
- modalities?: Array<string> | null | undefined;
2215
- guardrails?: Array<ListAgentsAgentsGuardrails$Outbound> | undefined;
2216
- };
2217
-
2218
- /** @internal */
2219
- export const ListAgentsParameters$outboundSchema: z.ZodType<
2220
- ListAgentsParameters$Outbound,
2221
- z.ZodTypeDef,
2222
- ListAgentsParameters
2223
- > = z.object({
2224
- audio: z.nullable(z.lazy(() => ListAgentsAudio$outboundSchema)).optional(),
2225
- frequencyPenalty: z.nullable(z.number()).optional(),
2226
- maxTokens: z.nullable(z.number().int()).optional(),
2227
- maxCompletionTokens: z.nullable(z.number().int()).optional(),
2228
- logprobs: z.nullable(z.boolean()).optional(),
2229
- topLogprobs: z.nullable(z.number().int()).optional(),
2230
- n: z.nullable(z.number().int()).optional(),
2231
- presencePenalty: z.nullable(z.number()).optional(),
2232
- responseFormat: z.union([
2233
- z.lazy(() => ListAgentsResponseFormatText$outboundSchema),
2234
- z.lazy(() => ListAgentsResponseFormatJSONObject$outboundSchema),
2235
- z.lazy(() => ListAgentsResponseFormatAgentsJSONSchema$outboundSchema),
2236
- ]).optional(),
2237
- reasoningEffort: ListAgentsReasoningEffort$outboundSchema.optional(),
2238
- verbosity: z.string().optional(),
2239
- seed: z.nullable(z.number()).optional(),
2240
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
2241
- streamOptions: z.nullable(
2242
- z.lazy(() => ListAgentsStreamOptions$outboundSchema),
2243
- ).optional(),
2244
- thinking: z.union([
2245
- components.ThinkingConfigDisabledSchema$outboundSchema,
2246
- components.ThinkingConfigEnabledSchema$outboundSchema,
2247
- ]).optional(),
2248
- temperature: z.nullable(z.number()).optional(),
2249
- topP: z.nullable(z.number()).optional(),
2250
- topK: z.nullable(z.number()).optional(),
2251
- toolChoice: z.union([
2252
- z.lazy(() => ListAgentsToolChoice2$outboundSchema),
2253
- ListAgentsToolChoice1$outboundSchema,
2254
- ]).optional(),
2255
- parallelToolCalls: z.boolean().optional(),
2256
- modalities: z.nullable(z.array(ListAgentsModalities$outboundSchema))
2257
- .optional(),
2258
- guardrails: z.array(z.lazy(() => ListAgentsAgentsGuardrails$outboundSchema))
2259
- .optional(),
2260
- }).transform((v) => {
2261
- return remap$(v, {
2262
- frequencyPenalty: "frequency_penalty",
2263
- maxTokens: "max_tokens",
2264
- maxCompletionTokens: "max_completion_tokens",
2265
- topLogprobs: "top_logprobs",
2266
- presencePenalty: "presence_penalty",
2267
- responseFormat: "response_format",
2268
- reasoningEffort: "reasoning_effort",
2269
- streamOptions: "stream_options",
2270
- topP: "top_p",
2271
- topK: "top_k",
2272
- toolChoice: "tool_choice",
2273
- parallelToolCalls: "parallel_tool_calls",
2274
- });
2275
- });
2276
-
2277
- export function listAgentsParametersToJSON(
2278
- listAgentsParameters: ListAgentsParameters,
2279
- ): string {
2280
- return JSON.stringify(
2281
- ListAgentsParameters$outboundSchema.parse(listAgentsParameters),
2282
- );
2283
- }
2284
- export function listAgentsParametersFromJSON(
2285
- jsonString: string,
2286
- ): SafeParseResult<ListAgentsParameters, SDKValidationError> {
2287
- return safeParse(
2288
- jsonString,
2289
- (x) => ListAgentsParameters$inboundSchema.parse(JSON.parse(x)),
2290
- `Failed to parse 'ListAgentsParameters' from JSON`,
2291
- );
2292
- }
2293
-
2294
- /** @internal */
2295
- export const ListAgentsRetry$inboundSchema: z.ZodType<
2296
- ListAgentsRetry,
2297
- z.ZodTypeDef,
2298
- unknown
2299
- > = z.object({
2300
- count: z.number().default(3),
2301
- on_codes: z.array(z.number()).optional(),
2302
- }).transform((v) => {
2303
- return remap$(v, {
2304
- "on_codes": "onCodes",
2305
- });
2306
- });
2307
- /** @internal */
2308
- export type ListAgentsRetry$Outbound = {
2309
- count: number;
2310
- on_codes?: Array<number> | undefined;
2311
- };
2312
-
2313
- /** @internal */
2314
- export const ListAgentsRetry$outboundSchema: z.ZodType<
2315
- ListAgentsRetry$Outbound,
2316
- z.ZodTypeDef,
2317
- ListAgentsRetry
2318
- > = z.object({
2319
- count: z.number().default(3),
2320
- onCodes: z.array(z.number()).optional(),
2321
- }).transform((v) => {
2322
- return remap$(v, {
2323
- onCodes: "on_codes",
2324
- });
2325
- });
2326
-
2327
- export function listAgentsRetryToJSON(
2328
- listAgentsRetry: ListAgentsRetry,
2329
- ): string {
2330
- return JSON.stringify(ListAgentsRetry$outboundSchema.parse(listAgentsRetry));
2331
- }
2332
- export function listAgentsRetryFromJSON(
2333
- jsonString: string,
2334
- ): SafeParseResult<ListAgentsRetry, SDKValidationError> {
2335
- return safeParse(
2336
- jsonString,
2337
- (x) => ListAgentsRetry$inboundSchema.parse(JSON.parse(x)),
2338
- `Failed to parse 'ListAgentsRetry' from JSON`,
2339
- );
2340
- }
2341
-
2342
- /** @internal */
2343
- export const ListAgentsFallbackModelConfigurationVoice$inboundSchema:
2344
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationVoice> = z
2345
- .nativeEnum(ListAgentsFallbackModelConfigurationVoice);
2346
- /** @internal */
2347
- export const ListAgentsFallbackModelConfigurationVoice$outboundSchema:
2348
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationVoice> =
2349
- ListAgentsFallbackModelConfigurationVoice$inboundSchema;
2350
-
2351
- /** @internal */
2352
- export const ListAgentsFallbackModelConfigurationFormat$inboundSchema:
2353
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationFormat> = z
2354
- .nativeEnum(ListAgentsFallbackModelConfigurationFormat);
2355
- /** @internal */
2356
- export const ListAgentsFallbackModelConfigurationFormat$outboundSchema:
2357
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationFormat> =
2358
- ListAgentsFallbackModelConfigurationFormat$inboundSchema;
2359
-
2360
- /** @internal */
2361
- export const ListAgentsFallbackModelConfigurationAudio$inboundSchema: z.ZodType<
2362
- ListAgentsFallbackModelConfigurationAudio,
2363
- z.ZodTypeDef,
2364
- unknown
2365
- > = z.object({
2366
- voice: ListAgentsFallbackModelConfigurationVoice$inboundSchema,
2367
- format: ListAgentsFallbackModelConfigurationFormat$inboundSchema,
2368
- });
2369
- /** @internal */
2370
- export type ListAgentsFallbackModelConfigurationAudio$Outbound = {
2371
- voice: string;
2372
- format: string;
2373
- };
2374
-
2375
- /** @internal */
2376
- export const ListAgentsFallbackModelConfigurationAudio$outboundSchema:
2377
- z.ZodType<
2378
- ListAgentsFallbackModelConfigurationAudio$Outbound,
2379
- z.ZodTypeDef,
2380
- ListAgentsFallbackModelConfigurationAudio
2381
- > = z.object({
2382
- voice: ListAgentsFallbackModelConfigurationVoice$outboundSchema,
2383
- format: ListAgentsFallbackModelConfigurationFormat$outboundSchema,
2384
- });
2385
-
2386
- export function listAgentsFallbackModelConfigurationAudioToJSON(
2387
- listAgentsFallbackModelConfigurationAudio:
2388
- ListAgentsFallbackModelConfigurationAudio,
2389
- ): string {
2390
- return JSON.stringify(
2391
- ListAgentsFallbackModelConfigurationAudio$outboundSchema.parse(
2392
- listAgentsFallbackModelConfigurationAudio,
2393
- ),
2394
- );
2395
- }
2396
- export function listAgentsFallbackModelConfigurationAudioFromJSON(
2397
- jsonString: string,
2398
- ): SafeParseResult<
2399
- ListAgentsFallbackModelConfigurationAudio,
2400
- SDKValidationError
2401
- > {
2402
- return safeParse(
2403
- jsonString,
2404
- (x) =>
2405
- ListAgentsFallbackModelConfigurationAudio$inboundSchema.parse(
2406
- JSON.parse(x),
2407
- ),
2408
- `Failed to parse 'ListAgentsFallbackModelConfigurationAudio' from JSON`,
2409
- );
2410
- }
2411
-
2412
- /** @internal */
2413
- export const ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema:
2414
- z.ZodType<
2415
- ListAgentsResponseFormatAgentsResponseJsonSchema,
2416
- z.ZodTypeDef,
2417
- unknown
2418
- > = z.object({
2419
- description: z.string().optional(),
2420
- name: z.string(),
2421
- schema: z.any().optional(),
2422
- strict: z.boolean().default(false),
2423
- });
2424
- /** @internal */
2425
- export type ListAgentsResponseFormatAgentsResponseJsonSchema$Outbound = {
2426
- description?: string | undefined;
2427
- name: string;
2428
- schema?: any | undefined;
2429
- strict: boolean;
2430
- };
2431
-
2432
- /** @internal */
2433
- export const ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema:
2434
- z.ZodType<
2435
- ListAgentsResponseFormatAgentsResponseJsonSchema$Outbound,
2436
- z.ZodTypeDef,
2437
- ListAgentsResponseFormatAgentsResponseJsonSchema
2438
- > = z.object({
2439
- description: z.string().optional(),
2440
- name: z.string(),
2441
- schema: z.any().optional(),
2442
- strict: z.boolean().default(false),
2443
- });
2444
-
2445
- export function listAgentsResponseFormatAgentsResponseJsonSchemaToJSON(
2446
- listAgentsResponseFormatAgentsResponseJsonSchema:
2447
- ListAgentsResponseFormatAgentsResponseJsonSchema,
2448
- ): string {
2449
- return JSON.stringify(
2450
- ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema.parse(
2451
- listAgentsResponseFormatAgentsResponseJsonSchema,
2452
- ),
2453
- );
2454
- }
2455
- export function listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON(
2456
- jsonString: string,
2457
- ): SafeParseResult<
2458
- ListAgentsResponseFormatAgentsResponseJsonSchema,
2459
- SDKValidationError
2460
- > {
2461
- return safeParse(
2462
- jsonString,
2463
- (x) =>
2464
- ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema.parse(
2465
- JSON.parse(x),
2466
- ),
2467
- `Failed to parse 'ListAgentsResponseFormatAgentsResponseJsonSchema' from JSON`,
2468
- );
2469
- }
2470
-
2471
- /** @internal */
2472
- export const ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema:
2473
- z.ZodType<
2474
- ListAgentsResponseFormatAgentsResponse200JSONSchema,
2475
- z.ZodTypeDef,
2476
- unknown
2477
- > = z.object({
2478
- type: z.literal("json_schema"),
2479
- json_schema: z.lazy(() =>
2480
- ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema
2481
- ),
2482
- }).transform((v) => {
2483
- return remap$(v, {
2484
- "json_schema": "jsonSchema",
2485
- });
2486
- });
2487
- /** @internal */
2488
- export type ListAgentsResponseFormatAgentsResponse200JSONSchema$Outbound = {
2489
- type: "json_schema";
2490
- json_schema: ListAgentsResponseFormatAgentsResponseJsonSchema$Outbound;
2491
- };
2492
-
2493
- /** @internal */
2494
- export const ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema:
2495
- z.ZodType<
2496
- ListAgentsResponseFormatAgentsResponse200JSONSchema$Outbound,
2497
- z.ZodTypeDef,
2498
- ListAgentsResponseFormatAgentsResponse200JSONSchema
2499
- > = z.object({
2500
- type: z.literal("json_schema"),
2501
- jsonSchema: z.lazy(() =>
2502
- ListAgentsResponseFormatAgentsResponseJsonSchema$outboundSchema
2503
- ),
2504
- }).transform((v) => {
2505
- return remap$(v, {
2506
- jsonSchema: "json_schema",
2507
- });
2508
- });
2509
-
2510
- export function listAgentsResponseFormatAgentsResponse200JSONSchemaToJSON(
2511
- listAgentsResponseFormatAgentsResponse200JSONSchema:
2512
- ListAgentsResponseFormatAgentsResponse200JSONSchema,
2513
- ): string {
2514
- return JSON.stringify(
2515
- ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema.parse(
2516
- listAgentsResponseFormatAgentsResponse200JSONSchema,
2517
- ),
2518
- );
2519
- }
2520
- export function listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON(
2521
- jsonString: string,
2522
- ): SafeParseResult<
2523
- ListAgentsResponseFormatAgentsResponse200JSONSchema,
2524
- SDKValidationError
2525
- > {
2526
- return safeParse(
2527
- jsonString,
2528
- (x) =>
2529
- ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema.parse(
2530
- JSON.parse(x),
2531
- ),
2532
- `Failed to parse 'ListAgentsResponseFormatAgentsResponse200JSONSchema' from JSON`,
2533
- );
2534
- }
2535
-
2536
- /** @internal */
2537
- export const ListAgentsResponseFormatAgentsJSONObject$inboundSchema: z.ZodType<
2538
- ListAgentsResponseFormatAgentsJSONObject,
2539
- z.ZodTypeDef,
2540
- unknown
2541
- > = z.object({
2542
- type: z.literal("json_object"),
2543
- });
2544
- /** @internal */
2545
- export type ListAgentsResponseFormatAgentsJSONObject$Outbound = {
2546
- type: "json_object";
2547
- };
2548
-
2549
- /** @internal */
2550
- export const ListAgentsResponseFormatAgentsJSONObject$outboundSchema: z.ZodType<
2551
- ListAgentsResponseFormatAgentsJSONObject$Outbound,
2552
- z.ZodTypeDef,
2553
- ListAgentsResponseFormatAgentsJSONObject
2554
- > = z.object({
2555
- type: z.literal("json_object"),
2556
- });
2557
-
2558
- export function listAgentsResponseFormatAgentsJSONObjectToJSON(
2559
- listAgentsResponseFormatAgentsJSONObject:
2560
- ListAgentsResponseFormatAgentsJSONObject,
2561
- ): string {
2562
- return JSON.stringify(
2563
- ListAgentsResponseFormatAgentsJSONObject$outboundSchema.parse(
2564
- listAgentsResponseFormatAgentsJSONObject,
2565
- ),
2566
- );
2567
- }
2568
- export function listAgentsResponseFormatAgentsJSONObjectFromJSON(
2569
- jsonString: string,
2570
- ): SafeParseResult<
2571
- ListAgentsResponseFormatAgentsJSONObject,
2572
- SDKValidationError
2573
- > {
2574
- return safeParse(
2575
- jsonString,
2576
- (x) =>
2577
- ListAgentsResponseFormatAgentsJSONObject$inboundSchema.parse(
2578
- JSON.parse(x),
2579
- ),
2580
- `Failed to parse 'ListAgentsResponseFormatAgentsJSONObject' from JSON`,
2581
- );
2582
- }
2583
-
2584
- /** @internal */
2585
- export const ListAgentsResponseFormatAgentsText$inboundSchema: z.ZodType<
2586
- ListAgentsResponseFormatAgentsText,
2587
- z.ZodTypeDef,
2588
- unknown
2589
- > = z.object({
2590
- type: z.literal("text"),
2591
- });
2592
- /** @internal */
2593
- export type ListAgentsResponseFormatAgentsText$Outbound = {
2594
- type: "text";
2595
- };
2596
-
2597
- /** @internal */
2598
- export const ListAgentsResponseFormatAgentsText$outboundSchema: z.ZodType<
2599
- ListAgentsResponseFormatAgentsText$Outbound,
2600
- z.ZodTypeDef,
2601
- ListAgentsResponseFormatAgentsText
2602
- > = z.object({
2603
- type: z.literal("text"),
2604
- });
2605
-
2606
- export function listAgentsResponseFormatAgentsTextToJSON(
2607
- listAgentsResponseFormatAgentsText: ListAgentsResponseFormatAgentsText,
2608
- ): string {
2609
- return JSON.stringify(
2610
- ListAgentsResponseFormatAgentsText$outboundSchema.parse(
2611
- listAgentsResponseFormatAgentsText,
2612
- ),
2613
- );
2614
- }
2615
- export function listAgentsResponseFormatAgentsTextFromJSON(
2616
- jsonString: string,
2617
- ): SafeParseResult<ListAgentsResponseFormatAgentsText, SDKValidationError> {
2618
- return safeParse(
2619
- jsonString,
2620
- (x) =>
2621
- ListAgentsResponseFormatAgentsText$inboundSchema.parse(JSON.parse(x)),
2622
- `Failed to parse 'ListAgentsResponseFormatAgentsText' from JSON`,
2623
- );
2624
- }
2625
-
2626
- /** @internal */
2627
- export const ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema:
2628
- z.ZodType<
2629
- ListAgentsFallbackModelConfigurationResponseFormat,
2630
- z.ZodTypeDef,
2631
- unknown
2632
- > = z.union([
2633
- z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
2634
- z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
2635
- z.lazy(() =>
2636
- ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
2637
- ),
2638
- ]);
2639
- /** @internal */
2640
- export type ListAgentsFallbackModelConfigurationResponseFormat$Outbound =
2641
- | ListAgentsResponseFormatAgentsText$Outbound
2642
- | ListAgentsResponseFormatAgentsJSONObject$Outbound
2643
- | ListAgentsResponseFormatAgentsResponse200JSONSchema$Outbound;
2644
-
2645
- /** @internal */
2646
- export const ListAgentsFallbackModelConfigurationResponseFormat$outboundSchema:
2647
- z.ZodType<
2648
- ListAgentsFallbackModelConfigurationResponseFormat$Outbound,
2649
- z.ZodTypeDef,
2650
- ListAgentsFallbackModelConfigurationResponseFormat
2651
- > = z.union([
2652
- z.lazy(() => ListAgentsResponseFormatAgentsText$outboundSchema),
2653
- z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$outboundSchema),
2654
- z.lazy(() =>
2655
- ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema
2656
- ),
2657
- ]);
2658
-
2659
- export function listAgentsFallbackModelConfigurationResponseFormatToJSON(
2660
- listAgentsFallbackModelConfigurationResponseFormat:
2661
- ListAgentsFallbackModelConfigurationResponseFormat,
2662
- ): string {
2663
- return JSON.stringify(
2664
- ListAgentsFallbackModelConfigurationResponseFormat$outboundSchema.parse(
2665
- listAgentsFallbackModelConfigurationResponseFormat,
2666
- ),
2667
- );
2668
- }
2669
- export function listAgentsFallbackModelConfigurationResponseFormatFromJSON(
2670
- jsonString: string,
2671
- ): SafeParseResult<
2672
- ListAgentsFallbackModelConfigurationResponseFormat,
2673
- SDKValidationError
2674
- > {
2675
- return safeParse(
2676
- jsonString,
2677
- (x) =>
2678
- ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema.parse(
2679
- JSON.parse(x),
2680
- ),
2681
- `Failed to parse 'ListAgentsFallbackModelConfigurationResponseFormat' from JSON`,
2682
- );
2683
- }
2684
-
2685
- /** @internal */
2686
- export const ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema:
2687
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationReasoningEffort> =
2688
- z.nativeEnum(ListAgentsFallbackModelConfigurationReasoningEffort);
2689
- /** @internal */
2690
- export const ListAgentsFallbackModelConfigurationReasoningEffort$outboundSchema:
2691
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationReasoningEffort> =
2692
- ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema;
2693
-
2694
- /** @internal */
2695
- export const ListAgentsFallbackModelConfigurationStop$inboundSchema: z.ZodType<
2696
- ListAgentsFallbackModelConfigurationStop,
2697
- z.ZodTypeDef,
2698
- unknown
2699
- > = z.union([z.string(), z.array(z.string())]);
2700
- /** @internal */
2701
- export type ListAgentsFallbackModelConfigurationStop$Outbound =
2702
- | string
2703
- | Array<string>;
2704
-
2705
- /** @internal */
2706
- export const ListAgentsFallbackModelConfigurationStop$outboundSchema: z.ZodType<
2707
- ListAgentsFallbackModelConfigurationStop$Outbound,
2708
- z.ZodTypeDef,
2709
- ListAgentsFallbackModelConfigurationStop
2710
- > = z.union([z.string(), z.array(z.string())]);
2711
-
2712
- export function listAgentsFallbackModelConfigurationStopToJSON(
2713
- listAgentsFallbackModelConfigurationStop:
2714
- ListAgentsFallbackModelConfigurationStop,
2715
- ): string {
2716
- return JSON.stringify(
2717
- ListAgentsFallbackModelConfigurationStop$outboundSchema.parse(
2718
- listAgentsFallbackModelConfigurationStop,
2719
- ),
2720
- );
2721
- }
2722
- export function listAgentsFallbackModelConfigurationStopFromJSON(
2723
- jsonString: string,
2724
- ): SafeParseResult<
2725
- ListAgentsFallbackModelConfigurationStop,
2726
- SDKValidationError
2727
- > {
2728
- return safeParse(
2729
- jsonString,
2730
- (x) =>
2731
- ListAgentsFallbackModelConfigurationStop$inboundSchema.parse(
2732
- JSON.parse(x),
2733
- ),
2734
- `Failed to parse 'ListAgentsFallbackModelConfigurationStop' from JSON`,
2735
- );
2736
- }
2737
-
2738
- /** @internal */
2739
- export const ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema:
2740
- z.ZodType<
2741
- ListAgentsFallbackModelConfigurationStreamOptions,
2742
- z.ZodTypeDef,
2743
- unknown
2744
- > = z.object({
2745
- include_usage: z.boolean().optional(),
2746
- }).transform((v) => {
2747
- return remap$(v, {
2748
- "include_usage": "includeUsage",
2749
- });
2750
- });
2751
- /** @internal */
2752
- export type ListAgentsFallbackModelConfigurationStreamOptions$Outbound = {
2753
- include_usage?: boolean | undefined;
2754
- };
2755
-
2756
- /** @internal */
2757
- export const ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema:
2758
- z.ZodType<
2759
- ListAgentsFallbackModelConfigurationStreamOptions$Outbound,
2760
- z.ZodTypeDef,
2761
- ListAgentsFallbackModelConfigurationStreamOptions
2762
- > = z.object({
2763
- includeUsage: z.boolean().optional(),
2764
- }).transform((v) => {
2765
- return remap$(v, {
2766
- includeUsage: "include_usage",
2767
- });
2768
- });
2769
-
2770
- export function listAgentsFallbackModelConfigurationStreamOptionsToJSON(
2771
- listAgentsFallbackModelConfigurationStreamOptions:
2772
- ListAgentsFallbackModelConfigurationStreamOptions,
2773
- ): string {
2774
- return JSON.stringify(
2775
- ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema.parse(
2776
- listAgentsFallbackModelConfigurationStreamOptions,
2777
- ),
2778
- );
2779
- }
2780
- export function listAgentsFallbackModelConfigurationStreamOptionsFromJSON(
2781
- jsonString: string,
2782
- ): SafeParseResult<
2783
- ListAgentsFallbackModelConfigurationStreamOptions,
2784
- SDKValidationError
2785
- > {
2786
- return safeParse(
2787
- jsonString,
2788
- (x) =>
2789
- ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema.parse(
2790
- JSON.parse(x),
2791
- ),
2792
- `Failed to parse 'ListAgentsFallbackModelConfigurationStreamOptions' from JSON`,
2793
- );
2794
- }
2795
-
2796
- /** @internal */
2797
- export const ListAgentsFallbackModelConfigurationThinking$inboundSchema:
2798
- z.ZodType<
2799
- ListAgentsFallbackModelConfigurationThinking,
2800
- z.ZodTypeDef,
2801
- unknown
2802
- > = z.union([
2803
- components.ThinkingConfigDisabledSchema$inboundSchema,
2804
- components.ThinkingConfigEnabledSchema$inboundSchema,
2805
- ]);
2806
- /** @internal */
2807
- export type ListAgentsFallbackModelConfigurationThinking$Outbound =
2808
- | components.ThinkingConfigDisabledSchema$Outbound
2809
- | components.ThinkingConfigEnabledSchema$Outbound;
2810
-
2811
- /** @internal */
2812
- export const ListAgentsFallbackModelConfigurationThinking$outboundSchema:
2813
- z.ZodType<
2814
- ListAgentsFallbackModelConfigurationThinking$Outbound,
2815
- z.ZodTypeDef,
2816
- ListAgentsFallbackModelConfigurationThinking
2817
- > = z.union([
2818
- components.ThinkingConfigDisabledSchema$outboundSchema,
2819
- components.ThinkingConfigEnabledSchema$outboundSchema,
2820
- ]);
2821
-
2822
- export function listAgentsFallbackModelConfigurationThinkingToJSON(
2823
- listAgentsFallbackModelConfigurationThinking:
2824
- ListAgentsFallbackModelConfigurationThinking,
2825
- ): string {
2826
- return JSON.stringify(
2827
- ListAgentsFallbackModelConfigurationThinking$outboundSchema.parse(
2828
- listAgentsFallbackModelConfigurationThinking,
2829
- ),
2830
- );
2831
- }
2832
- export function listAgentsFallbackModelConfigurationThinkingFromJSON(
2833
- jsonString: string,
2834
- ): SafeParseResult<
2835
- ListAgentsFallbackModelConfigurationThinking,
2836
- SDKValidationError
2837
- > {
2838
- return safeParse(
2839
- jsonString,
2840
- (x) =>
2841
- ListAgentsFallbackModelConfigurationThinking$inboundSchema.parse(
2842
- JSON.parse(x),
2843
- ),
2844
- `Failed to parse 'ListAgentsFallbackModelConfigurationThinking' from JSON`,
2845
- );
2846
- }
2847
-
2848
- /** @internal */
2849
- export const ListAgentsToolChoiceAgentsType$inboundSchema: z.ZodNativeEnum<
2850
- typeof ListAgentsToolChoiceAgentsType
2851
- > = z.nativeEnum(ListAgentsToolChoiceAgentsType);
2852
- /** @internal */
2853
- export const ListAgentsToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<
2854
- typeof ListAgentsToolChoiceAgentsType
2855
- > = ListAgentsToolChoiceAgentsType$inboundSchema;
2856
-
2857
- /** @internal */
2858
- export const ListAgentsToolChoiceAgentsFunction$inboundSchema: z.ZodType<
2859
- ListAgentsToolChoiceAgentsFunction,
2860
- z.ZodTypeDef,
2861
- unknown
2862
- > = z.object({
2863
- name: z.string(),
2864
- });
2865
- /** @internal */
2866
- export type ListAgentsToolChoiceAgentsFunction$Outbound = {
2867
- name: string;
2868
- };
2869
-
2870
- /** @internal */
2871
- export const ListAgentsToolChoiceAgentsFunction$outboundSchema: z.ZodType<
2872
- ListAgentsToolChoiceAgentsFunction$Outbound,
2873
- z.ZodTypeDef,
2874
- ListAgentsToolChoiceAgentsFunction
2875
- > = z.object({
2876
- name: z.string(),
2877
- });
2878
-
2879
- export function listAgentsToolChoiceAgentsFunctionToJSON(
2880
- listAgentsToolChoiceAgentsFunction: ListAgentsToolChoiceAgentsFunction,
2881
- ): string {
2882
- return JSON.stringify(
2883
- ListAgentsToolChoiceAgentsFunction$outboundSchema.parse(
2884
- listAgentsToolChoiceAgentsFunction,
2885
- ),
2886
- );
2887
- }
2888
- export function listAgentsToolChoiceAgentsFunctionFromJSON(
2889
- jsonString: string,
2890
- ): SafeParseResult<ListAgentsToolChoiceAgentsFunction, SDKValidationError> {
2891
- return safeParse(
2892
- jsonString,
2893
- (x) =>
2894
- ListAgentsToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)),
2895
- `Failed to parse 'ListAgentsToolChoiceAgentsFunction' from JSON`,
2896
- );
2897
- }
2898
-
2899
- /** @internal */
2900
- export const ListAgentsToolChoiceAgents2$inboundSchema: z.ZodType<
2901
- ListAgentsToolChoiceAgents2,
2902
- z.ZodTypeDef,
2903
- unknown
2904
- > = z.object({
2905
- type: ListAgentsToolChoiceAgentsType$inboundSchema.optional(),
2906
- function: z.lazy(() => ListAgentsToolChoiceAgentsFunction$inboundSchema),
2907
- });
2908
- /** @internal */
2909
- export type ListAgentsToolChoiceAgents2$Outbound = {
2910
- type?: string | undefined;
2911
- function: ListAgentsToolChoiceAgentsFunction$Outbound;
2912
- };
2913
-
2914
- /** @internal */
2915
- export const ListAgentsToolChoiceAgents2$outboundSchema: z.ZodType<
2916
- ListAgentsToolChoiceAgents2$Outbound,
2917
- z.ZodTypeDef,
2918
- ListAgentsToolChoiceAgents2
2919
- > = z.object({
2920
- type: ListAgentsToolChoiceAgentsType$outboundSchema.optional(),
2921
- function: z.lazy(() => ListAgentsToolChoiceAgentsFunction$outboundSchema),
2922
- });
2923
-
2924
- export function listAgentsToolChoiceAgents2ToJSON(
2925
- listAgentsToolChoiceAgents2: ListAgentsToolChoiceAgents2,
2926
- ): string {
2927
- return JSON.stringify(
2928
- ListAgentsToolChoiceAgents2$outboundSchema.parse(
2929
- listAgentsToolChoiceAgents2,
2930
- ),
2931
- );
2932
- }
2933
- export function listAgentsToolChoiceAgents2FromJSON(
2934
- jsonString: string,
2935
- ): SafeParseResult<ListAgentsToolChoiceAgents2, SDKValidationError> {
2936
- return safeParse(
2937
- jsonString,
2938
- (x) => ListAgentsToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)),
2939
- `Failed to parse 'ListAgentsToolChoiceAgents2' from JSON`,
2940
- );
2941
- }
2942
-
2943
- /** @internal */
2944
- export const ListAgentsToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<
2945
- typeof ListAgentsToolChoiceAgents1
2946
- > = z.nativeEnum(ListAgentsToolChoiceAgents1);
2947
- /** @internal */
2948
- export const ListAgentsToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<
2949
- typeof ListAgentsToolChoiceAgents1
2950
- > = ListAgentsToolChoiceAgents1$inboundSchema;
2951
-
2952
- /** @internal */
2953
- export const ListAgentsFallbackModelConfigurationToolChoice$inboundSchema:
2954
- z.ZodType<
2955
- ListAgentsFallbackModelConfigurationToolChoice,
2956
- z.ZodTypeDef,
2957
- unknown
2958
- > = z.union([
2959
- z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
2960
- ListAgentsToolChoiceAgents1$inboundSchema,
2961
- ]);
2962
- /** @internal */
2963
- export type ListAgentsFallbackModelConfigurationToolChoice$Outbound =
2964
- | ListAgentsToolChoiceAgents2$Outbound
2965
- | string;
2966
-
2967
- /** @internal */
2968
- export const ListAgentsFallbackModelConfigurationToolChoice$outboundSchema:
2969
- z.ZodType<
2970
- ListAgentsFallbackModelConfigurationToolChoice$Outbound,
2971
- z.ZodTypeDef,
2972
- ListAgentsFallbackModelConfigurationToolChoice
2973
- > = z.union([
2974
- z.lazy(() => ListAgentsToolChoiceAgents2$outboundSchema),
2975
- ListAgentsToolChoiceAgents1$outboundSchema,
2976
- ]);
2977
-
2978
- export function listAgentsFallbackModelConfigurationToolChoiceToJSON(
2979
- listAgentsFallbackModelConfigurationToolChoice:
2980
- ListAgentsFallbackModelConfigurationToolChoice,
2981
- ): string {
2982
- return JSON.stringify(
2983
- ListAgentsFallbackModelConfigurationToolChoice$outboundSchema.parse(
2984
- listAgentsFallbackModelConfigurationToolChoice,
2985
- ),
2986
- );
2987
- }
2988
- export function listAgentsFallbackModelConfigurationToolChoiceFromJSON(
2989
- jsonString: string,
2990
- ): SafeParseResult<
2991
- ListAgentsFallbackModelConfigurationToolChoice,
2992
- SDKValidationError
2993
- > {
2994
- return safeParse(
2995
- jsonString,
2996
- (x) =>
2997
- ListAgentsFallbackModelConfigurationToolChoice$inboundSchema.parse(
2998
- JSON.parse(x),
2999
- ),
3000
- `Failed to parse 'ListAgentsFallbackModelConfigurationToolChoice' from JSON`,
3001
- );
3002
- }
3003
-
3004
- /** @internal */
3005
- export const ListAgentsFallbackModelConfigurationModalities$inboundSchema:
3006
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationModalities> = z
3007
- .nativeEnum(ListAgentsFallbackModelConfigurationModalities);
3008
- /** @internal */
3009
- export const ListAgentsFallbackModelConfigurationModalities$outboundSchema:
3010
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationModalities> =
3011
- ListAgentsFallbackModelConfigurationModalities$inboundSchema;
3012
-
3013
- /** @internal */
3014
- export const ListAgentsIdAgents1$inboundSchema: z.ZodNativeEnum<
3015
- typeof ListAgentsIdAgents1
3016
- > = z.nativeEnum(ListAgentsIdAgents1);
3017
- /** @internal */
3018
- export const ListAgentsIdAgents1$outboundSchema: z.ZodNativeEnum<
3019
- typeof ListAgentsIdAgents1
3020
- > = ListAgentsIdAgents1$inboundSchema;
3021
-
3022
- /** @internal */
3023
- export const ListAgentsFallbackModelConfigurationId$inboundSchema: z.ZodType<
3024
- ListAgentsFallbackModelConfigurationId,
3025
- z.ZodTypeDef,
3026
- unknown
3027
- > = z.union([ListAgentsIdAgents1$inboundSchema, z.string()]);
3028
- /** @internal */
3029
- export type ListAgentsFallbackModelConfigurationId$Outbound = string | string;
3030
-
3031
- /** @internal */
3032
- export const ListAgentsFallbackModelConfigurationId$outboundSchema: z.ZodType<
3033
- ListAgentsFallbackModelConfigurationId$Outbound,
3034
- z.ZodTypeDef,
3035
- ListAgentsFallbackModelConfigurationId
3036
- > = z.union([ListAgentsIdAgents1$outboundSchema, z.string()]);
3037
-
3038
- export function listAgentsFallbackModelConfigurationIdToJSON(
3039
- listAgentsFallbackModelConfigurationId:
3040
- ListAgentsFallbackModelConfigurationId,
3041
- ): string {
3042
- return JSON.stringify(
3043
- ListAgentsFallbackModelConfigurationId$outboundSchema.parse(
3044
- listAgentsFallbackModelConfigurationId,
3045
- ),
3046
- );
3047
- }
3048
- export function listAgentsFallbackModelConfigurationIdFromJSON(
3049
- jsonString: string,
3050
- ): SafeParseResult<ListAgentsFallbackModelConfigurationId, SDKValidationError> {
3051
- return safeParse(
3052
- jsonString,
3053
- (x) =>
3054
- ListAgentsFallbackModelConfigurationId$inboundSchema.parse(JSON.parse(x)),
3055
- `Failed to parse 'ListAgentsFallbackModelConfigurationId' from JSON`,
3056
- );
3057
- }
3058
-
3059
- /** @internal */
3060
- export const ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema:
3061
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationExecuteOn> = z
3062
- .nativeEnum(ListAgentsFallbackModelConfigurationExecuteOn);
3063
- /** @internal */
3064
- export const ListAgentsFallbackModelConfigurationExecuteOn$outboundSchema:
3065
- z.ZodNativeEnum<typeof ListAgentsFallbackModelConfigurationExecuteOn> =
3066
- ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema;
3067
-
3068
- /** @internal */
3069
- export const ListAgentsFallbackModelConfigurationGuardrails$inboundSchema:
3070
- z.ZodType<
3071
- ListAgentsFallbackModelConfigurationGuardrails,
3072
- z.ZodTypeDef,
3073
- unknown
3074
- > = z.object({
3075
- id: z.union([ListAgentsIdAgents1$inboundSchema, z.string()]),
3076
- execute_on: ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema,
3077
- }).transform((v) => {
3078
- return remap$(v, {
3079
- "execute_on": "executeOn",
3080
- });
3081
- });
3082
- /** @internal */
3083
- export type ListAgentsFallbackModelConfigurationGuardrails$Outbound = {
3084
- id: string | string;
3085
- execute_on: string;
3086
- };
3087
-
3088
- /** @internal */
3089
- export const ListAgentsFallbackModelConfigurationGuardrails$outboundSchema:
3090
- z.ZodType<
3091
- ListAgentsFallbackModelConfigurationGuardrails$Outbound,
3092
- z.ZodTypeDef,
3093
- ListAgentsFallbackModelConfigurationGuardrails
3094
- > = z.object({
3095
- id: z.union([ListAgentsIdAgents1$outboundSchema, z.string()]),
3096
- executeOn: ListAgentsFallbackModelConfigurationExecuteOn$outboundSchema,
3097
- }).transform((v) => {
3098
- return remap$(v, {
3099
- executeOn: "execute_on",
3100
- });
3101
- });
3102
-
3103
- export function listAgentsFallbackModelConfigurationGuardrailsToJSON(
3104
- listAgentsFallbackModelConfigurationGuardrails:
3105
- ListAgentsFallbackModelConfigurationGuardrails,
3106
- ): string {
3107
- return JSON.stringify(
3108
- ListAgentsFallbackModelConfigurationGuardrails$outboundSchema.parse(
3109
- listAgentsFallbackModelConfigurationGuardrails,
3110
- ),
3111
- );
3112
- }
3113
- export function listAgentsFallbackModelConfigurationGuardrailsFromJSON(
3114
- jsonString: string,
3115
- ): SafeParseResult<
3116
- ListAgentsFallbackModelConfigurationGuardrails,
3117
- SDKValidationError
3118
- > {
3119
- return safeParse(
3120
- jsonString,
3121
- (x) =>
3122
- ListAgentsFallbackModelConfigurationGuardrails$inboundSchema.parse(
3123
- JSON.parse(x),
3124
- ),
3125
- `Failed to parse 'ListAgentsFallbackModelConfigurationGuardrails' from JSON`,
3126
- );
3127
- }
3128
-
3129
- /** @internal */
3130
- export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
3131
- z.ZodType<
3132
- ListAgentsFallbackModelConfigurationParameters,
3133
- z.ZodTypeDef,
3134
- unknown
3135
- > = z.object({
3136
- audio: z.nullable(
3137
- z.lazy(() => ListAgentsFallbackModelConfigurationAudio$inboundSchema),
3138
- ).optional(),
3139
- frequency_penalty: z.nullable(z.number()).optional(),
3140
- max_tokens: z.nullable(z.number().int()).optional(),
3141
- max_completion_tokens: z.nullable(z.number().int()).optional(),
3142
- logprobs: z.nullable(z.boolean()).optional(),
3143
- top_logprobs: z.nullable(z.number().int()).optional(),
3144
- n: z.nullable(z.number().int()).optional(),
3145
- presence_penalty: z.nullable(z.number()).optional(),
3146
- response_format: z.union([
3147
- z.lazy(() => ListAgentsResponseFormatAgentsText$inboundSchema),
3148
- z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$inboundSchema),
3149
- z.lazy(() =>
3150
- ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema
3151
- ),
3152
- ]).optional(),
3153
- reasoning_effort:
3154
- ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema
3155
- .optional(),
3156
- verbosity: z.string().optional(),
3157
- seed: z.nullable(z.number()).optional(),
3158
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3159
- stream_options: z.nullable(
3160
- z.lazy(() =>
3161
- ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema
3162
- ),
3163
- ).optional(),
3164
- thinking: z.union([
3165
- components.ThinkingConfigDisabledSchema$inboundSchema,
3166
- components.ThinkingConfigEnabledSchema$inboundSchema,
3167
- ]).optional(),
3168
- temperature: z.nullable(z.number()).optional(),
3169
- top_p: z.nullable(z.number()).optional(),
3170
- top_k: z.nullable(z.number()).optional(),
3171
- tool_choice: z.union([
3172
- z.lazy(() => ListAgentsToolChoiceAgents2$inboundSchema),
3173
- ListAgentsToolChoiceAgents1$inboundSchema,
3174
- ]).optional(),
3175
- parallel_tool_calls: z.boolean().optional(),
3176
- modalities: z.nullable(
3177
- z.array(ListAgentsFallbackModelConfigurationModalities$inboundSchema),
3178
- ).optional(),
3179
- guardrails: z.array(
3180
- z.lazy(() =>
3181
- ListAgentsFallbackModelConfigurationGuardrails$inboundSchema
3182
- ),
3183
- ).optional(),
3184
- }).transform((v) => {
3185
- return remap$(v, {
3186
- "frequency_penalty": "frequencyPenalty",
3187
- "max_tokens": "maxTokens",
3188
- "max_completion_tokens": "maxCompletionTokens",
3189
- "top_logprobs": "topLogprobs",
3190
- "presence_penalty": "presencePenalty",
3191
- "response_format": "responseFormat",
3192
- "reasoning_effort": "reasoningEffort",
3193
- "stream_options": "streamOptions",
3194
- "top_p": "topP",
3195
- "top_k": "topK",
3196
- "tool_choice": "toolChoice",
3197
- "parallel_tool_calls": "parallelToolCalls",
3198
- });
3199
- });
3200
- /** @internal */
3201
- export type ListAgentsFallbackModelConfigurationParameters$Outbound = {
3202
- audio?: ListAgentsFallbackModelConfigurationAudio$Outbound | null | undefined;
3203
- frequency_penalty?: number | null | undefined;
3204
- max_tokens?: number | null | undefined;
3205
- max_completion_tokens?: number | null | undefined;
3206
- logprobs?: boolean | null | undefined;
3207
- top_logprobs?: number | null | undefined;
3208
- n?: number | null | undefined;
3209
- presence_penalty?: number | null | undefined;
3210
- response_format?:
3211
- | ListAgentsResponseFormatAgentsText$Outbound
3212
- | ListAgentsResponseFormatAgentsJSONObject$Outbound
3213
- | ListAgentsResponseFormatAgentsResponse200JSONSchema$Outbound
3214
- | undefined;
3215
- reasoning_effort?: string | undefined;
3216
- verbosity?: string | undefined;
3217
- seed?: number | null | undefined;
3218
- stop?: string | Array<string> | null | undefined;
3219
- stream_options?:
3220
- | ListAgentsFallbackModelConfigurationStreamOptions$Outbound
3221
- | null
3222
- | undefined;
3223
- thinking?:
3224
- | components.ThinkingConfigDisabledSchema$Outbound
3225
- | components.ThinkingConfigEnabledSchema$Outbound
3226
- | undefined;
3227
- temperature?: number | null | undefined;
3228
- top_p?: number | null | undefined;
3229
- top_k?: number | null | undefined;
3230
- tool_choice?: ListAgentsToolChoiceAgents2$Outbound | string | undefined;
3231
- parallel_tool_calls?: boolean | undefined;
3232
- modalities?: Array<string> | null | undefined;
3233
- guardrails?:
3234
- | Array<ListAgentsFallbackModelConfigurationGuardrails$Outbound>
3235
- | undefined;
3236
- };
3237
-
3238
- /** @internal */
3239
- export const ListAgentsFallbackModelConfigurationParameters$outboundSchema:
3240
- z.ZodType<
3241
- ListAgentsFallbackModelConfigurationParameters$Outbound,
3242
- z.ZodTypeDef,
3243
- ListAgentsFallbackModelConfigurationParameters
3244
- > = z.object({
3245
- audio: z.nullable(
3246
- z.lazy(() => ListAgentsFallbackModelConfigurationAudio$outboundSchema),
3247
- ).optional(),
3248
- frequencyPenalty: z.nullable(z.number()).optional(),
3249
- maxTokens: z.nullable(z.number().int()).optional(),
3250
- maxCompletionTokens: z.nullable(z.number().int()).optional(),
3251
- logprobs: z.nullable(z.boolean()).optional(),
3252
- topLogprobs: z.nullable(z.number().int()).optional(),
3253
- n: z.nullable(z.number().int()).optional(),
3254
- presencePenalty: z.nullable(z.number()).optional(),
3255
- responseFormat: z.union([
3256
- z.lazy(() => ListAgentsResponseFormatAgentsText$outboundSchema),
3257
- z.lazy(() => ListAgentsResponseFormatAgentsJSONObject$outboundSchema),
3258
- z.lazy(() =>
3259
- ListAgentsResponseFormatAgentsResponse200JSONSchema$outboundSchema
3260
- ),
3261
- ]).optional(),
3262
- reasoningEffort:
3263
- ListAgentsFallbackModelConfigurationReasoningEffort$outboundSchema
3264
- .optional(),
3265
- verbosity: z.string().optional(),
3266
- seed: z.nullable(z.number()).optional(),
3267
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
3268
- streamOptions: z.nullable(
3269
- z.lazy(() =>
3270
- ListAgentsFallbackModelConfigurationStreamOptions$outboundSchema
3271
- ),
3272
- ).optional(),
3273
- thinking: z.union([
3274
- components.ThinkingConfigDisabledSchema$outboundSchema,
3275
- components.ThinkingConfigEnabledSchema$outboundSchema,
3276
- ]).optional(),
3277
- temperature: z.nullable(z.number()).optional(),
3278
- topP: z.nullable(z.number()).optional(),
3279
- topK: z.nullable(z.number()).optional(),
3280
- toolChoice: z.union([
3281
- z.lazy(() => ListAgentsToolChoiceAgents2$outboundSchema),
3282
- ListAgentsToolChoiceAgents1$outboundSchema,
3283
- ]).optional(),
3284
- parallelToolCalls: z.boolean().optional(),
3285
- modalities: z.nullable(
3286
- z.array(ListAgentsFallbackModelConfigurationModalities$outboundSchema),
3287
- ).optional(),
3288
- guardrails: z.array(
3289
- z.lazy(() =>
3290
- ListAgentsFallbackModelConfigurationGuardrails$outboundSchema
3291
- ),
3292
- ).optional(),
3293
- }).transform((v) => {
3294
- return remap$(v, {
3295
- frequencyPenalty: "frequency_penalty",
3296
- maxTokens: "max_tokens",
3297
- maxCompletionTokens: "max_completion_tokens",
3298
- topLogprobs: "top_logprobs",
3299
- presencePenalty: "presence_penalty",
3300
- responseFormat: "response_format",
3301
- reasoningEffort: "reasoning_effort",
3302
- streamOptions: "stream_options",
3303
- topP: "top_p",
3304
- topK: "top_k",
3305
- toolChoice: "tool_choice",
3306
- parallelToolCalls: "parallel_tool_calls",
3307
- });
3308
- });
3309
-
3310
- export function listAgentsFallbackModelConfigurationParametersToJSON(
3311
- listAgentsFallbackModelConfigurationParameters:
3312
- ListAgentsFallbackModelConfigurationParameters,
3313
- ): string {
3314
- return JSON.stringify(
3315
- ListAgentsFallbackModelConfigurationParameters$outboundSchema.parse(
3316
- listAgentsFallbackModelConfigurationParameters,
3317
- ),
3318
- );
3319
- }
3320
- export function listAgentsFallbackModelConfigurationParametersFromJSON(
3321
- jsonString: string,
3322
- ): SafeParseResult<
3323
- ListAgentsFallbackModelConfigurationParameters,
3324
- SDKValidationError
3325
- > {
3326
- return safeParse(
3327
- jsonString,
3328
- (x) =>
3329
- ListAgentsFallbackModelConfigurationParameters$inboundSchema.parse(
3330
- JSON.parse(x),
3331
- ),
3332
- `Failed to parse 'ListAgentsFallbackModelConfigurationParameters' from JSON`,
3333
- );
3334
- }
3335
-
3336
- /** @internal */
3337
- export const ListAgentsFallbackModelConfiguration2$inboundSchema: z.ZodType<
3338
- ListAgentsFallbackModelConfiguration2,
3339
- z.ZodTypeDef,
3340
- unknown
3341
- > = z.object({
3342
- id: z.string(),
3343
- parameters: z.lazy(() =>
3344
- ListAgentsFallbackModelConfigurationParameters$inboundSchema
3345
- ).optional(),
3346
- });
3347
- /** @internal */
3348
- export type ListAgentsFallbackModelConfiguration2$Outbound = {
3349
- id: string;
3350
- parameters?:
3351
- | ListAgentsFallbackModelConfigurationParameters$Outbound
3352
- | undefined;
3353
- };
3354
-
3355
- /** @internal */
3356
- export const ListAgentsFallbackModelConfiguration2$outboundSchema: z.ZodType<
3357
- ListAgentsFallbackModelConfiguration2$Outbound,
3358
- z.ZodTypeDef,
3359
- ListAgentsFallbackModelConfiguration2
3360
- > = z.object({
3361
- id: z.string(),
3362
- parameters: z.lazy(() =>
3363
- ListAgentsFallbackModelConfigurationParameters$outboundSchema
3364
- ).optional(),
3365
- });
3366
-
3367
- export function listAgentsFallbackModelConfiguration2ToJSON(
3368
- listAgentsFallbackModelConfiguration2: ListAgentsFallbackModelConfiguration2,
3369
- ): string {
3370
- return JSON.stringify(
3371
- ListAgentsFallbackModelConfiguration2$outboundSchema.parse(
3372
- listAgentsFallbackModelConfiguration2,
3373
- ),
3374
- );
3375
- }
3376
- export function listAgentsFallbackModelConfiguration2FromJSON(
3377
- jsonString: string,
3378
- ): SafeParseResult<ListAgentsFallbackModelConfiguration2, SDKValidationError> {
3379
- return safeParse(
3380
- jsonString,
3381
- (x) =>
3382
- ListAgentsFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)),
3383
- `Failed to parse 'ListAgentsFallbackModelConfiguration2' from JSON`,
3384
- );
3385
- }
3386
-
3387
- /** @internal */
3388
- export const ListAgentsFallbackModelConfiguration$inboundSchema: z.ZodType<
3389
- ListAgentsFallbackModelConfiguration,
3390
- z.ZodTypeDef,
3391
- unknown
3392
- > = z.union([
3393
- z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
3394
- z.string(),
3395
- ]);
3396
- /** @internal */
3397
- export type ListAgentsFallbackModelConfiguration$Outbound =
3398
- | ListAgentsFallbackModelConfiguration2$Outbound
3399
- | string;
3400
-
3401
- /** @internal */
3402
- export const ListAgentsFallbackModelConfiguration$outboundSchema: z.ZodType<
3403
- ListAgentsFallbackModelConfiguration$Outbound,
3404
- z.ZodTypeDef,
3405
- ListAgentsFallbackModelConfiguration
3406
- > = z.union([
3407
- z.lazy(() => ListAgentsFallbackModelConfiguration2$outboundSchema),
3408
- z.string(),
3409
- ]);
3410
-
3411
- export function listAgentsFallbackModelConfigurationToJSON(
3412
- listAgentsFallbackModelConfiguration: ListAgentsFallbackModelConfiguration,
3413
- ): string {
3414
- return JSON.stringify(
3415
- ListAgentsFallbackModelConfiguration$outboundSchema.parse(
3416
- listAgentsFallbackModelConfiguration,
3417
- ),
3418
- );
3419
- }
3420
- export function listAgentsFallbackModelConfigurationFromJSON(
3421
- jsonString: string,
3422
- ): SafeParseResult<ListAgentsFallbackModelConfiguration, SDKValidationError> {
3423
- return safeParse(
3424
- jsonString,
3425
- (x) =>
3426
- ListAgentsFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)),
3427
- `Failed to parse 'ListAgentsFallbackModelConfiguration' from JSON`,
3428
- );
3429
- }
3430
-
3431
- /** @internal */
3432
- export const ListAgentsModel$inboundSchema: z.ZodType<
3433
- ListAgentsModel,
3434
- z.ZodTypeDef,
3435
- unknown
3436
- > = z.object({
3437
- id: z.string(),
3438
- integration_id: z.nullable(z.string()).optional(),
3439
- parameters: z.lazy(() => ListAgentsParameters$inboundSchema).optional(),
3440
- retry: z.lazy(() => ListAgentsRetry$inboundSchema).optional(),
3441
- fallback_models: z.nullable(
3442
- z.array(z.union([
3443
- z.lazy(() => ListAgentsFallbackModelConfiguration2$inboundSchema),
3444
- z.string(),
3445
- ])),
3446
- ).optional(),
3447
- }).transform((v) => {
3448
- return remap$(v, {
3449
- "integration_id": "integrationId",
3450
- "fallback_models": "fallbackModels",
3451
- });
3452
- });
3453
- /** @internal */
3454
- export type ListAgentsModel$Outbound = {
3455
- id: string;
3456
- integration_id?: string | null | undefined;
3457
- parameters?: ListAgentsParameters$Outbound | undefined;
3458
- retry?: ListAgentsRetry$Outbound | undefined;
3459
- fallback_models?:
3460
- | Array<ListAgentsFallbackModelConfiguration2$Outbound | string>
3461
- | null
3462
- | undefined;
3463
- };
3464
-
3465
- /** @internal */
3466
- export const ListAgentsModel$outboundSchema: z.ZodType<
3467
- ListAgentsModel$Outbound,
3468
- z.ZodTypeDef,
3469
- ListAgentsModel
3470
- > = z.object({
3471
- id: z.string(),
3472
- integrationId: z.nullable(z.string()).optional(),
3473
- parameters: z.lazy(() => ListAgentsParameters$outboundSchema).optional(),
3474
- retry: z.lazy(() => ListAgentsRetry$outboundSchema).optional(),
3475
- fallbackModels: z.nullable(
3476
- z.array(z.union([
3477
- z.lazy(() => ListAgentsFallbackModelConfiguration2$outboundSchema),
3478
- z.string(),
3479
- ])),
3480
- ).optional(),
3481
- }).transform((v) => {
3482
- return remap$(v, {
3483
- integrationId: "integration_id",
3484
- fallbackModels: "fallback_models",
3485
- });
3486
- });
3487
-
3488
- export function listAgentsModelToJSON(
3489
- listAgentsModel: ListAgentsModel,
3490
- ): string {
3491
- return JSON.stringify(ListAgentsModel$outboundSchema.parse(listAgentsModel));
3492
- }
3493
- export function listAgentsModelFromJSON(
3494
- jsonString: string,
3495
- ): SafeParseResult<ListAgentsModel, SDKValidationError> {
3496
- return safeParse(
3497
- jsonString,
3498
- (x) => ListAgentsModel$inboundSchema.parse(JSON.parse(x)),
3499
- `Failed to parse 'ListAgentsModel' from JSON`,
3500
- );
3501
- }
3502
-
3503
- /** @internal */
3504
- export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
3505
- ListAgentsTeamOfAgents,
3506
- z.ZodTypeDef,
3507
- unknown
3508
- > = z.object({
3509
- key: z.string(),
3510
- role: z.string().optional(),
3511
- });
3512
- /** @internal */
3513
- export type ListAgentsTeamOfAgents$Outbound = {
3514
- key: string;
3515
- role?: string | undefined;
3516
- };
3517
-
3518
- /** @internal */
3519
- export const ListAgentsTeamOfAgents$outboundSchema: z.ZodType<
3520
- ListAgentsTeamOfAgents$Outbound,
3521
- z.ZodTypeDef,
3522
- ListAgentsTeamOfAgents
3523
- > = z.object({
3524
- key: z.string(),
3525
- role: z.string().optional(),
3526
- });
3527
-
3528
- export function listAgentsTeamOfAgentsToJSON(
3529
- listAgentsTeamOfAgents: ListAgentsTeamOfAgents,
3530
- ): string {
3531
- return JSON.stringify(
3532
- ListAgentsTeamOfAgents$outboundSchema.parse(listAgentsTeamOfAgents),
3533
- );
3534
- }
3535
- export function listAgentsTeamOfAgentsFromJSON(
3536
- jsonString: string,
3537
- ): SafeParseResult<ListAgentsTeamOfAgents, SDKValidationError> {
3538
- return safeParse(
3539
- jsonString,
3540
- (x) => ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
3541
- `Failed to parse 'ListAgentsTeamOfAgents' from JSON`,
3542
- );
3543
- }
3544
-
3545
- /** @internal */
3546
- export const ListAgentsMetrics$inboundSchema: z.ZodType<
3547
- ListAgentsMetrics,
3548
- z.ZodTypeDef,
3549
- unknown
3550
- > = z.object({
3551
- total_cost: z.number().default(0),
3552
- }).transform((v) => {
3553
- return remap$(v, {
3554
- "total_cost": "totalCost",
3555
- });
3556
- });
3557
- /** @internal */
3558
- export type ListAgentsMetrics$Outbound = {
3559
- total_cost: number;
3560
- };
3561
-
3562
- /** @internal */
3563
- export const ListAgentsMetrics$outboundSchema: z.ZodType<
3564
- ListAgentsMetrics$Outbound,
3565
- z.ZodTypeDef,
3566
- ListAgentsMetrics
3567
- > = z.object({
3568
- totalCost: z.number().default(0),
3569
- }).transform((v) => {
3570
- return remap$(v, {
3571
- totalCost: "total_cost",
3572
- });
3573
- });
3574
-
3575
- export function listAgentsMetricsToJSON(
3576
- listAgentsMetrics: ListAgentsMetrics,
3577
- ): string {
3578
- return JSON.stringify(
3579
- ListAgentsMetrics$outboundSchema.parse(listAgentsMetrics),
3580
- );
3581
- }
3582
- export function listAgentsMetricsFromJSON(
3583
- jsonString: string,
3584
- ): SafeParseResult<ListAgentsMetrics, SDKValidationError> {
3585
- return safeParse(
3586
- jsonString,
3587
- (x) => ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
3588
- `Failed to parse 'ListAgentsMetrics' from JSON`,
3589
- );
3590
- }
3591
-
3592
- /** @internal */
3593
- export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
3594
- ListAgentsKnowledgeBases,
3595
- z.ZodTypeDef,
3596
- unknown
3597
- > = z.object({
3598
- knowledge_id: z.string(),
3599
- }).transform((v) => {
3600
- return remap$(v, {
3601
- "knowledge_id": "knowledgeId",
3602
- });
3603
- });
3604
- /** @internal */
3605
- export type ListAgentsKnowledgeBases$Outbound = {
3606
- knowledge_id: string;
3607
- };
3608
-
3609
- /** @internal */
3610
- export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
3611
- ListAgentsKnowledgeBases$Outbound,
3612
- z.ZodTypeDef,
3613
- ListAgentsKnowledgeBases
3614
- > = z.object({
3615
- knowledgeId: z.string(),
3616
- }).transform((v) => {
3617
- return remap$(v, {
3618
- knowledgeId: "knowledge_id",
3619
- });
3620
- });
3621
-
3622
- export function listAgentsKnowledgeBasesToJSON(
3623
- listAgentsKnowledgeBases: ListAgentsKnowledgeBases,
3624
- ): string {
3625
- return JSON.stringify(
3626
- ListAgentsKnowledgeBases$outboundSchema.parse(listAgentsKnowledgeBases),
3627
- );
3628
- }
3629
- export function listAgentsKnowledgeBasesFromJSON(
3630
- jsonString: string,
3631
- ): SafeParseResult<ListAgentsKnowledgeBases, SDKValidationError> {
3632
- return safeParse(
3633
- jsonString,
3634
- (x) => ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
3635
- `Failed to parse 'ListAgentsKnowledgeBases' from JSON`,
3636
- );
3637
- }
3638
-
3639
- /** @internal */
3640
- export const ListAgentsData$inboundSchema: z.ZodType<
3641
- ListAgentsData,
3642
- z.ZodTypeDef,
3643
- unknown
3644
- > = z.object({
3645
- _id: z.string(),
3646
- key: z.string(),
3647
- display_name: z.string(),
3648
- created_by_id: z.nullable(z.string()).optional(),
3649
- updated_by_id: z.nullable(z.string()).optional(),
3650
- created: z.string().optional(),
3651
- updated: z.string().optional(),
3652
- role: z.string(),
3653
- description: z.string(),
3654
- system_prompt: z.string().optional(),
3655
- instructions: z.string(),
3656
- status: ListAgentsStatus$inboundSchema,
3657
- settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
3658
- model: z.lazy(() => ListAgentsModel$inboundSchema),
3659
- version_hash: z.string().optional(),
3660
- path: z.string(),
3661
- memory_stores: z.array(z.string()),
3662
- team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema)),
3663
- metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
3664
- variables: z.record(z.any()).optional(),
3665
- knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
3666
- .optional(),
3667
- }).transform((v) => {
3668
- return remap$(v, {
3669
- "_id": "id",
3670
- "display_name": "displayName",
3671
- "created_by_id": "createdById",
3672
- "updated_by_id": "updatedById",
3673
- "system_prompt": "systemPrompt",
3674
- "version_hash": "versionHash",
3675
- "memory_stores": "memoryStores",
3676
- "team_of_agents": "teamOfAgents",
3677
- "knowledge_bases": "knowledgeBases",
3678
- });
3679
- });
3680
- /** @internal */
3681
- export type ListAgentsData$Outbound = {
3682
- _id: string;
3683
- key: string;
3684
- display_name: string;
3685
- created_by_id?: string | null | undefined;
3686
- updated_by_id?: string | null | undefined;
3687
- created?: string | undefined;
3688
- updated?: string | undefined;
3689
- role: string;
3690
- description: string;
3691
- system_prompt?: string | undefined;
3692
- instructions: string;
3693
- status: string;
3694
- settings?: ListAgentsSettings$Outbound | undefined;
3695
- model: ListAgentsModel$Outbound;
3696
- version_hash?: string | undefined;
3697
- path: string;
3698
- memory_stores: Array<string>;
3699
- team_of_agents: Array<ListAgentsTeamOfAgents$Outbound>;
3700
- metrics?: ListAgentsMetrics$Outbound | undefined;
3701
- variables?: { [k: string]: any } | undefined;
3702
- knowledge_bases?: Array<ListAgentsKnowledgeBases$Outbound> | undefined;
3703
- };
3704
-
3705
- /** @internal */
3706
- export const ListAgentsData$outboundSchema: z.ZodType<
3707
- ListAgentsData$Outbound,
3708
- z.ZodTypeDef,
3709
- ListAgentsData
3710
- > = z.object({
3711
- id: z.string(),
3712
- key: z.string(),
3713
- displayName: z.string(),
3714
- createdById: z.nullable(z.string()).optional(),
3715
- updatedById: z.nullable(z.string()).optional(),
3716
- created: z.string().optional(),
3717
- updated: z.string().optional(),
3718
- role: z.string(),
3719
- description: z.string(),
3720
- systemPrompt: z.string().optional(),
3721
- instructions: z.string(),
3722
- status: ListAgentsStatus$outboundSchema,
3723
- settings: z.lazy(() => ListAgentsSettings$outboundSchema).optional(),
3724
- model: z.lazy(() => ListAgentsModel$outboundSchema),
3725
- versionHash: z.string().optional(),
3726
- path: z.string(),
3727
- memoryStores: z.array(z.string()),
3728
- teamOfAgents: z.array(z.lazy(() => ListAgentsTeamOfAgents$outboundSchema)),
3729
- metrics: z.lazy(() => ListAgentsMetrics$outboundSchema).optional(),
3730
- variables: z.record(z.any()).optional(),
3731
- knowledgeBases: z.array(z.lazy(() => ListAgentsKnowledgeBases$outboundSchema))
3732
- .optional(),
3733
- }).transform((v) => {
3734
- return remap$(v, {
3735
- id: "_id",
3736
- displayName: "display_name",
3737
- createdById: "created_by_id",
3738
- updatedById: "updated_by_id",
3739
- systemPrompt: "system_prompt",
3740
- versionHash: "version_hash",
3741
- memoryStores: "memory_stores",
3742
- teamOfAgents: "team_of_agents",
3743
- knowledgeBases: "knowledge_bases",
3744
- });
3745
- });
3746
-
3747
- export function listAgentsDataToJSON(listAgentsData: ListAgentsData): string {
3748
- return JSON.stringify(ListAgentsData$outboundSchema.parse(listAgentsData));
3749
- }
3750
- export function listAgentsDataFromJSON(
3751
- jsonString: string,
3752
- ): SafeParseResult<ListAgentsData, SDKValidationError> {
3753
- return safeParse(
3754
- jsonString,
3755
- (x) => ListAgentsData$inboundSchema.parse(JSON.parse(x)),
3756
- `Failed to parse 'ListAgentsData' from JSON`,
3757
- );
3758
- }
3759
-
3760
- /** @internal */
3761
- export const ListAgentsResponseBody$inboundSchema: z.ZodType<
3762
- ListAgentsResponseBody,
3763
- z.ZodTypeDef,
3764
- unknown
3765
- > = z.object({
3766
- object: ListAgentsObject$inboundSchema,
3767
- data: z.array(z.lazy(() => ListAgentsData$inboundSchema)),
3768
- has_more: z.boolean(),
3769
- }).transform((v) => {
3770
- return remap$(v, {
3771
- "has_more": "hasMore",
3772
- });
3773
- });
3774
- /** @internal */
3775
- export type ListAgentsResponseBody$Outbound = {
3776
- object: string;
3777
- data: Array<ListAgentsData$Outbound>;
3778
- has_more: boolean;
3779
- };
3780
-
3781
- /** @internal */
3782
- export const ListAgentsResponseBody$outboundSchema: z.ZodType<
3783
- ListAgentsResponseBody$Outbound,
3784
- z.ZodTypeDef,
3785
- ListAgentsResponseBody
3786
- > = z.object({
3787
- object: ListAgentsObject$outboundSchema,
3788
- data: z.array(z.lazy(() => ListAgentsData$outboundSchema)),
3789
- hasMore: z.boolean(),
3790
- }).transform((v) => {
3791
- return remap$(v, {
3792
- hasMore: "has_more",
3793
- });
3794
- });
3795
-
3796
- export function listAgentsResponseBodyToJSON(
3797
- listAgentsResponseBody: ListAgentsResponseBody,
3798
- ): string {
3799
- return JSON.stringify(
3800
- ListAgentsResponseBody$outboundSchema.parse(listAgentsResponseBody),
3801
- );
3802
- }
3803
- export function listAgentsResponseBodyFromJSON(
3804
- jsonString: string,
3805
- ): SafeParseResult<ListAgentsResponseBody, SDKValidationError> {
3806
- return safeParse(
3807
- jsonString,
3808
- (x) => ListAgentsResponseBody$inboundSchema.parse(JSON.parse(x)),
3809
- `Failed to parse 'ListAgentsResponseBody' from JSON`,
3810
- );
3811
- }