@orq-ai/node 3.14.7 → 4.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/bin/mcp-server.js +210 -213
  2. package/bin/mcp-server.js.map +38 -38
  3. package/docs/sdks/agents/README.md +8 -4
  4. package/docs/sdks/budgets/README.md +4 -2
  5. package/docs/sdks/tools/README.md +4 -2
  6. package/examples/package-lock.json +5 -6
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/models/operations/createbudget.js +2 -2
  16. package/models/operations/createcontact.js +2 -2
  17. package/models/operations/createdataset.js +2 -2
  18. package/models/operations/createdatasetitem.js +8 -8
  19. package/models/operations/createdatasource.js +2 -2
  20. package/models/operations/createeval.js +28 -28
  21. package/models/operations/createtool.js +10 -10
  22. package/models/operations/duplicatetool.js +10 -10
  23. package/models/operations/fileget.js +2 -2
  24. package/models/operations/filelist.js +2 -2
  25. package/models/operations/fileupload.js +2 -2
  26. package/models/operations/getalltools.js +10 -10
  27. package/models/operations/getbudget.js +2 -2
  28. package/models/operations/getevals.js +28 -28
  29. package/models/operations/listbudgets.js +2 -2
  30. package/models/operations/listcontacts.js +2 -2
  31. package/models/operations/listdatasetdatapoints.js +8 -8
  32. package/models/operations/listdatasets.js +2 -2
  33. package/models/operations/listdatasources.js +2 -2
  34. package/models/operations/retrievecontact.js +2 -2
  35. package/models/operations/retrievedatapoint.js +8 -8
  36. package/models/operations/retrievedataset.js +2 -2
  37. package/models/operations/retrievedatasource.js +2 -2
  38. package/models/operations/retrievetool.js +10 -10
  39. package/models/operations/updatebudget.js +2 -2
  40. package/models/operations/updatecontact.js +2 -2
  41. package/models/operations/updatedatapoint.js +8 -8
  42. package/models/operations/updatedataset.js +2 -2
  43. package/models/operations/updatedatasource.js +2 -2
  44. package/models/operations/updateeval.js +28 -28
  45. package/models/operations/updatetool.js +10 -10
  46. package/package.json +4 -4
  47. package/src/lib/config.ts +2 -2
  48. package/src/mcp-server/mcp-server.ts +1 -1
  49. package/src/mcp-server/server.ts +1 -1
  50. package/src/models/operations/createbudget.ts +2 -2
  51. package/src/models/operations/createcontact.ts +2 -2
  52. package/src/models/operations/createdataset.ts +2 -2
  53. package/src/models/operations/createdatasetitem.ts +8 -8
  54. package/src/models/operations/createdatasource.ts +2 -2
  55. package/src/models/operations/createeval.ts +28 -28
  56. package/src/models/operations/createtool.ts +10 -10
  57. package/src/models/operations/duplicatetool.ts +10 -10
  58. package/src/models/operations/fileget.ts +2 -2
  59. package/src/models/operations/filelist.ts +2 -2
  60. package/src/models/operations/fileupload.ts +2 -2
  61. package/src/models/operations/getalltools.ts +10 -10
  62. package/src/models/operations/getbudget.ts +2 -2
  63. package/src/models/operations/getevals.ts +28 -28
  64. package/src/models/operations/listbudgets.ts +2 -2
  65. package/src/models/operations/listcontacts.ts +2 -2
  66. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  67. package/src/models/operations/listdatasets.ts +2 -2
  68. package/src/models/operations/listdatasources.ts +2 -2
  69. package/src/models/operations/retrievecontact.ts +2 -2
  70. package/src/models/operations/retrievedatapoint.ts +8 -8
  71. package/src/models/operations/retrievedataset.ts +2 -2
  72. package/src/models/operations/retrievedatasource.ts +2 -2
  73. package/src/models/operations/retrievetool.ts +10 -10
  74. package/src/models/operations/updatebudget.ts +2 -2
  75. package/src/models/operations/updatecontact.ts +2 -2
  76. package/src/models/operations/updatedatapoint.ts +8 -8
  77. package/src/models/operations/updatedataset.ts +2 -2
  78. package/src/models/operations/updatedatasource.ts +2 -2
  79. package/src/models/operations/updateeval.ts +28 -28
  80. package/src/models/operations/updatetool.ts +10 -10
  81. package/packages/orq-rc/FUNCTIONS.md +0 -103
  82. package/packages/orq-rc/README.md +0 -909
  83. package/packages/orq-rc/RUNTIMES.md +0 -48
  84. package/packages/orq-rc/docs/sdks/agents/README.md +0 -1319
  85. package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
  86. package/packages/orq-rc/docs/sdks/chunking/README.md +0 -95
  87. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
  88. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
  89. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
  90. package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
  91. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
  92. package/packages/orq-rc/docs/sdks/files/README.md +0 -301
  93. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1489
  94. package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1172
  95. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
  96. package/packages/orq-rc/docs/sdks/models/README.md +0 -76
  97. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
  98. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
  99. package/packages/orq-rc/docs/sdks/tools/README.md +0 -490
  100. package/packages/orq-rc/examples/README.md +0 -31
  101. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  102. package/packages/orq-rc/examples/package-lock.json +0 -627
  103. package/packages/orq-rc/examples/package.json +0 -18
  104. package/packages/orq-rc/jsr.json +0 -28
  105. package/packages/orq-rc/package-lock.json +0 -3071
  106. package/packages/orq-rc/package.json +0 -43
  107. package/packages/orq-rc/src/core.ts +0 -13
  108. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -172
  109. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -176
  110. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -167
  111. package/packages/orq-rc/src/funcs/agentsList.ts +0 -167
  112. package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
  113. package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
  114. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -175
  115. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
  116. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
  117. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -163
  118. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -190
  119. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -188
  120. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -176
  121. package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
  122. package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
  123. package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
  124. package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
  125. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
  126. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  127. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  128. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  129. package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
  130. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  131. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  132. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  133. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  134. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  135. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  136. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  137. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  138. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  139. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  140. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  141. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  142. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  143. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  144. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  145. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  146. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  147. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  148. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  149. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  150. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  151. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  152. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  153. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  154. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  155. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  156. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  157. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  158. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  159. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  160. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  161. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  162. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  163. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  164. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  165. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  166. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  167. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  168. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  169. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  170. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  171. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  172. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  173. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  174. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  175. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  176. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -171
  177. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
  178. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  179. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  180. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
  181. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
  182. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  183. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
  184. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
  185. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  186. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
  187. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
  188. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  189. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
  190. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
  191. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  192. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  193. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  194. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  195. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  196. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  197. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  198. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  199. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  200. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
  201. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  202. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +0 -175
  203. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  204. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  205. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  206. package/packages/orq-rc/src/hooks/global.ts +0 -44
  207. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  208. package/packages/orq-rc/src/hooks/index.ts +0 -6
  209. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  210. package/packages/orq-rc/src/hooks/types.ts +0 -112
  211. package/packages/orq-rc/src/index.ts +0 -9
  212. package/packages/orq-rc/src/lib/base64.ts +0 -37
  213. package/packages/orq-rc/src/lib/config.ts +0 -74
  214. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  215. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  216. package/packages/orq-rc/src/lib/env.ts +0 -89
  217. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  218. package/packages/orq-rc/src/lib/files.ts +0 -82
  219. package/packages/orq-rc/src/lib/http.ts +0 -323
  220. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  221. package/packages/orq-rc/src/lib/logger.ts +0 -9
  222. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  223. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  224. package/packages/orq-rc/src/lib/retries.ts +0 -218
  225. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  226. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  227. package/packages/orq-rc/src/lib/security.ts +0 -264
  228. package/packages/orq-rc/src/lib/url.ts +0 -33
  229. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
  230. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  231. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  232. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  233. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  234. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  235. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  236. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  237. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  238. package/packages/orq-rc/src/mcp-server/server.ts +0 -259
  239. package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
  240. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
  241. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
  242. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -37
  243. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
  245. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
  246. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
  247. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
  248. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
  249. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
  250. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -37
  251. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
  252. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -37
  253. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
  254. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
  255. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
  256. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
  257. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
  258. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  260. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  261. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  271. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  277. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  278. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  279. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  280. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  281. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  283. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  285. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  286. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  287. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  308. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  309. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  310. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  311. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  312. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  313. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  314. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  316. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  317. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  318. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  320. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  321. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
  322. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
  323. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  324. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  325. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  326. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  327. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  328. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  329. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  330. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  331. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  332. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
  333. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
  334. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +0 -37
  335. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
  336. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  337. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
  338. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  339. package/packages/orq-rc/src/models/components/deployments.ts +0 -8147
  340. package/packages/orq-rc/src/models/components/index.ts +0 -6
  341. package/packages/orq-rc/src/models/components/security.ts +0 -71
  342. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  343. package/packages/orq-rc/src/models/errors/createagent.ts +0 -80
  344. package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
  345. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -80
  346. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
  347. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
  348. package/packages/orq-rc/src/models/errors/duplicatetool.ts +0 -91
  349. package/packages/orq-rc/src/models/errors/getagent.ts +0 -80
  350. package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -80
  351. package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
  352. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
  353. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
  354. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  355. package/packages/orq-rc/src/models/errors/index.ts +0 -29
  356. package/packages/orq-rc/src/models/errors/listagenttasks.ts +0 -80
  357. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  358. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  359. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -91
  360. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  361. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -80
  362. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -80
  363. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -80
  364. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
  365. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
  366. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
  367. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -91
  368. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -78
  369. package/packages/orq-rc/src/models/operations/createagent.ts +0 -3104
  370. package/packages/orq-rc/src/models/operations/createbudget.ts +0 -745
  371. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -428
  372. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
  373. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -302
  374. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -6943
  375. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  376. package/packages/orq-rc/src/models/operations/createeval.ts +0 -9341
  377. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  378. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1850
  379. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -274
  380. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -287
  381. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -2032
  382. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -7812
  383. package/packages/orq-rc/src/models/operations/createtool.ts +0 -4077
  384. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -78
  385. package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -69
  386. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  387. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -243
  388. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
  389. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -87
  390. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -78
  391. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  392. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
  393. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  394. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -87
  395. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -98
  396. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -78
  397. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  398. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -75
  399. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -6547
  400. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -10532
  401. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1266
  402. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2606
  403. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -10655
  404. package/packages/orq-rc/src/models/operations/duplicatetool.ts +0 -2349
  405. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  406. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  407. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  408. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  409. package/packages/orq-rc/src/models/operations/getagent.ts +0 -957
  410. package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -259
  411. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -318
  412. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -338
  413. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -1277
  414. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2572
  415. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2308
  416. package/packages/orq-rc/src/models/operations/getbudget.ts +0 -441
  417. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -230
  418. package/packages/orq-rc/src/models/operations/getevals.ts +0 -7486
  419. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  420. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1292
  421. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2437
  422. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2444
  423. package/packages/orq-rc/src/models/operations/index.ts +0 -102
  424. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1569
  425. package/packages/orq-rc/src/models/operations/listactions.ts +0 -526
  426. package/packages/orq-rc/src/models/operations/listagents.ts +0 -1077
  427. package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -1106
  428. package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -617
  429. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  430. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -507
  431. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -500
  432. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -4086
  433. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  434. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -454
  435. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1303
  436. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  437. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2580
  438. package/packages/orq-rc/src/models/operations/parse.ts +0 -1295
  439. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  440. package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -426
  441. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
  442. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -3853
  443. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -291
  444. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  445. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -201
  446. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -220
  447. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -1160
  448. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2333
  449. package/packages/orq-rc/src/models/operations/runagent.ts +0 -4342
  450. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3573
  451. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -1367
  452. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -4355
  453. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3321
  454. package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -628
  455. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  456. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
  457. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -6934
  458. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -386
  459. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  460. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -9704
  461. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -2341
  462. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -283
  463. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -296
  464. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -1363
  465. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -8176
  466. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4288
  467. package/packages/orq-rc/src/sdk/agents.ts +0 -238
  468. package/packages/orq-rc/src/sdk/budgets.ts +0 -99
  469. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  470. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  471. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  472. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  473. package/packages/orq-rc/src/sdk/evals.ts +0 -69
  474. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  475. package/packages/orq-rc/src/sdk/files.ts +0 -78
  476. package/packages/orq-rc/src/sdk/index.ts +0 -5
  477. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  478. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  479. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  480. package/packages/orq-rc/src/sdk/models.ts +0 -25
  481. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  482. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  483. package/packages/orq-rc/src/sdk/sdk.ts +0 -97
  484. package/packages/orq-rc/src/sdk/tools.ts +0 -117
  485. package/packages/orq-rc/src/types/async.ts +0 -68
  486. package/packages/orq-rc/src/types/blobs.ts +0 -32
  487. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  488. package/packages/orq-rc/src/types/enums.ts +0 -16
  489. package/packages/orq-rc/src/types/fp.ts +0 -50
  490. package/packages/orq-rc/src/types/index.ts +0 -11
  491. package/packages/orq-rc/src/types/operations.ts +0 -105
  492. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  493. package/packages/orq-rc/src/types/streams.ts +0 -21
  494. package/packages/orq-rc/tsconfig.json +0 -41
