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

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