@orq-ai/node 4.0.2 → 4.1.0-rc.0

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