@@ -1,3104 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- /**
13
- * 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.
14
- */
15
- export const ToolApprovalRequired = {
16
- All: "all",
17
- RespectTool: "respect_tool",
18
- None: "none",
19
- } as const;
20
- /**
21
- * 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.
22
- */
23
- export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
24
-
25
- /**
26
- * Function tool type
27
- */
28
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
29
- {
30
- Function: "function",
31
- } as const;
32
- /**
33
- * Function tool type
34
- */
35
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type =
36
- ClosedEnum<
37
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
38
- >;
39
-
40
- /**
41
- * Calls custom function tools defined in the agent configuration. Must reference a pre-created function tool by key or id.
42
- */
43
- export type FunctionTool = {
44
- /**
45
- * Function tool type
46
- */
47
- type:
48
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type;
49
- /**
50
- * The key of the pre-created function tool
51
- */
52
- key?: string | undefined;
53
- /**
54
- * The ID of the pre-created function tool
55
- */
56
- id?: string | undefined;
57
- /**
58
- * Whether this tool requires approval before execution
59
- */
60
- requiresApproval?: boolean | undefined;
61
- };
62
-
63
- /**
64
- * Code execution tool type
65
- */
66
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
67
- {
68
- Code: "code",
69
- } as const;
70
- /**
71
- * Code execution tool type
72
- */
73
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type =
74
- ClosedEnum<
75
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
76
- >;
77
-
78
- /**
79
- * Executes code snippets in a sandboxed environment. Must reference a pre-created code tool by key or id.
80
- */
81
- export type CodeExecutionTool = {
82
- /**
83
- * Code execution tool type
84
- */
85
- type:
86
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type;
87
- /**
88
- * The key of the pre-created code tool
89
- */
90
- key?: string | undefined;
91
- /**
92
- * The ID of the pre-created code tool
93
- */
94
- id?: string | undefined;
95
- /**
96
- * Whether this tool requires approval before execution
97
- */
98
- requiresApproval?: boolean | undefined;
99
- };
100
-
101
- /**
102
- * HTTP tool type
103
- */
104
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
105
- {
106
- Http: "http",
107
- } as const;
108
- /**
109
- * HTTP tool type
110
- */
111
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type =
112
- ClosedEnum<
113
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
114
- >;
115
-
116
- /**
117
- * Executes HTTP requests to interact with external APIs and web services. Must reference a pre-created HTTP tool by key or id.
118
- */
119
- export type HTTPTool = {
120
- /**
121
- * HTTP tool type
122
- */
123
- type:
124
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type;
125
- /**
126
- * The key of the pre-created HTTP tool
127
- */
128
- key?: string | undefined;
129
- /**
130
- * The ID of the pre-created HTTP tool
131
- */
132
- id?: string | undefined;
133
- /**
134
- * Whether this tool requires approval before execution
135
- */
136
- requiresApproval?: boolean | undefined;
137
- };
138
-
139
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
140
- {
141
- CurrentDate: "current_date",
142
- } as const;
143
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type =
144
- ClosedEnum<
145
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
146
- >;
147
-
148
- /**
149
- * Returns the current date and time
150
- */
151
- export type CurrentDateTool = {
152
- type:
153
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type;
154
- /**
155
- * Whether this tool requires approval before execution
156
- */
157
- requiresApproval?: boolean | undefined;
158
- };
159
-
160
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
161
- {
162
- QueryKnowledgeBase: "query_knowledge_base",
163
- } as const;
164
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type =
165
- ClosedEnum<
166
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
167
- >;
168
-
169
- /**
170
- * Queries knowledge bases for information
171
- */
172
- export type QueryKnowledgeBaseTool = {
173
- type:
174
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type;
175
- /**
176
- * Whether this tool requires approval before execution
177
- */
178
- requiresApproval?: boolean | undefined;
179
- };
180
-
181
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
182
- {
183
- RetrieveKnowledgeBases: "retrieve_knowledge_bases",
184
- } as const;
185
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type =
186
- ClosedEnum<
187
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
188
- >;
189
-
190
- /**
191
- * Lists available knowledge bases
192
- */
193
- export type RetrieveKnowledgeBasesTool = {
194
- type: CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type;
195
- /**
196
- * Whether this tool requires approval before execution
197
- */
198
- requiresApproval?: boolean | undefined;
199
- };
200
-
201
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
202
- {
203
- DeleteMemoryDocument: "delete_memory_document",
204
- } as const;
205
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type =
206
- ClosedEnum<
207
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
208
- >;
209
-
210
- /**
211
- * Deletes documents from memory stores
212
- */
213
- export type DeleteMemoryDocumentTool = {
214
- type: CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type;
215
- /**
216
- * Whether this tool requires approval before execution
217
- */
218
- requiresApproval?: boolean | undefined;
219
- };
220
-
221
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
222
- {
223
- RetrieveMemoryStores: "retrieve_memory_stores",
224
- } as const;
225
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType =
226
- ClosedEnum<
227
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
228
- >;
229
-
230
- /**
231
- * Lists available memory stores
232
- */
233
- export type RetrieveMemoryStoresTool = {
234
- type: CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType;
235
- /**
236
- * Whether this tool requires approval before execution
237
- */
238
- requiresApproval?: boolean | undefined;
239
- };
240
-
241
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
242
- {
243
- WriteMemoryStore: "write_memory_store",
244
- } as const;
245
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType =
246
- ClosedEnum<
247
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
248
- >;
249
-
250
- /**
251
- * Writes information to agent memory stores
252
- */
253
- export type WriteMemoryStoreTool = {
254
- type: CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType;
255
- /**
256
- * Whether this tool requires approval before execution
257
- */
258
- requiresApproval?: boolean | undefined;
259
- };
260
-
261
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType = {
262
- QueryMemoryStore: "query_memory_store",
263
- } as const;
264
- export type CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType =
265
- ClosedEnum<typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType>;
266
-
267
- /**
268
- * Queries agent memory stores for context
269
- */
270
- export type QueryMemoryStoreTool = {
271
- type: CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType;
272
- /**
273
- * Whether this tool requires approval before execution
274
- */
275
- requiresApproval?: boolean | undefined;
276
- };
277
-
278
- export const CreateAgentAgentToolInputCRUDAgentsRequestType = {
279
- RetrieveAgents: "retrieve_agents",
280
- } as const;
281
- export type CreateAgentAgentToolInputCRUDAgentsRequestType = ClosedEnum<
282
- typeof CreateAgentAgentToolInputCRUDAgentsRequestType
283
- >;
284
-
285
- /**
286
- * Retrieves available agents in the system
287
- */
288
- export type RetrieveAgentsTool = {
289
- type: CreateAgentAgentToolInputCRUDAgentsRequestType;
290
- /**
291
- * Whether this tool requires approval before execution
292
- */
293
- requiresApproval?: boolean | undefined;
294
- };
295
-
296
- export const CreateAgentAgentToolInputCRUDAgentsType = {
297
- CallSubAgent: "call_sub_agent",
298
- } as const;
299
- export type CreateAgentAgentToolInputCRUDAgentsType = ClosedEnum<
300
- typeof CreateAgentAgentToolInputCRUDAgentsType
301
- >;
302
-
303
- /**
304
- * Delegates tasks to specialized sub-agents
305
- */
306
- export type CallSubAgentTool = {
307
- type: CreateAgentAgentToolInputCRUDAgentsType;
308
- /**
309
- * Whether this tool requires approval before execution
310
- */
311
- requiresApproval?: boolean | undefined;
312
- };
313
-
314
- export const CreateAgentAgentToolInputCRUDType = {
315
- WebScraper: "web_scraper",
316
- } as const;
317
- export type CreateAgentAgentToolInputCRUDType = ClosedEnum<
318
- typeof CreateAgentAgentToolInputCRUDType
319
- >;
320
-
321
- /**
322
- * Scrapes and extracts content from web pages
323
- */
324
- export type WebScraperTool = {
325
- type: CreateAgentAgentToolInputCRUDType;
326
- /**
327
- * Whether this tool requires approval before execution
328
- */
329
- requiresApproval?: boolean | undefined;
330
- };
331
-
332
- export const AgentToolInputCRUDType = {
333
- GoogleSearch: "google_search",
334
- } as const;
335
- export type AgentToolInputCRUDType = ClosedEnum<typeof AgentToolInputCRUDType>;
336
-
337
- /**
338
- * Performs Google searches to retrieve web content
339
- */
340
- export type GoogleSearchTool = {
341
- type: AgentToolInputCRUDType;
342
- /**
343
- * Whether this tool requires approval before execution
344
- */
345
- requiresApproval?: boolean | undefined;
346
- };
347
-
348
- /**
349
- * Tool configuration for agent create/update operations. Built-in tools only require a type, while custom tools (HTTP, Code, Function) must reference pre-created tools by key or id.
350
- */
351
- export type AgentToolInputCRUD =
352
- | GoogleSearchTool
353
- | WebScraperTool
354
- | CallSubAgentTool
355
- | RetrieveAgentsTool
356
- | QueryMemoryStoreTool
357
- | WriteMemoryStoreTool
358
- | RetrieveMemoryStoresTool
359
- | DeleteMemoryDocumentTool
360
- | RetrieveKnowledgeBasesTool
361
- | QueryKnowledgeBaseTool
362
- | CurrentDateTool
363
- | HTTPTool
364
- | CodeExecutionTool
365
- | FunctionTool;
366
-
367
- /**
368
- * Configuration settings for the agent's behavior
369
- */
370
- export type Settings = {
371
- /**
372
- * Maximum iterations(llm calls) before the agent will stop executing.
373
- */
374
- maxIterations?: number | undefined;
375
- /**
376
- * 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.
377
- */
378
- maxExecutionTime?: number | undefined;
379
- /**
380
- * 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.
381
- */
382
- toolApprovalRequired?: ToolApprovalRequired | undefined;
383
- /**
384
- * Tools available to the agent. Built-in tools only need a type, while custom tools (http, code, function) must reference pre-created tools by key or id.
385
- */
386
- tools?:
387
- | Array<
388
- | GoogleSearchTool
389
- | WebScraperTool
390
- | CallSubAgentTool
391
- | RetrieveAgentsTool
392
- | QueryMemoryStoreTool
393
- | WriteMemoryStoreTool
394
- | RetrieveMemoryStoresTool
395
- | DeleteMemoryDocumentTool
396
- | RetrieveKnowledgeBasesTool
397
- | QueryKnowledgeBaseTool
398
- | CurrentDateTool
399
- | HTTPTool
400
- | CodeExecutionTool
401
- | FunctionTool
402
- >
403
- | undefined;
404
- };
405
-
406
- export type KnowledgeBases = {
407
- /**
408
- * Unique identifier of the knowledge base to search
409
- */
410
- knowledgeId: string;
411
- };
412
-
413
- export type TeamOfAgents = {
414
- /**
415
- * The unique key of the agent within the workspace
416
- */
417
- key: string;
418
- /**
419
- * 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.
420
- */
421
- role?: string | undefined;
422
- };
423
-
424
- export type CreateAgentRequestBody = {
425
- /**
426
- * The path where the agent will be stored in the project structure
427
- */
428
- path: string;
429
- /**
430
- * Unique identifier for the agent within the workspace
431
- */
432
- key: string;
433
- /**
434
- * The role or function of the agent
435
- */
436
- role: string;
437
- /**
438
- * A brief description of what the agent does
439
- */
440
- description: string;
441
- /**
442
- * Detailed instructions that guide the agent's behavior
443
- */
444
- instructions: string;
445
- /**
446
- * A custom system prompt template for the agent. If omitted, the default template is used.
447
- */
448
- systemPrompt?: string | undefined;
449
- /**
450
- * The primary language model that powers the agent (e.g., "anthropic/claude-3-sonnet-20240229")
451
- */
452
- model: string;
453
- /**
454
- * Optional array of fallback model IDs to use when the primary model fails. Models are tried in order. All models must support tool calling capabilities.
455
- */
456
- fallbackModels?: Array<string> | undefined;
457
- /**
458
- * Configuration settings for the agent's behavior
459
- */
460
- settings: Settings;
461
- /**
462
- * Optional array of memory store keys for the agent to access
463
- */
464
- memoryStores?: Array<string> | undefined;
465
- /**
466
- * Optional array of knowledge base configurations for the agent to access
467
- */
468
- knowledgeBases?: Array<KnowledgeBases> | undefined;
469
- /**
470
- * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
471
- */
472
- teamOfAgents?: Array<TeamOfAgents> | undefined;
473
- };
474
-
475
- /**
476
- * 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.
477
- */
478
- export const CreateAgentStatus = {
479
- Live: "live",
480
- Draft: "draft",
481
- Pending: "pending",
482
- Published: "published",
483
- } as const;
484
- /**
485
- * 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.
486
- */
487
- export type CreateAgentStatus = ClosedEnum<typeof CreateAgentStatus>;
488
-
489
- /**
490
- * 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.
491
- */
492
- export const CreateAgentToolApprovalRequired = {
493
- All: "all",
494
- RespectTool: "respect_tool",
495
- None: "none",
496
- } as const;
497
- /**
498
- * 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.
499
- */
500
- export type CreateAgentToolApprovalRequired = ClosedEnum<
501
- typeof CreateAgentToolApprovalRequired
502
- >;
503
-
504
- export type Conditions = {
505
- /**
506
- * The argument of the tool call to evaluate
507
- */
508
- condition: string;
509
- /**
510
- * The operator to use
511
- */
512
- operator: string;
513
- /**
514
- * The value to compare against
515
- */
516
- value: string;
517
- };
518
-
519
- export type CreateAgentTools = {
520
- /**
521
- * The id of the resource
522
- */
523
- id: string;
524
- /**
525
- * Optional tool key for custom tools
526
- */
527
- key?: string | undefined;
528
- actionType: string;
529
- displayName?: string | undefined;
530
- requiresApproval?: boolean | undefined;
531
- conditions?: Array<Conditions> | undefined;
532
- /**
533
- * Optional MCP server reference for tools from MCP servers
534
- */
535
- mcpServer?: string | undefined;
536
- /**
537
- * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
538
- */
539
- timeout?: number | undefined;
540
- };
541
-
542
- export type CreateAgentSettings = {
543
- /**
544
- * Maximum iterations(llm calls) before the agent will stop executing.
545
- */
546
- maxIterations?: number | undefined;
547
- /**
548
- * 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.
549
- */
550
- maxExecutionTime?: number | undefined;
551
- /**
552
- * 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.
553
- */
554
- toolApprovalRequired?: CreateAgentToolApprovalRequired | undefined;
555
- tools?: Array<CreateAgentTools> | undefined;
556
- };
557
-
558
- export type CreateAgentModel = {
559
- /**
560
- * The database ID of the primary model
561
- */
562
- id: string;
563
- /**
564
- * Optional integration ID for custom model configurations
565
- */
566
- integrationId?: string | null | undefined;
567
- /**
568
- * Optional array of fallback model IDs that will be used automatically in order if the primary model fails
569
- */
570
- fallbackModels?: Array<string> | null | undefined;
571
- /**
572
- * Maximum number of tokens for model responses
573
- */
574
- maxTokens?: number | undefined;
575
- /**
576
- * Temperature setting for model responses
577
- */
578
- temperature?: number | undefined;
579
- };
580
-
581
- export type CreateAgentTeamOfAgents = {
582
- /**
583
- * The unique key of the agent within the workspace
584
- */
585
- key: string;
586
- /**
587
- * 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.
588
- */
589
- role?: string | undefined;
590
- };
591
-
592
- export type Metrics = {
593
- totalCost?: number | undefined;
594
- };
595
-
596
- export type CreateAgentKnowledgeBases = {
597
- /**
598
- * Unique identifier of the knowledge base to search
599
- */
600
- knowledgeId: string;
601
- };
602
-
603
- export const HiddenPanels = {
604
- Model: "model",
605
- Tools: "tools",
606
- KnowledgeBases: "knowledge_bases",
607
- Variables: "variables",
608
- RuntimeConstraints: "runtime_constraints",
609
- } as const;
610
- export type HiddenPanels = ClosedEnum<typeof HiddenPanels>;
611
-
612
- /**
613
- * Agent created successfully
614
- */
615
- export type CreateAgentResponseBody = {
616
- id: string;
617
- key: string;
618
- workspaceId: string;
619
- projectId: string;
620
- createdById?: string | null | undefined;
621
- updatedById?: string | null | undefined;
622
- created?: string | undefined;
623
- updated?: string | undefined;
624
- role: string;
625
- description: string;
626
- systemPrompt?: string | undefined;
627
- instructions: string;
628
- /**
629
- * 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.
630
- */
631
- status: CreateAgentStatus;
632
- settings?: CreateAgentSettings | undefined;
633
- model: CreateAgentModel;
634
- versionHash?: string | undefined;
635
- /**
636
- * Entity storage path in the format: `project/folder/subfolder/...`
637
- *
638
- * @remarks
639
- *
640
- * The first element identifies the project, followed by nested folders (auto-created as needed).
641
- *
642
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
643
- */
644
- path: string;
645
- memoryStores: Array<string>;
646
- /**
647
- * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
648
- */
649
- teamOfAgents: Array<CreateAgentTeamOfAgents>;
650
- metrics?: Metrics | undefined;
651
- /**
652
- * Extracted variables from agent instructions
653
- */
654
- variables?: { [k: string]: any } | undefined;
655
- /**
656
- * Agent knowledge bases reference
657
- */
658
- knowledgeBases?: Array<CreateAgentKnowledgeBases> | undefined;
659
- /**
660
- * List of hidden collapsed panels in configuration. Duplicates are not allowed.
661
- */
662
- hiddenPanels?: Array<HiddenPanels> | undefined;
663
- };
664
-
665
- /** @internal */
666
- export const ToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
667
- typeof ToolApprovalRequired
668
- > = z.nativeEnum(ToolApprovalRequired);
669
-
670
- /** @internal */
671
- export const ToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
672
- typeof ToolApprovalRequired
673
- > = ToolApprovalRequired$inboundSchema;
674
-
675
- /**
676
- * @internal
677
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
678
- */
679
- export namespace ToolApprovalRequired$ {
680
- /** @deprecated use `ToolApprovalRequired$inboundSchema` instead. */
681
- export const inboundSchema = ToolApprovalRequired$inboundSchema;
682
- /** @deprecated use `ToolApprovalRequired$outboundSchema` instead. */
683
- export const outboundSchema = ToolApprovalRequired$outboundSchema;
684
- }
685
-
686
- /** @internal */
687
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
688
- z.ZodNativeEnum<
689
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
690
- > = z.nativeEnum(
691
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type,
692
- );
693
-
694
- /** @internal */
695
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
696
- z.ZodNativeEnum<
697
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type
698
- > =
699
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
700
-
701
- /**
702
- * @internal
703
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
704
- */
705
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$ {
706
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
707
- export const inboundSchema =
708
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
709
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
710
- export const outboundSchema =
711
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
712
- }
713
-
714
- /** @internal */
715
- export const FunctionTool$inboundSchema: z.ZodType<
716
- FunctionTool,
717
- z.ZodTypeDef,
718
- unknown
719
- > = z.object({
720
- type:
721
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
722
- key: z.string().optional(),
723
- id: z.string().optional(),
724
- requires_approval: z.boolean().default(false),
725
- }).transform((v) => {
726
- return remap$(v, {
727
- "requires_approval": "requiresApproval",
728
- });
729
- });
730
-
731
- /** @internal */
732
- export type FunctionTool$Outbound = {
733
- type: string;
734
- key?: string | undefined;
735
- id?: string | undefined;
736
- requires_approval: boolean;
737
- };
738
-
739
- /** @internal */
740
- export const FunctionTool$outboundSchema: z.ZodType<
741
- FunctionTool$Outbound,
742
- z.ZodTypeDef,
743
- FunctionTool
744
- > = z.object({
745
- type:
746
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
747
- key: z.string().optional(),
748
- id: z.string().optional(),
749
- requiresApproval: z.boolean().default(false),
750
- }).transform((v) => {
751
- return remap$(v, {
752
- requiresApproval: "requires_approval",
753
- });
754
- });
755
-
756
- /**
757
- * @internal
758
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
759
- */
760
- export namespace FunctionTool$ {
761
- /** @deprecated use `FunctionTool$inboundSchema` instead. */
762
- export const inboundSchema = FunctionTool$inboundSchema;
763
- /** @deprecated use `FunctionTool$outboundSchema` instead. */
764
- export const outboundSchema = FunctionTool$outboundSchema;
765
- /** @deprecated use `FunctionTool$Outbound` instead. */
766
- export type Outbound = FunctionTool$Outbound;
767
- }
768
-
769
- export function functionToolToJSON(functionTool: FunctionTool): string {
770
- return JSON.stringify(FunctionTool$outboundSchema.parse(functionTool));
771
- }
772
-
773
- export function functionToolFromJSON(
774
- jsonString: string,
775
- ): SafeParseResult<FunctionTool, SDKValidationError> {
776
- return safeParse(
777
- jsonString,
778
- (x) => FunctionTool$inboundSchema.parse(JSON.parse(x)),
779
- `Failed to parse 'FunctionTool' from JSON`,
780
- );
781
- }
782
-
783
- /** @internal */
784
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
785
- z.ZodNativeEnum<
786
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
787
- > = z.nativeEnum(
788
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type,
789
- );
790
-
791
- /** @internal */
792
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
793
- z.ZodNativeEnum<
794
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type
795
- > =
796
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
797
-
798
- /**
799
- * @internal
800
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
801
- */
802
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$ {
803
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
804
- export const inboundSchema =
805
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
806
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
807
- export const outboundSchema =
808
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
809
- }
810
-
811
- /** @internal */
812
- export const CodeExecutionTool$inboundSchema: z.ZodType<
813
- CodeExecutionTool,
814
- z.ZodTypeDef,
815
- unknown
816
- > = z.object({
817
- type:
818
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
819
- key: z.string().optional(),
820
- id: z.string().optional(),
821
- requires_approval: z.boolean().default(false),
822
- }).transform((v) => {
823
- return remap$(v, {
824
- "requires_approval": "requiresApproval",
825
- });
826
- });
827
-
828
- /** @internal */
829
- export type CodeExecutionTool$Outbound = {
830
- type: string;
831
- key?: string | undefined;
832
- id?: string | undefined;
833
- requires_approval: boolean;
834
- };
835
-
836
- /** @internal */
837
- export const CodeExecutionTool$outboundSchema: z.ZodType<
838
- CodeExecutionTool$Outbound,
839
- z.ZodTypeDef,
840
- CodeExecutionTool
841
- > = z.object({
842
- type:
843
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
844
- key: z.string().optional(),
845
- id: z.string().optional(),
846
- requiresApproval: z.boolean().default(false),
847
- }).transform((v) => {
848
- return remap$(v, {
849
- requiresApproval: "requires_approval",
850
- });
851
- });
852
-
853
- /**
854
- * @internal
855
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
856
- */
857
- export namespace CodeExecutionTool$ {
858
- /** @deprecated use `CodeExecutionTool$inboundSchema` instead. */
859
- export const inboundSchema = CodeExecutionTool$inboundSchema;
860
- /** @deprecated use `CodeExecutionTool$outboundSchema` instead. */
861
- export const outboundSchema = CodeExecutionTool$outboundSchema;
862
- /** @deprecated use `CodeExecutionTool$Outbound` instead. */
863
- export type Outbound = CodeExecutionTool$Outbound;
864
- }
865
-
866
- export function codeExecutionToolToJSON(
867
- codeExecutionTool: CodeExecutionTool,
868
- ): string {
869
- return JSON.stringify(
870
- CodeExecutionTool$outboundSchema.parse(codeExecutionTool),
871
- );
872
- }
873
-
874
- export function codeExecutionToolFromJSON(
875
- jsonString: string,
876
- ): SafeParseResult<CodeExecutionTool, SDKValidationError> {
877
- return safeParse(
878
- jsonString,
879
- (x) => CodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
880
- `Failed to parse 'CodeExecutionTool' from JSON`,
881
- );
882
- }
883
-
884
- /** @internal */
885
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
886
- z.ZodNativeEnum<
887
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
888
- > = z.nativeEnum(
889
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type,
890
- );
891
-
892
- /** @internal */
893
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
894
- z.ZodNativeEnum<
895
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type
896
- > =
897
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
898
-
899
- /**
900
- * @internal
901
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
902
- */
903
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$ {
904
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
905
- export const inboundSchema =
906
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
907
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
908
- export const outboundSchema =
909
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
910
- }
911
-
912
- /** @internal */
913
- export const HTTPTool$inboundSchema: z.ZodType<
914
- HTTPTool,
915
- z.ZodTypeDef,
916
- unknown
917
- > = z.object({
918
- type:
919
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
920
- key: z.string().optional(),
921
- id: z.string().optional(),
922
- requires_approval: z.boolean().default(false),
923
- }).transform((v) => {
924
- return remap$(v, {
925
- "requires_approval": "requiresApproval",
926
- });
927
- });
928
-
929
- /** @internal */
930
- export type HTTPTool$Outbound = {
931
- type: string;
932
- key?: string | undefined;
933
- id?: string | undefined;
934
- requires_approval: boolean;
935
- };
936
-
937
- /** @internal */
938
- export const HTTPTool$outboundSchema: z.ZodType<
939
- HTTPTool$Outbound,
940
- z.ZodTypeDef,
941
- HTTPTool
942
- > = z.object({
943
- type:
944
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
945
- key: z.string().optional(),
946
- id: z.string().optional(),
947
- requiresApproval: z.boolean().default(false),
948
- }).transform((v) => {
949
- return remap$(v, {
950
- requiresApproval: "requires_approval",
951
- });
952
- });
953
-
954
- /**
955
- * @internal
956
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
957
- */
958
- export namespace HTTPTool$ {
959
- /** @deprecated use `HTTPTool$inboundSchema` instead. */
960
- export const inboundSchema = HTTPTool$inboundSchema;
961
- /** @deprecated use `HTTPTool$outboundSchema` instead. */
962
- export const outboundSchema = HTTPTool$outboundSchema;
963
- /** @deprecated use `HTTPTool$Outbound` instead. */
964
- export type Outbound = HTTPTool$Outbound;
965
- }
966
-
967
- export function httpToolToJSON(httpTool: HTTPTool): string {
968
- return JSON.stringify(HTTPTool$outboundSchema.parse(httpTool));
969
- }
970
-
971
- export function httpToolFromJSON(
972
- jsonString: string,
973
- ): SafeParseResult<HTTPTool, SDKValidationError> {
974
- return safeParse(
975
- jsonString,
976
- (x) => HTTPTool$inboundSchema.parse(JSON.parse(x)),
977
- `Failed to parse 'HTTPTool' from JSON`,
978
- );
979
- }
980
-
981
- /** @internal */
982
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
983
- z.ZodNativeEnum<
984
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
985
- > = z.nativeEnum(
986
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type,
987
- );
988
-
989
- /** @internal */
990
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
991
- z.ZodNativeEnum<
992
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type
993
- > =
994
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
995
-
996
- /**
997
- * @internal
998
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
999
- */
1000
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$ {
1001
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
1002
- export const inboundSchema =
1003
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
1004
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
1005
- export const outboundSchema =
1006
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
1007
- }
1008
-
1009
- /** @internal */
1010
- export const CurrentDateTool$inboundSchema: z.ZodType<
1011
- CurrentDateTool,
1012
- z.ZodTypeDef,
1013
- unknown
1014
- > = z.object({
1015
- type:
1016
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
1017
- requires_approval: z.boolean().default(false),
1018
- }).transform((v) => {
1019
- return remap$(v, {
1020
- "requires_approval": "requiresApproval",
1021
- });
1022
- });
1023
-
1024
- /** @internal */
1025
- export type CurrentDateTool$Outbound = {
1026
- type: string;
1027
- requires_approval: boolean;
1028
- };
1029
-
1030
- /** @internal */
1031
- export const CurrentDateTool$outboundSchema: z.ZodType<
1032
- CurrentDateTool$Outbound,
1033
- z.ZodTypeDef,
1034
- CurrentDateTool
1035
- > = z.object({
1036
- type:
1037
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
1038
- requiresApproval: z.boolean().default(false),
1039
- }).transform((v) => {
1040
- return remap$(v, {
1041
- requiresApproval: "requires_approval",
1042
- });
1043
- });
1044
-
1045
- /**
1046
- * @internal
1047
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1048
- */
1049
- export namespace CurrentDateTool$ {
1050
- /** @deprecated use `CurrentDateTool$inboundSchema` instead. */
1051
- export const inboundSchema = CurrentDateTool$inboundSchema;
1052
- /** @deprecated use `CurrentDateTool$outboundSchema` instead. */
1053
- export const outboundSchema = CurrentDateTool$outboundSchema;
1054
- /** @deprecated use `CurrentDateTool$Outbound` instead. */
1055
- export type Outbound = CurrentDateTool$Outbound;
1056
- }
1057
-
1058
- export function currentDateToolToJSON(
1059
- currentDateTool: CurrentDateTool,
1060
- ): string {
1061
- return JSON.stringify(CurrentDateTool$outboundSchema.parse(currentDateTool));
1062
- }
1063
-
1064
- export function currentDateToolFromJSON(
1065
- jsonString: string,
1066
- ): SafeParseResult<CurrentDateTool, SDKValidationError> {
1067
- return safeParse(
1068
- jsonString,
1069
- (x) => CurrentDateTool$inboundSchema.parse(JSON.parse(x)),
1070
- `Failed to parse 'CurrentDateTool' from JSON`,
1071
- );
1072
- }
1073
-
1074
- /** @internal */
1075
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
1076
- z.ZodNativeEnum<
1077
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
1078
- > = z.nativeEnum(
1079
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type,
1080
- );
1081
-
1082
- /** @internal */
1083
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
1084
- z.ZodNativeEnum<
1085
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type
1086
- > =
1087
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
1088
-
1089
- /**
1090
- * @internal
1091
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1092
- */
1093
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$ {
1094
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
1095
- export const inboundSchema =
1096
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
1097
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
1098
- export const outboundSchema =
1099
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
1100
- }
1101
-
1102
- /** @internal */
1103
- export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
1104
- QueryKnowledgeBaseTool,
1105
- z.ZodTypeDef,
1106
- unknown
1107
- > = z.object({
1108
- type:
1109
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
1110
- requires_approval: z.boolean().default(false),
1111
- }).transform((v) => {
1112
- return remap$(v, {
1113
- "requires_approval": "requiresApproval",
1114
- });
1115
- });
1116
-
1117
- /** @internal */
1118
- export type QueryKnowledgeBaseTool$Outbound = {
1119
- type: string;
1120
- requires_approval: boolean;
1121
- };
1122
-
1123
- /** @internal */
1124
- export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
1125
- QueryKnowledgeBaseTool$Outbound,
1126
- z.ZodTypeDef,
1127
- QueryKnowledgeBaseTool
1128
- > = z.object({
1129
- type:
1130
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
1131
- requiresApproval: z.boolean().default(false),
1132
- }).transform((v) => {
1133
- return remap$(v, {
1134
- requiresApproval: "requires_approval",
1135
- });
1136
- });
1137
-
1138
- /**
1139
- * @internal
1140
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1141
- */
1142
- export namespace QueryKnowledgeBaseTool$ {
1143
- /** @deprecated use `QueryKnowledgeBaseTool$inboundSchema` instead. */
1144
- export const inboundSchema = QueryKnowledgeBaseTool$inboundSchema;
1145
- /** @deprecated use `QueryKnowledgeBaseTool$outboundSchema` instead. */
1146
- export const outboundSchema = QueryKnowledgeBaseTool$outboundSchema;
1147
- /** @deprecated use `QueryKnowledgeBaseTool$Outbound` instead. */
1148
- export type Outbound = QueryKnowledgeBaseTool$Outbound;
1149
- }
1150
-
1151
- export function queryKnowledgeBaseToolToJSON(
1152
- queryKnowledgeBaseTool: QueryKnowledgeBaseTool,
1153
- ): string {
1154
- return JSON.stringify(
1155
- QueryKnowledgeBaseTool$outboundSchema.parse(queryKnowledgeBaseTool),
1156
- );
1157
- }
1158
-
1159
- export function queryKnowledgeBaseToolFromJSON(
1160
- jsonString: string,
1161
- ): SafeParseResult<QueryKnowledgeBaseTool, SDKValidationError> {
1162
- return safeParse(
1163
- jsonString,
1164
- (x) => QueryKnowledgeBaseTool$inboundSchema.parse(JSON.parse(x)),
1165
- `Failed to parse 'QueryKnowledgeBaseTool' from JSON`,
1166
- );
1167
- }
1168
-
1169
- /** @internal */
1170
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
1171
- z.ZodNativeEnum<
1172
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
1173
- > = z.nativeEnum(
1174
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type,
1175
- );
1176
-
1177
- /** @internal */
1178
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
1179
- z.ZodNativeEnum<
1180
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type
1181
- > =
1182
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
1183
-
1184
- /**
1185
- * @internal
1186
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1187
- */
1188
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$ {
1189
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
1190
- export const inboundSchema =
1191
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
1192
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
1193
- export const outboundSchema =
1194
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
1195
- }
1196
-
1197
- /** @internal */
1198
- export const RetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<
1199
- RetrieveKnowledgeBasesTool,
1200
- z.ZodTypeDef,
1201
- unknown
1202
- > = z.object({
1203
- type:
1204
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
1205
- requires_approval: z.boolean().default(false),
1206
- }).transform((v) => {
1207
- return remap$(v, {
1208
- "requires_approval": "requiresApproval",
1209
- });
1210
- });
1211
-
1212
- /** @internal */
1213
- export type RetrieveKnowledgeBasesTool$Outbound = {
1214
- type: string;
1215
- requires_approval: boolean;
1216
- };
1217
-
1218
- /** @internal */
1219
- export const RetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<
1220
- RetrieveKnowledgeBasesTool$Outbound,
1221
- z.ZodTypeDef,
1222
- RetrieveKnowledgeBasesTool
1223
- > = z.object({
1224
- type:
1225
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
1226
- requiresApproval: z.boolean().default(false),
1227
- }).transform((v) => {
1228
- return remap$(v, {
1229
- requiresApproval: "requires_approval",
1230
- });
1231
- });
1232
-
1233
- /**
1234
- * @internal
1235
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1236
- */
1237
- export namespace RetrieveKnowledgeBasesTool$ {
1238
- /** @deprecated use `RetrieveKnowledgeBasesTool$inboundSchema` instead. */
1239
- export const inboundSchema = RetrieveKnowledgeBasesTool$inboundSchema;
1240
- /** @deprecated use `RetrieveKnowledgeBasesTool$outboundSchema` instead. */
1241
- export const outboundSchema = RetrieveKnowledgeBasesTool$outboundSchema;
1242
- /** @deprecated use `RetrieveKnowledgeBasesTool$Outbound` instead. */
1243
- export type Outbound = RetrieveKnowledgeBasesTool$Outbound;
1244
- }
1245
-
1246
- export function retrieveKnowledgeBasesToolToJSON(
1247
- retrieveKnowledgeBasesTool: RetrieveKnowledgeBasesTool,
1248
- ): string {
1249
- return JSON.stringify(
1250
- RetrieveKnowledgeBasesTool$outboundSchema.parse(retrieveKnowledgeBasesTool),
1251
- );
1252
- }
1253
-
1254
- export function retrieveKnowledgeBasesToolFromJSON(
1255
- jsonString: string,
1256
- ): SafeParseResult<RetrieveKnowledgeBasesTool, SDKValidationError> {
1257
- return safeParse(
1258
- jsonString,
1259
- (x) => RetrieveKnowledgeBasesTool$inboundSchema.parse(JSON.parse(x)),
1260
- `Failed to parse 'RetrieveKnowledgeBasesTool' from JSON`,
1261
- );
1262
- }
1263
-
1264
- /** @internal */
1265
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
1266
- z.ZodNativeEnum<
1267
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
1268
- > = z.nativeEnum(
1269
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type,
1270
- );
1271
-
1272
- /** @internal */
1273
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
1274
- z.ZodNativeEnum<
1275
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type
1276
- > =
1277
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
1278
-
1279
- /**
1280
- * @internal
1281
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1282
- */
1283
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$ {
1284
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
1285
- export const inboundSchema =
1286
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
1287
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
1288
- export const outboundSchema =
1289
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
1290
- }
1291
-
1292
- /** @internal */
1293
- export const DeleteMemoryDocumentTool$inboundSchema: z.ZodType<
1294
- DeleteMemoryDocumentTool,
1295
- z.ZodTypeDef,
1296
- unknown
1297
- > = z.object({
1298
- type:
1299
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
1300
- requires_approval: z.boolean().default(false),
1301
- }).transform((v) => {
1302
- return remap$(v, {
1303
- "requires_approval": "requiresApproval",
1304
- });
1305
- });
1306
-
1307
- /** @internal */
1308
- export type DeleteMemoryDocumentTool$Outbound = {
1309
- type: string;
1310
- requires_approval: boolean;
1311
- };
1312
-
1313
- /** @internal */
1314
- export const DeleteMemoryDocumentTool$outboundSchema: z.ZodType<
1315
- DeleteMemoryDocumentTool$Outbound,
1316
- z.ZodTypeDef,
1317
- DeleteMemoryDocumentTool
1318
- > = z.object({
1319
- type:
1320
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
1321
- requiresApproval: z.boolean().default(false),
1322
- }).transform((v) => {
1323
- return remap$(v, {
1324
- requiresApproval: "requires_approval",
1325
- });
1326
- });
1327
-
1328
- /**
1329
- * @internal
1330
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1331
- */
1332
- export namespace DeleteMemoryDocumentTool$ {
1333
- /** @deprecated use `DeleteMemoryDocumentTool$inboundSchema` instead. */
1334
- export const inboundSchema = DeleteMemoryDocumentTool$inboundSchema;
1335
- /** @deprecated use `DeleteMemoryDocumentTool$outboundSchema` instead. */
1336
- export const outboundSchema = DeleteMemoryDocumentTool$outboundSchema;
1337
- /** @deprecated use `DeleteMemoryDocumentTool$Outbound` instead. */
1338
- export type Outbound = DeleteMemoryDocumentTool$Outbound;
1339
- }
1340
-
1341
- export function deleteMemoryDocumentToolToJSON(
1342
- deleteMemoryDocumentTool: DeleteMemoryDocumentTool,
1343
- ): string {
1344
- return JSON.stringify(
1345
- DeleteMemoryDocumentTool$outboundSchema.parse(deleteMemoryDocumentTool),
1346
- );
1347
- }
1348
-
1349
- export function deleteMemoryDocumentToolFromJSON(
1350
- jsonString: string,
1351
- ): SafeParseResult<DeleteMemoryDocumentTool, SDKValidationError> {
1352
- return safeParse(
1353
- jsonString,
1354
- (x) => DeleteMemoryDocumentTool$inboundSchema.parse(JSON.parse(x)),
1355
- `Failed to parse 'DeleteMemoryDocumentTool' from JSON`,
1356
- );
1357
- }
1358
-
1359
- /** @internal */
1360
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema:
1361
- z.ZodNativeEnum<
1362
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
1363
- > = z.nativeEnum(
1364
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType,
1365
- );
1366
-
1367
- /** @internal */
1368
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema:
1369
- z.ZodNativeEnum<
1370
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType
1371
- > =
1372
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema;
1373
-
1374
- /**
1375
- * @internal
1376
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1377
- */
1378
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$ {
1379
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
1380
- export const inboundSchema =
1381
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema;
1382
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
1383
- export const outboundSchema =
1384
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema;
1385
- }
1386
-
1387
- /** @internal */
1388
- export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
1389
- RetrieveMemoryStoresTool,
1390
- z.ZodTypeDef,
1391
- unknown
1392
- > = z.object({
1393
- type:
1394
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema,
1395
- requires_approval: z.boolean().default(false),
1396
- }).transform((v) => {
1397
- return remap$(v, {
1398
- "requires_approval": "requiresApproval",
1399
- });
1400
- });
1401
-
1402
- /** @internal */
1403
- export type RetrieveMemoryStoresTool$Outbound = {
1404
- type: string;
1405
- requires_approval: boolean;
1406
- };
1407
-
1408
- /** @internal */
1409
- export const RetrieveMemoryStoresTool$outboundSchema: z.ZodType<
1410
- RetrieveMemoryStoresTool$Outbound,
1411
- z.ZodTypeDef,
1412
- RetrieveMemoryStoresTool
1413
- > = z.object({
1414
- type:
1415
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema,
1416
- requiresApproval: z.boolean().default(false),
1417
- }).transform((v) => {
1418
- return remap$(v, {
1419
- requiresApproval: "requires_approval",
1420
- });
1421
- });
1422
-
1423
- /**
1424
- * @internal
1425
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1426
- */
1427
- export namespace RetrieveMemoryStoresTool$ {
1428
- /** @deprecated use `RetrieveMemoryStoresTool$inboundSchema` instead. */
1429
- export const inboundSchema = RetrieveMemoryStoresTool$inboundSchema;
1430
- /** @deprecated use `RetrieveMemoryStoresTool$outboundSchema` instead. */
1431
- export const outboundSchema = RetrieveMemoryStoresTool$outboundSchema;
1432
- /** @deprecated use `RetrieveMemoryStoresTool$Outbound` instead. */
1433
- export type Outbound = RetrieveMemoryStoresTool$Outbound;
1434
- }
1435
-
1436
- export function retrieveMemoryStoresToolToJSON(
1437
- retrieveMemoryStoresTool: RetrieveMemoryStoresTool,
1438
- ): string {
1439
- return JSON.stringify(
1440
- RetrieveMemoryStoresTool$outboundSchema.parse(retrieveMemoryStoresTool),
1441
- );
1442
- }
1443
-
1444
- export function retrieveMemoryStoresToolFromJSON(
1445
- jsonString: string,
1446
- ): SafeParseResult<RetrieveMemoryStoresTool, SDKValidationError> {
1447
- return safeParse(
1448
- jsonString,
1449
- (x) => RetrieveMemoryStoresTool$inboundSchema.parse(JSON.parse(x)),
1450
- `Failed to parse 'RetrieveMemoryStoresTool' from JSON`,
1451
- );
1452
- }
1453
-
1454
- /** @internal */
1455
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema:
1456
- z.ZodNativeEnum<
1457
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
1458
- > = z.nativeEnum(
1459
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType,
1460
- );
1461
-
1462
- /** @internal */
1463
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema:
1464
- z.ZodNativeEnum<
1465
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType
1466
- > =
1467
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema;
1468
-
1469
- /**
1470
- * @internal
1471
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1472
- */
1473
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$ {
1474
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
1475
- export const inboundSchema =
1476
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema;
1477
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
1478
- export const outboundSchema =
1479
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema;
1480
- }
1481
-
1482
- /** @internal */
1483
- export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
1484
- WriteMemoryStoreTool,
1485
- z.ZodTypeDef,
1486
- unknown
1487
- > = z.object({
1488
- type:
1489
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema,
1490
- requires_approval: z.boolean().default(false),
1491
- }).transform((v) => {
1492
- return remap$(v, {
1493
- "requires_approval": "requiresApproval",
1494
- });
1495
- });
1496
-
1497
- /** @internal */
1498
- export type WriteMemoryStoreTool$Outbound = {
1499
- type: string;
1500
- requires_approval: boolean;
1501
- };
1502
-
1503
- /** @internal */
1504
- export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
1505
- WriteMemoryStoreTool$Outbound,
1506
- z.ZodTypeDef,
1507
- WriteMemoryStoreTool
1508
- > = z.object({
1509
- type:
1510
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema,
1511
- requiresApproval: z.boolean().default(false),
1512
- }).transform((v) => {
1513
- return remap$(v, {
1514
- requiresApproval: "requires_approval",
1515
- });
1516
- });
1517
-
1518
- /**
1519
- * @internal
1520
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1521
- */
1522
- export namespace WriteMemoryStoreTool$ {
1523
- /** @deprecated use `WriteMemoryStoreTool$inboundSchema` instead. */
1524
- export const inboundSchema = WriteMemoryStoreTool$inboundSchema;
1525
- /** @deprecated use `WriteMemoryStoreTool$outboundSchema` instead. */
1526
- export const outboundSchema = WriteMemoryStoreTool$outboundSchema;
1527
- /** @deprecated use `WriteMemoryStoreTool$Outbound` instead. */
1528
- export type Outbound = WriteMemoryStoreTool$Outbound;
1529
- }
1530
-
1531
- export function writeMemoryStoreToolToJSON(
1532
- writeMemoryStoreTool: WriteMemoryStoreTool,
1533
- ): string {
1534
- return JSON.stringify(
1535
- WriteMemoryStoreTool$outboundSchema.parse(writeMemoryStoreTool),
1536
- );
1537
- }
1538
-
1539
- export function writeMemoryStoreToolFromJSON(
1540
- jsonString: string,
1541
- ): SafeParseResult<WriteMemoryStoreTool, SDKValidationError> {
1542
- return safeParse(
1543
- jsonString,
1544
- (x) => WriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
1545
- `Failed to parse 'WriteMemoryStoreTool' from JSON`,
1546
- );
1547
- }
1548
-
1549
- /** @internal */
1550
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema:
1551
- z.ZodNativeEnum<
1552
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType
1553
- > = z.nativeEnum(CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType);
1554
-
1555
- /** @internal */
1556
- export const CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema:
1557
- z.ZodNativeEnum<
1558
- typeof CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType
1559
- > = CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema;
1560
-
1561
- /**
1562
- * @internal
1563
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1564
- */
1565
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$ {
1566
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema` instead. */
1567
- export const inboundSchema =
1568
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema;
1569
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema` instead. */
1570
- export const outboundSchema =
1571
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema;
1572
- }
1573
-
1574
- /** @internal */
1575
- export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
1576
- QueryMemoryStoreTool,
1577
- z.ZodTypeDef,
1578
- unknown
1579
- > = z.object({
1580
- type: CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema,
1581
- requires_approval: z.boolean().default(false),
1582
- }).transform((v) => {
1583
- return remap$(v, {
1584
- "requires_approval": "requiresApproval",
1585
- });
1586
- });
1587
-
1588
- /** @internal */
1589
- export type QueryMemoryStoreTool$Outbound = {
1590
- type: string;
1591
- requires_approval: boolean;
1592
- };
1593
-
1594
- /** @internal */
1595
- export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
1596
- QueryMemoryStoreTool$Outbound,
1597
- z.ZodTypeDef,
1598
- QueryMemoryStoreTool
1599
- > = z.object({
1600
- type:
1601
- CreateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema,
1602
- requiresApproval: z.boolean().default(false),
1603
- }).transform((v) => {
1604
- return remap$(v, {
1605
- requiresApproval: "requires_approval",
1606
- });
1607
- });
1608
-
1609
- /**
1610
- * @internal
1611
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1612
- */
1613
- export namespace QueryMemoryStoreTool$ {
1614
- /** @deprecated use `QueryMemoryStoreTool$inboundSchema` instead. */
1615
- export const inboundSchema = QueryMemoryStoreTool$inboundSchema;
1616
- /** @deprecated use `QueryMemoryStoreTool$outboundSchema` instead. */
1617
- export const outboundSchema = QueryMemoryStoreTool$outboundSchema;
1618
- /** @deprecated use `QueryMemoryStoreTool$Outbound` instead. */
1619
- export type Outbound = QueryMemoryStoreTool$Outbound;
1620
- }
1621
-
1622
- export function queryMemoryStoreToolToJSON(
1623
- queryMemoryStoreTool: QueryMemoryStoreTool,
1624
- ): string {
1625
- return JSON.stringify(
1626
- QueryMemoryStoreTool$outboundSchema.parse(queryMemoryStoreTool),
1627
- );
1628
- }
1629
-
1630
- export function queryMemoryStoreToolFromJSON(
1631
- jsonString: string,
1632
- ): SafeParseResult<QueryMemoryStoreTool, SDKValidationError> {
1633
- return safeParse(
1634
- jsonString,
1635
- (x) => QueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
1636
- `Failed to parse 'QueryMemoryStoreTool' from JSON`,
1637
- );
1638
- }
1639
-
1640
- /** @internal */
1641
- export const CreateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema:
1642
- z.ZodNativeEnum<typeof CreateAgentAgentToolInputCRUDAgentsRequestType> = z
1643
- .nativeEnum(CreateAgentAgentToolInputCRUDAgentsRequestType);
1644
-
1645
- /** @internal */
1646
- export const CreateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema:
1647
- z.ZodNativeEnum<typeof CreateAgentAgentToolInputCRUDAgentsRequestType> =
1648
- CreateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema;
1649
-
1650
- /**
1651
- * @internal
1652
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1653
- */
1654
- export namespace CreateAgentAgentToolInputCRUDAgentsRequestType$ {
1655
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema` instead. */
1656
- export const inboundSchema =
1657
- CreateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema;
1658
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema` instead. */
1659
- export const outboundSchema =
1660
- CreateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema;
1661
- }
1662
-
1663
- /** @internal */
1664
- export const RetrieveAgentsTool$inboundSchema: z.ZodType<
1665
- RetrieveAgentsTool,
1666
- z.ZodTypeDef,
1667
- unknown
1668
- > = z.object({
1669
- type: CreateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema,
1670
- requires_approval: z.boolean().default(false),
1671
- }).transform((v) => {
1672
- return remap$(v, {
1673
- "requires_approval": "requiresApproval",
1674
- });
1675
- });
1676
-
1677
- /** @internal */
1678
- export type RetrieveAgentsTool$Outbound = {
1679
- type: string;
1680
- requires_approval: boolean;
1681
- };
1682
-
1683
- /** @internal */
1684
- export const RetrieveAgentsTool$outboundSchema: z.ZodType<
1685
- RetrieveAgentsTool$Outbound,
1686
- z.ZodTypeDef,
1687
- RetrieveAgentsTool
1688
- > = z.object({
1689
- type: CreateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema,
1690
- requiresApproval: z.boolean().default(false),
1691
- }).transform((v) => {
1692
- return remap$(v, {
1693
- requiresApproval: "requires_approval",
1694
- });
1695
- });
1696
-
1697
- /**
1698
- * @internal
1699
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1700
- */
1701
- export namespace RetrieveAgentsTool$ {
1702
- /** @deprecated use `RetrieveAgentsTool$inboundSchema` instead. */
1703
- export const inboundSchema = RetrieveAgentsTool$inboundSchema;
1704
- /** @deprecated use `RetrieveAgentsTool$outboundSchema` instead. */
1705
- export const outboundSchema = RetrieveAgentsTool$outboundSchema;
1706
- /** @deprecated use `RetrieveAgentsTool$Outbound` instead. */
1707
- export type Outbound = RetrieveAgentsTool$Outbound;
1708
- }
1709
-
1710
- export function retrieveAgentsToolToJSON(
1711
- retrieveAgentsTool: RetrieveAgentsTool,
1712
- ): string {
1713
- return JSON.stringify(
1714
- RetrieveAgentsTool$outboundSchema.parse(retrieveAgentsTool),
1715
- );
1716
- }
1717
-
1718
- export function retrieveAgentsToolFromJSON(
1719
- jsonString: string,
1720
- ): SafeParseResult<RetrieveAgentsTool, SDKValidationError> {
1721
- return safeParse(
1722
- jsonString,
1723
- (x) => RetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
1724
- `Failed to parse 'RetrieveAgentsTool' from JSON`,
1725
- );
1726
- }
1727
-
1728
- /** @internal */
1729
- export const CreateAgentAgentToolInputCRUDAgentsType$inboundSchema:
1730
- z.ZodNativeEnum<typeof CreateAgentAgentToolInputCRUDAgentsType> = z
1731
- .nativeEnum(CreateAgentAgentToolInputCRUDAgentsType);
1732
-
1733
- /** @internal */
1734
- export const CreateAgentAgentToolInputCRUDAgentsType$outboundSchema:
1735
- z.ZodNativeEnum<typeof CreateAgentAgentToolInputCRUDAgentsType> =
1736
- CreateAgentAgentToolInputCRUDAgentsType$inboundSchema;
1737
-
1738
- /**
1739
- * @internal
1740
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1741
- */
1742
- export namespace CreateAgentAgentToolInputCRUDAgentsType$ {
1743
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsType$inboundSchema` instead. */
1744
- export const inboundSchema =
1745
- CreateAgentAgentToolInputCRUDAgentsType$inboundSchema;
1746
- /** @deprecated use `CreateAgentAgentToolInputCRUDAgentsType$outboundSchema` instead. */
1747
- export const outboundSchema =
1748
- CreateAgentAgentToolInputCRUDAgentsType$outboundSchema;
1749
- }
1750
-
1751
- /** @internal */
1752
- export const CallSubAgentTool$inboundSchema: z.ZodType<
1753
- CallSubAgentTool,
1754
- z.ZodTypeDef,
1755
- unknown
1756
- > = z.object({
1757
- type: CreateAgentAgentToolInputCRUDAgentsType$inboundSchema,
1758
- requires_approval: z.boolean().default(false),
1759
- }).transform((v) => {
1760
- return remap$(v, {
1761
- "requires_approval": "requiresApproval",
1762
- });
1763
- });
1764
-
1765
- /** @internal */
1766
- export type CallSubAgentTool$Outbound = {
1767
- type: string;
1768
- requires_approval: boolean;
1769
- };
1770
-
1771
- /** @internal */
1772
- export const CallSubAgentTool$outboundSchema: z.ZodType<
1773
- CallSubAgentTool$Outbound,
1774
- z.ZodTypeDef,
1775
- CallSubAgentTool
1776
- > = z.object({
1777
- type: CreateAgentAgentToolInputCRUDAgentsType$outboundSchema,
1778
- requiresApproval: z.boolean().default(false),
1779
- }).transform((v) => {
1780
- return remap$(v, {
1781
- requiresApproval: "requires_approval",
1782
- });
1783
- });
1784
-
1785
- /**
1786
- * @internal
1787
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1788
- */
1789
- export namespace CallSubAgentTool$ {
1790
- /** @deprecated use `CallSubAgentTool$inboundSchema` instead. */
1791
- export const inboundSchema = CallSubAgentTool$inboundSchema;
1792
- /** @deprecated use `CallSubAgentTool$outboundSchema` instead. */
1793
- export const outboundSchema = CallSubAgentTool$outboundSchema;
1794
- /** @deprecated use `CallSubAgentTool$Outbound` instead. */
1795
- export type Outbound = CallSubAgentTool$Outbound;
1796
- }
1797
-
1798
- export function callSubAgentToolToJSON(
1799
- callSubAgentTool: CallSubAgentTool,
1800
- ): string {
1801
- return JSON.stringify(
1802
- CallSubAgentTool$outboundSchema.parse(callSubAgentTool),
1803
- );
1804
- }
1805
-
1806
- export function callSubAgentToolFromJSON(
1807
- jsonString: string,
1808
- ): SafeParseResult<CallSubAgentTool, SDKValidationError> {
1809
- return safeParse(
1810
- jsonString,
1811
- (x) => CallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
1812
- `Failed to parse 'CallSubAgentTool' from JSON`,
1813
- );
1814
- }
1815
-
1816
- /** @internal */
1817
- export const CreateAgentAgentToolInputCRUDType$inboundSchema: z.ZodNativeEnum<
1818
- typeof CreateAgentAgentToolInputCRUDType
1819
- > = z.nativeEnum(CreateAgentAgentToolInputCRUDType);
1820
-
1821
- /** @internal */
1822
- export const CreateAgentAgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<
1823
- typeof CreateAgentAgentToolInputCRUDType
1824
- > = CreateAgentAgentToolInputCRUDType$inboundSchema;
1825
-
1826
- /**
1827
- * @internal
1828
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1829
- */
1830
- export namespace CreateAgentAgentToolInputCRUDType$ {
1831
- /** @deprecated use `CreateAgentAgentToolInputCRUDType$inboundSchema` instead. */
1832
- export const inboundSchema = CreateAgentAgentToolInputCRUDType$inboundSchema;
1833
- /** @deprecated use `CreateAgentAgentToolInputCRUDType$outboundSchema` instead. */
1834
- export const outboundSchema =
1835
- CreateAgentAgentToolInputCRUDType$outboundSchema;
1836
- }
1837
-
1838
- /** @internal */
1839
- export const WebScraperTool$inboundSchema: z.ZodType<
1840
- WebScraperTool,
1841
- z.ZodTypeDef,
1842
- unknown
1843
- > = z.object({
1844
- type: CreateAgentAgentToolInputCRUDType$inboundSchema,
1845
- requires_approval: z.boolean().default(false),
1846
- }).transform((v) => {
1847
- return remap$(v, {
1848
- "requires_approval": "requiresApproval",
1849
- });
1850
- });
1851
-
1852
- /** @internal */
1853
- export type WebScraperTool$Outbound = {
1854
- type: string;
1855
- requires_approval: boolean;
1856
- };
1857
-
1858
- /** @internal */
1859
- export const WebScraperTool$outboundSchema: z.ZodType<
1860
- WebScraperTool$Outbound,
1861
- z.ZodTypeDef,
1862
- WebScraperTool
1863
- > = z.object({
1864
- type: CreateAgentAgentToolInputCRUDType$outboundSchema,
1865
- requiresApproval: z.boolean().default(false),
1866
- }).transform((v) => {
1867
- return remap$(v, {
1868
- requiresApproval: "requires_approval",
1869
- });
1870
- });
1871
-
1872
- /**
1873
- * @internal
1874
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1875
- */
1876
- export namespace WebScraperTool$ {
1877
- /** @deprecated use `WebScraperTool$inboundSchema` instead. */
1878
- export const inboundSchema = WebScraperTool$inboundSchema;
1879
- /** @deprecated use `WebScraperTool$outboundSchema` instead. */
1880
- export const outboundSchema = WebScraperTool$outboundSchema;
1881
- /** @deprecated use `WebScraperTool$Outbound` instead. */
1882
- export type Outbound = WebScraperTool$Outbound;
1883
- }
1884
-
1885
- export function webScraperToolToJSON(webScraperTool: WebScraperTool): string {
1886
- return JSON.stringify(WebScraperTool$outboundSchema.parse(webScraperTool));
1887
- }
1888
-
1889
- export function webScraperToolFromJSON(
1890
- jsonString: string,
1891
- ): SafeParseResult<WebScraperTool, SDKValidationError> {
1892
- return safeParse(
1893
- jsonString,
1894
- (x) => WebScraperTool$inboundSchema.parse(JSON.parse(x)),
1895
- `Failed to parse 'WebScraperTool' from JSON`,
1896
- );
1897
- }
1898
-
1899
- /** @internal */
1900
- export const AgentToolInputCRUDType$inboundSchema: z.ZodNativeEnum<
1901
- typeof AgentToolInputCRUDType
1902
- > = z.nativeEnum(AgentToolInputCRUDType);
1903
-
1904
- /** @internal */
1905
- export const AgentToolInputCRUDType$outboundSchema: z.ZodNativeEnum<
1906
- typeof AgentToolInputCRUDType
1907
- > = AgentToolInputCRUDType$inboundSchema;
1908
-
1909
- /**
1910
- * @internal
1911
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1912
- */
1913
- export namespace AgentToolInputCRUDType$ {
1914
- /** @deprecated use `AgentToolInputCRUDType$inboundSchema` instead. */
1915
- export const inboundSchema = AgentToolInputCRUDType$inboundSchema;
1916
- /** @deprecated use `AgentToolInputCRUDType$outboundSchema` instead. */
1917
- export const outboundSchema = AgentToolInputCRUDType$outboundSchema;
1918
- }
1919
-
1920
- /** @internal */
1921
- export const GoogleSearchTool$inboundSchema: z.ZodType<
1922
- GoogleSearchTool,
1923
- z.ZodTypeDef,
1924
- unknown
1925
- > = z.object({
1926
- type: AgentToolInputCRUDType$inboundSchema,
1927
- requires_approval: z.boolean().default(false),
1928
- }).transform((v) => {
1929
- return remap$(v, {
1930
- "requires_approval": "requiresApproval",
1931
- });
1932
- });
1933
-
1934
- /** @internal */
1935
- export type GoogleSearchTool$Outbound = {
1936
- type: string;
1937
- requires_approval: boolean;
1938
- };
1939
-
1940
- /** @internal */
1941
- export const GoogleSearchTool$outboundSchema: z.ZodType<
1942
- GoogleSearchTool$Outbound,
1943
- z.ZodTypeDef,
1944
- GoogleSearchTool
1945
- > = z.object({
1946
- type: AgentToolInputCRUDType$outboundSchema,
1947
- requiresApproval: z.boolean().default(false),
1948
- }).transform((v) => {
1949
- return remap$(v, {
1950
- requiresApproval: "requires_approval",
1951
- });
1952
- });
1953
-
1954
- /**
1955
- * @internal
1956
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1957
- */
1958
- export namespace GoogleSearchTool$ {
1959
- /** @deprecated use `GoogleSearchTool$inboundSchema` instead. */
1960
- export const inboundSchema = GoogleSearchTool$inboundSchema;
1961
- /** @deprecated use `GoogleSearchTool$outboundSchema` instead. */
1962
- export const outboundSchema = GoogleSearchTool$outboundSchema;
1963
- /** @deprecated use `GoogleSearchTool$Outbound` instead. */
1964
- export type Outbound = GoogleSearchTool$Outbound;
1965
- }
1966
-
1967
- export function googleSearchToolToJSON(
1968
- googleSearchTool: GoogleSearchTool,
1969
- ): string {
1970
- return JSON.stringify(
1971
- GoogleSearchTool$outboundSchema.parse(googleSearchTool),
1972
- );
1973
- }
1974
-
1975
- export function googleSearchToolFromJSON(
1976
- jsonString: string,
1977
- ): SafeParseResult<GoogleSearchTool, SDKValidationError> {
1978
- return safeParse(
1979
- jsonString,
1980
- (x) => GoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
1981
- `Failed to parse 'GoogleSearchTool' from JSON`,
1982
- );
1983
- }
1984
-
1985
- /** @internal */
1986
- export const AgentToolInputCRUD$inboundSchema: z.ZodType<
1987
- AgentToolInputCRUD,
1988
- z.ZodTypeDef,
1989
- unknown
1990
- > = z.union([
1991
- z.lazy(() => GoogleSearchTool$inboundSchema),
1992
- z.lazy(() => WebScraperTool$inboundSchema),
1993
- z.lazy(() => CallSubAgentTool$inboundSchema),
1994
- z.lazy(() => RetrieveAgentsTool$inboundSchema),
1995
- z.lazy(() => QueryMemoryStoreTool$inboundSchema),
1996
- z.lazy(() => WriteMemoryStoreTool$inboundSchema),
1997
- z.lazy(() => RetrieveMemoryStoresTool$inboundSchema),
1998
- z.lazy(() => DeleteMemoryDocumentTool$inboundSchema),
1999
- z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
2000
- z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
2001
- z.lazy(() => CurrentDateTool$inboundSchema),
2002
- z.lazy(() => HTTPTool$inboundSchema),
2003
- z.lazy(() => CodeExecutionTool$inboundSchema),
2004
- z.lazy(() => FunctionTool$inboundSchema),
2005
- ]);
2006
-
2007
- /** @internal */
2008
- export type AgentToolInputCRUD$Outbound =
2009
- | GoogleSearchTool$Outbound
2010
- | WebScraperTool$Outbound
2011
- | CallSubAgentTool$Outbound
2012
- | RetrieveAgentsTool$Outbound
2013
- | QueryMemoryStoreTool$Outbound
2014
- | WriteMemoryStoreTool$Outbound
2015
- | RetrieveMemoryStoresTool$Outbound
2016
- | DeleteMemoryDocumentTool$Outbound
2017
- | RetrieveKnowledgeBasesTool$Outbound
2018
- | QueryKnowledgeBaseTool$Outbound
2019
- | CurrentDateTool$Outbound
2020
- | HTTPTool$Outbound
2021
- | CodeExecutionTool$Outbound
2022
- | FunctionTool$Outbound;
2023
-
2024
- /** @internal */
2025
- export const AgentToolInputCRUD$outboundSchema: z.ZodType<
2026
- AgentToolInputCRUD$Outbound,
2027
- z.ZodTypeDef,
2028
- AgentToolInputCRUD
2029
- > = z.union([
2030
- z.lazy(() => GoogleSearchTool$outboundSchema),
2031
- z.lazy(() => WebScraperTool$outboundSchema),
2032
- z.lazy(() => CallSubAgentTool$outboundSchema),
2033
- z.lazy(() => RetrieveAgentsTool$outboundSchema),
2034
- z.lazy(() => QueryMemoryStoreTool$outboundSchema),
2035
- z.lazy(() => WriteMemoryStoreTool$outboundSchema),
2036
- z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
2037
- z.lazy(() => DeleteMemoryDocumentTool$outboundSchema),
2038
- z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
2039
- z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
2040
- z.lazy(() => CurrentDateTool$outboundSchema),
2041
- z.lazy(() => HTTPTool$outboundSchema),
2042
- z.lazy(() => CodeExecutionTool$outboundSchema),
2043
- z.lazy(() => FunctionTool$outboundSchema),
2044
- ]);
2045
-
2046
- /**
2047
- * @internal
2048
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2049
- */
2050
- export namespace AgentToolInputCRUD$ {
2051
- /** @deprecated use `AgentToolInputCRUD$inboundSchema` instead. */
2052
- export const inboundSchema = AgentToolInputCRUD$inboundSchema;
2053
- /** @deprecated use `AgentToolInputCRUD$outboundSchema` instead. */
2054
- export const outboundSchema = AgentToolInputCRUD$outboundSchema;
2055
- /** @deprecated use `AgentToolInputCRUD$Outbound` instead. */
2056
- export type Outbound = AgentToolInputCRUD$Outbound;
2057
- }
2058
-
2059
- export function agentToolInputCRUDToJSON(
2060
- agentToolInputCRUD: AgentToolInputCRUD,
2061
- ): string {
2062
- return JSON.stringify(
2063
- AgentToolInputCRUD$outboundSchema.parse(agentToolInputCRUD),
2064
- );
2065
- }
2066
-
2067
- export function agentToolInputCRUDFromJSON(
2068
- jsonString: string,
2069
- ): SafeParseResult<AgentToolInputCRUD, SDKValidationError> {
2070
- return safeParse(
2071
- jsonString,
2072
- (x) => AgentToolInputCRUD$inboundSchema.parse(JSON.parse(x)),
2073
- `Failed to parse 'AgentToolInputCRUD' from JSON`,
2074
- );
2075
- }
2076
-
2077
- /** @internal */
2078
- export const Settings$inboundSchema: z.ZodType<
2079
- Settings,
2080
- z.ZodTypeDef,
2081
- unknown
2082
- > = z.object({
2083
- max_iterations: z.number().int().default(15),
2084
- max_execution_time: z.number().int().default(300),
2085
- tool_approval_required: ToolApprovalRequired$inboundSchema.default(
2086
- "respect_tool",
2087
- ),
2088
- tools: z.array(
2089
- z.union([
2090
- z.lazy(() => GoogleSearchTool$inboundSchema),
2091
- z.lazy(() => WebScraperTool$inboundSchema),
2092
- z.lazy(() => CallSubAgentTool$inboundSchema),
2093
- z.lazy(() => RetrieveAgentsTool$inboundSchema),
2094
- z.lazy(() => QueryMemoryStoreTool$inboundSchema),
2095
- z.lazy(() => WriteMemoryStoreTool$inboundSchema),
2096
- z.lazy(() => RetrieveMemoryStoresTool$inboundSchema),
2097
- z.lazy(() => DeleteMemoryDocumentTool$inboundSchema),
2098
- z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
2099
- z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
2100
- z.lazy(() => CurrentDateTool$inboundSchema),
2101
- z.lazy(() => HTTPTool$inboundSchema),
2102
- z.lazy(() => CodeExecutionTool$inboundSchema),
2103
- z.lazy(() => FunctionTool$inboundSchema),
2104
- ]),
2105
- ).optional(),
2106
- }).transform((v) => {
2107
- return remap$(v, {
2108
- "max_iterations": "maxIterations",
2109
- "max_execution_time": "maxExecutionTime",
2110
- "tool_approval_required": "toolApprovalRequired",
2111
- });
2112
- });
2113
-
2114
- /** @internal */
2115
- export type Settings$Outbound = {
2116
- max_iterations: number;
2117
- max_execution_time: number;
2118
- tool_approval_required: string;
2119
- tools?:
2120
- | Array<
2121
- | GoogleSearchTool$Outbound
2122
- | WebScraperTool$Outbound
2123
- | CallSubAgentTool$Outbound
2124
- | RetrieveAgentsTool$Outbound
2125
- | QueryMemoryStoreTool$Outbound
2126
- | WriteMemoryStoreTool$Outbound
2127
- | RetrieveMemoryStoresTool$Outbound
2128
- | DeleteMemoryDocumentTool$Outbound
2129
- | RetrieveKnowledgeBasesTool$Outbound
2130
- | QueryKnowledgeBaseTool$Outbound
2131
- | CurrentDateTool$Outbound
2132
- | HTTPTool$Outbound
2133
- | CodeExecutionTool$Outbound
2134
- | FunctionTool$Outbound
2135
- >
2136
- | undefined;
2137
- };
2138
-
2139
- /** @internal */
2140
- export const Settings$outboundSchema: z.ZodType<
2141
- Settings$Outbound,
2142
- z.ZodTypeDef,
2143
- Settings
2144
- > = z.object({
2145
- maxIterations: z.number().int().default(15),
2146
- maxExecutionTime: z.number().int().default(300),
2147
- toolApprovalRequired: ToolApprovalRequired$outboundSchema.default(
2148
- "respect_tool",
2149
- ),
2150
- tools: z.array(
2151
- z.union([
2152
- z.lazy(() => GoogleSearchTool$outboundSchema),
2153
- z.lazy(() => WebScraperTool$outboundSchema),
2154
- z.lazy(() => CallSubAgentTool$outboundSchema),
2155
- z.lazy(() => RetrieveAgentsTool$outboundSchema),
2156
- z.lazy(() => QueryMemoryStoreTool$outboundSchema),
2157
- z.lazy(() => WriteMemoryStoreTool$outboundSchema),
2158
- z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
2159
- z.lazy(() => DeleteMemoryDocumentTool$outboundSchema),
2160
- z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
2161
- z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
2162
- z.lazy(() => CurrentDateTool$outboundSchema),
2163
- z.lazy(() => HTTPTool$outboundSchema),
2164
- z.lazy(() => CodeExecutionTool$outboundSchema),
2165
- z.lazy(() => FunctionTool$outboundSchema),
2166
- ]),
2167
- ).optional(),
2168
- }).transform((v) => {
2169
- return remap$(v, {
2170
- maxIterations: "max_iterations",
2171
- maxExecutionTime: "max_execution_time",
2172
- toolApprovalRequired: "tool_approval_required",
2173
- });
2174
- });
2175
-
2176
- /**
2177
- * @internal
2178
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2179
- */
2180
- export namespace Settings$ {
2181
- /** @deprecated use `Settings$inboundSchema` instead. */
2182
- export const inboundSchema = Settings$inboundSchema;
2183
- /** @deprecated use `Settings$outboundSchema` instead. */
2184
- export const outboundSchema = Settings$outboundSchema;
2185
- /** @deprecated use `Settings$Outbound` instead. */
2186
- export type Outbound = Settings$Outbound;
2187
- }
2188
-
2189
- export function settingsToJSON(settings: Settings): string {
2190
- return JSON.stringify(Settings$outboundSchema.parse(settings));
2191
- }
2192
-
2193
- export function settingsFromJSON(
2194
- jsonString: string,
2195
- ): SafeParseResult<Settings, SDKValidationError> {
2196
- return safeParse(
2197
- jsonString,
2198
- (x) => Settings$inboundSchema.parse(JSON.parse(x)),
2199
- `Failed to parse 'Settings' from JSON`,
2200
- );
2201
- }
2202
-
2203
- /** @internal */
2204
- export const KnowledgeBases$inboundSchema: z.ZodType<
2205
- KnowledgeBases,
2206
- z.ZodTypeDef,
2207
- unknown
2208
- > = z.object({
2209
- knowledge_id: z.string(),
2210
- }).transform((v) => {
2211
- return remap$(v, {
2212
- "knowledge_id": "knowledgeId",
2213
- });
2214
- });
2215
-
2216
- /** @internal */
2217
- export type KnowledgeBases$Outbound = {
2218
- knowledge_id: string;
2219
- };
2220
-
2221
- /** @internal */
2222
- export const KnowledgeBases$outboundSchema: z.ZodType<
2223
- KnowledgeBases$Outbound,
2224
- z.ZodTypeDef,
2225
- KnowledgeBases
2226
- > = z.object({
2227
- knowledgeId: z.string(),
2228
- }).transform((v) => {
2229
- return remap$(v, {
2230
- knowledgeId: "knowledge_id",
2231
- });
2232
- });
2233
-
2234
- /**
2235
- * @internal
2236
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2237
- */
2238
- export namespace KnowledgeBases$ {
2239
- /** @deprecated use `KnowledgeBases$inboundSchema` instead. */
2240
- export const inboundSchema = KnowledgeBases$inboundSchema;
2241
- /** @deprecated use `KnowledgeBases$outboundSchema` instead. */
2242
- export const outboundSchema = KnowledgeBases$outboundSchema;
2243
- /** @deprecated use `KnowledgeBases$Outbound` instead. */
2244
- export type Outbound = KnowledgeBases$Outbound;
2245
- }
2246
-
2247
- export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
2248
- return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
2249
- }
2250
-
2251
- export function knowledgeBasesFromJSON(
2252
- jsonString: string,
2253
- ): SafeParseResult<KnowledgeBases, SDKValidationError> {
2254
- return safeParse(
2255
- jsonString,
2256
- (x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
2257
- `Failed to parse 'KnowledgeBases' from JSON`,
2258
- );
2259
- }
2260
-
2261
- /** @internal */
2262
- export const TeamOfAgents$inboundSchema: z.ZodType<
2263
- TeamOfAgents,
2264
- z.ZodTypeDef,
2265
- unknown
2266
- > = z.object({
2267
- key: z.string(),
2268
- role: z.string().optional(),
2269
- });
2270
-
2271
- /** @internal */
2272
- export type TeamOfAgents$Outbound = {
2273
- key: string;
2274
- role?: string | undefined;
2275
- };
2276
-
2277
- /** @internal */
2278
- export const TeamOfAgents$outboundSchema: z.ZodType<
2279
- TeamOfAgents$Outbound,
2280
- z.ZodTypeDef,
2281
- TeamOfAgents
2282
- > = z.object({
2283
- key: z.string(),
2284
- role: z.string().optional(),
2285
- });
2286
-
2287
- /**
2288
- * @internal
2289
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2290
- */
2291
- export namespace TeamOfAgents$ {
2292
- /** @deprecated use `TeamOfAgents$inboundSchema` instead. */
2293
- export const inboundSchema = TeamOfAgents$inboundSchema;
2294
- /** @deprecated use `TeamOfAgents$outboundSchema` instead. */
2295
- export const outboundSchema = TeamOfAgents$outboundSchema;
2296
- /** @deprecated use `TeamOfAgents$Outbound` instead. */
2297
- export type Outbound = TeamOfAgents$Outbound;
2298
- }
2299
-
2300
- export function teamOfAgentsToJSON(teamOfAgents: TeamOfAgents): string {
2301
- return JSON.stringify(TeamOfAgents$outboundSchema.parse(teamOfAgents));
2302
- }
2303
-
2304
- export function teamOfAgentsFromJSON(
2305
- jsonString: string,
2306
- ): SafeParseResult<TeamOfAgents, SDKValidationError> {
2307
- return safeParse(
2308
- jsonString,
2309
- (x) => TeamOfAgents$inboundSchema.parse(JSON.parse(x)),
2310
- `Failed to parse 'TeamOfAgents' from JSON`,
2311
- );
2312
- }
2313
-
2314
- /** @internal */
2315
- export const CreateAgentRequestBody$inboundSchema: z.ZodType<
2316
- CreateAgentRequestBody,
2317
- z.ZodTypeDef,
2318
- unknown
2319
- > = z.object({
2320
- path: z.string(),
2321
- key: z.string(),
2322
- role: z.string(),
2323
- description: z.string(),
2324
- instructions: z.string(),
2325
- system_prompt: z.string().optional(),
2326
- model: z.string(),
2327
- fallback_models: z.array(z.string()).optional(),
2328
- settings: z.lazy(() => Settings$inboundSchema),
2329
- memory_stores: z.array(z.string()).optional(),
2330
- knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
2331
- .optional(),
2332
- team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
2333
- }).transform((v) => {
2334
- return remap$(v, {
2335
- "system_prompt": "systemPrompt",
2336
- "fallback_models": "fallbackModels",
2337
- "memory_stores": "memoryStores",
2338
- "knowledge_bases": "knowledgeBases",
2339
- "team_of_agents": "teamOfAgents",
2340
- });
2341
- });
2342
-
2343
- /** @internal */
2344
- export type CreateAgentRequestBody$Outbound = {
2345
- path: string;
2346
- key: string;
2347
- role: string;
2348
- description: string;
2349
- instructions: string;
2350
- system_prompt?: string | undefined;
2351
- model: string;
2352
- fallback_models?: Array<string> | undefined;
2353
- settings: Settings$Outbound;
2354
- memory_stores?: Array<string> | undefined;
2355
- knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
2356
- team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
2357
- };
2358
-
2359
- /** @internal */
2360
- export const CreateAgentRequestBody$outboundSchema: z.ZodType<
2361
- CreateAgentRequestBody$Outbound,
2362
- z.ZodTypeDef,
2363
- CreateAgentRequestBody
2364
- > = z.object({
2365
- path: z.string(),
2366
- key: z.string(),
2367
- role: z.string(),
2368
- description: z.string(),
2369
- instructions: z.string(),
2370
- systemPrompt: z.string().optional(),
2371
- model: z.string(),
2372
- fallbackModels: z.array(z.string()).optional(),
2373
- settings: z.lazy(() => Settings$outboundSchema),
2374
- memoryStores: z.array(z.string()).optional(),
2375
- knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
2376
- .optional(),
2377
- teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
2378
- }).transform((v) => {
2379
- return remap$(v, {
2380
- systemPrompt: "system_prompt",
2381
- fallbackModels: "fallback_models",
2382
- memoryStores: "memory_stores",
2383
- knowledgeBases: "knowledge_bases",
2384
- teamOfAgents: "team_of_agents",
2385
- });
2386
- });
2387
-
2388
- /**
2389
- * @internal
2390
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2391
- */
2392
- export namespace CreateAgentRequestBody$ {
2393
- /** @deprecated use `CreateAgentRequestBody$inboundSchema` instead. */
2394
- export const inboundSchema = CreateAgentRequestBody$inboundSchema;
2395
- /** @deprecated use `CreateAgentRequestBody$outboundSchema` instead. */
2396
- export const outboundSchema = CreateAgentRequestBody$outboundSchema;
2397
- /** @deprecated use `CreateAgentRequestBody$Outbound` instead. */
2398
- export type Outbound = CreateAgentRequestBody$Outbound;
2399
- }
2400
-
2401
- export function createAgentRequestBodyToJSON(
2402
- createAgentRequestBody: CreateAgentRequestBody,
2403
- ): string {
2404
- return JSON.stringify(
2405
- CreateAgentRequestBody$outboundSchema.parse(createAgentRequestBody),
2406
- );
2407
- }
2408
-
2409
- export function createAgentRequestBodyFromJSON(
2410
- jsonString: string,
2411
- ): SafeParseResult<CreateAgentRequestBody, SDKValidationError> {
2412
- return safeParse(
2413
- jsonString,
2414
- (x) => CreateAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
2415
- `Failed to parse 'CreateAgentRequestBody' from JSON`,
2416
- );
2417
- }
2418
-
2419
- /** @internal */
2420
- export const CreateAgentStatus$inboundSchema: z.ZodNativeEnum<
2421
- typeof CreateAgentStatus
2422
- > = z.nativeEnum(CreateAgentStatus);
2423
-
2424
- /** @internal */
2425
- export const CreateAgentStatus$outboundSchema: z.ZodNativeEnum<
2426
- typeof CreateAgentStatus
2427
- > = CreateAgentStatus$inboundSchema;
2428
-
2429
- /**
2430
- * @internal
2431
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2432
- */
2433
- export namespace CreateAgentStatus$ {
2434
- /** @deprecated use `CreateAgentStatus$inboundSchema` instead. */
2435
- export const inboundSchema = CreateAgentStatus$inboundSchema;
2436
- /** @deprecated use `CreateAgentStatus$outboundSchema` instead. */
2437
- export const outboundSchema = CreateAgentStatus$outboundSchema;
2438
- }
2439
-
2440
- /** @internal */
2441
- export const CreateAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
2442
- typeof CreateAgentToolApprovalRequired
2443
- > = z.nativeEnum(CreateAgentToolApprovalRequired);
2444
-
2445
- /** @internal */
2446
- export const CreateAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
2447
- typeof CreateAgentToolApprovalRequired
2448
- > = CreateAgentToolApprovalRequired$inboundSchema;
2449
-
2450
- /**
2451
- * @internal
2452
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2453
- */
2454
- export namespace CreateAgentToolApprovalRequired$ {
2455
- /** @deprecated use `CreateAgentToolApprovalRequired$inboundSchema` instead. */
2456
- export const inboundSchema = CreateAgentToolApprovalRequired$inboundSchema;
2457
- /** @deprecated use `CreateAgentToolApprovalRequired$outboundSchema` instead. */
2458
- export const outboundSchema = CreateAgentToolApprovalRequired$outboundSchema;
2459
- }
2460
-
2461
- /** @internal */
2462
- export const Conditions$inboundSchema: z.ZodType<
2463
- Conditions,
2464
- z.ZodTypeDef,
2465
- unknown
2466
- > = z.object({
2467
- condition: z.string(),
2468
- operator: z.string(),
2469
- value: z.string(),
2470
- });
2471
-
2472
- /** @internal */
2473
- export type Conditions$Outbound = {
2474
- condition: string;
2475
- operator: string;
2476
- value: string;
2477
- };
2478
-
2479
- /** @internal */
2480
- export const Conditions$outboundSchema: z.ZodType<
2481
- Conditions$Outbound,
2482
- z.ZodTypeDef,
2483
- Conditions
2484
- > = z.object({
2485
- condition: z.string(),
2486
- operator: z.string(),
2487
- value: z.string(),
2488
- });
2489
-
2490
- /**
2491
- * @internal
2492
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2493
- */
2494
- export namespace Conditions$ {
2495
- /** @deprecated use `Conditions$inboundSchema` instead. */
2496
- export const inboundSchema = Conditions$inboundSchema;
2497
- /** @deprecated use `Conditions$outboundSchema` instead. */
2498
- export const outboundSchema = Conditions$outboundSchema;
2499
- /** @deprecated use `Conditions$Outbound` instead. */
2500
- export type Outbound = Conditions$Outbound;
2501
- }
2502
-
2503
- export function conditionsToJSON(conditions: Conditions): string {
2504
- return JSON.stringify(Conditions$outboundSchema.parse(conditions));
2505
- }
2506
-
2507
- export function conditionsFromJSON(
2508
- jsonString: string,
2509
- ): SafeParseResult<Conditions, SDKValidationError> {
2510
- return safeParse(
2511
- jsonString,
2512
- (x) => Conditions$inboundSchema.parse(JSON.parse(x)),
2513
- `Failed to parse 'Conditions' from JSON`,
2514
- );
2515
- }
2516
-
2517
- /** @internal */
2518
- export const CreateAgentTools$inboundSchema: z.ZodType<
2519
- CreateAgentTools,
2520
- z.ZodTypeDef,
2521
- unknown
2522
- > = z.object({
2523
- id: z.string(),
2524
- key: z.string().optional(),
2525
- action_type: z.string(),
2526
- display_name: z.string().optional(),
2527
- requires_approval: z.boolean().default(false),
2528
- conditions: z.array(z.lazy(() => Conditions$inboundSchema)).optional(),
2529
- mcpServer: z.string().optional(),
2530
- timeout: z.number().default(120),
2531
- }).transform((v) => {
2532
- return remap$(v, {
2533
- "action_type": "actionType",
2534
- "display_name": "displayName",
2535
- "requires_approval": "requiresApproval",
2536
- });
2537
- });
2538
-
2539
- /** @internal */
2540
- export type CreateAgentTools$Outbound = {
2541
- id: string;
2542
- key?: string | undefined;
2543
- action_type: string;
2544
- display_name?: string | undefined;
2545
- requires_approval: boolean;
2546
- conditions?: Array<Conditions$Outbound> | undefined;
2547
- mcpServer?: string | undefined;
2548
- timeout: number;
2549
- };
2550
-
2551
- /** @internal */
2552
- export const CreateAgentTools$outboundSchema: z.ZodType<
2553
- CreateAgentTools$Outbound,
2554
- z.ZodTypeDef,
2555
- CreateAgentTools
2556
- > = z.object({
2557
- id: z.string(),
2558
- key: z.string().optional(),
2559
- actionType: z.string(),
2560
- displayName: z.string().optional(),
2561
- requiresApproval: z.boolean().default(false),
2562
- conditions: z.array(z.lazy(() => Conditions$outboundSchema)).optional(),
2563
- mcpServer: z.string().optional(),
2564
- timeout: z.number().default(120),
2565
- }).transform((v) => {
2566
- return remap$(v, {
2567
- actionType: "action_type",
2568
- displayName: "display_name",
2569
- requiresApproval: "requires_approval",
2570
- });
2571
- });
2572
-
2573
- /**
2574
- * @internal
2575
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2576
- */
2577
- export namespace CreateAgentTools$ {
2578
- /** @deprecated use `CreateAgentTools$inboundSchema` instead. */
2579
- export const inboundSchema = CreateAgentTools$inboundSchema;
2580
- /** @deprecated use `CreateAgentTools$outboundSchema` instead. */
2581
- export const outboundSchema = CreateAgentTools$outboundSchema;
2582
- /** @deprecated use `CreateAgentTools$Outbound` instead. */
2583
- export type Outbound = CreateAgentTools$Outbound;
2584
- }
2585
-
2586
- export function createAgentToolsToJSON(
2587
- createAgentTools: CreateAgentTools,
2588
- ): string {
2589
- return JSON.stringify(
2590
- CreateAgentTools$outboundSchema.parse(createAgentTools),
2591
- );
2592
- }
2593
-
2594
- export function createAgentToolsFromJSON(
2595
- jsonString: string,
2596
- ): SafeParseResult<CreateAgentTools, SDKValidationError> {
2597
- return safeParse(
2598
- jsonString,
2599
- (x) => CreateAgentTools$inboundSchema.parse(JSON.parse(x)),
2600
- `Failed to parse 'CreateAgentTools' from JSON`,
2601
- );
2602
- }
2603
-
2604
- /** @internal */
2605
- export const CreateAgentSettings$inboundSchema: z.ZodType<
2606
- CreateAgentSettings,
2607
- z.ZodTypeDef,
2608
- unknown
2609
- > = z.object({
2610
- max_iterations: z.number().int().default(15),
2611
- max_execution_time: z.number().int().default(300),
2612
- tool_approval_required: CreateAgentToolApprovalRequired$inboundSchema.default(
2613
- "respect_tool",
2614
- ),
2615
- tools: z.array(z.lazy(() => CreateAgentTools$inboundSchema)).optional(),
2616
- }).transform((v) => {
2617
- return remap$(v, {
2618
- "max_iterations": "maxIterations",
2619
- "max_execution_time": "maxExecutionTime",
2620
- "tool_approval_required": "toolApprovalRequired",
2621
- });
2622
- });
2623
-
2624
- /** @internal */
2625
- export type CreateAgentSettings$Outbound = {
2626
- max_iterations: number;
2627
- max_execution_time: number;
2628
- tool_approval_required: string;
2629
- tools?: Array<CreateAgentTools$Outbound> | undefined;
2630
- };
2631
-
2632
- /** @internal */
2633
- export const CreateAgentSettings$outboundSchema: z.ZodType<
2634
- CreateAgentSettings$Outbound,
2635
- z.ZodTypeDef,
2636
- CreateAgentSettings
2637
- > = z.object({
2638
- maxIterations: z.number().int().default(15),
2639
- maxExecutionTime: z.number().int().default(300),
2640
- toolApprovalRequired: CreateAgentToolApprovalRequired$outboundSchema.default(
2641
- "respect_tool",
2642
- ),
2643
- tools: z.array(z.lazy(() => CreateAgentTools$outboundSchema)).optional(),
2644
- }).transform((v) => {
2645
- return remap$(v, {
2646
- maxIterations: "max_iterations",
2647
- maxExecutionTime: "max_execution_time",
2648
- toolApprovalRequired: "tool_approval_required",
2649
- });
2650
- });
2651
-
2652
- /**
2653
- * @internal
2654
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2655
- */
2656
- export namespace CreateAgentSettings$ {
2657
- /** @deprecated use `CreateAgentSettings$inboundSchema` instead. */
2658
- export const inboundSchema = CreateAgentSettings$inboundSchema;
2659
- /** @deprecated use `CreateAgentSettings$outboundSchema` instead. */
2660
- export const outboundSchema = CreateAgentSettings$outboundSchema;
2661
- /** @deprecated use `CreateAgentSettings$Outbound` instead. */
2662
- export type Outbound = CreateAgentSettings$Outbound;
2663
- }
2664
-
2665
- export function createAgentSettingsToJSON(
2666
- createAgentSettings: CreateAgentSettings,
2667
- ): string {
2668
- return JSON.stringify(
2669
- CreateAgentSettings$outboundSchema.parse(createAgentSettings),
2670
- );
2671
- }
2672
-
2673
- export function createAgentSettingsFromJSON(
2674
- jsonString: string,
2675
- ): SafeParseResult<CreateAgentSettings, SDKValidationError> {
2676
- return safeParse(
2677
- jsonString,
2678
- (x) => CreateAgentSettings$inboundSchema.parse(JSON.parse(x)),
2679
- `Failed to parse 'CreateAgentSettings' from JSON`,
2680
- );
2681
- }
2682
-
2683
- /** @internal */
2684
- export const CreateAgentModel$inboundSchema: z.ZodType<
2685
- CreateAgentModel,
2686
- z.ZodTypeDef,
2687
- unknown
2688
- > = z.object({
2689
- id: z.string(),
2690
- integration_id: z.nullable(z.string()).optional(),
2691
- fallback_models: z.nullable(z.array(z.string())).optional(),
2692
- max_tokens: z.number().int().optional(),
2693
- temperature: z.number().optional(),
2694
- }).transform((v) => {
2695
- return remap$(v, {
2696
- "integration_id": "integrationId",
2697
- "fallback_models": "fallbackModels",
2698
- "max_tokens": "maxTokens",
2699
- });
2700
- });
2701
-
2702
- /** @internal */
2703
- export type CreateAgentModel$Outbound = {
2704
- id: string;
2705
- integration_id?: string | null | undefined;
2706
- fallback_models?: Array<string> | null | undefined;
2707
- max_tokens?: number | undefined;
2708
- temperature?: number | undefined;
2709
- };
2710
-
2711
- /** @internal */
2712
- export const CreateAgentModel$outboundSchema: z.ZodType<
2713
- CreateAgentModel$Outbound,
2714
- z.ZodTypeDef,
2715
- CreateAgentModel
2716
- > = z.object({
2717
- id: z.string(),
2718
- integrationId: z.nullable(z.string()).optional(),
2719
- fallbackModels: z.nullable(z.array(z.string())).optional(),
2720
- maxTokens: z.number().int().optional(),
2721
- temperature: z.number().optional(),
2722
- }).transform((v) => {
2723
- return remap$(v, {
2724
- integrationId: "integration_id",
2725
- fallbackModels: "fallback_models",
2726
- maxTokens: "max_tokens",
2727
- });
2728
- });
2729
-
2730
- /**
2731
- * @internal
2732
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2733
- */
2734
- export namespace CreateAgentModel$ {
2735
- /** @deprecated use `CreateAgentModel$inboundSchema` instead. */
2736
- export const inboundSchema = CreateAgentModel$inboundSchema;
2737
- /** @deprecated use `CreateAgentModel$outboundSchema` instead. */
2738
- export const outboundSchema = CreateAgentModel$outboundSchema;
2739
- /** @deprecated use `CreateAgentModel$Outbound` instead. */
2740
- export type Outbound = CreateAgentModel$Outbound;
2741
- }
2742
-
2743
- export function createAgentModelToJSON(
2744
- createAgentModel: CreateAgentModel,
2745
- ): string {
2746
- return JSON.stringify(
2747
- CreateAgentModel$outboundSchema.parse(createAgentModel),
2748
- );
2749
- }
2750
-
2751
- export function createAgentModelFromJSON(
2752
- jsonString: string,
2753
- ): SafeParseResult<CreateAgentModel, SDKValidationError> {
2754
- return safeParse(
2755
- jsonString,
2756
- (x) => CreateAgentModel$inboundSchema.parse(JSON.parse(x)),
2757
- `Failed to parse 'CreateAgentModel' from JSON`,
2758
- );
2759
- }
2760
-
2761
- /** @internal */
2762
- export const CreateAgentTeamOfAgents$inboundSchema: z.ZodType<
2763
- CreateAgentTeamOfAgents,
2764
- z.ZodTypeDef,
2765
- unknown
2766
- > = z.object({
2767
- key: z.string(),
2768
- role: z.string().optional(),
2769
- });
2770
-
2771
- /** @internal */
2772
- export type CreateAgentTeamOfAgents$Outbound = {
2773
- key: string;
2774
- role?: string | undefined;
2775
- };
2776
-
2777
- /** @internal */
2778
- export const CreateAgentTeamOfAgents$outboundSchema: z.ZodType<
2779
- CreateAgentTeamOfAgents$Outbound,
2780
- z.ZodTypeDef,
2781
- CreateAgentTeamOfAgents
2782
- > = z.object({
2783
- key: z.string(),
2784
- role: z.string().optional(),
2785
- });
2786
-
2787
- /**
2788
- * @internal
2789
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2790
- */
2791
- export namespace CreateAgentTeamOfAgents$ {
2792
- /** @deprecated use `CreateAgentTeamOfAgents$inboundSchema` instead. */
2793
- export const inboundSchema = CreateAgentTeamOfAgents$inboundSchema;
2794
- /** @deprecated use `CreateAgentTeamOfAgents$outboundSchema` instead. */
2795
- export const outboundSchema = CreateAgentTeamOfAgents$outboundSchema;
2796
- /** @deprecated use `CreateAgentTeamOfAgents$Outbound` instead. */
2797
- export type Outbound = CreateAgentTeamOfAgents$Outbound;
2798
- }
2799
-
2800
- export function createAgentTeamOfAgentsToJSON(
2801
- createAgentTeamOfAgents: CreateAgentTeamOfAgents,
2802
- ): string {
2803
- return JSON.stringify(
2804
- CreateAgentTeamOfAgents$outboundSchema.parse(createAgentTeamOfAgents),
2805
- );
2806
- }
2807
-
2808
- export function createAgentTeamOfAgentsFromJSON(
2809
- jsonString: string,
2810
- ): SafeParseResult<CreateAgentTeamOfAgents, SDKValidationError> {
2811
- return safeParse(
2812
- jsonString,
2813
- (x) => CreateAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
2814
- `Failed to parse 'CreateAgentTeamOfAgents' from JSON`,
2815
- );
2816
- }
2817
-
2818
- /** @internal */
2819
- export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
2820
- z.object({
2821
- total_cost: z.number().default(0),
2822
- }).transform((v) => {
2823
- return remap$(v, {
2824
- "total_cost": "totalCost",
2825
- });
2826
- });
2827
-
2828
- /** @internal */
2829
- export type Metrics$Outbound = {
2830
- total_cost: number;
2831
- };
2832
-
2833
- /** @internal */
2834
- export const Metrics$outboundSchema: z.ZodType<
2835
- Metrics$Outbound,
2836
- z.ZodTypeDef,
2837
- Metrics
2838
- > = z.object({
2839
- totalCost: z.number().default(0),
2840
- }).transform((v) => {
2841
- return remap$(v, {
2842
- totalCost: "total_cost",
2843
- });
2844
- });
2845
-
2846
- /**
2847
- * @internal
2848
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2849
- */
2850
- export namespace Metrics$ {
2851
- /** @deprecated use `Metrics$inboundSchema` instead. */
2852
- export const inboundSchema = Metrics$inboundSchema;
2853
- /** @deprecated use `Metrics$outboundSchema` instead. */
2854
- export const outboundSchema = Metrics$outboundSchema;
2855
- /** @deprecated use `Metrics$Outbound` instead. */
2856
- export type Outbound = Metrics$Outbound;
2857
- }
2858
-
2859
- export function metricsToJSON(metrics: Metrics): string {
2860
- return JSON.stringify(Metrics$outboundSchema.parse(metrics));
2861
- }
2862
-
2863
- export function metricsFromJSON(
2864
- jsonString: string,
2865
- ): SafeParseResult<Metrics, SDKValidationError> {
2866
- return safeParse(
2867
- jsonString,
2868
- (x) => Metrics$inboundSchema.parse(JSON.parse(x)),
2869
- `Failed to parse 'Metrics' from JSON`,
2870
- );
2871
- }
2872
-
2873
- /** @internal */
2874
- export const CreateAgentKnowledgeBases$inboundSchema: z.ZodType<
2875
- CreateAgentKnowledgeBases,
2876
- z.ZodTypeDef,
2877
- unknown
2878
- > = z.object({
2879
- knowledge_id: z.string(),
2880
- }).transform((v) => {
2881
- return remap$(v, {
2882
- "knowledge_id": "knowledgeId",
2883
- });
2884
- });
2885
-
2886
- /** @internal */
2887
- export type CreateAgentKnowledgeBases$Outbound = {
2888
- knowledge_id: string;
2889
- };
2890
-
2891
- /** @internal */
2892
- export const CreateAgentKnowledgeBases$outboundSchema: z.ZodType<
2893
- CreateAgentKnowledgeBases$Outbound,
2894
- z.ZodTypeDef,
2895
- CreateAgentKnowledgeBases
2896
- > = z.object({
2897
- knowledgeId: z.string(),
2898
- }).transform((v) => {
2899
- return remap$(v, {
2900
- knowledgeId: "knowledge_id",
2901
- });
2902
- });
2903
-
2904
- /**
2905
- * @internal
2906
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2907
- */
2908
- export namespace CreateAgentKnowledgeBases$ {
2909
- /** @deprecated use `CreateAgentKnowledgeBases$inboundSchema` instead. */
2910
- export const inboundSchema = CreateAgentKnowledgeBases$inboundSchema;
2911
- /** @deprecated use `CreateAgentKnowledgeBases$outboundSchema` instead. */
2912
- export const outboundSchema = CreateAgentKnowledgeBases$outboundSchema;
2913
- /** @deprecated use `CreateAgentKnowledgeBases$Outbound` instead. */
2914
- export type Outbound = CreateAgentKnowledgeBases$Outbound;
2915
- }
2916
-
2917
- export function createAgentKnowledgeBasesToJSON(
2918
- createAgentKnowledgeBases: CreateAgentKnowledgeBases,
2919
- ): string {
2920
- return JSON.stringify(
2921
- CreateAgentKnowledgeBases$outboundSchema.parse(createAgentKnowledgeBases),
2922
- );
2923
- }
2924
-
2925
- export function createAgentKnowledgeBasesFromJSON(
2926
- jsonString: string,
2927
- ): SafeParseResult<CreateAgentKnowledgeBases, SDKValidationError> {
2928
- return safeParse(
2929
- jsonString,
2930
- (x) => CreateAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
2931
- `Failed to parse 'CreateAgentKnowledgeBases' from JSON`,
2932
- );
2933
- }
2934
-
2935
- /** @internal */
2936
- export const HiddenPanels$inboundSchema: z.ZodNativeEnum<typeof HiddenPanels> =
2937
- z.nativeEnum(HiddenPanels);
2938
-
2939
- /** @internal */
2940
- export const HiddenPanels$outboundSchema: z.ZodNativeEnum<typeof HiddenPanels> =
2941
- HiddenPanels$inboundSchema;
2942
-
2943
- /**
2944
- * @internal
2945
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2946
- */
2947
- export namespace HiddenPanels$ {
2948
- /** @deprecated use `HiddenPanels$inboundSchema` instead. */
2949
- export const inboundSchema = HiddenPanels$inboundSchema;
2950
- /** @deprecated use `HiddenPanels$outboundSchema` instead. */
2951
- export const outboundSchema = HiddenPanels$outboundSchema;
2952
- }
2953
-
2954
- /** @internal */
2955
- export const CreateAgentResponseBody$inboundSchema: z.ZodType<
2956
- CreateAgentResponseBody,
2957
- z.ZodTypeDef,
2958
- unknown
2959
- > = z.object({
2960
- _id: z.string(),
2961
- key: z.string(),
2962
- workspace_id: z.string(),
2963
- project_id: z.string(),
2964
- created_by_id: z.nullable(z.string()).optional(),
2965
- updated_by_id: z.nullable(z.string()).optional(),
2966
- created: z.string().optional(),
2967
- updated: z.string().optional(),
2968
- role: z.string(),
2969
- description: z.string(),
2970
- system_prompt: z.string().optional(),
2971
- instructions: z.string(),
2972
- status: CreateAgentStatus$inboundSchema,
2973
- settings: z.lazy(() => CreateAgentSettings$inboundSchema).optional(),
2974
- model: z.lazy(() => CreateAgentModel$inboundSchema),
2975
- version_hash: z.string().optional(),
2976
- path: z.string(),
2977
- memory_stores: z.array(z.string()),
2978
- team_of_agents: z.array(z.lazy(() => CreateAgentTeamOfAgents$inboundSchema)),
2979
- metrics: z.lazy(() => Metrics$inboundSchema).optional(),
2980
- variables: z.record(z.any()).optional(),
2981
- knowledge_bases: z.array(
2982
- z.lazy(() => CreateAgentKnowledgeBases$inboundSchema),
2983
- ).optional(),
2984
- hidden_panels: z.array(HiddenPanels$inboundSchema).optional(),
2985
- }).transform((v) => {
2986
- return remap$(v, {
2987
- "_id": "id",
2988
- "workspace_id": "workspaceId",
2989
- "project_id": "projectId",
2990
- "created_by_id": "createdById",
2991
- "updated_by_id": "updatedById",
2992
- "system_prompt": "systemPrompt",
2993
- "version_hash": "versionHash",
2994
- "memory_stores": "memoryStores",
2995
- "team_of_agents": "teamOfAgents",
2996
- "knowledge_bases": "knowledgeBases",
2997
- "hidden_panels": "hiddenPanels",
2998
- });
2999
- });
3000
-
3001
- /** @internal */
3002
- export type CreateAgentResponseBody$Outbound = {
3003
- _id: string;
3004
- key: string;
3005
- workspace_id: string;
3006
- project_id: string;
3007
- created_by_id?: string | null | undefined;
3008
- updated_by_id?: string | null | undefined;
3009
- created?: string | undefined;
3010
- updated?: string | undefined;
3011
- role: string;
3012
- description: string;
3013
- system_prompt?: string | undefined;
3014
- instructions: string;
3015
- status: string;
3016
- settings?: CreateAgentSettings$Outbound | undefined;
3017
- model: CreateAgentModel$Outbound;
3018
- version_hash?: string | undefined;
3019
- path: string;
3020
- memory_stores: Array<string>;
3021
- team_of_agents: Array<CreateAgentTeamOfAgents$Outbound>;
3022
- metrics?: Metrics$Outbound | undefined;
3023
- variables?: { [k: string]: any } | undefined;
3024
- knowledge_bases?: Array<CreateAgentKnowledgeBases$Outbound> | undefined;
3025
- hidden_panels?: Array<string> | undefined;
3026
- };
3027
-
3028
- /** @internal */
3029
- export const CreateAgentResponseBody$outboundSchema: z.ZodType<
3030
- CreateAgentResponseBody$Outbound,
3031
- z.ZodTypeDef,
3032
- CreateAgentResponseBody
3033
- > = z.object({
3034
- id: z.string(),
3035
- key: z.string(),
3036
- workspaceId: z.string(),
3037
- projectId: z.string(),
3038
- createdById: z.nullable(z.string()).optional(),
3039
- updatedById: z.nullable(z.string()).optional(),
3040
- created: z.string().optional(),
3041
- updated: z.string().optional(),
3042
- role: z.string(),
3043
- description: z.string(),
3044
- systemPrompt: z.string().optional(),
3045
- instructions: z.string(),
3046
- status: CreateAgentStatus$outboundSchema,
3047
- settings: z.lazy(() => CreateAgentSettings$outboundSchema).optional(),
3048
- model: z.lazy(() => CreateAgentModel$outboundSchema),
3049
- versionHash: z.string().optional(),
3050
- path: z.string(),
3051
- memoryStores: z.array(z.string()),
3052
- teamOfAgents: z.array(z.lazy(() => CreateAgentTeamOfAgents$outboundSchema)),
3053
- metrics: z.lazy(() => Metrics$outboundSchema).optional(),
3054
- variables: z.record(z.any()).optional(),
3055
- knowledgeBases: z.array(
3056
- z.lazy(() => CreateAgentKnowledgeBases$outboundSchema),
3057
- ).optional(),
3058
- hiddenPanels: z.array(HiddenPanels$outboundSchema).optional(),
3059
- }).transform((v) => {
3060
- return remap$(v, {
3061
- id: "_id",
3062
- workspaceId: "workspace_id",
3063
- projectId: "project_id",
3064
- createdById: "created_by_id",
3065
- updatedById: "updated_by_id",
3066
- systemPrompt: "system_prompt",
3067
- versionHash: "version_hash",
3068
- memoryStores: "memory_stores",
3069
- teamOfAgents: "team_of_agents",
3070
- knowledgeBases: "knowledge_bases",
3071
- hiddenPanels: "hidden_panels",
3072
- });
3073
- });
3074
-
3075
- /**
3076
- * @internal
3077
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3078
- */
3079
- export namespace CreateAgentResponseBody$ {
3080
- /** @deprecated use `CreateAgentResponseBody$inboundSchema` instead. */
3081
- export const inboundSchema = CreateAgentResponseBody$inboundSchema;
3082
- /** @deprecated use `CreateAgentResponseBody$outboundSchema` instead. */
3083
- export const outboundSchema = CreateAgentResponseBody$outboundSchema;
3084
- /** @deprecated use `CreateAgentResponseBody$Outbound` instead. */
3085
- export type Outbound = CreateAgentResponseBody$Outbound;
3086
- }
3087
-
3088
- export function createAgentResponseBodyToJSON(
3089
- createAgentResponseBody: CreateAgentResponseBody,
3090
- ): string {
3091
- return JSON.stringify(
3092
- CreateAgentResponseBody$outboundSchema.parse(createAgentResponseBody),
3093
- );
3094
- }
3095
-
3096
- export function createAgentResponseBodyFromJSON(
3097
- jsonString: string,
3098
- ): SafeParseResult<CreateAgentResponseBody, SDKValidationError> {
3099
- return safeParse(
3100
- jsonString,
3101
- (x) => CreateAgentResponseBody$inboundSchema.parse(JSON.parse(x)),
3102
- `Failed to parse 'CreateAgentResponseBody' from JSON`,
3103
- );
3104
- }