@orq-ai/node 3.14.8 → 4.0.0-rc.1

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,4355 +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
- * Tool message
14
- */
15
- export const StreamRunAgentRoleToolMessage = {
16
- Tool: "tool",
17
- } as const;
18
- /**
19
- * Tool message
20
- */
21
- export type StreamRunAgentRoleToolMessage = ClosedEnum<
22
- typeof StreamRunAgentRoleToolMessage
23
- >;
24
-
25
- /**
26
- * User message
27
- */
28
- export const StreamRunAgentRoleUserMessage = {
29
- User: "user",
30
- } as const;
31
- /**
32
- * User message
33
- */
34
- export type StreamRunAgentRoleUserMessage = ClosedEnum<
35
- typeof StreamRunAgentRoleUserMessage
36
- >;
37
-
38
- /**
39
- * Message role (user or tool for continuing executions)
40
- */
41
- export type StreamRunAgentRole =
42
- | StreamRunAgentRoleUserMessage
43
- | StreamRunAgentRoleToolMessage;
44
-
45
- export const StreamRunAgentPublicMessagePartAgentsRequestKind = {
46
- ToolResult: "tool_result",
47
- } as const;
48
- export type StreamRunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
49
- typeof StreamRunAgentPublicMessagePartAgentsRequestKind
50
- >;
51
-
52
- /**
53
- * Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
54
- */
55
- export type StreamRunAgentPublicMessagePartToolResultPart = {
56
- kind: StreamRunAgentPublicMessagePartAgentsRequestKind;
57
- toolCallId: string;
58
- result?: any | undefined;
59
- metadata?: { [k: string]: any } | undefined;
60
- };
61
-
62
- export const StreamRunAgentPublicMessagePartAgentsKind = {
63
- File: "file",
64
- } as const;
65
- export type StreamRunAgentPublicMessagePartAgentsKind = ClosedEnum<
66
- typeof StreamRunAgentPublicMessagePartAgentsKind
67
- >;
68
-
69
- /**
70
- * File in URI format. Check in the model's documentation for the supported mime types for the URI format
71
- */
72
- export type StreamRunAgentFileFileInURIFormat = {
73
- /**
74
- * URL for the File content
75
- */
76
- uri: string;
77
- /**
78
- * Optional mimeType for the file
79
- */
80
- mimeType?: string | undefined;
81
- /**
82
- * Optional name for the file
83
- */
84
- name?: string | undefined;
85
- };
86
-
87
- /**
88
- * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
89
- */
90
- export type StreamRunAgentFileBinaryFormat = {
91
- /**
92
- * base64 encoded content of the file
93
- */
94
- bytes: string;
95
- /**
96
- * Optional mimeType for the file
97
- */
98
- mimeType?: string | undefined;
99
- /**
100
- * Optional name for the file
101
- */
102
- name?: string | undefined;
103
- };
104
-
105
- export type StreamRunAgentPublicMessagePartFile =
106
- | StreamRunAgentFileBinaryFormat
107
- | StreamRunAgentFileFileInURIFormat;
108
-
109
- /**
110
- * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
111
- */
112
- export type StreamRunAgentPublicMessagePartFilePart = {
113
- kind: StreamRunAgentPublicMessagePartAgentsKind;
114
- file: StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
115
- metadata?: { [k: string]: any } | undefined;
116
- };
117
-
118
- export const StreamRunAgentPublicMessagePartKind = {
119
- Text: "text",
120
- } as const;
121
- export type StreamRunAgentPublicMessagePartKind = ClosedEnum<
122
- typeof StreamRunAgentPublicMessagePartKind
123
- >;
124
-
125
- /**
126
- * Text content part. Use this to send text messages to the agent.
127
- */
128
- export type StreamRunAgentPublicMessagePartTextPart = {
129
- kind: StreamRunAgentPublicMessagePartKind;
130
- text: string;
131
- };
132
-
133
- /**
134
- * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
135
- */
136
- export type StreamRunAgentPublicMessagePart =
137
- | StreamRunAgentPublicMessagePartTextPart
138
- | StreamRunAgentPublicMessagePartFilePart
139
- | StreamRunAgentPublicMessagePartToolResultPart;
140
-
141
- /**
142
- * The A2A format message containing the task for the agent to perform.
143
- */
144
- export type StreamRunAgentMessage = {
145
- /**
146
- * Optional A2A message ID in ULID format
147
- */
148
- messageId?: string | undefined;
149
- /**
150
- * Message role (user or tool for continuing executions)
151
- */
152
- role: StreamRunAgentRoleUserMessage | StreamRunAgentRoleToolMessage;
153
- /**
154
- * A2A message parts (text, file, or tool_result only)
155
- */
156
- parts: Array<
157
- | StreamRunAgentPublicMessagePartTextPart
158
- | StreamRunAgentPublicMessagePartFilePart
159
- | StreamRunAgentPublicMessagePartToolResultPart
160
- >;
161
- };
162
-
163
- /**
164
- * Information about the contact making the request. If the contact does not exist, it will be created automatically.
165
- */
166
- export type StreamRunAgentContact = {
167
- /**
168
- * Unique identifier for the contact
169
- */
170
- id: string;
171
- /**
172
- * Display name of the contact
173
- */
174
- displayName?: string | undefined;
175
- /**
176
- * Email address of the contact
177
- */
178
- email?: string | undefined;
179
- /**
180
- * A hash of key/value pairs containing any other data about the contact
181
- */
182
- metadata?: Array<{ [k: string]: any }> | undefined;
183
- /**
184
- * URL to the contact's avatar or logo
185
- */
186
- logoUrl?: string | undefined;
187
- /**
188
- * A list of tags associated with the contact
189
- */
190
- tags?: Array<string> | undefined;
191
- };
192
-
193
- /**
194
- * Thread information to group related requests
195
- */
196
- export type StreamRunAgentThread = {
197
- /**
198
- * Unique thread identifier to group related invocations.
199
- */
200
- id: string;
201
- /**
202
- * Optional tags to differentiate or categorize threads
203
- */
204
- tags?: Array<string> | undefined;
205
- };
206
-
207
- /**
208
- * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
209
- */
210
- export type StreamRunAgentMemory = {
211
- /**
212
- * An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
213
- */
214
- entityId: string;
215
- };
216
-
217
- export type StreamRunAgentKnowledgeBases = {
218
- /**
219
- * Unique identifier of the knowledge base to search
220
- */
221
- knowledgeId: string;
222
- };
223
-
224
- export type StreamRunAgentTeamOfAgents = {
225
- /**
226
- * The unique key of the agent within the workspace
227
- */
228
- key: string;
229
- /**
230
- * 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.
231
- */
232
- role?: string | undefined;
233
- };
234
-
235
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
236
- {
237
- Function: "function",
238
- } as const;
239
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
240
- ClosedEnum<
241
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
242
- >;
243
-
244
- export type StreamRunAgentAgentToolInputRunFunction = {
245
- /**
246
- * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
247
- */
248
- name: string;
249
- /**
250
- * A description of what the function does, used by the model to choose when and how to call the function.
251
- */
252
- description?: string | undefined;
253
- /**
254
- * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
255
- */
256
- strict?: boolean | undefined;
257
- /**
258
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
259
- */
260
- parameters?: { [k: string]: any } | undefined;
261
- };
262
-
263
- /**
264
- * Function tool with inline definition for on-the-fly creation in run endpoint
265
- */
266
- export type AgentToolInputRunFunctionToolRun = {
267
- type:
268
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
269
- /**
270
- * Unique key of the tool as it will be displayed in the UI
271
- */
272
- key: string;
273
- id?: string | undefined;
274
- displayName?: string | undefined;
275
- description?: string | undefined;
276
- function: StreamRunAgentAgentToolInputRunFunction;
277
- requiresApproval?: boolean | undefined;
278
- };
279
-
280
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
281
- {
282
- Code: "code",
283
- } as const;
284
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
285
- ClosedEnum<
286
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
287
- >;
288
-
289
- export const AgentToolInputRunLanguage = {
290
- Python: "python",
291
- } as const;
292
- export type AgentToolInputRunLanguage = ClosedEnum<
293
- typeof AgentToolInputRunLanguage
294
- >;
295
-
296
- export type AgentToolInputRunCodeTool = {
297
- /**
298
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
299
- */
300
- parameters?: { [k: string]: any } | undefined;
301
- language: AgentToolInputRunLanguage;
302
- /**
303
- * The code to execute.
304
- */
305
- code: string;
306
- };
307
-
308
- /**
309
- * Code execution tool with inline definition for on-the-fly creation in run endpoint
310
- */
311
- export type AgentToolInputRunCodeToolRun = {
312
- type:
313
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
314
- /**
315
- * Unique key of the tool as it will be displayed in the UI
316
- */
317
- key: string;
318
- id?: string | undefined;
319
- displayName?: string | undefined;
320
- /**
321
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
322
- */
323
- description: string;
324
- codeTool: AgentToolInputRunCodeTool;
325
- requiresApproval?: boolean | undefined;
326
- };
327
-
328
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
329
- {
330
- Http: "http",
331
- } as const;
332
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
333
- ClosedEnum<
334
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
335
- >;
336
-
337
- /**
338
- * The HTTP method to use.
339
- */
340
- export const AgentToolInputRunMethod = {
341
- Get: "GET",
342
- Post: "POST",
343
- Put: "PUT",
344
- Delete: "DELETE",
345
- } as const;
346
- /**
347
- * The HTTP method to use.
348
- */
349
- export type AgentToolInputRunMethod = ClosedEnum<
350
- typeof AgentToolInputRunMethod
351
- >;
352
-
353
- /**
354
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
355
- */
356
- export type AgentToolInputRunBlueprint = {
357
- /**
358
- * The URL to send the request to.
359
- */
360
- url: string;
361
- /**
362
- * The HTTP method to use.
363
- */
364
- method: AgentToolInputRunMethod;
365
- /**
366
- * The headers to send with the request.
367
- */
368
- headers?: { [k: string]: string } | undefined;
369
- /**
370
- * The body to send with the request.
371
- */
372
- body?: { [k: string]: any } | undefined;
373
- };
374
-
375
- /**
376
- * The type of the argument.
377
- */
378
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
379
- {
380
- String: "string",
381
- Number: "number",
382
- Boolean: "boolean",
383
- } as const;
384
- /**
385
- * The type of the argument.
386
- */
387
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
388
- ClosedEnum<
389
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
390
- >;
391
-
392
- /**
393
- * The default value of the argument.
394
- */
395
- export type AgentToolInputRunDefaultValue = string | number | boolean;
396
-
397
- export type AgentToolInputRunArguments = {
398
- /**
399
- * The type of the argument.
400
- */
401
- type:
402
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
403
- /**
404
- * A description of the argument.
405
- */
406
- description: string;
407
- /**
408
- * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
409
- */
410
- sendToModel?: boolean | undefined;
411
- /**
412
- * The default value of the argument.
413
- */
414
- defaultValue?: string | number | boolean | undefined;
415
- };
416
-
417
- export type AgentToolInputRunHttp = {
418
- /**
419
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
420
- */
421
- blueprint: AgentToolInputRunBlueprint;
422
- /**
423
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
424
- */
425
- arguments?: { [k: string]: AgentToolInputRunArguments } | undefined;
426
- };
427
-
428
- /**
429
- * HTTP tool with inline definition for on-the-fly creation in run endpoint
430
- */
431
- export type AgentToolInputRunHTTPToolRun = {
432
- type:
433
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
434
- /**
435
- * Unique key of the tool as it will be displayed in the UI
436
- */
437
- key: string;
438
- id?: string | undefined;
439
- displayName?: string | undefined;
440
- /**
441
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
442
- */
443
- description: string;
444
- http: AgentToolInputRunHttp;
445
- requiresApproval?: boolean | undefined;
446
- };
447
-
448
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
449
- {
450
- CurrentDate: "current_date",
451
- } as const;
452
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
453
- ClosedEnum<
454
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
455
- >;
456
-
457
- /**
458
- * Returns the current date and time
459
- */
460
- export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
461
- type:
462
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
463
- /**
464
- * Whether this tool requires approval before execution
465
- */
466
- requiresApproval?: boolean | undefined;
467
- };
468
-
469
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
470
- {
471
- QueryKnowledgeBase: "query_knowledge_base",
472
- } as const;
473
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
474
- ClosedEnum<
475
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
476
- >;
477
-
478
- /**
479
- * Queries knowledge bases for information
480
- */
481
- export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool = {
482
- type:
483
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
484
- /**
485
- * Whether this tool requires approval before execution
486
- */
487
- requiresApproval?: boolean | undefined;
488
- };
489
-
490
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
491
- {
492
- RetrieveKnowledgeBases: "retrieve_knowledge_bases",
493
- } as const;
494
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
495
- ClosedEnum<
496
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
497
- >;
498
-
499
- /**
500
- * Lists available knowledge bases
501
- */
502
- export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool = {
503
- type:
504
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
505
- /**
506
- * Whether this tool requires approval before execution
507
- */
508
- requiresApproval?: boolean | undefined;
509
- };
510
-
511
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
512
- {
513
- DeleteMemoryDocument: "delete_memory_document",
514
- } as const;
515
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
516
- ClosedEnum<
517
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
518
- >;
519
-
520
- /**
521
- * Deletes documents from memory stores
522
- */
523
- export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool = {
524
- type:
525
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
526
- /**
527
- * Whether this tool requires approval before execution
528
- */
529
- requiresApproval?: boolean | undefined;
530
- };
531
-
532
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
533
- {
534
- RetrieveMemoryStores: "retrieve_memory_stores",
535
- } as const;
536
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
537
- ClosedEnum<
538
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
539
- >;
540
-
541
- /**
542
- * Lists available memory stores
543
- */
544
- export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool = {
545
- type:
546
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type;
547
- /**
548
- * Whether this tool requires approval before execution
549
- */
550
- requiresApproval?: boolean | undefined;
551
- };
552
-
553
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
554
- {
555
- WriteMemoryStore: "write_memory_store",
556
- } as const;
557
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
558
- ClosedEnum<
559
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
560
- >;
561
-
562
- /**
563
- * Writes information to agent memory stores
564
- */
565
- export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool = {
566
- type:
567
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
568
- /**
569
- * Whether this tool requires approval before execution
570
- */
571
- requiresApproval?: boolean | undefined;
572
- };
573
-
574
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
575
- {
576
- QueryMemoryStore: "query_memory_store",
577
- } as const;
578
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
579
- ClosedEnum<
580
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
581
- >;
582
-
583
- /**
584
- * Queries agent memory stores for context
585
- */
586
- export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
587
- type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
588
- /**
589
- * Whether this tool requires approval before execution
590
- */
591
- requiresApproval?: boolean | undefined;
592
- };
593
-
594
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
595
- RetrieveAgents: "retrieve_agents",
596
- } as const;
597
- export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType =
598
- ClosedEnum<
599
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
600
- >;
601
-
602
- /**
603
- * Retrieves available agents in the system
604
- */
605
- export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool = {
606
- type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType;
607
- /**
608
- * Whether this tool requires approval before execution
609
- */
610
- requiresApproval?: boolean | undefined;
611
- };
612
-
613
- export const StreamRunAgentAgentToolInputRunAgentsRequestType = {
614
- CallSubAgent: "call_sub_agent",
615
- } as const;
616
- export type StreamRunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
617
- typeof StreamRunAgentAgentToolInputRunAgentsRequestType
618
- >;
619
-
620
- /**
621
- * Delegates tasks to specialized sub-agents
622
- */
623
- export type StreamRunAgentAgentToolInputRunCallSubAgentTool = {
624
- type: StreamRunAgentAgentToolInputRunAgentsRequestType;
625
- /**
626
- * Whether this tool requires approval before execution
627
- */
628
- requiresApproval?: boolean | undefined;
629
- };
630
-
631
- export const StreamRunAgentAgentToolInputRunAgentsType = {
632
- WebScraper: "web_scraper",
633
- } as const;
634
- export type StreamRunAgentAgentToolInputRunAgentsType = ClosedEnum<
635
- typeof StreamRunAgentAgentToolInputRunAgentsType
636
- >;
637
-
638
- /**
639
- * Scrapes and extracts content from web pages
640
- */
641
- export type StreamRunAgentAgentToolInputRunWebScraperTool = {
642
- type: StreamRunAgentAgentToolInputRunAgentsType;
643
- /**
644
- * Whether this tool requires approval before execution
645
- */
646
- requiresApproval?: boolean | undefined;
647
- };
648
-
649
- export const StreamRunAgentAgentToolInputRunType = {
650
- GoogleSearch: "google_search",
651
- } as const;
652
- export type StreamRunAgentAgentToolInputRunType = ClosedEnum<
653
- typeof StreamRunAgentAgentToolInputRunType
654
- >;
655
-
656
- /**
657
- * Performs Google searches to retrieve web content
658
- */
659
- export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
660
- type: StreamRunAgentAgentToolInputRunType;
661
- /**
662
- * Whether this tool requires approval before execution
663
- */
664
- requiresApproval?: boolean | undefined;
665
- };
666
-
667
- /**
668
- * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function) support full inline definitions for on-the-fly creation.
669
- */
670
- export type StreamRunAgentAgentToolInputRun =
671
- | AgentToolInputRunHTTPToolRun
672
- | AgentToolInputRunCodeToolRun
673
- | AgentToolInputRunFunctionToolRun
674
- | StreamRunAgentAgentToolInputRunGoogleSearchTool
675
- | StreamRunAgentAgentToolInputRunWebScraperTool
676
- | StreamRunAgentAgentToolInputRunCallSubAgentTool
677
- | StreamRunAgentAgentToolInputRunRetrieveAgentsTool
678
- | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
679
- | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
680
- | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
681
- | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
682
- | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
683
- | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
684
- | StreamRunAgentAgentToolInputRunCurrentDateTool;
685
-
686
- /**
687
- * 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.
688
- */
689
- export const StreamRunAgentToolApprovalRequired = {
690
- All: "all",
691
- RespectTool: "respect_tool",
692
- None: "none",
693
- } as const;
694
- /**
695
- * 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.
696
- */
697
- export type StreamRunAgentToolApprovalRequired = ClosedEnum<
698
- typeof StreamRunAgentToolApprovalRequired
699
- >;
700
-
701
- export type StreamRunAgentSettings = {
702
- /**
703
- * Tools available to the agent
704
- */
705
- tools?:
706
- | Array<
707
- | AgentToolInputRunHTTPToolRun
708
- | AgentToolInputRunCodeToolRun
709
- | AgentToolInputRunFunctionToolRun
710
- | StreamRunAgentAgentToolInputRunGoogleSearchTool
711
- | StreamRunAgentAgentToolInputRunWebScraperTool
712
- | StreamRunAgentAgentToolInputRunCallSubAgentTool
713
- | StreamRunAgentAgentToolInputRunRetrieveAgentsTool
714
- | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
715
- | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
716
- | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
717
- | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
718
- | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
719
- | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
720
- | StreamRunAgentAgentToolInputRunCurrentDateTool
721
- >
722
- | undefined;
723
- /**
724
- * 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.
725
- */
726
- toolApprovalRequired?: StreamRunAgentToolApprovalRequired | undefined;
727
- /**
728
- * Maximum iterations(llm calls) before the agent will stop executing.
729
- */
730
- maxIterations?: number | undefined;
731
- /**
732
- * 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.
733
- */
734
- maxExecutionTime?: number | undefined;
735
- };
736
-
737
- export type StreamRunAgentRequestBody = {
738
- /**
739
- * A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
740
- */
741
- key: string;
742
- /**
743
- * Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
744
- */
745
- taskId?: string | undefined;
746
- /**
747
- * The language model that powers the agent. The model must support tool calling capabilities.
748
- */
749
- model: string;
750
- /**
751
- * 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.
752
- */
753
- fallbackModels?: Array<string> | undefined;
754
- /**
755
- * Specifies the agent's function and area of expertise.
756
- */
757
- role: string;
758
- /**
759
- * Provides context and purpose for the agent. Combined with the system prompt template to generate the agent's instructions.
760
- */
761
- instructions: string;
762
- /**
763
- * The A2A format message containing the task for the agent to perform.
764
- */
765
- message: StreamRunAgentMessage;
766
- /**
767
- * Optional variables for template replacement in system prompt, instructions, and messages
768
- */
769
- variables?: { [k: string]: any } | undefined;
770
- /**
771
- * Information about the contact making the request. If the contact does not exist, it will be created automatically.
772
- */
773
- contact?: StreamRunAgentContact | undefined;
774
- /**
775
- * Thread information to group related requests
776
- */
777
- thread?: StreamRunAgentThread | undefined;
778
- /**
779
- * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
780
- */
781
- memory?: StreamRunAgentMemory | undefined;
782
- /**
783
- * Entity storage path in the format: `project/folder/subfolder/...`
784
- *
785
- * @remarks
786
- *
787
- * The first element identifies the project, followed by nested folders (auto-created as needed).
788
- *
789
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
790
- */
791
- path: string;
792
- /**
793
- * A brief summary of the agent's purpose.
794
- */
795
- description?: string | undefined;
796
- /**
797
- * A custom system prompt template for the agent. If omitted, the default template is used.
798
- */
799
- systemPrompt?: string | undefined;
800
- /**
801
- * The list of keys of the memory stores that are accessible to the agent.
802
- */
803
- memoryStores?: Array<string> | undefined;
804
- /**
805
- * Knowledge base configurations for the agent to access
806
- */
807
- knowledgeBases?: Array<StreamRunAgentKnowledgeBases> | undefined;
808
- /**
809
- * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
810
- */
811
- teamOfAgents?: Array<StreamRunAgentTeamOfAgents> | undefined;
812
- settings: StreamRunAgentSettings;
813
- /**
814
- * Optional metadata for the agent run as key-value pairs that will be included in traces
815
- */
816
- metadata?: { [k: string]: any } | undefined;
817
- /**
818
- * Stream timeout in seconds (1-3600). Default: 1800 (30 minutes)
819
- */
820
- streamTimeoutSeconds?: number | undefined;
821
- };
822
-
823
- /**
824
- * SSE stream of agent events
825
- */
826
- export type StreamRunAgentResponseBody = {
827
- /**
828
- * JSON-encoded event data
829
- */
830
- data: string;
831
- };
832
-
833
- /** @internal */
834
- export const StreamRunAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
835
- typeof StreamRunAgentRoleToolMessage
836
- > = z.nativeEnum(StreamRunAgentRoleToolMessage);
837
-
838
- /** @internal */
839
- export const StreamRunAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
840
- typeof StreamRunAgentRoleToolMessage
841
- > = StreamRunAgentRoleToolMessage$inboundSchema;
842
-
843
- /**
844
- * @internal
845
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
846
- */
847
- export namespace StreamRunAgentRoleToolMessage$ {
848
- /** @deprecated use `StreamRunAgentRoleToolMessage$inboundSchema` instead. */
849
- export const inboundSchema = StreamRunAgentRoleToolMessage$inboundSchema;
850
- /** @deprecated use `StreamRunAgentRoleToolMessage$outboundSchema` instead. */
851
- export const outboundSchema = StreamRunAgentRoleToolMessage$outboundSchema;
852
- }
853
-
854
- /** @internal */
855
- export const StreamRunAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
856
- typeof StreamRunAgentRoleUserMessage
857
- > = z.nativeEnum(StreamRunAgentRoleUserMessage);
858
-
859
- /** @internal */
860
- export const StreamRunAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
861
- typeof StreamRunAgentRoleUserMessage
862
- > = StreamRunAgentRoleUserMessage$inboundSchema;
863
-
864
- /**
865
- * @internal
866
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
867
- */
868
- export namespace StreamRunAgentRoleUserMessage$ {
869
- /** @deprecated use `StreamRunAgentRoleUserMessage$inboundSchema` instead. */
870
- export const inboundSchema = StreamRunAgentRoleUserMessage$inboundSchema;
871
- /** @deprecated use `StreamRunAgentRoleUserMessage$outboundSchema` instead. */
872
- export const outboundSchema = StreamRunAgentRoleUserMessage$outboundSchema;
873
- }
874
-
875
- /** @internal */
876
- export const StreamRunAgentRole$inboundSchema: z.ZodType<
877
- StreamRunAgentRole,
878
- z.ZodTypeDef,
879
- unknown
880
- > = z.union([
881
- StreamRunAgentRoleUserMessage$inboundSchema,
882
- StreamRunAgentRoleToolMessage$inboundSchema,
883
- ]);
884
-
885
- /** @internal */
886
- export type StreamRunAgentRole$Outbound = string | string;
887
-
888
- /** @internal */
889
- export const StreamRunAgentRole$outboundSchema: z.ZodType<
890
- StreamRunAgentRole$Outbound,
891
- z.ZodTypeDef,
892
- StreamRunAgentRole
893
- > = z.union([
894
- StreamRunAgentRoleUserMessage$outboundSchema,
895
- StreamRunAgentRoleToolMessage$outboundSchema,
896
- ]);
897
-
898
- /**
899
- * @internal
900
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
901
- */
902
- export namespace StreamRunAgentRole$ {
903
- /** @deprecated use `StreamRunAgentRole$inboundSchema` instead. */
904
- export const inboundSchema = StreamRunAgentRole$inboundSchema;
905
- /** @deprecated use `StreamRunAgentRole$outboundSchema` instead. */
906
- export const outboundSchema = StreamRunAgentRole$outboundSchema;
907
- /** @deprecated use `StreamRunAgentRole$Outbound` instead. */
908
- export type Outbound = StreamRunAgentRole$Outbound;
909
- }
910
-
911
- export function streamRunAgentRoleToJSON(
912
- streamRunAgentRole: StreamRunAgentRole,
913
- ): string {
914
- return JSON.stringify(
915
- StreamRunAgentRole$outboundSchema.parse(streamRunAgentRole),
916
- );
917
- }
918
-
919
- export function streamRunAgentRoleFromJSON(
920
- jsonString: string,
921
- ): SafeParseResult<StreamRunAgentRole, SDKValidationError> {
922
- return safeParse(
923
- jsonString,
924
- (x) => StreamRunAgentRole$inboundSchema.parse(JSON.parse(x)),
925
- `Failed to parse 'StreamRunAgentRole' from JSON`,
926
- );
927
- }
928
-
929
- /** @internal */
930
- export const StreamRunAgentPublicMessagePartAgentsRequestKind$inboundSchema:
931
- z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartAgentsRequestKind> = z
932
- .nativeEnum(StreamRunAgentPublicMessagePartAgentsRequestKind);
933
-
934
- /** @internal */
935
- export const StreamRunAgentPublicMessagePartAgentsRequestKind$outboundSchema:
936
- z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartAgentsRequestKind> =
937
- StreamRunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
938
-
939
- /**
940
- * @internal
941
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
942
- */
943
- export namespace StreamRunAgentPublicMessagePartAgentsRequestKind$ {
944
- /** @deprecated use `StreamRunAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
945
- export const inboundSchema =
946
- StreamRunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
947
- /** @deprecated use `StreamRunAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
948
- export const outboundSchema =
949
- StreamRunAgentPublicMessagePartAgentsRequestKind$outboundSchema;
950
- }
951
-
952
- /** @internal */
953
- export const StreamRunAgentPublicMessagePartToolResultPart$inboundSchema:
954
- z.ZodType<
955
- StreamRunAgentPublicMessagePartToolResultPart,
956
- z.ZodTypeDef,
957
- unknown
958
- > = z.object({
959
- kind: StreamRunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
960
- tool_call_id: z.string(),
961
- result: z.any().optional(),
962
- metadata: z.record(z.any()).optional(),
963
- }).transform((v) => {
964
- return remap$(v, {
965
- "tool_call_id": "toolCallId",
966
- });
967
- });
968
-
969
- /** @internal */
970
- export type StreamRunAgentPublicMessagePartToolResultPart$Outbound = {
971
- kind: string;
972
- tool_call_id: string;
973
- result?: any | undefined;
974
- metadata?: { [k: string]: any } | undefined;
975
- };
976
-
977
- /** @internal */
978
- export const StreamRunAgentPublicMessagePartToolResultPart$outboundSchema:
979
- z.ZodType<
980
- StreamRunAgentPublicMessagePartToolResultPart$Outbound,
981
- z.ZodTypeDef,
982
- StreamRunAgentPublicMessagePartToolResultPart
983
- > = z.object({
984
- kind: StreamRunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
985
- toolCallId: z.string(),
986
- result: z.any().optional(),
987
- metadata: z.record(z.any()).optional(),
988
- }).transform((v) => {
989
- return remap$(v, {
990
- toolCallId: "tool_call_id",
991
- });
992
- });
993
-
994
- /**
995
- * @internal
996
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
997
- */
998
- export namespace StreamRunAgentPublicMessagePartToolResultPart$ {
999
- /** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$inboundSchema` instead. */
1000
- export const inboundSchema =
1001
- StreamRunAgentPublicMessagePartToolResultPart$inboundSchema;
1002
- /** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$outboundSchema` instead. */
1003
- export const outboundSchema =
1004
- StreamRunAgentPublicMessagePartToolResultPart$outboundSchema;
1005
- /** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$Outbound` instead. */
1006
- export type Outbound = StreamRunAgentPublicMessagePartToolResultPart$Outbound;
1007
- }
1008
-
1009
- export function streamRunAgentPublicMessagePartToolResultPartToJSON(
1010
- streamRunAgentPublicMessagePartToolResultPart:
1011
- StreamRunAgentPublicMessagePartToolResultPart,
1012
- ): string {
1013
- return JSON.stringify(
1014
- StreamRunAgentPublicMessagePartToolResultPart$outboundSchema.parse(
1015
- streamRunAgentPublicMessagePartToolResultPart,
1016
- ),
1017
- );
1018
- }
1019
-
1020
- export function streamRunAgentPublicMessagePartToolResultPartFromJSON(
1021
- jsonString: string,
1022
- ): SafeParseResult<
1023
- StreamRunAgentPublicMessagePartToolResultPart,
1024
- SDKValidationError
1025
- > {
1026
- return safeParse(
1027
- jsonString,
1028
- (x) =>
1029
- StreamRunAgentPublicMessagePartToolResultPart$inboundSchema.parse(
1030
- JSON.parse(x),
1031
- ),
1032
- `Failed to parse 'StreamRunAgentPublicMessagePartToolResultPart' from JSON`,
1033
- );
1034
- }
1035
-
1036
- /** @internal */
1037
- export const StreamRunAgentPublicMessagePartAgentsKind$inboundSchema:
1038
- z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartAgentsKind> = z
1039
- .nativeEnum(StreamRunAgentPublicMessagePartAgentsKind);
1040
-
1041
- /** @internal */
1042
- export const StreamRunAgentPublicMessagePartAgentsKind$outboundSchema:
1043
- z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartAgentsKind> =
1044
- StreamRunAgentPublicMessagePartAgentsKind$inboundSchema;
1045
-
1046
- /**
1047
- * @internal
1048
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1049
- */
1050
- export namespace StreamRunAgentPublicMessagePartAgentsKind$ {
1051
- /** @deprecated use `StreamRunAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
1052
- export const inboundSchema =
1053
- StreamRunAgentPublicMessagePartAgentsKind$inboundSchema;
1054
- /** @deprecated use `StreamRunAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
1055
- export const outboundSchema =
1056
- StreamRunAgentPublicMessagePartAgentsKind$outboundSchema;
1057
- }
1058
-
1059
- /** @internal */
1060
- export const StreamRunAgentFileFileInURIFormat$inboundSchema: z.ZodType<
1061
- StreamRunAgentFileFileInURIFormat,
1062
- z.ZodTypeDef,
1063
- unknown
1064
- > = z.object({
1065
- uri: z.string(),
1066
- mimeType: z.string().optional(),
1067
- name: z.string().optional(),
1068
- });
1069
-
1070
- /** @internal */
1071
- export type StreamRunAgentFileFileInURIFormat$Outbound = {
1072
- uri: string;
1073
- mimeType?: string | undefined;
1074
- name?: string | undefined;
1075
- };
1076
-
1077
- /** @internal */
1078
- export const StreamRunAgentFileFileInURIFormat$outboundSchema: z.ZodType<
1079
- StreamRunAgentFileFileInURIFormat$Outbound,
1080
- z.ZodTypeDef,
1081
- StreamRunAgentFileFileInURIFormat
1082
- > = z.object({
1083
- uri: z.string(),
1084
- mimeType: z.string().optional(),
1085
- name: z.string().optional(),
1086
- });
1087
-
1088
- /**
1089
- * @internal
1090
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1091
- */
1092
- export namespace StreamRunAgentFileFileInURIFormat$ {
1093
- /** @deprecated use `StreamRunAgentFileFileInURIFormat$inboundSchema` instead. */
1094
- export const inboundSchema = StreamRunAgentFileFileInURIFormat$inboundSchema;
1095
- /** @deprecated use `StreamRunAgentFileFileInURIFormat$outboundSchema` instead. */
1096
- export const outboundSchema =
1097
- StreamRunAgentFileFileInURIFormat$outboundSchema;
1098
- /** @deprecated use `StreamRunAgentFileFileInURIFormat$Outbound` instead. */
1099
- export type Outbound = StreamRunAgentFileFileInURIFormat$Outbound;
1100
- }
1101
-
1102
- export function streamRunAgentFileFileInURIFormatToJSON(
1103
- streamRunAgentFileFileInURIFormat: StreamRunAgentFileFileInURIFormat,
1104
- ): string {
1105
- return JSON.stringify(
1106
- StreamRunAgentFileFileInURIFormat$outboundSchema.parse(
1107
- streamRunAgentFileFileInURIFormat,
1108
- ),
1109
- );
1110
- }
1111
-
1112
- export function streamRunAgentFileFileInURIFormatFromJSON(
1113
- jsonString: string,
1114
- ): SafeParseResult<StreamRunAgentFileFileInURIFormat, SDKValidationError> {
1115
- return safeParse(
1116
- jsonString,
1117
- (x) => StreamRunAgentFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
1118
- `Failed to parse 'StreamRunAgentFileFileInURIFormat' from JSON`,
1119
- );
1120
- }
1121
-
1122
- /** @internal */
1123
- export const StreamRunAgentFileBinaryFormat$inboundSchema: z.ZodType<
1124
- StreamRunAgentFileBinaryFormat,
1125
- z.ZodTypeDef,
1126
- unknown
1127
- > = z.object({
1128
- bytes: z.string(),
1129
- mimeType: z.string().optional(),
1130
- name: z.string().optional(),
1131
- });
1132
-
1133
- /** @internal */
1134
- export type StreamRunAgentFileBinaryFormat$Outbound = {
1135
- bytes: string;
1136
- mimeType?: string | undefined;
1137
- name?: string | undefined;
1138
- };
1139
-
1140
- /** @internal */
1141
- export const StreamRunAgentFileBinaryFormat$outboundSchema: z.ZodType<
1142
- StreamRunAgentFileBinaryFormat$Outbound,
1143
- z.ZodTypeDef,
1144
- StreamRunAgentFileBinaryFormat
1145
- > = z.object({
1146
- bytes: z.string(),
1147
- mimeType: z.string().optional(),
1148
- name: z.string().optional(),
1149
- });
1150
-
1151
- /**
1152
- * @internal
1153
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1154
- */
1155
- export namespace StreamRunAgentFileBinaryFormat$ {
1156
- /** @deprecated use `StreamRunAgentFileBinaryFormat$inboundSchema` instead. */
1157
- export const inboundSchema = StreamRunAgentFileBinaryFormat$inboundSchema;
1158
- /** @deprecated use `StreamRunAgentFileBinaryFormat$outboundSchema` instead. */
1159
- export const outboundSchema = StreamRunAgentFileBinaryFormat$outboundSchema;
1160
- /** @deprecated use `StreamRunAgentFileBinaryFormat$Outbound` instead. */
1161
- export type Outbound = StreamRunAgentFileBinaryFormat$Outbound;
1162
- }
1163
-
1164
- export function streamRunAgentFileBinaryFormatToJSON(
1165
- streamRunAgentFileBinaryFormat: StreamRunAgentFileBinaryFormat,
1166
- ): string {
1167
- return JSON.stringify(
1168
- StreamRunAgentFileBinaryFormat$outboundSchema.parse(
1169
- streamRunAgentFileBinaryFormat,
1170
- ),
1171
- );
1172
- }
1173
-
1174
- export function streamRunAgentFileBinaryFormatFromJSON(
1175
- jsonString: string,
1176
- ): SafeParseResult<StreamRunAgentFileBinaryFormat, SDKValidationError> {
1177
- return safeParse(
1178
- jsonString,
1179
- (x) => StreamRunAgentFileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
1180
- `Failed to parse 'StreamRunAgentFileBinaryFormat' from JSON`,
1181
- );
1182
- }
1183
-
1184
- /** @internal */
1185
- export const StreamRunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
1186
- StreamRunAgentPublicMessagePartFile,
1187
- z.ZodTypeDef,
1188
- unknown
1189
- > = z.union([
1190
- z.lazy(() => StreamRunAgentFileBinaryFormat$inboundSchema),
1191
- z.lazy(() => StreamRunAgentFileFileInURIFormat$inboundSchema),
1192
- ]);
1193
-
1194
- /** @internal */
1195
- export type StreamRunAgentPublicMessagePartFile$Outbound =
1196
- | StreamRunAgentFileBinaryFormat$Outbound
1197
- | StreamRunAgentFileFileInURIFormat$Outbound;
1198
-
1199
- /** @internal */
1200
- export const StreamRunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
1201
- StreamRunAgentPublicMessagePartFile$Outbound,
1202
- z.ZodTypeDef,
1203
- StreamRunAgentPublicMessagePartFile
1204
- > = z.union([
1205
- z.lazy(() => StreamRunAgentFileBinaryFormat$outboundSchema),
1206
- z.lazy(() => StreamRunAgentFileFileInURIFormat$outboundSchema),
1207
- ]);
1208
-
1209
- /**
1210
- * @internal
1211
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1212
- */
1213
- export namespace StreamRunAgentPublicMessagePartFile$ {
1214
- /** @deprecated use `StreamRunAgentPublicMessagePartFile$inboundSchema` instead. */
1215
- export const inboundSchema =
1216
- StreamRunAgentPublicMessagePartFile$inboundSchema;
1217
- /** @deprecated use `StreamRunAgentPublicMessagePartFile$outboundSchema` instead. */
1218
- export const outboundSchema =
1219
- StreamRunAgentPublicMessagePartFile$outboundSchema;
1220
- /** @deprecated use `StreamRunAgentPublicMessagePartFile$Outbound` instead. */
1221
- export type Outbound = StreamRunAgentPublicMessagePartFile$Outbound;
1222
- }
1223
-
1224
- export function streamRunAgentPublicMessagePartFileToJSON(
1225
- streamRunAgentPublicMessagePartFile: StreamRunAgentPublicMessagePartFile,
1226
- ): string {
1227
- return JSON.stringify(
1228
- StreamRunAgentPublicMessagePartFile$outboundSchema.parse(
1229
- streamRunAgentPublicMessagePartFile,
1230
- ),
1231
- );
1232
- }
1233
-
1234
- export function streamRunAgentPublicMessagePartFileFromJSON(
1235
- jsonString: string,
1236
- ): SafeParseResult<StreamRunAgentPublicMessagePartFile, SDKValidationError> {
1237
- return safeParse(
1238
- jsonString,
1239
- (x) =>
1240
- StreamRunAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
1241
- `Failed to parse 'StreamRunAgentPublicMessagePartFile' from JSON`,
1242
- );
1243
- }
1244
-
1245
- /** @internal */
1246
- export const StreamRunAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<
1247
- StreamRunAgentPublicMessagePartFilePart,
1248
- z.ZodTypeDef,
1249
- unknown
1250
- > = z.object({
1251
- kind: StreamRunAgentPublicMessagePartAgentsKind$inboundSchema,
1252
- file: z.union([
1253
- z.lazy(() => StreamRunAgentFileBinaryFormat$inboundSchema),
1254
- z.lazy(() => StreamRunAgentFileFileInURIFormat$inboundSchema),
1255
- ]),
1256
- metadata: z.record(z.any()).optional(),
1257
- });
1258
-
1259
- /** @internal */
1260
- export type StreamRunAgentPublicMessagePartFilePart$Outbound = {
1261
- kind: string;
1262
- file:
1263
- | StreamRunAgentFileBinaryFormat$Outbound
1264
- | StreamRunAgentFileFileInURIFormat$Outbound;
1265
- metadata?: { [k: string]: any } | undefined;
1266
- };
1267
-
1268
- /** @internal */
1269
- export const StreamRunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<
1270
- StreamRunAgentPublicMessagePartFilePart$Outbound,
1271
- z.ZodTypeDef,
1272
- StreamRunAgentPublicMessagePartFilePart
1273
- > = z.object({
1274
- kind: StreamRunAgentPublicMessagePartAgentsKind$outboundSchema,
1275
- file: z.union([
1276
- z.lazy(() => StreamRunAgentFileBinaryFormat$outboundSchema),
1277
- z.lazy(() => StreamRunAgentFileFileInURIFormat$outboundSchema),
1278
- ]),
1279
- metadata: z.record(z.any()).optional(),
1280
- });
1281
-
1282
- /**
1283
- * @internal
1284
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1285
- */
1286
- export namespace StreamRunAgentPublicMessagePartFilePart$ {
1287
- /** @deprecated use `StreamRunAgentPublicMessagePartFilePart$inboundSchema` instead. */
1288
- export const inboundSchema =
1289
- StreamRunAgentPublicMessagePartFilePart$inboundSchema;
1290
- /** @deprecated use `StreamRunAgentPublicMessagePartFilePart$outboundSchema` instead. */
1291
- export const outboundSchema =
1292
- StreamRunAgentPublicMessagePartFilePart$outboundSchema;
1293
- /** @deprecated use `StreamRunAgentPublicMessagePartFilePart$Outbound` instead. */
1294
- export type Outbound = StreamRunAgentPublicMessagePartFilePart$Outbound;
1295
- }
1296
-
1297
- export function streamRunAgentPublicMessagePartFilePartToJSON(
1298
- streamRunAgentPublicMessagePartFilePart:
1299
- StreamRunAgentPublicMessagePartFilePart,
1300
- ): string {
1301
- return JSON.stringify(
1302
- StreamRunAgentPublicMessagePartFilePart$outboundSchema.parse(
1303
- streamRunAgentPublicMessagePartFilePart,
1304
- ),
1305
- );
1306
- }
1307
-
1308
- export function streamRunAgentPublicMessagePartFilePartFromJSON(
1309
- jsonString: string,
1310
- ): SafeParseResult<
1311
- StreamRunAgentPublicMessagePartFilePart,
1312
- SDKValidationError
1313
- > {
1314
- return safeParse(
1315
- jsonString,
1316
- (x) =>
1317
- StreamRunAgentPublicMessagePartFilePart$inboundSchema.parse(
1318
- JSON.parse(x),
1319
- ),
1320
- `Failed to parse 'StreamRunAgentPublicMessagePartFilePart' from JSON`,
1321
- );
1322
- }
1323
-
1324
- /** @internal */
1325
- export const StreamRunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
1326
- typeof StreamRunAgentPublicMessagePartKind
1327
- > = z.nativeEnum(StreamRunAgentPublicMessagePartKind);
1328
-
1329
- /** @internal */
1330
- export const StreamRunAgentPublicMessagePartKind$outboundSchema:
1331
- z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartKind> =
1332
- StreamRunAgentPublicMessagePartKind$inboundSchema;
1333
-
1334
- /**
1335
- * @internal
1336
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1337
- */
1338
- export namespace StreamRunAgentPublicMessagePartKind$ {
1339
- /** @deprecated use `StreamRunAgentPublicMessagePartKind$inboundSchema` instead. */
1340
- export const inboundSchema =
1341
- StreamRunAgentPublicMessagePartKind$inboundSchema;
1342
- /** @deprecated use `StreamRunAgentPublicMessagePartKind$outboundSchema` instead. */
1343
- export const outboundSchema =
1344
- StreamRunAgentPublicMessagePartKind$outboundSchema;
1345
- }
1346
-
1347
- /** @internal */
1348
- export const StreamRunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<
1349
- StreamRunAgentPublicMessagePartTextPart,
1350
- z.ZodTypeDef,
1351
- unknown
1352
- > = z.object({
1353
- kind: StreamRunAgentPublicMessagePartKind$inboundSchema,
1354
- text: z.string(),
1355
- });
1356
-
1357
- /** @internal */
1358
- export type StreamRunAgentPublicMessagePartTextPart$Outbound = {
1359
- kind: string;
1360
- text: string;
1361
- };
1362
-
1363
- /** @internal */
1364
- export const StreamRunAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<
1365
- StreamRunAgentPublicMessagePartTextPart$Outbound,
1366
- z.ZodTypeDef,
1367
- StreamRunAgentPublicMessagePartTextPart
1368
- > = z.object({
1369
- kind: StreamRunAgentPublicMessagePartKind$outboundSchema,
1370
- text: z.string(),
1371
- });
1372
-
1373
- /**
1374
- * @internal
1375
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1376
- */
1377
- export namespace StreamRunAgentPublicMessagePartTextPart$ {
1378
- /** @deprecated use `StreamRunAgentPublicMessagePartTextPart$inboundSchema` instead. */
1379
- export const inboundSchema =
1380
- StreamRunAgentPublicMessagePartTextPart$inboundSchema;
1381
- /** @deprecated use `StreamRunAgentPublicMessagePartTextPart$outboundSchema` instead. */
1382
- export const outboundSchema =
1383
- StreamRunAgentPublicMessagePartTextPart$outboundSchema;
1384
- /** @deprecated use `StreamRunAgentPublicMessagePartTextPart$Outbound` instead. */
1385
- export type Outbound = StreamRunAgentPublicMessagePartTextPart$Outbound;
1386
- }
1387
-
1388
- export function streamRunAgentPublicMessagePartTextPartToJSON(
1389
- streamRunAgentPublicMessagePartTextPart:
1390
- StreamRunAgentPublicMessagePartTextPart,
1391
- ): string {
1392
- return JSON.stringify(
1393
- StreamRunAgentPublicMessagePartTextPart$outboundSchema.parse(
1394
- streamRunAgentPublicMessagePartTextPart,
1395
- ),
1396
- );
1397
- }
1398
-
1399
- export function streamRunAgentPublicMessagePartTextPartFromJSON(
1400
- jsonString: string,
1401
- ): SafeParseResult<
1402
- StreamRunAgentPublicMessagePartTextPart,
1403
- SDKValidationError
1404
- > {
1405
- return safeParse(
1406
- jsonString,
1407
- (x) =>
1408
- StreamRunAgentPublicMessagePartTextPart$inboundSchema.parse(
1409
- JSON.parse(x),
1410
- ),
1411
- `Failed to parse 'StreamRunAgentPublicMessagePartTextPart' from JSON`,
1412
- );
1413
- }
1414
-
1415
- /** @internal */
1416
- export const StreamRunAgentPublicMessagePart$inboundSchema: z.ZodType<
1417
- StreamRunAgentPublicMessagePart,
1418
- z.ZodTypeDef,
1419
- unknown
1420
- > = z.union([
1421
- z.lazy(() => StreamRunAgentPublicMessagePartTextPart$inboundSchema),
1422
- z.lazy(() => StreamRunAgentPublicMessagePartFilePart$inboundSchema),
1423
- z.lazy(() => StreamRunAgentPublicMessagePartToolResultPart$inboundSchema),
1424
- ]);
1425
-
1426
- /** @internal */
1427
- export type StreamRunAgentPublicMessagePart$Outbound =
1428
- | StreamRunAgentPublicMessagePartTextPart$Outbound
1429
- | StreamRunAgentPublicMessagePartFilePart$Outbound
1430
- | StreamRunAgentPublicMessagePartToolResultPart$Outbound;
1431
-
1432
- /** @internal */
1433
- export const StreamRunAgentPublicMessagePart$outboundSchema: z.ZodType<
1434
- StreamRunAgentPublicMessagePart$Outbound,
1435
- z.ZodTypeDef,
1436
- StreamRunAgentPublicMessagePart
1437
- > = z.union([
1438
- z.lazy(() => StreamRunAgentPublicMessagePartTextPart$outboundSchema),
1439
- z.lazy(() => StreamRunAgentPublicMessagePartFilePart$outboundSchema),
1440
- z.lazy(() => StreamRunAgentPublicMessagePartToolResultPart$outboundSchema),
1441
- ]);
1442
-
1443
- /**
1444
- * @internal
1445
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1446
- */
1447
- export namespace StreamRunAgentPublicMessagePart$ {
1448
- /** @deprecated use `StreamRunAgentPublicMessagePart$inboundSchema` instead. */
1449
- export const inboundSchema = StreamRunAgentPublicMessagePart$inboundSchema;
1450
- /** @deprecated use `StreamRunAgentPublicMessagePart$outboundSchema` instead. */
1451
- export const outboundSchema = StreamRunAgentPublicMessagePart$outboundSchema;
1452
- /** @deprecated use `StreamRunAgentPublicMessagePart$Outbound` instead. */
1453
- export type Outbound = StreamRunAgentPublicMessagePart$Outbound;
1454
- }
1455
-
1456
- export function streamRunAgentPublicMessagePartToJSON(
1457
- streamRunAgentPublicMessagePart: StreamRunAgentPublicMessagePart,
1458
- ): string {
1459
- return JSON.stringify(
1460
- StreamRunAgentPublicMessagePart$outboundSchema.parse(
1461
- streamRunAgentPublicMessagePart,
1462
- ),
1463
- );
1464
- }
1465
-
1466
- export function streamRunAgentPublicMessagePartFromJSON(
1467
- jsonString: string,
1468
- ): SafeParseResult<StreamRunAgentPublicMessagePart, SDKValidationError> {
1469
- return safeParse(
1470
- jsonString,
1471
- (x) => StreamRunAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
1472
- `Failed to parse 'StreamRunAgentPublicMessagePart' from JSON`,
1473
- );
1474
- }
1475
-
1476
- /** @internal */
1477
- export const StreamRunAgentMessage$inboundSchema: z.ZodType<
1478
- StreamRunAgentMessage,
1479
- z.ZodTypeDef,
1480
- unknown
1481
- > = z.object({
1482
- messageId: z.string().optional(),
1483
- role: z.union([
1484
- StreamRunAgentRoleUserMessage$inboundSchema,
1485
- StreamRunAgentRoleToolMessage$inboundSchema,
1486
- ]),
1487
- parts: z.array(
1488
- z.union([
1489
- z.lazy(() => StreamRunAgentPublicMessagePartTextPart$inboundSchema),
1490
- z.lazy(() => StreamRunAgentPublicMessagePartFilePart$inboundSchema),
1491
- z.lazy(() => StreamRunAgentPublicMessagePartToolResultPart$inboundSchema),
1492
- ]),
1493
- ),
1494
- });
1495
-
1496
- /** @internal */
1497
- export type StreamRunAgentMessage$Outbound = {
1498
- messageId?: string | undefined;
1499
- role: string | string;
1500
- parts: Array<
1501
- | StreamRunAgentPublicMessagePartTextPart$Outbound
1502
- | StreamRunAgentPublicMessagePartFilePart$Outbound
1503
- | StreamRunAgentPublicMessagePartToolResultPart$Outbound
1504
- >;
1505
- };
1506
-
1507
- /** @internal */
1508
- export const StreamRunAgentMessage$outboundSchema: z.ZodType<
1509
- StreamRunAgentMessage$Outbound,
1510
- z.ZodTypeDef,
1511
- StreamRunAgentMessage
1512
- > = z.object({
1513
- messageId: z.string().optional(),
1514
- role: z.union([
1515
- StreamRunAgentRoleUserMessage$outboundSchema,
1516
- StreamRunAgentRoleToolMessage$outboundSchema,
1517
- ]),
1518
- parts: z.array(
1519
- z.union([
1520
- z.lazy(() => StreamRunAgentPublicMessagePartTextPart$outboundSchema),
1521
- z.lazy(() => StreamRunAgentPublicMessagePartFilePart$outboundSchema),
1522
- z.lazy(() =>
1523
- StreamRunAgentPublicMessagePartToolResultPart$outboundSchema
1524
- ),
1525
- ]),
1526
- ),
1527
- });
1528
-
1529
- /**
1530
- * @internal
1531
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1532
- */
1533
- export namespace StreamRunAgentMessage$ {
1534
- /** @deprecated use `StreamRunAgentMessage$inboundSchema` instead. */
1535
- export const inboundSchema = StreamRunAgentMessage$inboundSchema;
1536
- /** @deprecated use `StreamRunAgentMessage$outboundSchema` instead. */
1537
- export const outboundSchema = StreamRunAgentMessage$outboundSchema;
1538
- /** @deprecated use `StreamRunAgentMessage$Outbound` instead. */
1539
- export type Outbound = StreamRunAgentMessage$Outbound;
1540
- }
1541
-
1542
- export function streamRunAgentMessageToJSON(
1543
- streamRunAgentMessage: StreamRunAgentMessage,
1544
- ): string {
1545
- return JSON.stringify(
1546
- StreamRunAgentMessage$outboundSchema.parse(streamRunAgentMessage),
1547
- );
1548
- }
1549
-
1550
- export function streamRunAgentMessageFromJSON(
1551
- jsonString: string,
1552
- ): SafeParseResult<StreamRunAgentMessage, SDKValidationError> {
1553
- return safeParse(
1554
- jsonString,
1555
- (x) => StreamRunAgentMessage$inboundSchema.parse(JSON.parse(x)),
1556
- `Failed to parse 'StreamRunAgentMessage' from JSON`,
1557
- );
1558
- }
1559
-
1560
- /** @internal */
1561
- export const StreamRunAgentContact$inboundSchema: z.ZodType<
1562
- StreamRunAgentContact,
1563
- z.ZodTypeDef,
1564
- unknown
1565
- > = z.object({
1566
- id: z.string(),
1567
- display_name: z.string().optional(),
1568
- email: z.string().optional(),
1569
- metadata: z.array(z.record(z.any())).optional(),
1570
- logo_url: z.string().optional(),
1571
- tags: z.array(z.string()).optional(),
1572
- }).transform((v) => {
1573
- return remap$(v, {
1574
- "display_name": "displayName",
1575
- "logo_url": "logoUrl",
1576
- });
1577
- });
1578
-
1579
- /** @internal */
1580
- export type StreamRunAgentContact$Outbound = {
1581
- id: string;
1582
- display_name?: string | undefined;
1583
- email?: string | undefined;
1584
- metadata?: Array<{ [k: string]: any }> | undefined;
1585
- logo_url?: string | undefined;
1586
- tags?: Array<string> | undefined;
1587
- };
1588
-
1589
- /** @internal */
1590
- export const StreamRunAgentContact$outboundSchema: z.ZodType<
1591
- StreamRunAgentContact$Outbound,
1592
- z.ZodTypeDef,
1593
- StreamRunAgentContact
1594
- > = z.object({
1595
- id: z.string(),
1596
- displayName: z.string().optional(),
1597
- email: z.string().optional(),
1598
- metadata: z.array(z.record(z.any())).optional(),
1599
- logoUrl: z.string().optional(),
1600
- tags: z.array(z.string()).optional(),
1601
- }).transform((v) => {
1602
- return remap$(v, {
1603
- displayName: "display_name",
1604
- logoUrl: "logo_url",
1605
- });
1606
- });
1607
-
1608
- /**
1609
- * @internal
1610
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1611
- */
1612
- export namespace StreamRunAgentContact$ {
1613
- /** @deprecated use `StreamRunAgentContact$inboundSchema` instead. */
1614
- export const inboundSchema = StreamRunAgentContact$inboundSchema;
1615
- /** @deprecated use `StreamRunAgentContact$outboundSchema` instead. */
1616
- export const outboundSchema = StreamRunAgentContact$outboundSchema;
1617
- /** @deprecated use `StreamRunAgentContact$Outbound` instead. */
1618
- export type Outbound = StreamRunAgentContact$Outbound;
1619
- }
1620
-
1621
- export function streamRunAgentContactToJSON(
1622
- streamRunAgentContact: StreamRunAgentContact,
1623
- ): string {
1624
- return JSON.stringify(
1625
- StreamRunAgentContact$outboundSchema.parse(streamRunAgentContact),
1626
- );
1627
- }
1628
-
1629
- export function streamRunAgentContactFromJSON(
1630
- jsonString: string,
1631
- ): SafeParseResult<StreamRunAgentContact, SDKValidationError> {
1632
- return safeParse(
1633
- jsonString,
1634
- (x) => StreamRunAgentContact$inboundSchema.parse(JSON.parse(x)),
1635
- `Failed to parse 'StreamRunAgentContact' from JSON`,
1636
- );
1637
- }
1638
-
1639
- /** @internal */
1640
- export const StreamRunAgentThread$inboundSchema: z.ZodType<
1641
- StreamRunAgentThread,
1642
- z.ZodTypeDef,
1643
- unknown
1644
- > = z.object({
1645
- id: z.string(),
1646
- tags: z.array(z.string()).optional(),
1647
- });
1648
-
1649
- /** @internal */
1650
- export type StreamRunAgentThread$Outbound = {
1651
- id: string;
1652
- tags?: Array<string> | undefined;
1653
- };
1654
-
1655
- /** @internal */
1656
- export const StreamRunAgentThread$outboundSchema: z.ZodType<
1657
- StreamRunAgentThread$Outbound,
1658
- z.ZodTypeDef,
1659
- StreamRunAgentThread
1660
- > = z.object({
1661
- id: z.string(),
1662
- tags: z.array(z.string()).optional(),
1663
- });
1664
-
1665
- /**
1666
- * @internal
1667
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1668
- */
1669
- export namespace StreamRunAgentThread$ {
1670
- /** @deprecated use `StreamRunAgentThread$inboundSchema` instead. */
1671
- export const inboundSchema = StreamRunAgentThread$inboundSchema;
1672
- /** @deprecated use `StreamRunAgentThread$outboundSchema` instead. */
1673
- export const outboundSchema = StreamRunAgentThread$outboundSchema;
1674
- /** @deprecated use `StreamRunAgentThread$Outbound` instead. */
1675
- export type Outbound = StreamRunAgentThread$Outbound;
1676
- }
1677
-
1678
- export function streamRunAgentThreadToJSON(
1679
- streamRunAgentThread: StreamRunAgentThread,
1680
- ): string {
1681
- return JSON.stringify(
1682
- StreamRunAgentThread$outboundSchema.parse(streamRunAgentThread),
1683
- );
1684
- }
1685
-
1686
- export function streamRunAgentThreadFromJSON(
1687
- jsonString: string,
1688
- ): SafeParseResult<StreamRunAgentThread, SDKValidationError> {
1689
- return safeParse(
1690
- jsonString,
1691
- (x) => StreamRunAgentThread$inboundSchema.parse(JSON.parse(x)),
1692
- `Failed to parse 'StreamRunAgentThread' from JSON`,
1693
- );
1694
- }
1695
-
1696
- /** @internal */
1697
- export const StreamRunAgentMemory$inboundSchema: z.ZodType<
1698
- StreamRunAgentMemory,
1699
- z.ZodTypeDef,
1700
- unknown
1701
- > = z.object({
1702
- entity_id: z.string(),
1703
- }).transform((v) => {
1704
- return remap$(v, {
1705
- "entity_id": "entityId",
1706
- });
1707
- });
1708
-
1709
- /** @internal */
1710
- export type StreamRunAgentMemory$Outbound = {
1711
- entity_id: string;
1712
- };
1713
-
1714
- /** @internal */
1715
- export const StreamRunAgentMemory$outboundSchema: z.ZodType<
1716
- StreamRunAgentMemory$Outbound,
1717
- z.ZodTypeDef,
1718
- StreamRunAgentMemory
1719
- > = z.object({
1720
- entityId: z.string(),
1721
- }).transform((v) => {
1722
- return remap$(v, {
1723
- entityId: "entity_id",
1724
- });
1725
- });
1726
-
1727
- /**
1728
- * @internal
1729
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1730
- */
1731
- export namespace StreamRunAgentMemory$ {
1732
- /** @deprecated use `StreamRunAgentMemory$inboundSchema` instead. */
1733
- export const inboundSchema = StreamRunAgentMemory$inboundSchema;
1734
- /** @deprecated use `StreamRunAgentMemory$outboundSchema` instead. */
1735
- export const outboundSchema = StreamRunAgentMemory$outboundSchema;
1736
- /** @deprecated use `StreamRunAgentMemory$Outbound` instead. */
1737
- export type Outbound = StreamRunAgentMemory$Outbound;
1738
- }
1739
-
1740
- export function streamRunAgentMemoryToJSON(
1741
- streamRunAgentMemory: StreamRunAgentMemory,
1742
- ): string {
1743
- return JSON.stringify(
1744
- StreamRunAgentMemory$outboundSchema.parse(streamRunAgentMemory),
1745
- );
1746
- }
1747
-
1748
- export function streamRunAgentMemoryFromJSON(
1749
- jsonString: string,
1750
- ): SafeParseResult<StreamRunAgentMemory, SDKValidationError> {
1751
- return safeParse(
1752
- jsonString,
1753
- (x) => StreamRunAgentMemory$inboundSchema.parse(JSON.parse(x)),
1754
- `Failed to parse 'StreamRunAgentMemory' from JSON`,
1755
- );
1756
- }
1757
-
1758
- /** @internal */
1759
- export const StreamRunAgentKnowledgeBases$inboundSchema: z.ZodType<
1760
- StreamRunAgentKnowledgeBases,
1761
- z.ZodTypeDef,
1762
- unknown
1763
- > = z.object({
1764
- knowledge_id: z.string(),
1765
- }).transform((v) => {
1766
- return remap$(v, {
1767
- "knowledge_id": "knowledgeId",
1768
- });
1769
- });
1770
-
1771
- /** @internal */
1772
- export type StreamRunAgentKnowledgeBases$Outbound = {
1773
- knowledge_id: string;
1774
- };
1775
-
1776
- /** @internal */
1777
- export const StreamRunAgentKnowledgeBases$outboundSchema: z.ZodType<
1778
- StreamRunAgentKnowledgeBases$Outbound,
1779
- z.ZodTypeDef,
1780
- StreamRunAgentKnowledgeBases
1781
- > = z.object({
1782
- knowledgeId: z.string(),
1783
- }).transform((v) => {
1784
- return remap$(v, {
1785
- knowledgeId: "knowledge_id",
1786
- });
1787
- });
1788
-
1789
- /**
1790
- * @internal
1791
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1792
- */
1793
- export namespace StreamRunAgentKnowledgeBases$ {
1794
- /** @deprecated use `StreamRunAgentKnowledgeBases$inboundSchema` instead. */
1795
- export const inboundSchema = StreamRunAgentKnowledgeBases$inboundSchema;
1796
- /** @deprecated use `StreamRunAgentKnowledgeBases$outboundSchema` instead. */
1797
- export const outboundSchema = StreamRunAgentKnowledgeBases$outboundSchema;
1798
- /** @deprecated use `StreamRunAgentKnowledgeBases$Outbound` instead. */
1799
- export type Outbound = StreamRunAgentKnowledgeBases$Outbound;
1800
- }
1801
-
1802
- export function streamRunAgentKnowledgeBasesToJSON(
1803
- streamRunAgentKnowledgeBases: StreamRunAgentKnowledgeBases,
1804
- ): string {
1805
- return JSON.stringify(
1806
- StreamRunAgentKnowledgeBases$outboundSchema.parse(
1807
- streamRunAgentKnowledgeBases,
1808
- ),
1809
- );
1810
- }
1811
-
1812
- export function streamRunAgentKnowledgeBasesFromJSON(
1813
- jsonString: string,
1814
- ): SafeParseResult<StreamRunAgentKnowledgeBases, SDKValidationError> {
1815
- return safeParse(
1816
- jsonString,
1817
- (x) => StreamRunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1818
- `Failed to parse 'StreamRunAgentKnowledgeBases' from JSON`,
1819
- );
1820
- }
1821
-
1822
- /** @internal */
1823
- export const StreamRunAgentTeamOfAgents$inboundSchema: z.ZodType<
1824
- StreamRunAgentTeamOfAgents,
1825
- z.ZodTypeDef,
1826
- unknown
1827
- > = z.object({
1828
- key: z.string(),
1829
- role: z.string().optional(),
1830
- });
1831
-
1832
- /** @internal */
1833
- export type StreamRunAgentTeamOfAgents$Outbound = {
1834
- key: string;
1835
- role?: string | undefined;
1836
- };
1837
-
1838
- /** @internal */
1839
- export const StreamRunAgentTeamOfAgents$outboundSchema: z.ZodType<
1840
- StreamRunAgentTeamOfAgents$Outbound,
1841
- z.ZodTypeDef,
1842
- StreamRunAgentTeamOfAgents
1843
- > = z.object({
1844
- key: z.string(),
1845
- role: z.string().optional(),
1846
- });
1847
-
1848
- /**
1849
- * @internal
1850
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1851
- */
1852
- export namespace StreamRunAgentTeamOfAgents$ {
1853
- /** @deprecated use `StreamRunAgentTeamOfAgents$inboundSchema` instead. */
1854
- export const inboundSchema = StreamRunAgentTeamOfAgents$inboundSchema;
1855
- /** @deprecated use `StreamRunAgentTeamOfAgents$outboundSchema` instead. */
1856
- export const outboundSchema = StreamRunAgentTeamOfAgents$outboundSchema;
1857
- /** @deprecated use `StreamRunAgentTeamOfAgents$Outbound` instead. */
1858
- export type Outbound = StreamRunAgentTeamOfAgents$Outbound;
1859
- }
1860
-
1861
- export function streamRunAgentTeamOfAgentsToJSON(
1862
- streamRunAgentTeamOfAgents: StreamRunAgentTeamOfAgents,
1863
- ): string {
1864
- return JSON.stringify(
1865
- StreamRunAgentTeamOfAgents$outboundSchema.parse(streamRunAgentTeamOfAgents),
1866
- );
1867
- }
1868
-
1869
- export function streamRunAgentTeamOfAgentsFromJSON(
1870
- jsonString: string,
1871
- ): SafeParseResult<StreamRunAgentTeamOfAgents, SDKValidationError> {
1872
- return safeParse(
1873
- jsonString,
1874
- (x) => StreamRunAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1875
- `Failed to parse 'StreamRunAgentTeamOfAgents' from JSON`,
1876
- );
1877
- }
1878
-
1879
- /** @internal */
1880
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
1881
- z.ZodNativeEnum<
1882
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
1883
- > = z.nativeEnum(
1884
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
1885
- );
1886
-
1887
- /** @internal */
1888
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
1889
- z.ZodNativeEnum<
1890
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
1891
- > =
1892
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1893
-
1894
- /**
1895
- * @internal
1896
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1897
- */
1898
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
1899
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
1900
- export const inboundSchema =
1901
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1902
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
1903
- export const outboundSchema =
1904
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
1905
- }
1906
-
1907
- /** @internal */
1908
- export const StreamRunAgentAgentToolInputRunFunction$inboundSchema: z.ZodType<
1909
- StreamRunAgentAgentToolInputRunFunction,
1910
- z.ZodTypeDef,
1911
- unknown
1912
- > = z.object({
1913
- name: z.string(),
1914
- description: z.string().optional(),
1915
- strict: z.boolean().optional(),
1916
- parameters: z.record(z.any()).optional(),
1917
- });
1918
-
1919
- /** @internal */
1920
- export type StreamRunAgentAgentToolInputRunFunction$Outbound = {
1921
- name: string;
1922
- description?: string | undefined;
1923
- strict?: boolean | undefined;
1924
- parameters?: { [k: string]: any } | undefined;
1925
- };
1926
-
1927
- /** @internal */
1928
- export const StreamRunAgentAgentToolInputRunFunction$outboundSchema: z.ZodType<
1929
- StreamRunAgentAgentToolInputRunFunction$Outbound,
1930
- z.ZodTypeDef,
1931
- StreamRunAgentAgentToolInputRunFunction
1932
- > = z.object({
1933
- name: z.string(),
1934
- description: z.string().optional(),
1935
- strict: z.boolean().optional(),
1936
- parameters: z.record(z.any()).optional(),
1937
- });
1938
-
1939
- /**
1940
- * @internal
1941
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1942
- */
1943
- export namespace StreamRunAgentAgentToolInputRunFunction$ {
1944
- /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$inboundSchema` instead. */
1945
- export const inboundSchema =
1946
- StreamRunAgentAgentToolInputRunFunction$inboundSchema;
1947
- /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$outboundSchema` instead. */
1948
- export const outboundSchema =
1949
- StreamRunAgentAgentToolInputRunFunction$outboundSchema;
1950
- /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$Outbound` instead. */
1951
- export type Outbound = StreamRunAgentAgentToolInputRunFunction$Outbound;
1952
- }
1953
-
1954
- export function streamRunAgentAgentToolInputRunFunctionToJSON(
1955
- streamRunAgentAgentToolInputRunFunction:
1956
- StreamRunAgentAgentToolInputRunFunction,
1957
- ): string {
1958
- return JSON.stringify(
1959
- StreamRunAgentAgentToolInputRunFunction$outboundSchema.parse(
1960
- streamRunAgentAgentToolInputRunFunction,
1961
- ),
1962
- );
1963
- }
1964
-
1965
- export function streamRunAgentAgentToolInputRunFunctionFromJSON(
1966
- jsonString: string,
1967
- ): SafeParseResult<
1968
- StreamRunAgentAgentToolInputRunFunction,
1969
- SDKValidationError
1970
- > {
1971
- return safeParse(
1972
- jsonString,
1973
- (x) =>
1974
- StreamRunAgentAgentToolInputRunFunction$inboundSchema.parse(
1975
- JSON.parse(x),
1976
- ),
1977
- `Failed to parse 'StreamRunAgentAgentToolInputRunFunction' from JSON`,
1978
- );
1979
- }
1980
-
1981
- /** @internal */
1982
- export const AgentToolInputRunFunctionToolRun$inboundSchema: z.ZodType<
1983
- AgentToolInputRunFunctionToolRun,
1984
- z.ZodTypeDef,
1985
- unknown
1986
- > = z.object({
1987
- type:
1988
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
1989
- key: z.string(),
1990
- _id: z.string().optional(),
1991
- display_name: z.string().optional(),
1992
- description: z.string().optional(),
1993
- function: z.lazy(() => StreamRunAgentAgentToolInputRunFunction$inboundSchema),
1994
- requires_approval: z.boolean().default(false),
1995
- }).transform((v) => {
1996
- return remap$(v, {
1997
- "_id": "id",
1998
- "display_name": "displayName",
1999
- "requires_approval": "requiresApproval",
2000
- });
2001
- });
2002
-
2003
- /** @internal */
2004
- export type AgentToolInputRunFunctionToolRun$Outbound = {
2005
- type: string;
2006
- key: string;
2007
- _id?: string | undefined;
2008
- display_name?: string | undefined;
2009
- description?: string | undefined;
2010
- function: StreamRunAgentAgentToolInputRunFunction$Outbound;
2011
- requires_approval: boolean;
2012
- };
2013
-
2014
- /** @internal */
2015
- export const AgentToolInputRunFunctionToolRun$outboundSchema: z.ZodType<
2016
- AgentToolInputRunFunctionToolRun$Outbound,
2017
- z.ZodTypeDef,
2018
- AgentToolInputRunFunctionToolRun
2019
- > = z.object({
2020
- type:
2021
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
2022
- key: z.string(),
2023
- id: z.string().optional(),
2024
- displayName: z.string().optional(),
2025
- description: z.string().optional(),
2026
- function: z.lazy(() =>
2027
- StreamRunAgentAgentToolInputRunFunction$outboundSchema
2028
- ),
2029
- requiresApproval: z.boolean().default(false),
2030
- }).transform((v) => {
2031
- return remap$(v, {
2032
- id: "_id",
2033
- displayName: "display_name",
2034
- requiresApproval: "requires_approval",
2035
- });
2036
- });
2037
-
2038
- /**
2039
- * @internal
2040
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2041
- */
2042
- export namespace AgentToolInputRunFunctionToolRun$ {
2043
- /** @deprecated use `AgentToolInputRunFunctionToolRun$inboundSchema` instead. */
2044
- export const inboundSchema = AgentToolInputRunFunctionToolRun$inboundSchema;
2045
- /** @deprecated use `AgentToolInputRunFunctionToolRun$outboundSchema` instead. */
2046
- export const outboundSchema = AgentToolInputRunFunctionToolRun$outboundSchema;
2047
- /** @deprecated use `AgentToolInputRunFunctionToolRun$Outbound` instead. */
2048
- export type Outbound = AgentToolInputRunFunctionToolRun$Outbound;
2049
- }
2050
-
2051
- export function agentToolInputRunFunctionToolRunToJSON(
2052
- agentToolInputRunFunctionToolRun: AgentToolInputRunFunctionToolRun,
2053
- ): string {
2054
- return JSON.stringify(
2055
- AgentToolInputRunFunctionToolRun$outboundSchema.parse(
2056
- agentToolInputRunFunctionToolRun,
2057
- ),
2058
- );
2059
- }
2060
-
2061
- export function agentToolInputRunFunctionToolRunFromJSON(
2062
- jsonString: string,
2063
- ): SafeParseResult<AgentToolInputRunFunctionToolRun, SDKValidationError> {
2064
- return safeParse(
2065
- jsonString,
2066
- (x) => AgentToolInputRunFunctionToolRun$inboundSchema.parse(JSON.parse(x)),
2067
- `Failed to parse 'AgentToolInputRunFunctionToolRun' from JSON`,
2068
- );
2069
- }
2070
-
2071
- /** @internal */
2072
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
2073
- z.ZodNativeEnum<
2074
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2075
- > = z.nativeEnum(
2076
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
2077
- );
2078
-
2079
- /** @internal */
2080
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
2081
- z.ZodNativeEnum<
2082
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2083
- > =
2084
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2085
-
2086
- /**
2087
- * @internal
2088
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2089
- */
2090
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
2091
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
2092
- export const inboundSchema =
2093
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2094
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
2095
- export const outboundSchema =
2096
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
2097
- }
2098
-
2099
- /** @internal */
2100
- export const AgentToolInputRunLanguage$inboundSchema: z.ZodNativeEnum<
2101
- typeof AgentToolInputRunLanguage
2102
- > = z.nativeEnum(AgentToolInputRunLanguage);
2103
-
2104
- /** @internal */
2105
- export const AgentToolInputRunLanguage$outboundSchema: z.ZodNativeEnum<
2106
- typeof AgentToolInputRunLanguage
2107
- > = AgentToolInputRunLanguage$inboundSchema;
2108
-
2109
- /**
2110
- * @internal
2111
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2112
- */
2113
- export namespace AgentToolInputRunLanguage$ {
2114
- /** @deprecated use `AgentToolInputRunLanguage$inboundSchema` instead. */
2115
- export const inboundSchema = AgentToolInputRunLanguage$inboundSchema;
2116
- /** @deprecated use `AgentToolInputRunLanguage$outboundSchema` instead. */
2117
- export const outboundSchema = AgentToolInputRunLanguage$outboundSchema;
2118
- }
2119
-
2120
- /** @internal */
2121
- export const AgentToolInputRunCodeTool$inboundSchema: z.ZodType<
2122
- AgentToolInputRunCodeTool,
2123
- z.ZodTypeDef,
2124
- unknown
2125
- > = z.object({
2126
- parameters: z.record(z.any()).optional(),
2127
- language: AgentToolInputRunLanguage$inboundSchema,
2128
- code: z.string(),
2129
- });
2130
-
2131
- /** @internal */
2132
- export type AgentToolInputRunCodeTool$Outbound = {
2133
- parameters?: { [k: string]: any } | undefined;
2134
- language: string;
2135
- code: string;
2136
- };
2137
-
2138
- /** @internal */
2139
- export const AgentToolInputRunCodeTool$outboundSchema: z.ZodType<
2140
- AgentToolInputRunCodeTool$Outbound,
2141
- z.ZodTypeDef,
2142
- AgentToolInputRunCodeTool
2143
- > = z.object({
2144
- parameters: z.record(z.any()).optional(),
2145
- language: AgentToolInputRunLanguage$outboundSchema,
2146
- code: z.string(),
2147
- });
2148
-
2149
- /**
2150
- * @internal
2151
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2152
- */
2153
- export namespace AgentToolInputRunCodeTool$ {
2154
- /** @deprecated use `AgentToolInputRunCodeTool$inboundSchema` instead. */
2155
- export const inboundSchema = AgentToolInputRunCodeTool$inboundSchema;
2156
- /** @deprecated use `AgentToolInputRunCodeTool$outboundSchema` instead. */
2157
- export const outboundSchema = AgentToolInputRunCodeTool$outboundSchema;
2158
- /** @deprecated use `AgentToolInputRunCodeTool$Outbound` instead. */
2159
- export type Outbound = AgentToolInputRunCodeTool$Outbound;
2160
- }
2161
-
2162
- export function agentToolInputRunCodeToolToJSON(
2163
- agentToolInputRunCodeTool: AgentToolInputRunCodeTool,
2164
- ): string {
2165
- return JSON.stringify(
2166
- AgentToolInputRunCodeTool$outboundSchema.parse(agentToolInputRunCodeTool),
2167
- );
2168
- }
2169
-
2170
- export function agentToolInputRunCodeToolFromJSON(
2171
- jsonString: string,
2172
- ): SafeParseResult<AgentToolInputRunCodeTool, SDKValidationError> {
2173
- return safeParse(
2174
- jsonString,
2175
- (x) => AgentToolInputRunCodeTool$inboundSchema.parse(JSON.parse(x)),
2176
- `Failed to parse 'AgentToolInputRunCodeTool' from JSON`,
2177
- );
2178
- }
2179
-
2180
- /** @internal */
2181
- export const AgentToolInputRunCodeToolRun$inboundSchema: z.ZodType<
2182
- AgentToolInputRunCodeToolRun,
2183
- z.ZodTypeDef,
2184
- unknown
2185
- > = z.object({
2186
- type:
2187
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
2188
- key: z.string(),
2189
- _id: z.string().optional(),
2190
- display_name: z.string().optional(),
2191
- description: z.string(),
2192
- code_tool: z.lazy(() => AgentToolInputRunCodeTool$inboundSchema),
2193
- requires_approval: z.boolean().default(false),
2194
- }).transform((v) => {
2195
- return remap$(v, {
2196
- "_id": "id",
2197
- "display_name": "displayName",
2198
- "code_tool": "codeTool",
2199
- "requires_approval": "requiresApproval",
2200
- });
2201
- });
2202
-
2203
- /** @internal */
2204
- export type AgentToolInputRunCodeToolRun$Outbound = {
2205
- type: string;
2206
- key: string;
2207
- _id?: string | undefined;
2208
- display_name?: string | undefined;
2209
- description: string;
2210
- code_tool: AgentToolInputRunCodeTool$Outbound;
2211
- requires_approval: boolean;
2212
- };
2213
-
2214
- /** @internal */
2215
- export const AgentToolInputRunCodeToolRun$outboundSchema: z.ZodType<
2216
- AgentToolInputRunCodeToolRun$Outbound,
2217
- z.ZodTypeDef,
2218
- AgentToolInputRunCodeToolRun
2219
- > = z.object({
2220
- type:
2221
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
2222
- key: z.string(),
2223
- id: z.string().optional(),
2224
- displayName: z.string().optional(),
2225
- description: z.string(),
2226
- codeTool: z.lazy(() => AgentToolInputRunCodeTool$outboundSchema),
2227
- requiresApproval: z.boolean().default(false),
2228
- }).transform((v) => {
2229
- return remap$(v, {
2230
- id: "_id",
2231
- displayName: "display_name",
2232
- codeTool: "code_tool",
2233
- requiresApproval: "requires_approval",
2234
- });
2235
- });
2236
-
2237
- /**
2238
- * @internal
2239
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2240
- */
2241
- export namespace AgentToolInputRunCodeToolRun$ {
2242
- /** @deprecated use `AgentToolInputRunCodeToolRun$inboundSchema` instead. */
2243
- export const inboundSchema = AgentToolInputRunCodeToolRun$inboundSchema;
2244
- /** @deprecated use `AgentToolInputRunCodeToolRun$outboundSchema` instead. */
2245
- export const outboundSchema = AgentToolInputRunCodeToolRun$outboundSchema;
2246
- /** @deprecated use `AgentToolInputRunCodeToolRun$Outbound` instead. */
2247
- export type Outbound = AgentToolInputRunCodeToolRun$Outbound;
2248
- }
2249
-
2250
- export function agentToolInputRunCodeToolRunToJSON(
2251
- agentToolInputRunCodeToolRun: AgentToolInputRunCodeToolRun,
2252
- ): string {
2253
- return JSON.stringify(
2254
- AgentToolInputRunCodeToolRun$outboundSchema.parse(
2255
- agentToolInputRunCodeToolRun,
2256
- ),
2257
- );
2258
- }
2259
-
2260
- export function agentToolInputRunCodeToolRunFromJSON(
2261
- jsonString: string,
2262
- ): SafeParseResult<AgentToolInputRunCodeToolRun, SDKValidationError> {
2263
- return safeParse(
2264
- jsonString,
2265
- (x) => AgentToolInputRunCodeToolRun$inboundSchema.parse(JSON.parse(x)),
2266
- `Failed to parse 'AgentToolInputRunCodeToolRun' from JSON`,
2267
- );
2268
- }
2269
-
2270
- /** @internal */
2271
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
2272
- z.ZodNativeEnum<
2273
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2274
- > = z.nativeEnum(
2275
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
2276
- );
2277
-
2278
- /** @internal */
2279
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
2280
- z.ZodNativeEnum<
2281
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2282
- > =
2283
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2284
-
2285
- /**
2286
- * @internal
2287
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2288
- */
2289
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
2290
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
2291
- export const inboundSchema =
2292
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2293
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
2294
- export const outboundSchema =
2295
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
2296
- }
2297
-
2298
- /** @internal */
2299
- export const AgentToolInputRunMethod$inboundSchema: z.ZodNativeEnum<
2300
- typeof AgentToolInputRunMethod
2301
- > = z.nativeEnum(AgentToolInputRunMethod);
2302
-
2303
- /** @internal */
2304
- export const AgentToolInputRunMethod$outboundSchema: z.ZodNativeEnum<
2305
- typeof AgentToolInputRunMethod
2306
- > = AgentToolInputRunMethod$inboundSchema;
2307
-
2308
- /**
2309
- * @internal
2310
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2311
- */
2312
- export namespace AgentToolInputRunMethod$ {
2313
- /** @deprecated use `AgentToolInputRunMethod$inboundSchema` instead. */
2314
- export const inboundSchema = AgentToolInputRunMethod$inboundSchema;
2315
- /** @deprecated use `AgentToolInputRunMethod$outboundSchema` instead. */
2316
- export const outboundSchema = AgentToolInputRunMethod$outboundSchema;
2317
- }
2318
-
2319
- /** @internal */
2320
- export const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<
2321
- AgentToolInputRunBlueprint,
2322
- z.ZodTypeDef,
2323
- unknown
2324
- > = z.object({
2325
- url: z.string(),
2326
- method: AgentToolInputRunMethod$inboundSchema,
2327
- headers: z.record(z.string()).optional(),
2328
- body: z.record(z.any()).optional(),
2329
- });
2330
-
2331
- /** @internal */
2332
- export type AgentToolInputRunBlueprint$Outbound = {
2333
- url: string;
2334
- method: string;
2335
- headers?: { [k: string]: string } | undefined;
2336
- body?: { [k: string]: any } | undefined;
2337
- };
2338
-
2339
- /** @internal */
2340
- export const AgentToolInputRunBlueprint$outboundSchema: z.ZodType<
2341
- AgentToolInputRunBlueprint$Outbound,
2342
- z.ZodTypeDef,
2343
- AgentToolInputRunBlueprint
2344
- > = z.object({
2345
- url: z.string(),
2346
- method: AgentToolInputRunMethod$outboundSchema,
2347
- headers: z.record(z.string()).optional(),
2348
- body: z.record(z.any()).optional(),
2349
- });
2350
-
2351
- /**
2352
- * @internal
2353
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2354
- */
2355
- export namespace AgentToolInputRunBlueprint$ {
2356
- /** @deprecated use `AgentToolInputRunBlueprint$inboundSchema` instead. */
2357
- export const inboundSchema = AgentToolInputRunBlueprint$inboundSchema;
2358
- /** @deprecated use `AgentToolInputRunBlueprint$outboundSchema` instead. */
2359
- export const outboundSchema = AgentToolInputRunBlueprint$outboundSchema;
2360
- /** @deprecated use `AgentToolInputRunBlueprint$Outbound` instead. */
2361
- export type Outbound = AgentToolInputRunBlueprint$Outbound;
2362
- }
2363
-
2364
- export function agentToolInputRunBlueprintToJSON(
2365
- agentToolInputRunBlueprint: AgentToolInputRunBlueprint,
2366
- ): string {
2367
- return JSON.stringify(
2368
- AgentToolInputRunBlueprint$outboundSchema.parse(agentToolInputRunBlueprint),
2369
- );
2370
- }
2371
-
2372
- export function agentToolInputRunBlueprintFromJSON(
2373
- jsonString: string,
2374
- ): SafeParseResult<AgentToolInputRunBlueprint, SDKValidationError> {
2375
- return safeParse(
2376
- jsonString,
2377
- (x) => AgentToolInputRunBlueprint$inboundSchema.parse(JSON.parse(x)),
2378
- `Failed to parse 'AgentToolInputRunBlueprint' from JSON`,
2379
- );
2380
- }
2381
-
2382
- /** @internal */
2383
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
2384
- z.ZodNativeEnum<
2385
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2386
- > = z.nativeEnum(
2387
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
2388
- );
2389
-
2390
- /** @internal */
2391
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
2392
- z.ZodNativeEnum<
2393
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2394
- > =
2395
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2396
-
2397
- /**
2398
- * @internal
2399
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2400
- */
2401
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
2402
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
2403
- export const inboundSchema =
2404
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2405
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
2406
- export const outboundSchema =
2407
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
2408
- }
2409
-
2410
- /** @internal */
2411
- export const AgentToolInputRunDefaultValue$inboundSchema: z.ZodType<
2412
- AgentToolInputRunDefaultValue,
2413
- z.ZodTypeDef,
2414
- unknown
2415
- > = z.union([z.string(), z.number(), z.boolean()]);
2416
-
2417
- /** @internal */
2418
- export type AgentToolInputRunDefaultValue$Outbound = string | number | boolean;
2419
-
2420
- /** @internal */
2421
- export const AgentToolInputRunDefaultValue$outboundSchema: z.ZodType<
2422
- AgentToolInputRunDefaultValue$Outbound,
2423
- z.ZodTypeDef,
2424
- AgentToolInputRunDefaultValue
2425
- > = z.union([z.string(), z.number(), z.boolean()]);
2426
-
2427
- /**
2428
- * @internal
2429
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2430
- */
2431
- export namespace AgentToolInputRunDefaultValue$ {
2432
- /** @deprecated use `AgentToolInputRunDefaultValue$inboundSchema` instead. */
2433
- export const inboundSchema = AgentToolInputRunDefaultValue$inboundSchema;
2434
- /** @deprecated use `AgentToolInputRunDefaultValue$outboundSchema` instead. */
2435
- export const outboundSchema = AgentToolInputRunDefaultValue$outboundSchema;
2436
- /** @deprecated use `AgentToolInputRunDefaultValue$Outbound` instead. */
2437
- export type Outbound = AgentToolInputRunDefaultValue$Outbound;
2438
- }
2439
-
2440
- export function agentToolInputRunDefaultValueToJSON(
2441
- agentToolInputRunDefaultValue: AgentToolInputRunDefaultValue,
2442
- ): string {
2443
- return JSON.stringify(
2444
- AgentToolInputRunDefaultValue$outboundSchema.parse(
2445
- agentToolInputRunDefaultValue,
2446
- ),
2447
- );
2448
- }
2449
-
2450
- export function agentToolInputRunDefaultValueFromJSON(
2451
- jsonString: string,
2452
- ): SafeParseResult<AgentToolInputRunDefaultValue, SDKValidationError> {
2453
- return safeParse(
2454
- jsonString,
2455
- (x) => AgentToolInputRunDefaultValue$inboundSchema.parse(JSON.parse(x)),
2456
- `Failed to parse 'AgentToolInputRunDefaultValue' from JSON`,
2457
- );
2458
- }
2459
-
2460
- /** @internal */
2461
- export const AgentToolInputRunArguments$inboundSchema: z.ZodType<
2462
- AgentToolInputRunArguments,
2463
- z.ZodTypeDef,
2464
- unknown
2465
- > = z.object({
2466
- type:
2467
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
2468
- description: z.string(),
2469
- send_to_model: z.boolean().default(true),
2470
- default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
2471
- }).transform((v) => {
2472
- return remap$(v, {
2473
- "send_to_model": "sendToModel",
2474
- "default_value": "defaultValue",
2475
- });
2476
- });
2477
-
2478
- /** @internal */
2479
- export type AgentToolInputRunArguments$Outbound = {
2480
- type: string;
2481
- description: string;
2482
- send_to_model: boolean;
2483
- default_value?: string | number | boolean | undefined;
2484
- };
2485
-
2486
- /** @internal */
2487
- export const AgentToolInputRunArguments$outboundSchema: z.ZodType<
2488
- AgentToolInputRunArguments$Outbound,
2489
- z.ZodTypeDef,
2490
- AgentToolInputRunArguments
2491
- > = z.object({
2492
- type:
2493
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
2494
- description: z.string(),
2495
- sendToModel: z.boolean().default(true),
2496
- defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
2497
- }).transform((v) => {
2498
- return remap$(v, {
2499
- sendToModel: "send_to_model",
2500
- defaultValue: "default_value",
2501
- });
2502
- });
2503
-
2504
- /**
2505
- * @internal
2506
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2507
- */
2508
- export namespace AgentToolInputRunArguments$ {
2509
- /** @deprecated use `AgentToolInputRunArguments$inboundSchema` instead. */
2510
- export const inboundSchema = AgentToolInputRunArguments$inboundSchema;
2511
- /** @deprecated use `AgentToolInputRunArguments$outboundSchema` instead. */
2512
- export const outboundSchema = AgentToolInputRunArguments$outboundSchema;
2513
- /** @deprecated use `AgentToolInputRunArguments$Outbound` instead. */
2514
- export type Outbound = AgentToolInputRunArguments$Outbound;
2515
- }
2516
-
2517
- export function agentToolInputRunArgumentsToJSON(
2518
- agentToolInputRunArguments: AgentToolInputRunArguments,
2519
- ): string {
2520
- return JSON.stringify(
2521
- AgentToolInputRunArguments$outboundSchema.parse(agentToolInputRunArguments),
2522
- );
2523
- }
2524
-
2525
- export function agentToolInputRunArgumentsFromJSON(
2526
- jsonString: string,
2527
- ): SafeParseResult<AgentToolInputRunArguments, SDKValidationError> {
2528
- return safeParse(
2529
- jsonString,
2530
- (x) => AgentToolInputRunArguments$inboundSchema.parse(JSON.parse(x)),
2531
- `Failed to parse 'AgentToolInputRunArguments' from JSON`,
2532
- );
2533
- }
2534
-
2535
- /** @internal */
2536
- export const AgentToolInputRunHttp$inboundSchema: z.ZodType<
2537
- AgentToolInputRunHttp,
2538
- z.ZodTypeDef,
2539
- unknown
2540
- > = z.object({
2541
- blueprint: z.lazy(() => AgentToolInputRunBlueprint$inboundSchema),
2542
- arguments: z.record(z.lazy(() => AgentToolInputRunArguments$inboundSchema))
2543
- .optional(),
2544
- });
2545
-
2546
- /** @internal */
2547
- export type AgentToolInputRunHttp$Outbound = {
2548
- blueprint: AgentToolInputRunBlueprint$Outbound;
2549
- arguments?: { [k: string]: AgentToolInputRunArguments$Outbound } | undefined;
2550
- };
2551
-
2552
- /** @internal */
2553
- export const AgentToolInputRunHttp$outboundSchema: z.ZodType<
2554
- AgentToolInputRunHttp$Outbound,
2555
- z.ZodTypeDef,
2556
- AgentToolInputRunHttp
2557
- > = z.object({
2558
- blueprint: z.lazy(() => AgentToolInputRunBlueprint$outboundSchema),
2559
- arguments: z.record(z.lazy(() => AgentToolInputRunArguments$outboundSchema))
2560
- .optional(),
2561
- });
2562
-
2563
- /**
2564
- * @internal
2565
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2566
- */
2567
- export namespace AgentToolInputRunHttp$ {
2568
- /** @deprecated use `AgentToolInputRunHttp$inboundSchema` instead. */
2569
- export const inboundSchema = AgentToolInputRunHttp$inboundSchema;
2570
- /** @deprecated use `AgentToolInputRunHttp$outboundSchema` instead. */
2571
- export const outboundSchema = AgentToolInputRunHttp$outboundSchema;
2572
- /** @deprecated use `AgentToolInputRunHttp$Outbound` instead. */
2573
- export type Outbound = AgentToolInputRunHttp$Outbound;
2574
- }
2575
-
2576
- export function agentToolInputRunHttpToJSON(
2577
- agentToolInputRunHttp: AgentToolInputRunHttp,
2578
- ): string {
2579
- return JSON.stringify(
2580
- AgentToolInputRunHttp$outboundSchema.parse(agentToolInputRunHttp),
2581
- );
2582
- }
2583
-
2584
- export function agentToolInputRunHttpFromJSON(
2585
- jsonString: string,
2586
- ): SafeParseResult<AgentToolInputRunHttp, SDKValidationError> {
2587
- return safeParse(
2588
- jsonString,
2589
- (x) => AgentToolInputRunHttp$inboundSchema.parse(JSON.parse(x)),
2590
- `Failed to parse 'AgentToolInputRunHttp' from JSON`,
2591
- );
2592
- }
2593
-
2594
- /** @internal */
2595
- export const AgentToolInputRunHTTPToolRun$inboundSchema: z.ZodType<
2596
- AgentToolInputRunHTTPToolRun,
2597
- z.ZodTypeDef,
2598
- unknown
2599
- > = z.object({
2600
- type:
2601
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
2602
- key: z.string(),
2603
- _id: z.string().optional(),
2604
- display_name: z.string().optional(),
2605
- description: z.string(),
2606
- http: z.lazy(() => AgentToolInputRunHttp$inboundSchema),
2607
- requires_approval: z.boolean().default(false),
2608
- }).transform((v) => {
2609
- return remap$(v, {
2610
- "_id": "id",
2611
- "display_name": "displayName",
2612
- "requires_approval": "requiresApproval",
2613
- });
2614
- });
2615
-
2616
- /** @internal */
2617
- export type AgentToolInputRunHTTPToolRun$Outbound = {
2618
- type: string;
2619
- key: string;
2620
- _id?: string | undefined;
2621
- display_name?: string | undefined;
2622
- description: string;
2623
- http: AgentToolInputRunHttp$Outbound;
2624
- requires_approval: boolean;
2625
- };
2626
-
2627
- /** @internal */
2628
- export const AgentToolInputRunHTTPToolRun$outboundSchema: z.ZodType<
2629
- AgentToolInputRunHTTPToolRun$Outbound,
2630
- z.ZodTypeDef,
2631
- AgentToolInputRunHTTPToolRun
2632
- > = z.object({
2633
- type:
2634
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
2635
- key: z.string(),
2636
- id: z.string().optional(),
2637
- displayName: z.string().optional(),
2638
- description: z.string(),
2639
- http: z.lazy(() => AgentToolInputRunHttp$outboundSchema),
2640
- requiresApproval: z.boolean().default(false),
2641
- }).transform((v) => {
2642
- return remap$(v, {
2643
- id: "_id",
2644
- displayName: "display_name",
2645
- requiresApproval: "requires_approval",
2646
- });
2647
- });
2648
-
2649
- /**
2650
- * @internal
2651
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2652
- */
2653
- export namespace AgentToolInputRunHTTPToolRun$ {
2654
- /** @deprecated use `AgentToolInputRunHTTPToolRun$inboundSchema` instead. */
2655
- export const inboundSchema = AgentToolInputRunHTTPToolRun$inboundSchema;
2656
- /** @deprecated use `AgentToolInputRunHTTPToolRun$outboundSchema` instead. */
2657
- export const outboundSchema = AgentToolInputRunHTTPToolRun$outboundSchema;
2658
- /** @deprecated use `AgentToolInputRunHTTPToolRun$Outbound` instead. */
2659
- export type Outbound = AgentToolInputRunHTTPToolRun$Outbound;
2660
- }
2661
-
2662
- export function agentToolInputRunHTTPToolRunToJSON(
2663
- agentToolInputRunHTTPToolRun: AgentToolInputRunHTTPToolRun,
2664
- ): string {
2665
- return JSON.stringify(
2666
- AgentToolInputRunHTTPToolRun$outboundSchema.parse(
2667
- agentToolInputRunHTTPToolRun,
2668
- ),
2669
- );
2670
- }
2671
-
2672
- export function agentToolInputRunHTTPToolRunFromJSON(
2673
- jsonString: string,
2674
- ): SafeParseResult<AgentToolInputRunHTTPToolRun, SDKValidationError> {
2675
- return safeParse(
2676
- jsonString,
2677
- (x) => AgentToolInputRunHTTPToolRun$inboundSchema.parse(JSON.parse(x)),
2678
- `Failed to parse 'AgentToolInputRunHTTPToolRun' from JSON`,
2679
- );
2680
- }
2681
-
2682
- /** @internal */
2683
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
2684
- z.ZodNativeEnum<
2685
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2686
- > = z.nativeEnum(
2687
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
2688
- );
2689
-
2690
- /** @internal */
2691
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
2692
- z.ZodNativeEnum<
2693
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2694
- > =
2695
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2696
-
2697
- /**
2698
- * @internal
2699
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2700
- */
2701
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
2702
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
2703
- export const inboundSchema =
2704
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2705
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
2706
- export const outboundSchema =
2707
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
2708
- }
2709
-
2710
- /** @internal */
2711
- export const StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema:
2712
- z.ZodType<
2713
- StreamRunAgentAgentToolInputRunCurrentDateTool,
2714
- z.ZodTypeDef,
2715
- unknown
2716
- > = z.object({
2717
- type:
2718
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
2719
- requires_approval: z.boolean().default(false),
2720
- }).transform((v) => {
2721
- return remap$(v, {
2722
- "requires_approval": "requiresApproval",
2723
- });
2724
- });
2725
-
2726
- /** @internal */
2727
- export type StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound = {
2728
- type: string;
2729
- requires_approval: boolean;
2730
- };
2731
-
2732
- /** @internal */
2733
- export const StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema:
2734
- z.ZodType<
2735
- StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound,
2736
- z.ZodTypeDef,
2737
- StreamRunAgentAgentToolInputRunCurrentDateTool
2738
- > = z.object({
2739
- type:
2740
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
2741
- requiresApproval: z.boolean().default(false),
2742
- }).transform((v) => {
2743
- return remap$(v, {
2744
- requiresApproval: "requires_approval",
2745
- });
2746
- });
2747
-
2748
- /**
2749
- * @internal
2750
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2751
- */
2752
- export namespace StreamRunAgentAgentToolInputRunCurrentDateTool$ {
2753
- /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema` instead. */
2754
- export const inboundSchema =
2755
- StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema;
2756
- /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema` instead. */
2757
- export const outboundSchema =
2758
- StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema;
2759
- /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound` instead. */
2760
- export type Outbound =
2761
- StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
2762
- }
2763
-
2764
- export function streamRunAgentAgentToolInputRunCurrentDateToolToJSON(
2765
- streamRunAgentAgentToolInputRunCurrentDateTool:
2766
- StreamRunAgentAgentToolInputRunCurrentDateTool,
2767
- ): string {
2768
- return JSON.stringify(
2769
- StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema.parse(
2770
- streamRunAgentAgentToolInputRunCurrentDateTool,
2771
- ),
2772
- );
2773
- }
2774
-
2775
- export function streamRunAgentAgentToolInputRunCurrentDateToolFromJSON(
2776
- jsonString: string,
2777
- ): SafeParseResult<
2778
- StreamRunAgentAgentToolInputRunCurrentDateTool,
2779
- SDKValidationError
2780
- > {
2781
- return safeParse(
2782
- jsonString,
2783
- (x) =>
2784
- StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema.parse(
2785
- JSON.parse(x),
2786
- ),
2787
- `Failed to parse 'StreamRunAgentAgentToolInputRunCurrentDateTool' from JSON`,
2788
- );
2789
- }
2790
-
2791
- /** @internal */
2792
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
2793
- z.ZodNativeEnum<
2794
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
2795
- > = z.nativeEnum(
2796
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
2797
- );
2798
-
2799
- /** @internal */
2800
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
2801
- z.ZodNativeEnum<
2802
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
2803
- > =
2804
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2805
-
2806
- /**
2807
- * @internal
2808
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2809
- */
2810
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
2811
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
2812
- export const inboundSchema =
2813
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2814
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
2815
- export const outboundSchema =
2816
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
2817
- }
2818
-
2819
- /** @internal */
2820
- export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema:
2821
- z.ZodType<
2822
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
2823
- z.ZodTypeDef,
2824
- unknown
2825
- > = z.object({
2826
- type:
2827
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
2828
- requires_approval: z.boolean().default(false),
2829
- }).transform((v) => {
2830
- return remap$(v, {
2831
- "requires_approval": "requiresApproval",
2832
- });
2833
- });
2834
-
2835
- /** @internal */
2836
- export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
2837
- type: string;
2838
- requires_approval: boolean;
2839
- };
2840
-
2841
- /** @internal */
2842
- export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema:
2843
- z.ZodType<
2844
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound,
2845
- z.ZodTypeDef,
2846
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
2847
- > = z.object({
2848
- type:
2849
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
2850
- requiresApproval: z.boolean().default(false),
2851
- }).transform((v) => {
2852
- return remap$(v, {
2853
- requiresApproval: "requires_approval",
2854
- });
2855
- });
2856
-
2857
- /**
2858
- * @internal
2859
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2860
- */
2861
- export namespace StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$ {
2862
- /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
2863
- export const inboundSchema =
2864
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
2865
- /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
2866
- export const outboundSchema =
2867
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
2868
- /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
2869
- export type Outbound =
2870
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound;
2871
- }
2872
-
2873
- export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolToJSON(
2874
- streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool:
2875
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
2876
- ): string {
2877
- return JSON.stringify(
2878
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
2879
- streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
2880
- ),
2881
- );
2882
- }
2883
-
2884
- export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolFromJSON(
2885
- jsonString: string,
2886
- ): SafeParseResult<
2887
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
2888
- SDKValidationError
2889
- > {
2890
- return safeParse(
2891
- jsonString,
2892
- (x) =>
2893
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
2894
- JSON.parse(x),
2895
- ),
2896
- `Failed to parse 'StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
2897
- );
2898
- }
2899
-
2900
- /** @internal */
2901
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
2902
- z.ZodNativeEnum<
2903
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
2904
- > = z.nativeEnum(
2905
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
2906
- );
2907
-
2908
- /** @internal */
2909
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
2910
- z.ZodNativeEnum<
2911
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
2912
- > =
2913
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2914
-
2915
- /**
2916
- * @internal
2917
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2918
- */
2919
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
2920
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
2921
- export const inboundSchema =
2922
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2923
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
2924
- export const outboundSchema =
2925
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
2926
- }
2927
-
2928
- /** @internal */
2929
- export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
2930
- z.ZodType<
2931
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
2932
- z.ZodTypeDef,
2933
- unknown
2934
- > = z.object({
2935
- type:
2936
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
2937
- requires_approval: z.boolean().default(false),
2938
- }).transform((v) => {
2939
- return remap$(v, {
2940
- "requires_approval": "requiresApproval",
2941
- });
2942
- });
2943
-
2944
- /** @internal */
2945
- export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound =
2946
- {
2947
- type: string;
2948
- requires_approval: boolean;
2949
- };
2950
-
2951
- /** @internal */
2952
- export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
2953
- z.ZodType<
2954
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
2955
- z.ZodTypeDef,
2956
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
2957
- > = z.object({
2958
- type:
2959
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
2960
- requiresApproval: z.boolean().default(false),
2961
- }).transform((v) => {
2962
- return remap$(v, {
2963
- requiresApproval: "requires_approval",
2964
- });
2965
- });
2966
-
2967
- /**
2968
- * @internal
2969
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2970
- */
2971
- export namespace StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$ {
2972
- /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
2973
- export const inboundSchema =
2974
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
2975
- /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
2976
- export const outboundSchema =
2977
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
2978
- /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
2979
- export type Outbound =
2980
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
2981
- }
2982
-
2983
- export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolToJSON(
2984
- streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool:
2985
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
2986
- ): string {
2987
- return JSON.stringify(
2988
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
2989
- .parse(streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool),
2990
- );
2991
- }
2992
-
2993
- export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
2994
- jsonString: string,
2995
- ): SafeParseResult<
2996
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
2997
- SDKValidationError
2998
- > {
2999
- return safeParse(
3000
- jsonString,
3001
- (x) =>
3002
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
3003
- .parse(JSON.parse(x)),
3004
- `Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
3005
- );
3006
- }
3007
-
3008
- /** @internal */
3009
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
3010
- z.ZodNativeEnum<
3011
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3012
- > = z.nativeEnum(
3013
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
3014
- );
3015
-
3016
- /** @internal */
3017
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
3018
- z.ZodNativeEnum<
3019
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3020
- > =
3021
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3022
-
3023
- /**
3024
- * @internal
3025
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3026
- */
3027
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
3028
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
3029
- export const inboundSchema =
3030
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3031
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
3032
- export const outboundSchema =
3033
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
3034
- }
3035
-
3036
- /** @internal */
3037
- export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema:
3038
- z.ZodType<
3039
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
3040
- z.ZodTypeDef,
3041
- unknown
3042
- > = z.object({
3043
- type:
3044
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
3045
- requires_approval: z.boolean().default(false),
3046
- }).transform((v) => {
3047
- return remap$(v, {
3048
- "requires_approval": "requiresApproval",
3049
- });
3050
- });
3051
-
3052
- /** @internal */
3053
- export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
3054
- type: string;
3055
- requires_approval: boolean;
3056
- };
3057
-
3058
- /** @internal */
3059
- export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
3060
- z.ZodType<
3061
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound,
3062
- z.ZodTypeDef,
3063
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
3064
- > = z.object({
3065
- type:
3066
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
3067
- requiresApproval: z.boolean().default(false),
3068
- }).transform((v) => {
3069
- return remap$(v, {
3070
- requiresApproval: "requires_approval",
3071
- });
3072
- });
3073
-
3074
- /**
3075
- * @internal
3076
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3077
- */
3078
- export namespace StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$ {
3079
- /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
3080
- export const inboundSchema =
3081
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
3082
- /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
3083
- export const outboundSchema =
3084
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
3085
- /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
3086
- export type Outbound =
3087
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound;
3088
- }
3089
-
3090
- export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolToJSON(
3091
- streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool:
3092
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
3093
- ): string {
3094
- return JSON.stringify(
3095
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
3096
- .parse(streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool),
3097
- );
3098
- }
3099
-
3100
- export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolFromJSON(
3101
- jsonString: string,
3102
- ): SafeParseResult<
3103
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
3104
- SDKValidationError
3105
- > {
3106
- return safeParse(
3107
- jsonString,
3108
- (x) =>
3109
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
3110
- .parse(JSON.parse(x)),
3111
- `Failed to parse 'StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
3112
- );
3113
- }
3114
-
3115
- /** @internal */
3116
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
3117
- z.ZodNativeEnum<
3118
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
3119
- > = z.nativeEnum(
3120
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type,
3121
- );
3122
-
3123
- /** @internal */
3124
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
3125
- z.ZodNativeEnum<
3126
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
3127
- > =
3128
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3129
-
3130
- /**
3131
- * @internal
3132
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3133
- */
3134
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$ {
3135
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
3136
- export const inboundSchema =
3137
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3138
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
3139
- export const outboundSchema =
3140
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema;
3141
- }
3142
-
3143
- /** @internal */
3144
- export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema:
3145
- z.ZodType<
3146
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
3147
- z.ZodTypeDef,
3148
- unknown
3149
- > = z.object({
3150
- type:
3151
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
3152
- requires_approval: z.boolean().default(false),
3153
- }).transform((v) => {
3154
- return remap$(v, {
3155
- "requires_approval": "requiresApproval",
3156
- });
3157
- });
3158
-
3159
- /** @internal */
3160
- export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
3161
- type: string;
3162
- requires_approval: boolean;
3163
- };
3164
-
3165
- /** @internal */
3166
- export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
3167
- z.ZodType<
3168
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound,
3169
- z.ZodTypeDef,
3170
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
3171
- > = z.object({
3172
- type:
3173
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
3174
- requiresApproval: z.boolean().default(false),
3175
- }).transform((v) => {
3176
- return remap$(v, {
3177
- requiresApproval: "requires_approval",
3178
- });
3179
- });
3180
-
3181
- /**
3182
- * @internal
3183
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3184
- */
3185
- export namespace StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$ {
3186
- /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
3187
- export const inboundSchema =
3188
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
3189
- /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
3190
- export const outboundSchema =
3191
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
3192
- /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
3193
- export type Outbound =
3194
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound;
3195
- }
3196
-
3197
- export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolToJSON(
3198
- streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool:
3199
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
3200
- ): string {
3201
- return JSON.stringify(
3202
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
3203
- .parse(streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool),
3204
- );
3205
- }
3206
-
3207
- export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolFromJSON(
3208
- jsonString: string,
3209
- ): SafeParseResult<
3210
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
3211
- SDKValidationError
3212
- > {
3213
- return safeParse(
3214
- jsonString,
3215
- (x) =>
3216
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
3217
- .parse(JSON.parse(x)),
3218
- `Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
3219
- );
3220
- }
3221
-
3222
- /** @internal */
3223
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
3224
- z.ZodNativeEnum<
3225
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3226
- > = z.nativeEnum(
3227
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
3228
- );
3229
-
3230
- /** @internal */
3231
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
3232
- z.ZodNativeEnum<
3233
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3234
- > =
3235
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3236
-
3237
- /**
3238
- * @internal
3239
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3240
- */
3241
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
3242
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
3243
- export const inboundSchema =
3244
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3245
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
3246
- export const outboundSchema =
3247
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
3248
- }
3249
-
3250
- /** @internal */
3251
- export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema:
3252
- z.ZodType<
3253
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3254
- z.ZodTypeDef,
3255
- unknown
3256
- > = z.object({
3257
- type:
3258
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
3259
- requires_approval: z.boolean().default(false),
3260
- }).transform((v) => {
3261
- return remap$(v, {
3262
- "requires_approval": "requiresApproval",
3263
- });
3264
- });
3265
-
3266
- /** @internal */
3267
- export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound = {
3268
- type: string;
3269
- requires_approval: boolean;
3270
- };
3271
-
3272
- /** @internal */
3273
- export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema:
3274
- z.ZodType<
3275
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound,
3276
- z.ZodTypeDef,
3277
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
3278
- > = z.object({
3279
- type:
3280
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
3281
- requiresApproval: z.boolean().default(false),
3282
- }).transform((v) => {
3283
- return remap$(v, {
3284
- requiresApproval: "requires_approval",
3285
- });
3286
- });
3287
-
3288
- /**
3289
- * @internal
3290
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3291
- */
3292
- export namespace StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$ {
3293
- /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
3294
- export const inboundSchema =
3295
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema;
3296
- /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
3297
- export const outboundSchema =
3298
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema;
3299
- /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
3300
- export type Outbound =
3301
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound;
3302
- }
3303
-
3304
- export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolToJSON(
3305
- streamRunAgentAgentToolInputRunWriteMemoryStoreTool:
3306
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3307
- ): string {
3308
- return JSON.stringify(
3309
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
3310
- streamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3311
- ),
3312
- );
3313
- }
3314
-
3315
- export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolFromJSON(
3316
- jsonString: string,
3317
- ): SafeParseResult<
3318
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3319
- SDKValidationError
3320
- > {
3321
- return safeParse(
3322
- jsonString,
3323
- (x) =>
3324
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(
3325
- JSON.parse(x),
3326
- ),
3327
- `Failed to parse 'StreamRunAgentAgentToolInputRunWriteMemoryStoreTool' from JSON`,
3328
- );
3329
- }
3330
-
3331
- /** @internal */
3332
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
3333
- z.ZodNativeEnum<
3334
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3335
- > = z.nativeEnum(
3336
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
3337
- );
3338
-
3339
- /** @internal */
3340
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
3341
- z.ZodNativeEnum<
3342
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3343
- > =
3344
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3345
-
3346
- /**
3347
- * @internal
3348
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3349
- */
3350
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
3351
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3352
- export const inboundSchema =
3353
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3354
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3355
- export const outboundSchema =
3356
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
3357
- }
3358
-
3359
- /** @internal */
3360
- export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema:
3361
- z.ZodType<
3362
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3363
- z.ZodTypeDef,
3364
- unknown
3365
- > = z.object({
3366
- type:
3367
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
3368
- requires_approval: z.boolean().default(false),
3369
- }).transform((v) => {
3370
- return remap$(v, {
3371
- "requires_approval": "requiresApproval",
3372
- });
3373
- });
3374
-
3375
- /** @internal */
3376
- export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound = {
3377
- type: string;
3378
- requires_approval: boolean;
3379
- };
3380
-
3381
- /** @internal */
3382
- export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema:
3383
- z.ZodType<
3384
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound,
3385
- z.ZodTypeDef,
3386
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
3387
- > = z.object({
3388
- type:
3389
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
3390
- requiresApproval: z.boolean().default(false),
3391
- }).transform((v) => {
3392
- return remap$(v, {
3393
- requiresApproval: "requires_approval",
3394
- });
3395
- });
3396
-
3397
- /**
3398
- * @internal
3399
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3400
- */
3401
- export namespace StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$ {
3402
- /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
3403
- export const inboundSchema =
3404
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema;
3405
- /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
3406
- export const outboundSchema =
3407
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema;
3408
- /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
3409
- export type Outbound =
3410
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound;
3411
- }
3412
-
3413
- export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolToJSON(
3414
- streamRunAgentAgentToolInputRunQueryMemoryStoreTool:
3415
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3416
- ): string {
3417
- return JSON.stringify(
3418
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
3419
- streamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3420
- ),
3421
- );
3422
- }
3423
-
3424
- export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolFromJSON(
3425
- jsonString: string,
3426
- ): SafeParseResult<
3427
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3428
- SDKValidationError
3429
- > {
3430
- return safeParse(
3431
- jsonString,
3432
- (x) =>
3433
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(
3434
- JSON.parse(x),
3435
- ),
3436
- `Failed to parse 'StreamRunAgentAgentToolInputRunQueryMemoryStoreTool' from JSON`,
3437
- );
3438
- }
3439
-
3440
- /** @internal */
3441
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
3442
- z.ZodNativeEnum<
3443
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
3444
- > = z.nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType);
3445
-
3446
- /** @internal */
3447
- export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
3448
- z.ZodNativeEnum<
3449
- typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
3450
- > = StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3451
-
3452
- /**
3453
- * @internal
3454
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3455
- */
3456
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
3457
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
3458
- export const inboundSchema =
3459
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3460
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
3461
- export const outboundSchema =
3462
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
3463
- }
3464
-
3465
- /** @internal */
3466
- export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema:
3467
- z.ZodType<
3468
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
3469
- z.ZodTypeDef,
3470
- unknown
3471
- > = z.object({
3472
- type:
3473
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
3474
- requires_approval: z.boolean().default(false),
3475
- }).transform((v) => {
3476
- return remap$(v, {
3477
- "requires_approval": "requiresApproval",
3478
- });
3479
- });
3480
-
3481
- /** @internal */
3482
- export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound = {
3483
- type: string;
3484
- requires_approval: boolean;
3485
- };
3486
-
3487
- /** @internal */
3488
- export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema:
3489
- z.ZodType<
3490
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound,
3491
- z.ZodTypeDef,
3492
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool
3493
- > = z.object({
3494
- type:
3495
- StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
3496
- requiresApproval: z.boolean().default(false),
3497
- }).transform((v) => {
3498
- return remap$(v, {
3499
- requiresApproval: "requires_approval",
3500
- });
3501
- });
3502
-
3503
- /**
3504
- * @internal
3505
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3506
- */
3507
- export namespace StreamRunAgentAgentToolInputRunRetrieveAgentsTool$ {
3508
- /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
3509
- export const inboundSchema =
3510
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema;
3511
- /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
3512
- export const outboundSchema =
3513
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema;
3514
- /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
3515
- export type Outbound =
3516
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound;
3517
- }
3518
-
3519
- export function streamRunAgentAgentToolInputRunRetrieveAgentsToolToJSON(
3520
- streamRunAgentAgentToolInputRunRetrieveAgentsTool:
3521
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
3522
- ): string {
3523
- return JSON.stringify(
3524
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
3525
- streamRunAgentAgentToolInputRunRetrieveAgentsTool,
3526
- ),
3527
- );
3528
- }
3529
-
3530
- export function streamRunAgentAgentToolInputRunRetrieveAgentsToolFromJSON(
3531
- jsonString: string,
3532
- ): SafeParseResult<
3533
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
3534
- SDKValidationError
3535
- > {
3536
- return safeParse(
3537
- jsonString,
3538
- (x) =>
3539
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(
3540
- JSON.parse(x),
3541
- ),
3542
- `Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveAgentsTool' from JSON`,
3543
- );
3544
- }
3545
-
3546
- /** @internal */
3547
- export const StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
3548
- z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> = z
3549
- .nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestType);
3550
-
3551
- /** @internal */
3552
- export const StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
3553
- z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> =
3554
- StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3555
-
3556
- /**
3557
- * @internal
3558
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3559
- */
3560
- export namespace StreamRunAgentAgentToolInputRunAgentsRequestType$ {
3561
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
3562
- export const inboundSchema =
3563
- StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3564
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
3565
- export const outboundSchema =
3566
- StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
3567
- }
3568
-
3569
- /** @internal */
3570
- export const StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema:
3571
- z.ZodType<
3572
- StreamRunAgentAgentToolInputRunCallSubAgentTool,
3573
- z.ZodTypeDef,
3574
- unknown
3575
- > = z.object({
3576
- type: StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
3577
- requires_approval: z.boolean().default(false),
3578
- }).transform((v) => {
3579
- return remap$(v, {
3580
- "requires_approval": "requiresApproval",
3581
- });
3582
- });
3583
-
3584
- /** @internal */
3585
- export type StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound = {
3586
- type: string;
3587
- requires_approval: boolean;
3588
- };
3589
-
3590
- /** @internal */
3591
- export const StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema:
3592
- z.ZodType<
3593
- StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound,
3594
- z.ZodTypeDef,
3595
- StreamRunAgentAgentToolInputRunCallSubAgentTool
3596
- > = z.object({
3597
- type: StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
3598
- requiresApproval: z.boolean().default(false),
3599
- }).transform((v) => {
3600
- return remap$(v, {
3601
- requiresApproval: "requires_approval",
3602
- });
3603
- });
3604
-
3605
- /**
3606
- * @internal
3607
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3608
- */
3609
- export namespace StreamRunAgentAgentToolInputRunCallSubAgentTool$ {
3610
- /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
3611
- export const inboundSchema =
3612
- StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema;
3613
- /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
3614
- export const outboundSchema =
3615
- StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema;
3616
- /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound` instead. */
3617
- export type Outbound =
3618
- StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound;
3619
- }
3620
-
3621
- export function streamRunAgentAgentToolInputRunCallSubAgentToolToJSON(
3622
- streamRunAgentAgentToolInputRunCallSubAgentTool:
3623
- StreamRunAgentAgentToolInputRunCallSubAgentTool,
3624
- ): string {
3625
- return JSON.stringify(
3626
- StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema.parse(
3627
- streamRunAgentAgentToolInputRunCallSubAgentTool,
3628
- ),
3629
- );
3630
- }
3631
-
3632
- export function streamRunAgentAgentToolInputRunCallSubAgentToolFromJSON(
3633
- jsonString: string,
3634
- ): SafeParseResult<
3635
- StreamRunAgentAgentToolInputRunCallSubAgentTool,
3636
- SDKValidationError
3637
- > {
3638
- return safeParse(
3639
- jsonString,
3640
- (x) =>
3641
- StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema.parse(
3642
- JSON.parse(x),
3643
- ),
3644
- `Failed to parse 'StreamRunAgentAgentToolInputRunCallSubAgentTool' from JSON`,
3645
- );
3646
- }
3647
-
3648
- /** @internal */
3649
- export const StreamRunAgentAgentToolInputRunAgentsType$inboundSchema:
3650
- z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> = z
3651
- .nativeEnum(StreamRunAgentAgentToolInputRunAgentsType);
3652
-
3653
- /** @internal */
3654
- export const StreamRunAgentAgentToolInputRunAgentsType$outboundSchema:
3655
- z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> =
3656
- StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
3657
-
3658
- /**
3659
- * @internal
3660
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3661
- */
3662
- export namespace StreamRunAgentAgentToolInputRunAgentsType$ {
3663
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
3664
- export const inboundSchema =
3665
- StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
3666
- /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
3667
- export const outboundSchema =
3668
- StreamRunAgentAgentToolInputRunAgentsType$outboundSchema;
3669
- }
3670
-
3671
- /** @internal */
3672
- export const StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema:
3673
- z.ZodType<
3674
- StreamRunAgentAgentToolInputRunWebScraperTool,
3675
- z.ZodTypeDef,
3676
- unknown
3677
- > = z.object({
3678
- type: StreamRunAgentAgentToolInputRunAgentsType$inboundSchema,
3679
- requires_approval: z.boolean().default(false),
3680
- }).transform((v) => {
3681
- return remap$(v, {
3682
- "requires_approval": "requiresApproval",
3683
- });
3684
- });
3685
-
3686
- /** @internal */
3687
- export type StreamRunAgentAgentToolInputRunWebScraperTool$Outbound = {
3688
- type: string;
3689
- requires_approval: boolean;
3690
- };
3691
-
3692
- /** @internal */
3693
- export const StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema:
3694
- z.ZodType<
3695
- StreamRunAgentAgentToolInputRunWebScraperTool$Outbound,
3696
- z.ZodTypeDef,
3697
- StreamRunAgentAgentToolInputRunWebScraperTool
3698
- > = z.object({
3699
- type: StreamRunAgentAgentToolInputRunAgentsType$outboundSchema,
3700
- requiresApproval: z.boolean().default(false),
3701
- }).transform((v) => {
3702
- return remap$(v, {
3703
- requiresApproval: "requires_approval",
3704
- });
3705
- });
3706
-
3707
- /**
3708
- * @internal
3709
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3710
- */
3711
- export namespace StreamRunAgentAgentToolInputRunWebScraperTool$ {
3712
- /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema` instead. */
3713
- export const inboundSchema =
3714
- StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema;
3715
- /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema` instead. */
3716
- export const outboundSchema =
3717
- StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema;
3718
- /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$Outbound` instead. */
3719
- export type Outbound = StreamRunAgentAgentToolInputRunWebScraperTool$Outbound;
3720
- }
3721
-
3722
- export function streamRunAgentAgentToolInputRunWebScraperToolToJSON(
3723
- streamRunAgentAgentToolInputRunWebScraperTool:
3724
- StreamRunAgentAgentToolInputRunWebScraperTool,
3725
- ): string {
3726
- return JSON.stringify(
3727
- StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema.parse(
3728
- streamRunAgentAgentToolInputRunWebScraperTool,
3729
- ),
3730
- );
3731
- }
3732
-
3733
- export function streamRunAgentAgentToolInputRunWebScraperToolFromJSON(
3734
- jsonString: string,
3735
- ): SafeParseResult<
3736
- StreamRunAgentAgentToolInputRunWebScraperTool,
3737
- SDKValidationError
3738
- > {
3739
- return safeParse(
3740
- jsonString,
3741
- (x) =>
3742
- StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema.parse(
3743
- JSON.parse(x),
3744
- ),
3745
- `Failed to parse 'StreamRunAgentAgentToolInputRunWebScraperTool' from JSON`,
3746
- );
3747
- }
3748
-
3749
- /** @internal */
3750
- export const StreamRunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
3751
- typeof StreamRunAgentAgentToolInputRunType
3752
- > = z.nativeEnum(StreamRunAgentAgentToolInputRunType);
3753
-
3754
- /** @internal */
3755
- export const StreamRunAgentAgentToolInputRunType$outboundSchema:
3756
- z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunType> =
3757
- StreamRunAgentAgentToolInputRunType$inboundSchema;
3758
-
3759
- /**
3760
- * @internal
3761
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3762
- */
3763
- export namespace StreamRunAgentAgentToolInputRunType$ {
3764
- /** @deprecated use `StreamRunAgentAgentToolInputRunType$inboundSchema` instead. */
3765
- export const inboundSchema =
3766
- StreamRunAgentAgentToolInputRunType$inboundSchema;
3767
- /** @deprecated use `StreamRunAgentAgentToolInputRunType$outboundSchema` instead. */
3768
- export const outboundSchema =
3769
- StreamRunAgentAgentToolInputRunType$outboundSchema;
3770
- }
3771
-
3772
- /** @internal */
3773
- export const StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema:
3774
- z.ZodType<
3775
- StreamRunAgentAgentToolInputRunGoogleSearchTool,
3776
- z.ZodTypeDef,
3777
- unknown
3778
- > = z.object({
3779
- type: StreamRunAgentAgentToolInputRunType$inboundSchema,
3780
- requires_approval: z.boolean().default(false),
3781
- }).transform((v) => {
3782
- return remap$(v, {
3783
- "requires_approval": "requiresApproval",
3784
- });
3785
- });
3786
-
3787
- /** @internal */
3788
- export type StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound = {
3789
- type: string;
3790
- requires_approval: boolean;
3791
- };
3792
-
3793
- /** @internal */
3794
- export const StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema:
3795
- z.ZodType<
3796
- StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound,
3797
- z.ZodTypeDef,
3798
- StreamRunAgentAgentToolInputRunGoogleSearchTool
3799
- > = z.object({
3800
- type: StreamRunAgentAgentToolInputRunType$outboundSchema,
3801
- requiresApproval: z.boolean().default(false),
3802
- }).transform((v) => {
3803
- return remap$(v, {
3804
- requiresApproval: "requires_approval",
3805
- });
3806
- });
3807
-
3808
- /**
3809
- * @internal
3810
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3811
- */
3812
- export namespace StreamRunAgentAgentToolInputRunGoogleSearchTool$ {
3813
- /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
3814
- export const inboundSchema =
3815
- StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema;
3816
- /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
3817
- export const outboundSchema =
3818
- StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema;
3819
- /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound` instead. */
3820
- export type Outbound =
3821
- StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound;
3822
- }
3823
-
3824
- export function streamRunAgentAgentToolInputRunGoogleSearchToolToJSON(
3825
- streamRunAgentAgentToolInputRunGoogleSearchTool:
3826
- StreamRunAgentAgentToolInputRunGoogleSearchTool,
3827
- ): string {
3828
- return JSON.stringify(
3829
- StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema.parse(
3830
- streamRunAgentAgentToolInputRunGoogleSearchTool,
3831
- ),
3832
- );
3833
- }
3834
-
3835
- export function streamRunAgentAgentToolInputRunGoogleSearchToolFromJSON(
3836
- jsonString: string,
3837
- ): SafeParseResult<
3838
- StreamRunAgentAgentToolInputRunGoogleSearchTool,
3839
- SDKValidationError
3840
- > {
3841
- return safeParse(
3842
- jsonString,
3843
- (x) =>
3844
- StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema.parse(
3845
- JSON.parse(x),
3846
- ),
3847
- `Failed to parse 'StreamRunAgentAgentToolInputRunGoogleSearchTool' from JSON`,
3848
- );
3849
- }
3850
-
3851
- /** @internal */
3852
- export const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<
3853
- StreamRunAgentAgentToolInputRun,
3854
- z.ZodTypeDef,
3855
- unknown
3856
- > = z.union([
3857
- z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
3858
- z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
3859
- z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
3860
- z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema),
3861
- z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema),
3862
- z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema),
3863
- z.lazy(() => StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema),
3864
- z.lazy(() =>
3865
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
3866
- ),
3867
- z.lazy(() =>
3868
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
3869
- ),
3870
- z.lazy(() =>
3871
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
3872
- ),
3873
- z.lazy(() =>
3874
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
3875
- ),
3876
- z.lazy(() =>
3877
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
3878
- ),
3879
- z.lazy(() =>
3880
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
3881
- ),
3882
- z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema),
3883
- ]);
3884
-
3885
- /** @internal */
3886
- export type StreamRunAgentAgentToolInputRun$Outbound =
3887
- | AgentToolInputRunHTTPToolRun$Outbound
3888
- | AgentToolInputRunCodeToolRun$Outbound
3889
- | AgentToolInputRunFunctionToolRun$Outbound
3890
- | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
3891
- | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
3892
- | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
3893
- | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
3894
- | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
3895
- | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
3896
- | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
3897
- | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
3898
- | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
3899
- | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
3900
- | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
3901
-
3902
- /** @internal */
3903
- export const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<
3904
- StreamRunAgentAgentToolInputRun$Outbound,
3905
- z.ZodTypeDef,
3906
- StreamRunAgentAgentToolInputRun
3907
- > = z.union([
3908
- z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
3909
- z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
3910
- z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
3911
- z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema),
3912
- z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema),
3913
- z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema),
3914
- z.lazy(() =>
3915
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
3916
- ),
3917
- z.lazy(() =>
3918
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
3919
- ),
3920
- z.lazy(() =>
3921
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
3922
- ),
3923
- z.lazy(() =>
3924
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
3925
- ),
3926
- z.lazy(() =>
3927
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
3928
- ),
3929
- z.lazy(() =>
3930
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
3931
- ),
3932
- z.lazy(() =>
3933
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
3934
- ),
3935
- z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema),
3936
- ]);
3937
-
3938
- /**
3939
- * @internal
3940
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3941
- */
3942
- export namespace StreamRunAgentAgentToolInputRun$ {
3943
- /** @deprecated use `StreamRunAgentAgentToolInputRun$inboundSchema` instead. */
3944
- export const inboundSchema = StreamRunAgentAgentToolInputRun$inboundSchema;
3945
- /** @deprecated use `StreamRunAgentAgentToolInputRun$outboundSchema` instead. */
3946
- export const outboundSchema = StreamRunAgentAgentToolInputRun$outboundSchema;
3947
- /** @deprecated use `StreamRunAgentAgentToolInputRun$Outbound` instead. */
3948
- export type Outbound = StreamRunAgentAgentToolInputRun$Outbound;
3949
- }
3950
-
3951
- export function streamRunAgentAgentToolInputRunToJSON(
3952
- streamRunAgentAgentToolInputRun: StreamRunAgentAgentToolInputRun,
3953
- ): string {
3954
- return JSON.stringify(
3955
- StreamRunAgentAgentToolInputRun$outboundSchema.parse(
3956
- streamRunAgentAgentToolInputRun,
3957
- ),
3958
- );
3959
- }
3960
-
3961
- export function streamRunAgentAgentToolInputRunFromJSON(
3962
- jsonString: string,
3963
- ): SafeParseResult<StreamRunAgentAgentToolInputRun, SDKValidationError> {
3964
- return safeParse(
3965
- jsonString,
3966
- (x) => StreamRunAgentAgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
3967
- `Failed to parse 'StreamRunAgentAgentToolInputRun' from JSON`,
3968
- );
3969
- }
3970
-
3971
- /** @internal */
3972
- export const StreamRunAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
3973
- typeof StreamRunAgentToolApprovalRequired
3974
- > = z.nativeEnum(StreamRunAgentToolApprovalRequired);
3975
-
3976
- /** @internal */
3977
- export const StreamRunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
3978
- typeof StreamRunAgentToolApprovalRequired
3979
- > = StreamRunAgentToolApprovalRequired$inboundSchema;
3980
-
3981
- /**
3982
- * @internal
3983
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3984
- */
3985
- export namespace StreamRunAgentToolApprovalRequired$ {
3986
- /** @deprecated use `StreamRunAgentToolApprovalRequired$inboundSchema` instead. */
3987
- export const inboundSchema = StreamRunAgentToolApprovalRequired$inboundSchema;
3988
- /** @deprecated use `StreamRunAgentToolApprovalRequired$outboundSchema` instead. */
3989
- export const outboundSchema =
3990
- StreamRunAgentToolApprovalRequired$outboundSchema;
3991
- }
3992
-
3993
- /** @internal */
3994
- export const StreamRunAgentSettings$inboundSchema: z.ZodType<
3995
- StreamRunAgentSettings,
3996
- z.ZodTypeDef,
3997
- unknown
3998
- > = z.object({
3999
- tools: z.array(
4000
- z.union([
4001
- z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
4002
- z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
4003
- z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
4004
- z.lazy(() =>
4005
- StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema
4006
- ),
4007
- z.lazy(() =>
4008
- StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema
4009
- ),
4010
- z.lazy(() =>
4011
- StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema
4012
- ),
4013
- z.lazy(() =>
4014
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema
4015
- ),
4016
- z.lazy(() =>
4017
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
4018
- ),
4019
- z.lazy(() =>
4020
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
4021
- ),
4022
- z.lazy(() =>
4023
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
4024
- ),
4025
- z.lazy(() =>
4026
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
4027
- ),
4028
- z.lazy(() =>
4029
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
4030
- ),
4031
- z.lazy(() =>
4032
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
4033
- ),
4034
- z.lazy(() =>
4035
- StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema
4036
- ),
4037
- ]),
4038
- ).optional(),
4039
- tool_approval_required: StreamRunAgentToolApprovalRequired$inboundSchema
4040
- .default("none"),
4041
- max_iterations: z.number().int().default(15),
4042
- max_execution_time: z.number().int().default(300),
4043
- }).transform((v) => {
4044
- return remap$(v, {
4045
- "tool_approval_required": "toolApprovalRequired",
4046
- "max_iterations": "maxIterations",
4047
- "max_execution_time": "maxExecutionTime",
4048
- });
4049
- });
4050
-
4051
- /** @internal */
4052
- export type StreamRunAgentSettings$Outbound = {
4053
- tools?:
4054
- | Array<
4055
- | AgentToolInputRunHTTPToolRun$Outbound
4056
- | AgentToolInputRunCodeToolRun$Outbound
4057
- | AgentToolInputRunFunctionToolRun$Outbound
4058
- | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
4059
- | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
4060
- | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
4061
- | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
4062
- | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
4063
- | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
4064
- | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
4065
- | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
4066
- | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
4067
- | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
4068
- | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound
4069
- >
4070
- | undefined;
4071
- tool_approval_required: string;
4072
- max_iterations: number;
4073
- max_execution_time: number;
4074
- };
4075
-
4076
- /** @internal */
4077
- export const StreamRunAgentSettings$outboundSchema: z.ZodType<
4078
- StreamRunAgentSettings$Outbound,
4079
- z.ZodTypeDef,
4080
- StreamRunAgentSettings
4081
- > = z.object({
4082
- tools: z.array(
4083
- z.union([
4084
- z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
4085
- z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
4086
- z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
4087
- z.lazy(() =>
4088
- StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema
4089
- ),
4090
- z.lazy(() =>
4091
- StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema
4092
- ),
4093
- z.lazy(() =>
4094
- StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema
4095
- ),
4096
- z.lazy(() =>
4097
- StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
4098
- ),
4099
- z.lazy(() =>
4100
- StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
4101
- ),
4102
- z.lazy(() =>
4103
- StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
4104
- ),
4105
- z.lazy(() =>
4106
- StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
4107
- ),
4108
- z.lazy(() =>
4109
- StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
4110
- ),
4111
- z.lazy(() =>
4112
- StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
4113
- ),
4114
- z.lazy(() =>
4115
- StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
4116
- ),
4117
- z.lazy(() =>
4118
- StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema
4119
- ),
4120
- ]),
4121
- ).optional(),
4122
- toolApprovalRequired: StreamRunAgentToolApprovalRequired$outboundSchema
4123
- .default("none"),
4124
- maxIterations: z.number().int().default(15),
4125
- maxExecutionTime: z.number().int().default(300),
4126
- }).transform((v) => {
4127
- return remap$(v, {
4128
- toolApprovalRequired: "tool_approval_required",
4129
- maxIterations: "max_iterations",
4130
- maxExecutionTime: "max_execution_time",
4131
- });
4132
- });
4133
-
4134
- /**
4135
- * @internal
4136
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4137
- */
4138
- export namespace StreamRunAgentSettings$ {
4139
- /** @deprecated use `StreamRunAgentSettings$inboundSchema` instead. */
4140
- export const inboundSchema = StreamRunAgentSettings$inboundSchema;
4141
- /** @deprecated use `StreamRunAgentSettings$outboundSchema` instead. */
4142
- export const outboundSchema = StreamRunAgentSettings$outboundSchema;
4143
- /** @deprecated use `StreamRunAgentSettings$Outbound` instead. */
4144
- export type Outbound = StreamRunAgentSettings$Outbound;
4145
- }
4146
-
4147
- export function streamRunAgentSettingsToJSON(
4148
- streamRunAgentSettings: StreamRunAgentSettings,
4149
- ): string {
4150
- return JSON.stringify(
4151
- StreamRunAgentSettings$outboundSchema.parse(streamRunAgentSettings),
4152
- );
4153
- }
4154
-
4155
- export function streamRunAgentSettingsFromJSON(
4156
- jsonString: string,
4157
- ): SafeParseResult<StreamRunAgentSettings, SDKValidationError> {
4158
- return safeParse(
4159
- jsonString,
4160
- (x) => StreamRunAgentSettings$inboundSchema.parse(JSON.parse(x)),
4161
- `Failed to parse 'StreamRunAgentSettings' from JSON`,
4162
- );
4163
- }
4164
-
4165
- /** @internal */
4166
- export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
4167
- StreamRunAgentRequestBody,
4168
- z.ZodTypeDef,
4169
- unknown
4170
- > = z.object({
4171
- key: z.string(),
4172
- task_id: z.string().optional(),
4173
- model: z.string(),
4174
- fallback_models: z.array(z.string()).optional(),
4175
- role: z.string(),
4176
- instructions: z.string(),
4177
- message: z.lazy(() => StreamRunAgentMessage$inboundSchema),
4178
- variables: z.record(z.any()).optional(),
4179
- contact: z.lazy(() => StreamRunAgentContact$inboundSchema).optional(),
4180
- thread: z.lazy(() => StreamRunAgentThread$inboundSchema).optional(),
4181
- memory: z.lazy(() => StreamRunAgentMemory$inboundSchema).optional(),
4182
- path: z.string(),
4183
- description: z.string().optional(),
4184
- system_prompt: z.string().optional(),
4185
- memory_stores: z.array(z.string()).optional(),
4186
- knowledge_bases: z.array(
4187
- z.lazy(() => StreamRunAgentKnowledgeBases$inboundSchema),
4188
- ).optional(),
4189
- team_of_agents: z.array(
4190
- z.lazy(() => StreamRunAgentTeamOfAgents$inboundSchema),
4191
- ).optional(),
4192
- settings: z.lazy(() => StreamRunAgentSettings$inboundSchema),
4193
- metadata: z.record(z.any()).optional(),
4194
- stream_timeout_seconds: z.number().optional(),
4195
- }).transform((v) => {
4196
- return remap$(v, {
4197
- "task_id": "taskId",
4198
- "fallback_models": "fallbackModels",
4199
- "system_prompt": "systemPrompt",
4200
- "memory_stores": "memoryStores",
4201
- "knowledge_bases": "knowledgeBases",
4202
- "team_of_agents": "teamOfAgents",
4203
- "stream_timeout_seconds": "streamTimeoutSeconds",
4204
- });
4205
- });
4206
-
4207
- /** @internal */
4208
- export type StreamRunAgentRequestBody$Outbound = {
4209
- key: string;
4210
- task_id?: string | undefined;
4211
- model: string;
4212
- fallback_models?: Array<string> | undefined;
4213
- role: string;
4214
- instructions: string;
4215
- message: StreamRunAgentMessage$Outbound;
4216
- variables?: { [k: string]: any } | undefined;
4217
- contact?: StreamRunAgentContact$Outbound | undefined;
4218
- thread?: StreamRunAgentThread$Outbound | undefined;
4219
- memory?: StreamRunAgentMemory$Outbound | undefined;
4220
- path: string;
4221
- description?: string | undefined;
4222
- system_prompt?: string | undefined;
4223
- memory_stores?: Array<string> | undefined;
4224
- knowledge_bases?: Array<StreamRunAgentKnowledgeBases$Outbound> | undefined;
4225
- team_of_agents?: Array<StreamRunAgentTeamOfAgents$Outbound> | undefined;
4226
- settings: StreamRunAgentSettings$Outbound;
4227
- metadata?: { [k: string]: any } | undefined;
4228
- stream_timeout_seconds?: number | undefined;
4229
- };
4230
-
4231
- /** @internal */
4232
- export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
4233
- StreamRunAgentRequestBody$Outbound,
4234
- z.ZodTypeDef,
4235
- StreamRunAgentRequestBody
4236
- > = z.object({
4237
- key: z.string(),
4238
- taskId: z.string().optional(),
4239
- model: z.string(),
4240
- fallbackModels: z.array(z.string()).optional(),
4241
- role: z.string(),
4242
- instructions: z.string(),
4243
- message: z.lazy(() => StreamRunAgentMessage$outboundSchema),
4244
- variables: z.record(z.any()).optional(),
4245
- contact: z.lazy(() => StreamRunAgentContact$outboundSchema).optional(),
4246
- thread: z.lazy(() => StreamRunAgentThread$outboundSchema).optional(),
4247
- memory: z.lazy(() => StreamRunAgentMemory$outboundSchema).optional(),
4248
- path: z.string(),
4249
- description: z.string().optional(),
4250
- systemPrompt: z.string().optional(),
4251
- memoryStores: z.array(z.string()).optional(),
4252
- knowledgeBases: z.array(
4253
- z.lazy(() => StreamRunAgentKnowledgeBases$outboundSchema),
4254
- ).optional(),
4255
- teamOfAgents: z.array(z.lazy(() => StreamRunAgentTeamOfAgents$outboundSchema))
4256
- .optional(),
4257
- settings: z.lazy(() => StreamRunAgentSettings$outboundSchema),
4258
- metadata: z.record(z.any()).optional(),
4259
- streamTimeoutSeconds: z.number().optional(),
4260
- }).transform((v) => {
4261
- return remap$(v, {
4262
- taskId: "task_id",
4263
- fallbackModels: "fallback_models",
4264
- systemPrompt: "system_prompt",
4265
- memoryStores: "memory_stores",
4266
- knowledgeBases: "knowledge_bases",
4267
- teamOfAgents: "team_of_agents",
4268
- streamTimeoutSeconds: "stream_timeout_seconds",
4269
- });
4270
- });
4271
-
4272
- /**
4273
- * @internal
4274
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4275
- */
4276
- export namespace StreamRunAgentRequestBody$ {
4277
- /** @deprecated use `StreamRunAgentRequestBody$inboundSchema` instead. */
4278
- export const inboundSchema = StreamRunAgentRequestBody$inboundSchema;
4279
- /** @deprecated use `StreamRunAgentRequestBody$outboundSchema` instead. */
4280
- export const outboundSchema = StreamRunAgentRequestBody$outboundSchema;
4281
- /** @deprecated use `StreamRunAgentRequestBody$Outbound` instead. */
4282
- export type Outbound = StreamRunAgentRequestBody$Outbound;
4283
- }
4284
-
4285
- export function streamRunAgentRequestBodyToJSON(
4286
- streamRunAgentRequestBody: StreamRunAgentRequestBody,
4287
- ): string {
4288
- return JSON.stringify(
4289
- StreamRunAgentRequestBody$outboundSchema.parse(streamRunAgentRequestBody),
4290
- );
4291
- }
4292
-
4293
- export function streamRunAgentRequestBodyFromJSON(
4294
- jsonString: string,
4295
- ): SafeParseResult<StreamRunAgentRequestBody, SDKValidationError> {
4296
- return safeParse(
4297
- jsonString,
4298
- (x) => StreamRunAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
4299
- `Failed to parse 'StreamRunAgentRequestBody' from JSON`,
4300
- );
4301
- }
4302
-
4303
- /** @internal */
4304
- export const StreamRunAgentResponseBody$inboundSchema: z.ZodType<
4305
- StreamRunAgentResponseBody,
4306
- z.ZodTypeDef,
4307
- unknown
4308
- > = z.object({
4309
- data: z.string(),
4310
- });
4311
-
4312
- /** @internal */
4313
- export type StreamRunAgentResponseBody$Outbound = {
4314
- data: string;
4315
- };
4316
-
4317
- /** @internal */
4318
- export const StreamRunAgentResponseBody$outboundSchema: z.ZodType<
4319
- StreamRunAgentResponseBody$Outbound,
4320
- z.ZodTypeDef,
4321
- StreamRunAgentResponseBody
4322
- > = z.object({
4323
- data: z.string(),
4324
- });
4325
-
4326
- /**
4327
- * @internal
4328
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4329
- */
4330
- export namespace StreamRunAgentResponseBody$ {
4331
- /** @deprecated use `StreamRunAgentResponseBody$inboundSchema` instead. */
4332
- export const inboundSchema = StreamRunAgentResponseBody$inboundSchema;
4333
- /** @deprecated use `StreamRunAgentResponseBody$outboundSchema` instead. */
4334
- export const outboundSchema = StreamRunAgentResponseBody$outboundSchema;
4335
- /** @deprecated use `StreamRunAgentResponseBody$Outbound` instead. */
4336
- export type Outbound = StreamRunAgentResponseBody$Outbound;
4337
- }
4338
-
4339
- export function streamRunAgentResponseBodyToJSON(
4340
- streamRunAgentResponseBody: StreamRunAgentResponseBody,
4341
- ): string {
4342
- return JSON.stringify(
4343
- StreamRunAgentResponseBody$outboundSchema.parse(streamRunAgentResponseBody),
4344
- );
4345
- }
4346
-
4347
- export function streamRunAgentResponseBodyFromJSON(
4348
- jsonString: string,
4349
- ): SafeParseResult<StreamRunAgentResponseBody, SDKValidationError> {
4350
- return safeParse(
4351
- jsonString,
4352
- (x) => StreamRunAgentResponseBody$inboundSchema.parse(JSON.parse(x)),
4353
- `Failed to parse 'StreamRunAgentResponseBody' from JSON`,
4354
- );
4355
- }