@orq-ai/node 3.13.9 → 3.13.11

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 (292) hide show
  1. package/README.md +107 -93
  2. package/bin/mcp-server.js +43652 -40649
  3. package/bin/mcp-server.js.map +117 -98
  4. package/docs/sdks/agents/README.md +566 -0
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsCreate.d.ts +18 -0
  7. package/funcs/agentsCreate.d.ts.map +1 -0
  8. package/funcs/agentsCreate.js +120 -0
  9. package/funcs/agentsCreate.js.map +1 -0
  10. package/funcs/agentsDelete.d.ts +18 -0
  11. package/funcs/agentsDelete.d.ts.map +1 -0
  12. package/funcs/agentsDelete.js +124 -0
  13. package/funcs/agentsDelete.js.map +1 -0
  14. package/funcs/agentsInvoke.d.ts +17 -0
  15. package/funcs/agentsInvoke.d.ts.map +1 -0
  16. package/funcs/agentsInvoke.js +120 -0
  17. package/funcs/agentsInvoke.js.map +1 -0
  18. package/funcs/agentsStream.d.ts +19 -0
  19. package/funcs/agentsStream.d.ts.map +1 -0
  20. package/funcs/agentsStream.js +134 -0
  21. package/funcs/agentsStream.js.map +1 -0
  22. package/funcs/agentsUpdate.d.ts +18 -0
  23. package/funcs/agentsUpdate.d.ts.map +1 -0
  24. package/funcs/agentsUpdate.js +124 -0
  25. package/funcs/agentsUpdate.js.map +1 -0
  26. package/jsr.json +1 -1
  27. package/lib/config.d.ts +2 -2
  28. package/lib/config.js +2 -2
  29. package/lib/config.js.map +1 -1
  30. package/mcp-server/mcp-server.js +1 -1
  31. package/mcp-server/mcp-server.js.map +1 -1
  32. package/mcp-server/server.d.ts.map +1 -1
  33. package/mcp-server/server.js +11 -1
  34. package/mcp-server/server.js.map +1 -1
  35. package/mcp-server/tools/agentsCreate.d.ts +8 -0
  36. package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
  37. package/mcp-server/tools/agentsCreate.js +64 -0
  38. package/mcp-server/tools/agentsCreate.js.map +1 -0
  39. package/mcp-server/tools/agentsDelete.d.ts +8 -0
  40. package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
  41. package/mcp-server/tools/agentsDelete.js +63 -0
  42. package/mcp-server/tools/agentsDelete.js.map +1 -0
  43. package/mcp-server/tools/agentsInvoke.d.ts +8 -0
  44. package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
  45. package/mcp-server/tools/agentsInvoke.js +64 -0
  46. package/mcp-server/tools/agentsInvoke.js.map +1 -0
  47. package/mcp-server/tools/agentsStream.d.ts +8 -0
  48. package/mcp-server/tools/agentsStream.d.ts.map +1 -0
  49. package/mcp-server/tools/agentsStream.js +64 -0
  50. package/mcp-server/tools/agentsStream.js.map +1 -0
  51. package/mcp-server/tools/agentsUpdate.d.ts +8 -0
  52. package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
  53. package/mcp-server/tools/agentsUpdate.js +64 -0
  54. package/mcp-server/tools/agentsUpdate.js.map +1 -0
  55. package/models/errors/createagent.d.ts +41 -0
  56. package/models/errors/createagent.d.ts.map +1 -0
  57. package/models/errors/createagent.js +85 -0
  58. package/models/errors/createagent.js.map +1 -0
  59. package/models/errors/deleteagent.d.ts +41 -0
  60. package/models/errors/deleteagent.d.ts.map +1 -0
  61. package/models/errors/deleteagent.js +85 -0
  62. package/models/errors/deleteagent.js.map +1 -0
  63. package/models/errors/index.d.ts +4 -0
  64. package/models/errors/index.d.ts.map +1 -1
  65. package/models/errors/index.js +4 -0
  66. package/models/errors/index.js.map +1 -1
  67. package/models/errors/streamagent.d.ts +41 -0
  68. package/models/errors/streamagent.d.ts.map +1 -0
  69. package/models/errors/streamagent.js +85 -0
  70. package/models/errors/streamagent.js.map +1 -0
  71. package/models/errors/updateagent.d.ts +41 -0
  72. package/models/errors/updateagent.d.ts.map +1 -0
  73. package/models/errors/updateagent.js +85 -0
  74. package/models/errors/updateagent.js.map +1 -0
  75. package/models/operations/createagent.d.ts +1504 -0
  76. package/models/operations/createagent.d.ts.map +1 -0
  77. package/models/operations/createagent.js +1530 -0
  78. package/models/operations/createagent.js.map +1 -0
  79. package/models/operations/createbudget.js +2 -2
  80. package/models/operations/createcontact.js +2 -2
  81. package/models/operations/createdataset.js +2 -2
  82. package/models/operations/createdatasetitem.js +2 -2
  83. package/models/operations/createdatasource.js +2 -2
  84. package/models/operations/createeval.js +28 -28
  85. package/models/operations/createtool.d.ts +20 -20
  86. package/models/operations/createtool.d.ts.map +1 -1
  87. package/models/operations/createtool.js +34 -34
  88. package/models/operations/createtool.js.map +1 -1
  89. package/models/operations/deleteagent.d.ts +32 -0
  90. package/models/operations/deleteagent.d.ts.map +1 -0
  91. package/models/operations/deleteagent.js +78 -0
  92. package/models/operations/deleteagent.js.map +1 -0
  93. package/models/operations/duplicatetool.d.ts +10 -10
  94. package/models/operations/duplicatetool.d.ts.map +1 -1
  95. package/models/operations/duplicatetool.js +20 -20
  96. package/models/operations/duplicatetool.js.map +1 -1
  97. package/models/operations/fileget.js +2 -2
  98. package/models/operations/filelist.js +2 -2
  99. package/models/operations/fileupload.js +2 -2
  100. package/models/operations/getagent.d.ts +44 -175
  101. package/models/operations/getagent.d.ts.map +1 -1
  102. package/models/operations/getagent.js +51 -184
  103. package/models/operations/getagent.js.map +1 -1
  104. package/models/operations/getalltools.d.ts +10 -10
  105. package/models/operations/getalltools.d.ts.map +1 -1
  106. package/models/operations/getalltools.js +20 -20
  107. package/models/operations/getalltools.js.map +1 -1
  108. package/models/operations/getbudget.js +2 -2
  109. package/models/operations/getevals.js +28 -28
  110. package/models/operations/index.d.ts +5 -0
  111. package/models/operations/index.d.ts.map +1 -1
  112. package/models/operations/index.js +5 -0
  113. package/models/operations/index.js.map +1 -1
  114. package/models/operations/invokeagent.d.ts +912 -0
  115. package/models/operations/invokeagent.d.ts.map +1 -0
  116. package/models/operations/invokeagent.js +824 -0
  117. package/models/operations/invokeagent.js.map +1 -0
  118. package/models/operations/listagents.d.ts +6 -137
  119. package/models/operations/listagents.d.ts.map +1 -1
  120. package/models/operations/listagents.js +3 -139
  121. package/models/operations/listagents.js.map +1 -1
  122. package/models/operations/listagenttasks.d.ts +5 -0
  123. package/models/operations/listagenttasks.d.ts.map +1 -1
  124. package/models/operations/listagenttasks.js +2 -0
  125. package/models/operations/listagenttasks.js.map +1 -1
  126. package/models/operations/listbudgets.js +2 -2
  127. package/models/operations/listcontacts.js +2 -2
  128. package/models/operations/listdatasetdatapoints.js +2 -2
  129. package/models/operations/listdatasets.js +2 -2
  130. package/models/operations/listdatasources.js +2 -2
  131. package/models/operations/retrievecontact.js +2 -2
  132. package/models/operations/retrievedatapoint.js +2 -2
  133. package/models/operations/retrievedataset.js +2 -2
  134. package/models/operations/retrievedatasource.js +2 -2
  135. package/models/operations/retrievetool.d.ts +10 -10
  136. package/models/operations/retrievetool.d.ts.map +1 -1
  137. package/models/operations/retrievetool.js +20 -20
  138. package/models/operations/retrievetool.js.map +1 -1
  139. package/models/operations/runagent.d.ts +640 -721
  140. package/models/operations/runagent.d.ts.map +1 -1
  141. package/models/operations/runagent.js +817 -928
  142. package/models/operations/runagent.js.map +1 -1
  143. package/models/operations/streamagent.d.ts +676 -0
  144. package/models/operations/streamagent.d.ts.map +1 -0
  145. package/models/operations/streamagent.js +670 -0
  146. package/models/operations/streamagent.js.map +1 -0
  147. package/models/operations/streamrunagent.d.ts +567 -648
  148. package/models/operations/streamrunagent.d.ts.map +1 -1
  149. package/models/operations/streamrunagent.js +721 -835
  150. package/models/operations/streamrunagent.js.map +1 -1
  151. package/models/operations/updateagent.d.ts +1515 -0
  152. package/models/operations/updateagent.d.ts.map +1 -0
  153. package/models/operations/updateagent.js +1576 -0
  154. package/models/operations/updateagent.js.map +1 -0
  155. package/models/operations/updatebudget.js +2 -2
  156. package/models/operations/updatecontact.js +2 -2
  157. package/models/operations/updatedatapoint.js +2 -2
  158. package/models/operations/updatedataset.js +2 -2
  159. package/models/operations/updatedatasource.js +2 -2
  160. package/models/operations/updateeval.js +28 -28
  161. package/models/operations/updatetool.d.ts +18 -18
  162. package/models/operations/updatetool.d.ts.map +1 -1
  163. package/models/operations/updatetool.js +36 -36
  164. package/models/operations/updatetool.js.map +1 -1
  165. package/package.json +1 -1
  166. package/packages/orq-rc/README.md +103 -94
  167. package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
  168. package/packages/orq-rc/examples/package-lock.json +1 -1
  169. package/packages/orq-rc/jsr.json +1 -1
  170. package/packages/orq-rc/package-lock.json +2 -2
  171. package/packages/orq-rc/package.json +1 -1
  172. package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
  173. package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
  174. package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
  175. package/packages/orq-rc/src/lib/config.ts +2 -2
  176. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  177. package/packages/orq-rc/src/mcp-server/server.ts +7 -1
  178. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
  179. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
  180. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
  181. package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
  182. package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
  183. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  184. package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
  185. package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
  186. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  187. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  188. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  189. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  190. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  191. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  192. package/packages/orq-rc/src/models/operations/createtool.ts +50 -50
  193. package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
  194. package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
  195. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  196. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  197. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  198. package/packages/orq-rc/src/models/operations/getagent.ts +87 -387
  199. package/packages/orq-rc/src/models/operations/getalltools.ts +33 -33
  200. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  201. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  202. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  203. package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
  204. package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
  205. package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
  206. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  207. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  208. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  209. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  210. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  211. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  212. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  213. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  214. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  215. package/packages/orq-rc/src/models/operations/retrievetool.ts +30 -30
  216. package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
  217. package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
  218. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
  219. package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
  220. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  221. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  222. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  223. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  224. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  225. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  226. package/packages/orq-rc/src/models/operations/updatetool.ts +56 -56
  227. package/packages/orq-rc/src/sdk/agents.ts +54 -0
  228. package/sdk/agents.d.ts +35 -0
  229. package/sdk/agents.d.ts.map +1 -1
  230. package/sdk/agents.js +50 -0
  231. package/sdk/agents.js.map +1 -1
  232. package/src/funcs/agentsCreate.ts +172 -0
  233. package/src/funcs/agentsDelete.ts +176 -0
  234. package/src/funcs/agentsInvoke.ts +167 -0
  235. package/src/funcs/agentsStream.ts +191 -0
  236. package/src/funcs/agentsUpdate.ts +176 -0
  237. package/src/lib/config.ts +2 -2
  238. package/src/mcp-server/mcp-server.ts +1 -1
  239. package/src/mcp-server/server.ts +11 -1
  240. package/src/mcp-server/tools/agentsCreate.ts +37 -0
  241. package/src/mcp-server/tools/agentsDelete.ts +35 -0
  242. package/src/mcp-server/tools/agentsInvoke.ts +37 -0
  243. package/src/mcp-server/tools/agentsStream.ts +37 -0
  244. package/src/mcp-server/tools/agentsUpdate.ts +37 -0
  245. package/src/models/errors/createagent.ts +80 -0
  246. package/src/models/errors/deleteagent.ts +80 -0
  247. package/src/models/errors/index.ts +4 -0
  248. package/src/models/errors/streamagent.ts +80 -0
  249. package/src/models/errors/updateagent.ts +80 -0
  250. package/src/models/operations/createagent.ts +3021 -0
  251. package/src/models/operations/createbudget.ts +2 -2
  252. package/src/models/operations/createcontact.ts +2 -2
  253. package/src/models/operations/createdataset.ts +2 -2
  254. package/src/models/operations/createdatasetitem.ts +2 -2
  255. package/src/models/operations/createdatasource.ts +2 -2
  256. package/src/models/operations/createeval.ts +28 -28
  257. package/src/models/operations/createtool.ts +54 -54
  258. package/src/models/operations/deleteagent.ts +78 -0
  259. package/src/models/operations/duplicatetool.ts +30 -30
  260. package/src/models/operations/fileget.ts +2 -2
  261. package/src/models/operations/filelist.ts +2 -2
  262. package/src/models/operations/fileupload.ts +2 -2
  263. package/src/models/operations/getagent.ts +87 -387
  264. package/src/models/operations/getalltools.ts +30 -30
  265. package/src/models/operations/getbudget.ts +2 -2
  266. package/src/models/operations/getevals.ts +28 -28
  267. package/src/models/operations/index.ts +5 -0
  268. package/src/models/operations/invokeagent.ts +1569 -0
  269. package/src/models/operations/listagents.ts +8 -321
  270. package/src/models/operations/listagenttasks.ts +7 -0
  271. package/src/models/operations/listbudgets.ts +2 -2
  272. package/src/models/operations/listcontacts.ts +2 -2
  273. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  274. package/src/models/operations/listdatasets.ts +2 -2
  275. package/src/models/operations/listdatasources.ts +2 -2
  276. package/src/models/operations/retrievecontact.ts +2 -2
  277. package/src/models/operations/retrievedatapoint.ts +2 -2
  278. package/src/models/operations/retrievedataset.ts +2 -2
  279. package/src/models/operations/retrievedatasource.ts +2 -2
  280. package/src/models/operations/retrievetool.ts +30 -30
  281. package/src/models/operations/runagent.ts +1441 -1488
  282. package/src/models/operations/streamagent.ts +1367 -0
  283. package/src/models/operations/streamrunagent.ts +1542 -1657
  284. package/src/models/operations/updateagent.ts +3227 -0
  285. package/src/models/operations/updatebudget.ts +2 -2
  286. package/src/models/operations/updatecontact.ts +2 -2
  287. package/src/models/operations/updatedatapoint.ts +2 -2
  288. package/src/models/operations/updatedataset.ts +2 -2
  289. package/src/models/operations/updatedatasource.ts +2 -2
  290. package/src/models/operations/updateeval.ts +28 -28
  291. package/src/models/operations/updatetool.ts +60 -60
  292. package/src/sdk/agents.ts +90 -0
@@ -214,49 +214,11 @@ export type StreamRunAgentMemory = {
214
214
  entityId: string;
215
215
  };
216
216
 
217
- export const StreamRunAgentKnowledgeBaseConfigurationAgentsType = {
218
- Query: "query",
219
- } as const;
220
- export type StreamRunAgentKnowledgeBaseConfigurationAgentsType = ClosedEnum<
221
- typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType
222
- >;
223
-
224
- /**
225
- * Defines the configuration settings for a static query.
226
- */
227
- export type KnowledgeBaseConfigurationKnowledgeBaseStaticQuery = {
228
- type: StreamRunAgentKnowledgeBaseConfigurationAgentsType;
229
- query: string;
230
- };
231
-
232
- export const StreamRunAgentKnowledgeBaseConfigurationType = {
233
- LastUserMessage: "last_user_message",
234
- } as const;
235
- export type StreamRunAgentKnowledgeBaseConfigurationType = ClosedEnum<
236
- typeof StreamRunAgentKnowledgeBaseConfigurationType
237
- >;
238
-
239
- /**
240
- * Defines the configuration settings for a last user message type retrieval.
241
- */
242
- export type KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage = {
243
- type: StreamRunAgentKnowledgeBaseConfigurationType;
244
- };
245
-
246
- /**
247
- * Defines the configuration settings which can either be for a user message or a text entry.
248
- */
249
- export type StreamRunAgentKnowledgeBaseConfiguration =
250
- | KnowledgeBaseConfigurationKnowledgeBaseStaticQuery
251
- | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
252
-
253
217
  export type StreamRunAgentKnowledgeBases = {
254
218
  /**
255
- * Defines the configuration settings which can either be for a user message or a text entry.
219
+ * Unique identifier of the knowledge base to search
256
220
  */
257
- configuration:
258
- | KnowledgeBaseConfigurationKnowledgeBaseStaticQuery
259
- | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
221
+ knowledgeId: string;
260
222
  };
261
223
 
262
224
  export type StreamRunAgentTeamOfAgents = {
@@ -270,58 +232,73 @@ export type StreamRunAgentTeamOfAgents = {
270
232
  role?: string | undefined;
271
233
  };
272
234
 
273
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type =
235
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
274
236
  {
275
237
  Function: "function",
276
238
  } as const;
277
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type =
239
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
278
240
  ClosedEnum<
279
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
241
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
280
242
  >;
281
243
 
282
- export type StreamRunAgentRunAgentRequestToolFunction = {
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
+ */
283
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
+ */
284
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
+ */
285
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
+ */
286
260
  parameters?: { [k: string]: any } | undefined;
287
261
  };
288
262
 
289
263
  /**
290
- * Custom function tool with configurable parameters
264
+ * Function tool with inline definition for on-the-fly creation in run endpoint
291
265
  */
292
- export type RunAgentRequestToolFunctionTool = {
266
+ export type AgentToolInputRunFunctionToolRun = {
293
267
  type:
294
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type;
295
- id?: string | undefined;
268
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
269
+ /**
270
+ * Unique key of the tool as it will be displayed in the UI
271
+ */
296
272
  key: string;
273
+ id?: string | undefined;
297
274
  displayName?: string | undefined;
298
275
  description?: string | undefined;
276
+ function: StreamRunAgentAgentToolInputRunFunction;
299
277
  requiresApproval?: boolean | undefined;
300
- function: StreamRunAgentRunAgentRequestToolFunction;
301
278
  };
302
279
 
303
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
280
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
304
281
  {
305
282
  Code: "code",
306
283
  } as const;
307
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
284
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
308
285
  ClosedEnum<
309
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
286
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
310
287
  >;
311
288
 
312
- export const RunAgentRequestToolLanguage = {
289
+ export const AgentToolInputRunLanguage = {
313
290
  Python: "python",
314
291
  } as const;
315
- export type RunAgentRequestToolLanguage = ClosedEnum<
316
- typeof RunAgentRequestToolLanguage
292
+ export type AgentToolInputRunLanguage = ClosedEnum<
293
+ typeof AgentToolInputRunLanguage
317
294
  >;
318
295
 
319
- export type RunAgentRequestToolCodeTool = {
296
+ export type AgentToolInputRunCodeTool = {
320
297
  /**
321
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.
322
299
  */
323
300
  parameters?: { [k: string]: any } | undefined;
324
- language: RunAgentRequestToolLanguage;
301
+ language: AgentToolInputRunLanguage;
325
302
  /**
326
303
  * The code to execute.
327
304
  */
@@ -329,41 +306,38 @@ export type RunAgentRequestToolCodeTool = {
329
306
  };
330
307
 
331
308
  /**
332
- * Executes code in a secure sandbox environment
309
+ * Code execution tool with inline definition for on-the-fly creation in run endpoint
333
310
  */
334
- export type RunAgentRequestToolCodeExecutionTool = {
311
+ export type AgentToolInputRunCodeToolRun = {
312
+ type:
313
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
335
314
  /**
336
315
  * Unique key of the tool as it will be displayed in the UI
337
316
  */
338
317
  key: string;
339
- /**
340
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
341
- */
342
- displayName: string;
318
+ id?: string | undefined;
319
+ displayName?: string | undefined;
343
320
  /**
344
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.
345
322
  */
346
323
  description: string;
347
- type:
348
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
349
- codeTool: RunAgentRequestToolCodeTool;
350
- id?: string | undefined;
324
+ codeTool: AgentToolInputRunCodeTool;
351
325
  requiresApproval?: boolean | undefined;
352
326
  };
353
327
 
354
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
328
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
355
329
  {
356
330
  Http: "http",
357
331
  } as const;
358
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
332
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
359
333
  ClosedEnum<
360
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
334
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
361
335
  >;
362
336
 
363
337
  /**
364
338
  * The HTTP method to use.
365
339
  */
366
- export const RunAgentRequestToolMethod = {
340
+ export const AgentToolInputRunMethod = {
367
341
  Get: "GET",
368
342
  Post: "POST",
369
343
  Put: "PUT",
@@ -372,14 +346,14 @@ export const RunAgentRequestToolMethod = {
372
346
  /**
373
347
  * The HTTP method to use.
374
348
  */
375
- export type RunAgentRequestToolMethod = ClosedEnum<
376
- typeof RunAgentRequestToolMethod
349
+ export type AgentToolInputRunMethod = ClosedEnum<
350
+ typeof AgentToolInputRunMethod
377
351
  >;
378
352
 
379
353
  /**
380
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.
381
355
  */
382
- export type RunAgentRequestToolBlueprint = {
356
+ export type AgentToolInputRunBlueprint = {
383
357
  /**
384
358
  * The URL to send the request to.
385
359
  */
@@ -387,7 +361,7 @@ export type RunAgentRequestToolBlueprint = {
387
361
  /**
388
362
  * The HTTP method to use.
389
363
  */
390
- method: RunAgentRequestToolMethod;
364
+ method: AgentToolInputRunMethod;
391
365
  /**
392
366
  * The headers to send with the request.
393
367
  */
@@ -401,7 +375,7 @@ export type RunAgentRequestToolBlueprint = {
401
375
  /**
402
376
  * The type of the argument.
403
377
  */
404
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType =
378
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
405
379
  {
406
380
  String: "string",
407
381
  Number: "number",
@@ -410,22 +384,22 @@ export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTo
410
384
  /**
411
385
  * The type of the argument.
412
386
  */
413
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType =
387
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
414
388
  ClosedEnum<
415
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
389
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
416
390
  >;
417
391
 
418
392
  /**
419
393
  * The default value of the argument.
420
394
  */
421
- export type RunAgentRequestToolDefaultValue = string | number | boolean;
395
+ export type AgentToolInputRunDefaultValue = string | number | boolean;
422
396
 
423
- export type RunAgentRequestToolArguments = {
397
+ export type AgentToolInputRunArguments = {
424
398
  /**
425
399
  * The type of the argument.
426
400
  */
427
401
  type:
428
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType;
402
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
429
403
  /**
430
404
  * A description of the argument.
431
405
  */
@@ -440,243 +414,274 @@ export type RunAgentRequestToolArguments = {
440
414
  defaultValue?: string | number | boolean | undefined;
441
415
  };
442
416
 
443
- export type RunAgentRequestToolHttp = {
417
+ export type AgentToolInputRunHttp = {
444
418
  /**
445
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.
446
420
  */
447
- blueprint: RunAgentRequestToolBlueprint;
421
+ blueprint: AgentToolInputRunBlueprint;
448
422
  /**
449
423
  * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
450
424
  */
451
- arguments?: { [k: string]: RunAgentRequestToolArguments } | undefined;
425
+ arguments?: { [k: string]: AgentToolInputRunArguments } | undefined;
452
426
  };
453
427
 
454
428
  /**
455
- * Makes HTTP requests to external APIs
429
+ * HTTP tool with inline definition for on-the-fly creation in run endpoint
456
430
  */
457
- export type RunAgentRequestToolHTTPTool = {
431
+ export type AgentToolInputRunHTTPToolRun = {
432
+ type:
433
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
458
434
  /**
459
435
  * Unique key of the tool as it will be displayed in the UI
460
436
  */
461
437
  key: string;
462
- /**
463
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
464
- */
465
- displayName: string;
438
+ id?: string | undefined;
439
+ displayName?: string | undefined;
466
440
  /**
467
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.
468
442
  */
469
443
  description: string;
470
- type:
471
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
472
- http: RunAgentRequestToolHttp;
444
+ http: AgentToolInputRunHttp;
473
445
  requiresApproval?: boolean | undefined;
474
446
  };
475
447
 
476
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
448
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
477
449
  {
478
450
  CurrentDate: "current_date",
479
451
  } as const;
480
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
452
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
481
453
  ClosedEnum<
482
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
454
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
483
455
  >;
484
456
 
485
457
  /**
486
- * Provides the current date and time
458
+ * Returns the current date and time
487
459
  */
488
- export type RunAgentRequestToolCurrentDateTool = {
460
+ export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
489
461
  type:
490
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type;
462
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
463
+ /**
464
+ * Whether this tool requires approval before execution
465
+ */
491
466
  requiresApproval?: boolean | undefined;
492
467
  };
493
468
 
494
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
469
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
495
470
  {
496
471
  QueryKnowledgeBase: "query_knowledge_base",
497
472
  } as const;
498
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
473
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
499
474
  ClosedEnum<
500
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
475
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
501
476
  >;
502
477
 
503
478
  /**
504
479
  * Queries knowledge bases for information
505
480
  */
506
- export type RunAgentRequestToolQueryKnowledgeBaseTool = {
481
+ export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool = {
507
482
  type:
508
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type;
483
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
484
+ /**
485
+ * Whether this tool requires approval before execution
486
+ */
509
487
  requiresApproval?: boolean | undefined;
510
488
  };
511
489
 
512
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
490
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
513
491
  {
514
492
  RetrieveKnowledgeBases: "retrieve_knowledge_bases",
515
493
  } as const;
516
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
494
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
517
495
  ClosedEnum<
518
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
496
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
519
497
  >;
520
498
 
521
499
  /**
522
500
  * Lists available knowledge bases
523
501
  */
524
- export type RunAgentRequestToolRetrieveKnowledgeBasesTool = {
502
+ export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool = {
525
503
  type:
526
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type;
504
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
505
+ /**
506
+ * Whether this tool requires approval before execution
507
+ */
527
508
  requiresApproval?: boolean | undefined;
528
509
  };
529
510
 
530
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
511
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
531
512
  {
532
513
  DeleteMemoryDocument: "delete_memory_document",
533
514
  } as const;
534
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
515
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
535
516
  ClosedEnum<
536
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
517
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
537
518
  >;
538
519
 
539
520
  /**
540
- * Deletes a memory store
521
+ * Deletes documents from memory stores
541
522
  */
542
- export type RunAgentRequestToolDeleteMemoryStoreTool = {
523
+ export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool = {
543
524
  type:
544
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type;
525
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
526
+ /**
527
+ * Whether this tool requires approval before execution
528
+ */
545
529
  requiresApproval?: boolean | undefined;
546
530
  };
547
531
 
548
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type =
532
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
549
533
  {
550
534
  RetrieveMemoryStores: "retrieve_memory_stores",
551
535
  } as const;
552
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type =
536
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
553
537
  ClosedEnum<
554
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type
538
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
555
539
  >;
556
540
 
557
541
  /**
558
542
  * Lists available memory stores
559
543
  */
560
- export type RunAgentRequestToolRetrieveMemoryStoresTool = {
544
+ export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool = {
561
545
  type:
562
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type;
546
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type;
547
+ /**
548
+ * Whether this tool requires approval before execution
549
+ */
563
550
  requiresApproval?: boolean | undefined;
564
551
  };
565
552
 
566
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
553
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
567
554
  {
568
555
  WriteMemoryStore: "write_memory_store",
569
556
  } as const;
570
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
557
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
571
558
  ClosedEnum<
572
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
559
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
573
560
  >;
574
561
 
575
562
  /**
576
563
  * Writes information to agent memory stores
577
564
  */
578
- export type RunAgentRequestToolWriteMemoryStoreTool = {
565
+ export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool = {
579
566
  type:
580
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType;
567
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
568
+ /**
569
+ * Whether this tool requires approval before execution
570
+ */
581
571
  requiresApproval?: boolean | undefined;
582
572
  };
583
573
 
584
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType =
574
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
585
575
  {
586
576
  QueryMemoryStore: "query_memory_store",
587
577
  } as const;
588
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType =
578
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
589
579
  ClosedEnum<
590
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
580
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
591
581
  >;
592
582
 
593
583
  /**
594
584
  * Queries agent memory stores for context
595
585
  */
596
- export type RunAgentRequestToolQueryMemoryStoreTool = {
597
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType;
586
+ export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
587
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
588
+ /**
589
+ * Whether this tool requires approval before execution
590
+ */
598
591
  requiresApproval?: boolean | undefined;
599
592
  };
600
593
 
601
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType = {
594
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
602
595
  RetrieveAgents: "retrieve_agents",
603
596
  } as const;
604
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType =
597
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType =
605
598
  ClosedEnum<
606
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType
599
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
607
600
  >;
608
601
 
609
602
  /**
610
603
  * Retrieves available agents in the system
611
604
  */
612
- export type RunAgentRequestToolRetrieveAgentsTool = {
613
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType;
605
+ export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool = {
606
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType;
607
+ /**
608
+ * Whether this tool requires approval before execution
609
+ */
614
610
  requiresApproval?: boolean | undefined;
615
611
  };
616
612
 
617
- export const StreamRunAgentRunAgentRequestToolAgentsRequestType = {
613
+ export const StreamRunAgentAgentToolInputRunAgentsRequestType = {
618
614
  CallSubAgent: "call_sub_agent",
619
615
  } as const;
620
- export type StreamRunAgentRunAgentRequestToolAgentsRequestType = ClosedEnum<
621
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestType
616
+ export type StreamRunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
617
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestType
622
618
  >;
623
619
 
624
620
  /**
625
621
  * Delegates tasks to specialized sub-agents
626
622
  */
627
- export type RunAgentRequestToolCallSubAgentTool = {
628
- type: StreamRunAgentRunAgentRequestToolAgentsRequestType;
623
+ export type StreamRunAgentAgentToolInputRunCallSubAgentTool = {
624
+ type: StreamRunAgentAgentToolInputRunAgentsRequestType;
625
+ /**
626
+ * Whether this tool requires approval before execution
627
+ */
629
628
  requiresApproval?: boolean | undefined;
630
629
  };
631
630
 
632
- export const StreamRunAgentRunAgentRequestToolAgentsType = {
631
+ export const StreamRunAgentAgentToolInputRunAgentsType = {
633
632
  WebScraper: "web_scraper",
634
633
  } as const;
635
- export type StreamRunAgentRunAgentRequestToolAgentsType = ClosedEnum<
636
- typeof StreamRunAgentRunAgentRequestToolAgentsType
634
+ export type StreamRunAgentAgentToolInputRunAgentsType = ClosedEnum<
635
+ typeof StreamRunAgentAgentToolInputRunAgentsType
637
636
  >;
638
637
 
639
638
  /**
640
639
  * Scrapes and extracts content from web pages
641
640
  */
642
- export type RunAgentRequestToolWebScraperTool = {
643
- type: StreamRunAgentRunAgentRequestToolAgentsType;
641
+ export type StreamRunAgentAgentToolInputRunWebScraperTool = {
642
+ type: StreamRunAgentAgentToolInputRunAgentsType;
643
+ /**
644
+ * Whether this tool requires approval before execution
645
+ */
644
646
  requiresApproval?: boolean | undefined;
645
647
  };
646
648
 
647
- export const StreamRunAgentRunAgentRequestToolType = {
649
+ export const StreamRunAgentAgentToolInputRunType = {
648
650
  GoogleSearch: "google_search",
649
651
  } as const;
650
- export type StreamRunAgentRunAgentRequestToolType = ClosedEnum<
651
- typeof StreamRunAgentRunAgentRequestToolType
652
+ export type StreamRunAgentAgentToolInputRunType = ClosedEnum<
653
+ typeof StreamRunAgentAgentToolInputRunType
652
654
  >;
653
655
 
654
656
  /**
655
657
  * Performs Google searches to retrieve web content
656
658
  */
657
- export type RunAgentRequestToolGoogleSearchTool = {
658
- type: StreamRunAgentRunAgentRequestToolType;
659
+ export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
660
+ type: StreamRunAgentAgentToolInputRunType;
661
+ /**
662
+ * Whether this tool requires approval before execution
663
+ */
659
664
  requiresApproval?: boolean | undefined;
660
665
  };
661
666
 
662
667
  /**
663
- * Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
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.
664
669
  */
665
- export type StreamRunAgentRunAgentRequestTool =
666
- | RunAgentRequestToolHTTPTool
667
- | RunAgentRequestToolCodeExecutionTool
668
- | RunAgentRequestToolFunctionTool
669
- | RunAgentRequestToolGoogleSearchTool
670
- | RunAgentRequestToolWebScraperTool
671
- | RunAgentRequestToolCallSubAgentTool
672
- | RunAgentRequestToolRetrieveAgentsTool
673
- | RunAgentRequestToolQueryMemoryStoreTool
674
- | RunAgentRequestToolWriteMemoryStoreTool
675
- | RunAgentRequestToolRetrieveMemoryStoresTool
676
- | RunAgentRequestToolDeleteMemoryStoreTool
677
- | RunAgentRequestToolRetrieveKnowledgeBasesTool
678
- | RunAgentRequestToolQueryKnowledgeBaseTool
679
- | RunAgentRequestToolCurrentDateTool;
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;
680
685
 
681
686
  /**
682
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.
@@ -698,20 +703,20 @@ export type StreamRunAgentSettings = {
698
703
  * Tools available to the agent
699
704
  */
700
705
  tools: Array<
701
- | RunAgentRequestToolHTTPTool
702
- | RunAgentRequestToolCodeExecutionTool
703
- | RunAgentRequestToolFunctionTool
704
- | RunAgentRequestToolGoogleSearchTool
705
- | RunAgentRequestToolWebScraperTool
706
- | RunAgentRequestToolCallSubAgentTool
707
- | RunAgentRequestToolRetrieveAgentsTool
708
- | RunAgentRequestToolQueryMemoryStoreTool
709
- | RunAgentRequestToolWriteMemoryStoreTool
710
- | RunAgentRequestToolRetrieveMemoryStoresTool
711
- | RunAgentRequestToolDeleteMemoryStoreTool
712
- | RunAgentRequestToolRetrieveKnowledgeBasesTool
713
- | RunAgentRequestToolQueryKnowledgeBaseTool
714
- | RunAgentRequestToolCurrentDateTool
706
+ | AgentToolInputRunHTTPToolRun
707
+ | AgentToolInputRunCodeToolRun
708
+ | AgentToolInputRunFunctionToolRun
709
+ | StreamRunAgentAgentToolInputRunGoogleSearchTool
710
+ | StreamRunAgentAgentToolInputRunWebScraperTool
711
+ | StreamRunAgentAgentToolInputRunCallSubAgentTool
712
+ | StreamRunAgentAgentToolInputRunRetrieveAgentsTool
713
+ | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
714
+ | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
715
+ | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
716
+ | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
717
+ | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
718
+ | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
719
+ | StreamRunAgentAgentToolInputRunCurrentDateTool
715
720
  >;
716
721
  /**
717
722
  * 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.
@@ -794,6 +799,9 @@ export type StreamRunAgentRequestBody = {
794
799
  * The list of keys of the memory stores that are accessible to the agent.
795
800
  */
796
801
  memoryStores?: Array<string> | undefined;
802
+ /**
803
+ * Knowledge base configurations for the agent to access
804
+ */
797
805
  knowledgeBases?: Array<StreamRunAgentKnowledgeBases> | undefined;
798
806
  /**
799
807
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
@@ -1745,286 +1753,22 @@ export function streamRunAgentMemoryFromJSON(
1745
1753
  );
1746
1754
  }
1747
1755
 
1748
- /** @internal */
1749
- export const StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema:
1750
- z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType> = z
1751
- .nativeEnum(StreamRunAgentKnowledgeBaseConfigurationAgentsType);
1752
-
1753
- /** @internal */
1754
- export const StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema:
1755
- z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType> =
1756
- StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
1757
-
1758
- /**
1759
- * @internal
1760
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1761
- */
1762
- export namespace StreamRunAgentKnowledgeBaseConfigurationAgentsType$ {
1763
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema` instead. */
1764
- export const inboundSchema =
1765
- StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
1766
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema` instead. */
1767
- export const outboundSchema =
1768
- StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema;
1769
- }
1770
-
1771
- /** @internal */
1772
- export const KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema:
1773
- z.ZodType<
1774
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
1775
- z.ZodTypeDef,
1776
- unknown
1777
- > = z.object({
1778
- type: StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema,
1779
- query: z.string(),
1780
- });
1781
-
1782
- /** @internal */
1783
- export type KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound = {
1784
- type: string;
1785
- query: string;
1786
- };
1787
-
1788
- /** @internal */
1789
- export const KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema:
1790
- z.ZodType<
1791
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound,
1792
- z.ZodTypeDef,
1793
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery
1794
- > = z.object({
1795
- type: StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema,
1796
- query: z.string(),
1797
- });
1798
-
1799
- /**
1800
- * @internal
1801
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1802
- */
1803
- export namespace KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$ {
1804
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema` instead. */
1805
- export const inboundSchema =
1806
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema;
1807
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema` instead. */
1808
- export const outboundSchema =
1809
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema;
1810
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound` instead. */
1811
- export type Outbound =
1812
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound;
1813
- }
1814
-
1815
- export function knowledgeBaseConfigurationKnowledgeBaseStaticQueryToJSON(
1816
- knowledgeBaseConfigurationKnowledgeBaseStaticQuery:
1817
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
1818
- ): string {
1819
- return JSON.stringify(
1820
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema.parse(
1821
- knowledgeBaseConfigurationKnowledgeBaseStaticQuery,
1822
- ),
1823
- );
1824
- }
1825
-
1826
- export function knowledgeBaseConfigurationKnowledgeBaseStaticQueryFromJSON(
1827
- jsonString: string,
1828
- ): SafeParseResult<
1829
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
1830
- SDKValidationError
1831
- > {
1832
- return safeParse(
1833
- jsonString,
1834
- (x) =>
1835
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema.parse(
1836
- JSON.parse(x),
1837
- ),
1838
- `Failed to parse 'KnowledgeBaseConfigurationKnowledgeBaseStaticQuery' from JSON`,
1839
- );
1840
- }
1841
-
1842
- /** @internal */
1843
- export const StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema:
1844
- z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationType> = z
1845
- .nativeEnum(StreamRunAgentKnowledgeBaseConfigurationType);
1846
-
1847
- /** @internal */
1848
- export const StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema:
1849
- z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationType> =
1850
- StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema;
1851
-
1852
- /**
1853
- * @internal
1854
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1855
- */
1856
- export namespace StreamRunAgentKnowledgeBaseConfigurationType$ {
1857
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
1858
- export const inboundSchema =
1859
- StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema;
1860
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
1861
- export const outboundSchema =
1862
- StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema;
1863
- }
1864
-
1865
- /** @internal */
1866
- export const KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema:
1867
- z.ZodType<
1868
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
1869
- z.ZodTypeDef,
1870
- unknown
1871
- > = z.object({
1872
- type: StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema,
1873
- });
1874
-
1875
- /** @internal */
1876
- export type KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound = {
1877
- type: string;
1878
- };
1879
-
1880
- /** @internal */
1881
- export const KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema:
1882
- z.ZodType<
1883
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound,
1884
- z.ZodTypeDef,
1885
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage
1886
- > = z.object({
1887
- type: StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema,
1888
- });
1889
-
1890
- /**
1891
- * @internal
1892
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1893
- */
1894
- export namespace KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$ {
1895
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema` instead. */
1896
- export const inboundSchema =
1897
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema;
1898
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema` instead. */
1899
- export const outboundSchema =
1900
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema;
1901
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound` instead. */
1902
- export type Outbound =
1903
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
1904
- }
1905
-
1906
- export function knowledgeBaseConfigurationKnowledgeBaseLastUserMessageToJSON(
1907
- knowledgeBaseConfigurationKnowledgeBaseLastUserMessage:
1908
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
1909
- ): string {
1910
- return JSON.stringify(
1911
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema.parse(
1912
- knowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
1913
- ),
1914
- );
1915
- }
1916
-
1917
- export function knowledgeBaseConfigurationKnowledgeBaseLastUserMessageFromJSON(
1918
- jsonString: string,
1919
- ): SafeParseResult<
1920
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
1921
- SDKValidationError
1922
- > {
1923
- return safeParse(
1924
- jsonString,
1925
- (x) =>
1926
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
1927
- .parse(JSON.parse(x)),
1928
- `Failed to parse 'KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage' from JSON`,
1929
- );
1930
- }
1931
-
1932
- /** @internal */
1933
- export const StreamRunAgentKnowledgeBaseConfiguration$inboundSchema: z.ZodType<
1934
- StreamRunAgentKnowledgeBaseConfiguration,
1935
- z.ZodTypeDef,
1936
- unknown
1937
- > = z.union([
1938
- z.lazy(() =>
1939
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
1940
- ),
1941
- z.lazy(() =>
1942
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
1943
- ),
1944
- ]);
1945
-
1946
- /** @internal */
1947
- export type StreamRunAgentKnowledgeBaseConfiguration$Outbound =
1948
- | KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
1949
- | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
1950
-
1951
- /** @internal */
1952
- export const StreamRunAgentKnowledgeBaseConfiguration$outboundSchema: z.ZodType<
1953
- StreamRunAgentKnowledgeBaseConfiguration$Outbound,
1954
- z.ZodTypeDef,
1955
- StreamRunAgentKnowledgeBaseConfiguration
1956
- > = z.union([
1957
- z.lazy(() =>
1958
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
1959
- ),
1960
- z.lazy(() =>
1961
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
1962
- ),
1963
- ]);
1964
-
1965
- /**
1966
- * @internal
1967
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1968
- */
1969
- export namespace StreamRunAgentKnowledgeBaseConfiguration$ {
1970
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$inboundSchema` instead. */
1971
- export const inboundSchema =
1972
- StreamRunAgentKnowledgeBaseConfiguration$inboundSchema;
1973
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$outboundSchema` instead. */
1974
- export const outboundSchema =
1975
- StreamRunAgentKnowledgeBaseConfiguration$outboundSchema;
1976
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$Outbound` instead. */
1977
- export type Outbound = StreamRunAgentKnowledgeBaseConfiguration$Outbound;
1978
- }
1979
-
1980
- export function streamRunAgentKnowledgeBaseConfigurationToJSON(
1981
- streamRunAgentKnowledgeBaseConfiguration:
1982
- StreamRunAgentKnowledgeBaseConfiguration,
1983
- ): string {
1984
- return JSON.stringify(
1985
- StreamRunAgentKnowledgeBaseConfiguration$outboundSchema.parse(
1986
- streamRunAgentKnowledgeBaseConfiguration,
1987
- ),
1988
- );
1989
- }
1990
-
1991
- export function streamRunAgentKnowledgeBaseConfigurationFromJSON(
1992
- jsonString: string,
1993
- ): SafeParseResult<
1994
- StreamRunAgentKnowledgeBaseConfiguration,
1995
- SDKValidationError
1996
- > {
1997
- return safeParse(
1998
- jsonString,
1999
- (x) =>
2000
- StreamRunAgentKnowledgeBaseConfiguration$inboundSchema.parse(
2001
- JSON.parse(x),
2002
- ),
2003
- `Failed to parse 'StreamRunAgentKnowledgeBaseConfiguration' from JSON`,
2004
- );
2005
- }
2006
-
2007
1756
  /** @internal */
2008
1757
  export const StreamRunAgentKnowledgeBases$inboundSchema: z.ZodType<
2009
1758
  StreamRunAgentKnowledgeBases,
2010
1759
  z.ZodTypeDef,
2011
1760
  unknown
2012
1761
  > = z.object({
2013
- configuration: z.union([
2014
- z.lazy(() =>
2015
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
2016
- ),
2017
- z.lazy(() =>
2018
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
2019
- ),
2020
- ]),
1762
+ knowledge_id: z.string(),
1763
+ }).transform((v) => {
1764
+ return remap$(v, {
1765
+ "knowledge_id": "knowledgeId",
1766
+ });
2021
1767
  });
2022
1768
 
2023
1769
  /** @internal */
2024
1770
  export type StreamRunAgentKnowledgeBases$Outbound = {
2025
- configuration:
2026
- | KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
2027
- | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
1771
+ knowledge_id: string;
2028
1772
  };
2029
1773
 
2030
1774
  /** @internal */
@@ -2033,14 +1777,11 @@ export const StreamRunAgentKnowledgeBases$outboundSchema: z.ZodType<
2033
1777
  z.ZodTypeDef,
2034
1778
  StreamRunAgentKnowledgeBases
2035
1779
  > = z.object({
2036
- configuration: z.union([
2037
- z.lazy(() =>
2038
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
2039
- ),
2040
- z.lazy(() =>
2041
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
2042
- ),
2043
- ]),
1780
+ knowledgeId: z.string(),
1781
+ }).transform((v) => {
1782
+ return remap$(v, {
1783
+ knowledgeId: "knowledge_id",
1784
+ });
2044
1785
  });
2045
1786
 
2046
1787
  /**
@@ -2134,36 +1875,36 @@ export function streamRunAgentTeamOfAgentsFromJSON(
2134
1875
  }
2135
1876
 
2136
1877
  /** @internal */
2137
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
1878
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
2138
1879
  z.ZodNativeEnum<
2139
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
1880
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
2140
1881
  > = z.nativeEnum(
2141
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type,
1882
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
2142
1883
  );
2143
1884
 
2144
1885
  /** @internal */
2145
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
1886
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
2146
1887
  z.ZodNativeEnum<
2147
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
1888
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
2148
1889
  > =
2149
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1890
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
2150
1891
 
2151
1892
  /**
2152
1893
  * @internal
2153
1894
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2154
1895
  */
2155
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$ {
2156
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
1896
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
1897
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
2157
1898
  export const inboundSchema =
2158
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
2159
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
1899
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1900
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
2160
1901
  export const outboundSchema =
2161
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
1902
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
2162
1903
  }
2163
1904
 
2164
1905
  /** @internal */
2165
- export const StreamRunAgentRunAgentRequestToolFunction$inboundSchema: z.ZodType<
2166
- StreamRunAgentRunAgentRequestToolFunction,
1906
+ export const StreamRunAgentAgentToolInputRunFunction$inboundSchema: z.ZodType<
1907
+ StreamRunAgentAgentToolInputRunFunction,
2167
1908
  z.ZodTypeDef,
2168
1909
  unknown
2169
1910
  > = z.object({
@@ -2174,7 +1915,7 @@ export const StreamRunAgentRunAgentRequestToolFunction$inboundSchema: z.ZodType<
2174
1915
  });
2175
1916
 
2176
1917
  /** @internal */
2177
- export type StreamRunAgentRunAgentRequestToolFunction$Outbound = {
1918
+ export type StreamRunAgentAgentToolInputRunFunction$Outbound = {
2178
1919
  name: string;
2179
1920
  description?: string | undefined;
2180
1921
  strict?: boolean | undefined;
@@ -2182,76 +1923,73 @@ export type StreamRunAgentRunAgentRequestToolFunction$Outbound = {
2182
1923
  };
2183
1924
 
2184
1925
  /** @internal */
2185
- export const StreamRunAgentRunAgentRequestToolFunction$outboundSchema:
2186
- z.ZodType<
2187
- StreamRunAgentRunAgentRequestToolFunction$Outbound,
2188
- z.ZodTypeDef,
2189
- StreamRunAgentRunAgentRequestToolFunction
2190
- > = z.object({
2191
- name: z.string(),
2192
- description: z.string().optional(),
2193
- strict: z.boolean().optional(),
2194
- parameters: z.record(z.any()).optional(),
2195
- });
1926
+ export const StreamRunAgentAgentToolInputRunFunction$outboundSchema: z.ZodType<
1927
+ StreamRunAgentAgentToolInputRunFunction$Outbound,
1928
+ z.ZodTypeDef,
1929
+ StreamRunAgentAgentToolInputRunFunction
1930
+ > = z.object({
1931
+ name: z.string(),
1932
+ description: z.string().optional(),
1933
+ strict: z.boolean().optional(),
1934
+ parameters: z.record(z.any()).optional(),
1935
+ });
2196
1936
 
2197
1937
  /**
2198
1938
  * @internal
2199
1939
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2200
1940
  */
2201
- export namespace StreamRunAgentRunAgentRequestToolFunction$ {
2202
- /** @deprecated use `StreamRunAgentRunAgentRequestToolFunction$inboundSchema` instead. */
1941
+ export namespace StreamRunAgentAgentToolInputRunFunction$ {
1942
+ /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$inboundSchema` instead. */
2203
1943
  export const inboundSchema =
2204
- StreamRunAgentRunAgentRequestToolFunction$inboundSchema;
2205
- /** @deprecated use `StreamRunAgentRunAgentRequestToolFunction$outboundSchema` instead. */
1944
+ StreamRunAgentAgentToolInputRunFunction$inboundSchema;
1945
+ /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$outboundSchema` instead. */
2206
1946
  export const outboundSchema =
2207
- StreamRunAgentRunAgentRequestToolFunction$outboundSchema;
2208
- /** @deprecated use `StreamRunAgentRunAgentRequestToolFunction$Outbound` instead. */
2209
- export type Outbound = StreamRunAgentRunAgentRequestToolFunction$Outbound;
1947
+ StreamRunAgentAgentToolInputRunFunction$outboundSchema;
1948
+ /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$Outbound` instead. */
1949
+ export type Outbound = StreamRunAgentAgentToolInputRunFunction$Outbound;
2210
1950
  }
2211
1951
 
2212
- export function streamRunAgentRunAgentRequestToolFunctionToJSON(
2213
- streamRunAgentRunAgentRequestToolFunction:
2214
- StreamRunAgentRunAgentRequestToolFunction,
1952
+ export function streamRunAgentAgentToolInputRunFunctionToJSON(
1953
+ streamRunAgentAgentToolInputRunFunction:
1954
+ StreamRunAgentAgentToolInputRunFunction,
2215
1955
  ): string {
2216
1956
  return JSON.stringify(
2217
- StreamRunAgentRunAgentRequestToolFunction$outboundSchema.parse(
2218
- streamRunAgentRunAgentRequestToolFunction,
1957
+ StreamRunAgentAgentToolInputRunFunction$outboundSchema.parse(
1958
+ streamRunAgentAgentToolInputRunFunction,
2219
1959
  ),
2220
1960
  );
2221
1961
  }
2222
1962
 
2223
- export function streamRunAgentRunAgentRequestToolFunctionFromJSON(
1963
+ export function streamRunAgentAgentToolInputRunFunctionFromJSON(
2224
1964
  jsonString: string,
2225
1965
  ): SafeParseResult<
2226
- StreamRunAgentRunAgentRequestToolFunction,
1966
+ StreamRunAgentAgentToolInputRunFunction,
2227
1967
  SDKValidationError
2228
1968
  > {
2229
1969
  return safeParse(
2230
1970
  jsonString,
2231
1971
  (x) =>
2232
- StreamRunAgentRunAgentRequestToolFunction$inboundSchema.parse(
1972
+ StreamRunAgentAgentToolInputRunFunction$inboundSchema.parse(
2233
1973
  JSON.parse(x),
2234
1974
  ),
2235
- `Failed to parse 'StreamRunAgentRunAgentRequestToolFunction' from JSON`,
1975
+ `Failed to parse 'StreamRunAgentAgentToolInputRunFunction' from JSON`,
2236
1976
  );
2237
1977
  }
2238
1978
 
2239
1979
  /** @internal */
2240
- export const RunAgentRequestToolFunctionTool$inboundSchema: z.ZodType<
2241
- RunAgentRequestToolFunctionTool,
1980
+ export const AgentToolInputRunFunctionToolRun$inboundSchema: z.ZodType<
1981
+ AgentToolInputRunFunctionToolRun,
2242
1982
  z.ZodTypeDef,
2243
1983
  unknown
2244
1984
  > = z.object({
2245
1985
  type:
2246
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
2247
- _id: z.string().optional(),
1986
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
2248
1987
  key: z.string(),
1988
+ _id: z.string().optional(),
2249
1989
  display_name: z.string().optional(),
2250
1990
  description: z.string().optional(),
1991
+ function: z.lazy(() => StreamRunAgentAgentToolInputRunFunction$inboundSchema),
2251
1992
  requires_approval: z.boolean().default(false),
2252
- function: z.lazy(() =>
2253
- StreamRunAgentRunAgentRequestToolFunction$inboundSchema
2254
- ),
2255
1993
  }).transform((v) => {
2256
1994
  return remap$(v, {
2257
1995
  "_id": "id",
@@ -2261,32 +1999,32 @@ export const RunAgentRequestToolFunctionTool$inboundSchema: z.ZodType<
2261
1999
  });
2262
2000
 
2263
2001
  /** @internal */
2264
- export type RunAgentRequestToolFunctionTool$Outbound = {
2002
+ export type AgentToolInputRunFunctionToolRun$Outbound = {
2265
2003
  type: string;
2266
- _id?: string | undefined;
2267
2004
  key: string;
2005
+ _id?: string | undefined;
2268
2006
  display_name?: string | undefined;
2269
2007
  description?: string | undefined;
2008
+ function: StreamRunAgentAgentToolInputRunFunction$Outbound;
2270
2009
  requires_approval: boolean;
2271
- function: StreamRunAgentRunAgentRequestToolFunction$Outbound;
2272
2010
  };
2273
2011
 
2274
2012
  /** @internal */
2275
- export const RunAgentRequestToolFunctionTool$outboundSchema: z.ZodType<
2276
- RunAgentRequestToolFunctionTool$Outbound,
2013
+ export const AgentToolInputRunFunctionToolRun$outboundSchema: z.ZodType<
2014
+ AgentToolInputRunFunctionToolRun$Outbound,
2277
2015
  z.ZodTypeDef,
2278
- RunAgentRequestToolFunctionTool
2016
+ AgentToolInputRunFunctionToolRun
2279
2017
  > = z.object({
2280
2018
  type:
2281
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
2282
- id: z.string().optional(),
2019
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
2283
2020
  key: z.string(),
2021
+ id: z.string().optional(),
2284
2022
  displayName: z.string().optional(),
2285
2023
  description: z.string().optional(),
2286
- requiresApproval: z.boolean().default(false),
2287
2024
  function: z.lazy(() =>
2288
- StreamRunAgentRunAgentRequestToolFunction$outboundSchema
2025
+ StreamRunAgentAgentToolInputRunFunction$outboundSchema
2289
2026
  ),
2027
+ requiresApproval: z.boolean().default(false),
2290
2028
  }).transform((v) => {
2291
2029
  return remap$(v, {
2292
2030
  id: "_id",
@@ -2299,110 +2037,110 @@ export const RunAgentRequestToolFunctionTool$outboundSchema: z.ZodType<
2299
2037
  * @internal
2300
2038
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2301
2039
  */
2302
- export namespace RunAgentRequestToolFunctionTool$ {
2303
- /** @deprecated use `RunAgentRequestToolFunctionTool$inboundSchema` instead. */
2304
- export const inboundSchema = RunAgentRequestToolFunctionTool$inboundSchema;
2305
- /** @deprecated use `RunAgentRequestToolFunctionTool$outboundSchema` instead. */
2306
- export const outboundSchema = RunAgentRequestToolFunctionTool$outboundSchema;
2307
- /** @deprecated use `RunAgentRequestToolFunctionTool$Outbound` instead. */
2308
- export type Outbound = RunAgentRequestToolFunctionTool$Outbound;
2040
+ export namespace AgentToolInputRunFunctionToolRun$ {
2041
+ /** @deprecated use `AgentToolInputRunFunctionToolRun$inboundSchema` instead. */
2042
+ export const inboundSchema = AgentToolInputRunFunctionToolRun$inboundSchema;
2043
+ /** @deprecated use `AgentToolInputRunFunctionToolRun$outboundSchema` instead. */
2044
+ export const outboundSchema = AgentToolInputRunFunctionToolRun$outboundSchema;
2045
+ /** @deprecated use `AgentToolInputRunFunctionToolRun$Outbound` instead. */
2046
+ export type Outbound = AgentToolInputRunFunctionToolRun$Outbound;
2309
2047
  }
2310
2048
 
2311
- export function runAgentRequestToolFunctionToolToJSON(
2312
- runAgentRequestToolFunctionTool: RunAgentRequestToolFunctionTool,
2049
+ export function agentToolInputRunFunctionToolRunToJSON(
2050
+ agentToolInputRunFunctionToolRun: AgentToolInputRunFunctionToolRun,
2313
2051
  ): string {
2314
2052
  return JSON.stringify(
2315
- RunAgentRequestToolFunctionTool$outboundSchema.parse(
2316
- runAgentRequestToolFunctionTool,
2053
+ AgentToolInputRunFunctionToolRun$outboundSchema.parse(
2054
+ agentToolInputRunFunctionToolRun,
2317
2055
  ),
2318
2056
  );
2319
2057
  }
2320
2058
 
2321
- export function runAgentRequestToolFunctionToolFromJSON(
2059
+ export function agentToolInputRunFunctionToolRunFromJSON(
2322
2060
  jsonString: string,
2323
- ): SafeParseResult<RunAgentRequestToolFunctionTool, SDKValidationError> {
2061
+ ): SafeParseResult<AgentToolInputRunFunctionToolRun, SDKValidationError> {
2324
2062
  return safeParse(
2325
2063
  jsonString,
2326
- (x) => RunAgentRequestToolFunctionTool$inboundSchema.parse(JSON.parse(x)),
2327
- `Failed to parse 'RunAgentRequestToolFunctionTool' from JSON`,
2064
+ (x) => AgentToolInputRunFunctionToolRun$inboundSchema.parse(JSON.parse(x)),
2065
+ `Failed to parse 'AgentToolInputRunFunctionToolRun' from JSON`,
2328
2066
  );
2329
2067
  }
2330
2068
 
2331
2069
  /** @internal */
2332
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
2070
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
2333
2071
  z.ZodNativeEnum<
2334
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
2072
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2335
2073
  > = z.nativeEnum(
2336
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type,
2074
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
2337
2075
  );
2338
2076
 
2339
2077
  /** @internal */
2340
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
2078
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
2341
2079
  z.ZodNativeEnum<
2342
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
2080
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2343
2081
  > =
2344
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2082
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2345
2083
 
2346
2084
  /**
2347
2085
  * @internal
2348
2086
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2349
2087
  */
2350
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$ {
2351
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
2088
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
2089
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
2352
2090
  export const inboundSchema =
2353
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2354
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
2091
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2092
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
2355
2093
  export const outboundSchema =
2356
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
2094
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
2357
2095
  }
2358
2096
 
2359
2097
  /** @internal */
2360
- export const RunAgentRequestToolLanguage$inboundSchema: z.ZodNativeEnum<
2361
- typeof RunAgentRequestToolLanguage
2362
- > = z.nativeEnum(RunAgentRequestToolLanguage);
2098
+ export const AgentToolInputRunLanguage$inboundSchema: z.ZodNativeEnum<
2099
+ typeof AgentToolInputRunLanguage
2100
+ > = z.nativeEnum(AgentToolInputRunLanguage);
2363
2101
 
2364
2102
  /** @internal */
2365
- export const RunAgentRequestToolLanguage$outboundSchema: z.ZodNativeEnum<
2366
- typeof RunAgentRequestToolLanguage
2367
- > = RunAgentRequestToolLanguage$inboundSchema;
2103
+ export const AgentToolInputRunLanguage$outboundSchema: z.ZodNativeEnum<
2104
+ typeof AgentToolInputRunLanguage
2105
+ > = AgentToolInputRunLanguage$inboundSchema;
2368
2106
 
2369
2107
  /**
2370
2108
  * @internal
2371
2109
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2372
2110
  */
2373
- export namespace RunAgentRequestToolLanguage$ {
2374
- /** @deprecated use `RunAgentRequestToolLanguage$inboundSchema` instead. */
2375
- export const inboundSchema = RunAgentRequestToolLanguage$inboundSchema;
2376
- /** @deprecated use `RunAgentRequestToolLanguage$outboundSchema` instead. */
2377
- export const outboundSchema = RunAgentRequestToolLanguage$outboundSchema;
2111
+ export namespace AgentToolInputRunLanguage$ {
2112
+ /** @deprecated use `AgentToolInputRunLanguage$inboundSchema` instead. */
2113
+ export const inboundSchema = AgentToolInputRunLanguage$inboundSchema;
2114
+ /** @deprecated use `AgentToolInputRunLanguage$outboundSchema` instead. */
2115
+ export const outboundSchema = AgentToolInputRunLanguage$outboundSchema;
2378
2116
  }
2379
2117
 
2380
2118
  /** @internal */
2381
- export const RunAgentRequestToolCodeTool$inboundSchema: z.ZodType<
2382
- RunAgentRequestToolCodeTool,
2119
+ export const AgentToolInputRunCodeTool$inboundSchema: z.ZodType<
2120
+ AgentToolInputRunCodeTool,
2383
2121
  z.ZodTypeDef,
2384
2122
  unknown
2385
2123
  > = z.object({
2386
2124
  parameters: z.record(z.any()).optional(),
2387
- language: RunAgentRequestToolLanguage$inboundSchema,
2125
+ language: AgentToolInputRunLanguage$inboundSchema,
2388
2126
  code: z.string(),
2389
2127
  });
2390
2128
 
2391
2129
  /** @internal */
2392
- export type RunAgentRequestToolCodeTool$Outbound = {
2130
+ export type AgentToolInputRunCodeTool$Outbound = {
2393
2131
  parameters?: { [k: string]: any } | undefined;
2394
2132
  language: string;
2395
2133
  code: string;
2396
2134
  };
2397
2135
 
2398
2136
  /** @internal */
2399
- export const RunAgentRequestToolCodeTool$outboundSchema: z.ZodType<
2400
- RunAgentRequestToolCodeTool$Outbound,
2137
+ export const AgentToolInputRunCodeTool$outboundSchema: z.ZodType<
2138
+ AgentToolInputRunCodeTool$Outbound,
2401
2139
  z.ZodTypeDef,
2402
- RunAgentRequestToolCodeTool
2140
+ AgentToolInputRunCodeTool
2403
2141
  > = z.object({
2404
2142
  parameters: z.record(z.any()).optional(),
2405
- language: RunAgentRequestToolLanguage$outboundSchema,
2143
+ language: AgentToolInputRunLanguage$outboundSchema,
2406
2144
  code: z.string(),
2407
2145
  });
2408
2146
 
@@ -2410,88 +2148,86 @@ export const RunAgentRequestToolCodeTool$outboundSchema: z.ZodType<
2410
2148
  * @internal
2411
2149
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2412
2150
  */
2413
- export namespace RunAgentRequestToolCodeTool$ {
2414
- /** @deprecated use `RunAgentRequestToolCodeTool$inboundSchema` instead. */
2415
- export const inboundSchema = RunAgentRequestToolCodeTool$inboundSchema;
2416
- /** @deprecated use `RunAgentRequestToolCodeTool$outboundSchema` instead. */
2417
- export const outboundSchema = RunAgentRequestToolCodeTool$outboundSchema;
2418
- /** @deprecated use `RunAgentRequestToolCodeTool$Outbound` instead. */
2419
- export type Outbound = RunAgentRequestToolCodeTool$Outbound;
2151
+ export namespace AgentToolInputRunCodeTool$ {
2152
+ /** @deprecated use `AgentToolInputRunCodeTool$inboundSchema` instead. */
2153
+ export const inboundSchema = AgentToolInputRunCodeTool$inboundSchema;
2154
+ /** @deprecated use `AgentToolInputRunCodeTool$outboundSchema` instead. */
2155
+ export const outboundSchema = AgentToolInputRunCodeTool$outboundSchema;
2156
+ /** @deprecated use `AgentToolInputRunCodeTool$Outbound` instead. */
2157
+ export type Outbound = AgentToolInputRunCodeTool$Outbound;
2420
2158
  }
2421
2159
 
2422
- export function runAgentRequestToolCodeToolToJSON(
2423
- runAgentRequestToolCodeTool: RunAgentRequestToolCodeTool,
2160
+ export function agentToolInputRunCodeToolToJSON(
2161
+ agentToolInputRunCodeTool: AgentToolInputRunCodeTool,
2424
2162
  ): string {
2425
2163
  return JSON.stringify(
2426
- RunAgentRequestToolCodeTool$outboundSchema.parse(
2427
- runAgentRequestToolCodeTool,
2428
- ),
2164
+ AgentToolInputRunCodeTool$outboundSchema.parse(agentToolInputRunCodeTool),
2429
2165
  );
2430
2166
  }
2431
2167
 
2432
- export function runAgentRequestToolCodeToolFromJSON(
2168
+ export function agentToolInputRunCodeToolFromJSON(
2433
2169
  jsonString: string,
2434
- ): SafeParseResult<RunAgentRequestToolCodeTool, SDKValidationError> {
2170
+ ): SafeParseResult<AgentToolInputRunCodeTool, SDKValidationError> {
2435
2171
  return safeParse(
2436
2172
  jsonString,
2437
- (x) => RunAgentRequestToolCodeTool$inboundSchema.parse(JSON.parse(x)),
2438
- `Failed to parse 'RunAgentRequestToolCodeTool' from JSON`,
2173
+ (x) => AgentToolInputRunCodeTool$inboundSchema.parse(JSON.parse(x)),
2174
+ `Failed to parse 'AgentToolInputRunCodeTool' from JSON`,
2439
2175
  );
2440
2176
  }
2441
2177
 
2442
2178
  /** @internal */
2443
- export const RunAgentRequestToolCodeExecutionTool$inboundSchema: z.ZodType<
2444
- RunAgentRequestToolCodeExecutionTool,
2179
+ export const AgentToolInputRunCodeToolRun$inboundSchema: z.ZodType<
2180
+ AgentToolInputRunCodeToolRun,
2445
2181
  z.ZodTypeDef,
2446
2182
  unknown
2447
2183
  > = z.object({
2448
- key: z.string(),
2449
- display_name: z.string(),
2450
- description: z.string(),
2451
2184
  type:
2452
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
2453
- code_tool: z.lazy(() => RunAgentRequestToolCodeTool$inboundSchema),
2185
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
2186
+ key: z.string(),
2454
2187
  _id: z.string().optional(),
2188
+ display_name: z.string().optional(),
2189
+ description: z.string(),
2190
+ code_tool: z.lazy(() => AgentToolInputRunCodeTool$inboundSchema),
2455
2191
  requires_approval: z.boolean().default(false),
2456
2192
  }).transform((v) => {
2457
2193
  return remap$(v, {
2194
+ "_id": "id",
2458
2195
  "display_name": "displayName",
2459
2196
  "code_tool": "codeTool",
2460
- "_id": "id",
2461
2197
  "requires_approval": "requiresApproval",
2462
2198
  });
2463
2199
  });
2464
2200
 
2465
2201
  /** @internal */
2466
- export type RunAgentRequestToolCodeExecutionTool$Outbound = {
2467
- key: string;
2468
- display_name: string;
2469
- description: string;
2202
+ export type AgentToolInputRunCodeToolRun$Outbound = {
2470
2203
  type: string;
2471
- code_tool: RunAgentRequestToolCodeTool$Outbound;
2204
+ key: string;
2472
2205
  _id?: string | undefined;
2206
+ display_name?: string | undefined;
2207
+ description: string;
2208
+ code_tool: AgentToolInputRunCodeTool$Outbound;
2473
2209
  requires_approval: boolean;
2474
2210
  };
2475
2211
 
2476
2212
  /** @internal */
2477
- export const RunAgentRequestToolCodeExecutionTool$outboundSchema: z.ZodType<
2478
- RunAgentRequestToolCodeExecutionTool$Outbound,
2213
+ export const AgentToolInputRunCodeToolRun$outboundSchema: z.ZodType<
2214
+ AgentToolInputRunCodeToolRun$Outbound,
2479
2215
  z.ZodTypeDef,
2480
- RunAgentRequestToolCodeExecutionTool
2216
+ AgentToolInputRunCodeToolRun
2481
2217
  > = z.object({
2482
- key: z.string(),
2483
- displayName: z.string(),
2484
- description: z.string(),
2485
2218
  type:
2486
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
2487
- codeTool: z.lazy(() => RunAgentRequestToolCodeTool$outboundSchema),
2219
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
2220
+ key: z.string(),
2488
2221
  id: z.string().optional(),
2222
+ displayName: z.string().optional(),
2223
+ description: z.string(),
2224
+ codeTool: z.lazy(() => AgentToolInputRunCodeTool$outboundSchema),
2489
2225
  requiresApproval: z.boolean().default(false),
2490
2226
  }).transform((v) => {
2491
2227
  return remap$(v, {
2228
+ id: "_id",
2492
2229
  displayName: "display_name",
2493
2230
  codeTool: "code_tool",
2494
- id: "_id",
2495
2231
  requiresApproval: "requires_approval",
2496
2232
  });
2497
2233
  });
@@ -2500,101 +2236,98 @@ export const RunAgentRequestToolCodeExecutionTool$outboundSchema: z.ZodType<
2500
2236
  * @internal
2501
2237
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2502
2238
  */
2503
- export namespace RunAgentRequestToolCodeExecutionTool$ {
2504
- /** @deprecated use `RunAgentRequestToolCodeExecutionTool$inboundSchema` instead. */
2505
- export const inboundSchema =
2506
- RunAgentRequestToolCodeExecutionTool$inboundSchema;
2507
- /** @deprecated use `RunAgentRequestToolCodeExecutionTool$outboundSchema` instead. */
2508
- export const outboundSchema =
2509
- RunAgentRequestToolCodeExecutionTool$outboundSchema;
2510
- /** @deprecated use `RunAgentRequestToolCodeExecutionTool$Outbound` instead. */
2511
- export type Outbound = RunAgentRequestToolCodeExecutionTool$Outbound;
2239
+ export namespace AgentToolInputRunCodeToolRun$ {
2240
+ /** @deprecated use `AgentToolInputRunCodeToolRun$inboundSchema` instead. */
2241
+ export const inboundSchema = AgentToolInputRunCodeToolRun$inboundSchema;
2242
+ /** @deprecated use `AgentToolInputRunCodeToolRun$outboundSchema` instead. */
2243
+ export const outboundSchema = AgentToolInputRunCodeToolRun$outboundSchema;
2244
+ /** @deprecated use `AgentToolInputRunCodeToolRun$Outbound` instead. */
2245
+ export type Outbound = AgentToolInputRunCodeToolRun$Outbound;
2512
2246
  }
2513
2247
 
2514
- export function runAgentRequestToolCodeExecutionToolToJSON(
2515
- runAgentRequestToolCodeExecutionTool: RunAgentRequestToolCodeExecutionTool,
2248
+ export function agentToolInputRunCodeToolRunToJSON(
2249
+ agentToolInputRunCodeToolRun: AgentToolInputRunCodeToolRun,
2516
2250
  ): string {
2517
2251
  return JSON.stringify(
2518
- RunAgentRequestToolCodeExecutionTool$outboundSchema.parse(
2519
- runAgentRequestToolCodeExecutionTool,
2252
+ AgentToolInputRunCodeToolRun$outboundSchema.parse(
2253
+ agentToolInputRunCodeToolRun,
2520
2254
  ),
2521
2255
  );
2522
2256
  }
2523
2257
 
2524
- export function runAgentRequestToolCodeExecutionToolFromJSON(
2258
+ export function agentToolInputRunCodeToolRunFromJSON(
2525
2259
  jsonString: string,
2526
- ): SafeParseResult<RunAgentRequestToolCodeExecutionTool, SDKValidationError> {
2260
+ ): SafeParseResult<AgentToolInputRunCodeToolRun, SDKValidationError> {
2527
2261
  return safeParse(
2528
2262
  jsonString,
2529
- (x) =>
2530
- RunAgentRequestToolCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
2531
- `Failed to parse 'RunAgentRequestToolCodeExecutionTool' from JSON`,
2263
+ (x) => AgentToolInputRunCodeToolRun$inboundSchema.parse(JSON.parse(x)),
2264
+ `Failed to parse 'AgentToolInputRunCodeToolRun' from JSON`,
2532
2265
  );
2533
2266
  }
2534
2267
 
2535
2268
  /** @internal */
2536
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
2269
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
2537
2270
  z.ZodNativeEnum<
2538
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
2271
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2539
2272
  > = z.nativeEnum(
2540
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type,
2273
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
2541
2274
  );
2542
2275
 
2543
2276
  /** @internal */
2544
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
2277
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
2545
2278
  z.ZodNativeEnum<
2546
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
2279
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2547
2280
  > =
2548
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2281
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2549
2282
 
2550
2283
  /**
2551
2284
  * @internal
2552
2285
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2553
2286
  */
2554
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$ {
2555
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
2287
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
2288
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
2556
2289
  export const inboundSchema =
2557
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2558
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
2290
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2291
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
2559
2292
  export const outboundSchema =
2560
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
2293
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
2561
2294
  }
2562
2295
 
2563
2296
  /** @internal */
2564
- export const RunAgentRequestToolMethod$inboundSchema: z.ZodNativeEnum<
2565
- typeof RunAgentRequestToolMethod
2566
- > = z.nativeEnum(RunAgentRequestToolMethod);
2297
+ export const AgentToolInputRunMethod$inboundSchema: z.ZodNativeEnum<
2298
+ typeof AgentToolInputRunMethod
2299
+ > = z.nativeEnum(AgentToolInputRunMethod);
2567
2300
 
2568
2301
  /** @internal */
2569
- export const RunAgentRequestToolMethod$outboundSchema: z.ZodNativeEnum<
2570
- typeof RunAgentRequestToolMethod
2571
- > = RunAgentRequestToolMethod$inboundSchema;
2302
+ export const AgentToolInputRunMethod$outboundSchema: z.ZodNativeEnum<
2303
+ typeof AgentToolInputRunMethod
2304
+ > = AgentToolInputRunMethod$inboundSchema;
2572
2305
 
2573
2306
  /**
2574
2307
  * @internal
2575
2308
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2576
2309
  */
2577
- export namespace RunAgentRequestToolMethod$ {
2578
- /** @deprecated use `RunAgentRequestToolMethod$inboundSchema` instead. */
2579
- export const inboundSchema = RunAgentRequestToolMethod$inboundSchema;
2580
- /** @deprecated use `RunAgentRequestToolMethod$outboundSchema` instead. */
2581
- export const outboundSchema = RunAgentRequestToolMethod$outboundSchema;
2310
+ export namespace AgentToolInputRunMethod$ {
2311
+ /** @deprecated use `AgentToolInputRunMethod$inboundSchema` instead. */
2312
+ export const inboundSchema = AgentToolInputRunMethod$inboundSchema;
2313
+ /** @deprecated use `AgentToolInputRunMethod$outboundSchema` instead. */
2314
+ export const outboundSchema = AgentToolInputRunMethod$outboundSchema;
2582
2315
  }
2583
2316
 
2584
2317
  /** @internal */
2585
- export const RunAgentRequestToolBlueprint$inboundSchema: z.ZodType<
2586
- RunAgentRequestToolBlueprint,
2318
+ export const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<
2319
+ AgentToolInputRunBlueprint,
2587
2320
  z.ZodTypeDef,
2588
2321
  unknown
2589
2322
  > = z.object({
2590
2323
  url: z.string(),
2591
- method: RunAgentRequestToolMethod$inboundSchema,
2324
+ method: AgentToolInputRunMethod$inboundSchema,
2592
2325
  headers: z.record(z.string()).optional(),
2593
2326
  body: z.record(z.any()).optional(),
2594
2327
  });
2595
2328
 
2596
2329
  /** @internal */
2597
- export type RunAgentRequestToolBlueprint$Outbound = {
2330
+ export type AgentToolInputRunBlueprint$Outbound = {
2598
2331
  url: string;
2599
2332
  method: string;
2600
2333
  headers?: { [k: string]: string } | undefined;
@@ -2602,13 +2335,13 @@ export type RunAgentRequestToolBlueprint$Outbound = {
2602
2335
  };
2603
2336
 
2604
2337
  /** @internal */
2605
- export const RunAgentRequestToolBlueprint$outboundSchema: z.ZodType<
2606
- RunAgentRequestToolBlueprint$Outbound,
2338
+ export const AgentToolInputRunBlueprint$outboundSchema: z.ZodType<
2339
+ AgentToolInputRunBlueprint$Outbound,
2607
2340
  z.ZodTypeDef,
2608
- RunAgentRequestToolBlueprint
2341
+ AgentToolInputRunBlueprint
2609
2342
  > = z.object({
2610
2343
  url: z.string(),
2611
- method: RunAgentRequestToolMethod$outboundSchema,
2344
+ method: AgentToolInputRunMethod$outboundSchema,
2612
2345
  headers: z.record(z.string()).optional(),
2613
2346
  body: z.record(z.any()).optional(),
2614
2347
  });
@@ -2617,124 +2350,119 @@ export const RunAgentRequestToolBlueprint$outboundSchema: z.ZodType<
2617
2350
  * @internal
2618
2351
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2619
2352
  */
2620
- export namespace RunAgentRequestToolBlueprint$ {
2621
- /** @deprecated use `RunAgentRequestToolBlueprint$inboundSchema` instead. */
2622
- export const inboundSchema = RunAgentRequestToolBlueprint$inboundSchema;
2623
- /** @deprecated use `RunAgentRequestToolBlueprint$outboundSchema` instead. */
2624
- export const outboundSchema = RunAgentRequestToolBlueprint$outboundSchema;
2625
- /** @deprecated use `RunAgentRequestToolBlueprint$Outbound` instead. */
2626
- export type Outbound = RunAgentRequestToolBlueprint$Outbound;
2353
+ export namespace AgentToolInputRunBlueprint$ {
2354
+ /** @deprecated use `AgentToolInputRunBlueprint$inboundSchema` instead. */
2355
+ export const inboundSchema = AgentToolInputRunBlueprint$inboundSchema;
2356
+ /** @deprecated use `AgentToolInputRunBlueprint$outboundSchema` instead. */
2357
+ export const outboundSchema = AgentToolInputRunBlueprint$outboundSchema;
2358
+ /** @deprecated use `AgentToolInputRunBlueprint$Outbound` instead. */
2359
+ export type Outbound = AgentToolInputRunBlueprint$Outbound;
2627
2360
  }
2628
2361
 
2629
- export function runAgentRequestToolBlueprintToJSON(
2630
- runAgentRequestToolBlueprint: RunAgentRequestToolBlueprint,
2362
+ export function agentToolInputRunBlueprintToJSON(
2363
+ agentToolInputRunBlueprint: AgentToolInputRunBlueprint,
2631
2364
  ): string {
2632
2365
  return JSON.stringify(
2633
- RunAgentRequestToolBlueprint$outboundSchema.parse(
2634
- runAgentRequestToolBlueprint,
2635
- ),
2366
+ AgentToolInputRunBlueprint$outboundSchema.parse(agentToolInputRunBlueprint),
2636
2367
  );
2637
2368
  }
2638
2369
 
2639
- export function runAgentRequestToolBlueprintFromJSON(
2370
+ export function agentToolInputRunBlueprintFromJSON(
2640
2371
  jsonString: string,
2641
- ): SafeParseResult<RunAgentRequestToolBlueprint, SDKValidationError> {
2372
+ ): SafeParseResult<AgentToolInputRunBlueprint, SDKValidationError> {
2642
2373
  return safeParse(
2643
2374
  jsonString,
2644
- (x) => RunAgentRequestToolBlueprint$inboundSchema.parse(JSON.parse(x)),
2645
- `Failed to parse 'RunAgentRequestToolBlueprint' from JSON`,
2375
+ (x) => AgentToolInputRunBlueprint$inboundSchema.parse(JSON.parse(x)),
2376
+ `Failed to parse 'AgentToolInputRunBlueprint' from JSON`,
2646
2377
  );
2647
2378
  }
2648
2379
 
2649
2380
  /** @internal */
2650
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
2381
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
2651
2382
  z.ZodNativeEnum<
2652
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
2383
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2653
2384
  > = z.nativeEnum(
2654
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType,
2385
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
2655
2386
  );
2656
2387
 
2657
2388
  /** @internal */
2658
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
2389
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
2659
2390
  z.ZodNativeEnum<
2660
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
2391
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2661
2392
  > =
2662
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2393
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2663
2394
 
2664
2395
  /**
2665
2396
  * @internal
2666
2397
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2667
2398
  */
2668
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$ {
2669
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
2399
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
2400
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
2670
2401
  export const inboundSchema =
2671
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2672
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
2402
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2403
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
2673
2404
  export const outboundSchema =
2674
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
2405
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
2675
2406
  }
2676
2407
 
2677
2408
  /** @internal */
2678
- export const RunAgentRequestToolDefaultValue$inboundSchema: z.ZodType<
2679
- RunAgentRequestToolDefaultValue,
2409
+ export const AgentToolInputRunDefaultValue$inboundSchema: z.ZodType<
2410
+ AgentToolInputRunDefaultValue,
2680
2411
  z.ZodTypeDef,
2681
2412
  unknown
2682
2413
  > = z.union([z.string(), z.number(), z.boolean()]);
2683
2414
 
2684
2415
  /** @internal */
2685
- export type RunAgentRequestToolDefaultValue$Outbound =
2686
- | string
2687
- | number
2688
- | boolean;
2416
+ export type AgentToolInputRunDefaultValue$Outbound = string | number | boolean;
2689
2417
 
2690
2418
  /** @internal */
2691
- export const RunAgentRequestToolDefaultValue$outboundSchema: z.ZodType<
2692
- RunAgentRequestToolDefaultValue$Outbound,
2419
+ export const AgentToolInputRunDefaultValue$outboundSchema: z.ZodType<
2420
+ AgentToolInputRunDefaultValue$Outbound,
2693
2421
  z.ZodTypeDef,
2694
- RunAgentRequestToolDefaultValue
2422
+ AgentToolInputRunDefaultValue
2695
2423
  > = z.union([z.string(), z.number(), z.boolean()]);
2696
2424
 
2697
2425
  /**
2698
2426
  * @internal
2699
2427
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2700
2428
  */
2701
- export namespace RunAgentRequestToolDefaultValue$ {
2702
- /** @deprecated use `RunAgentRequestToolDefaultValue$inboundSchema` instead. */
2703
- export const inboundSchema = RunAgentRequestToolDefaultValue$inboundSchema;
2704
- /** @deprecated use `RunAgentRequestToolDefaultValue$outboundSchema` instead. */
2705
- export const outboundSchema = RunAgentRequestToolDefaultValue$outboundSchema;
2706
- /** @deprecated use `RunAgentRequestToolDefaultValue$Outbound` instead. */
2707
- export type Outbound = RunAgentRequestToolDefaultValue$Outbound;
2429
+ export namespace AgentToolInputRunDefaultValue$ {
2430
+ /** @deprecated use `AgentToolInputRunDefaultValue$inboundSchema` instead. */
2431
+ export const inboundSchema = AgentToolInputRunDefaultValue$inboundSchema;
2432
+ /** @deprecated use `AgentToolInputRunDefaultValue$outboundSchema` instead. */
2433
+ export const outboundSchema = AgentToolInputRunDefaultValue$outboundSchema;
2434
+ /** @deprecated use `AgentToolInputRunDefaultValue$Outbound` instead. */
2435
+ export type Outbound = AgentToolInputRunDefaultValue$Outbound;
2708
2436
  }
2709
2437
 
2710
- export function runAgentRequestToolDefaultValueToJSON(
2711
- runAgentRequestToolDefaultValue: RunAgentRequestToolDefaultValue,
2438
+ export function agentToolInputRunDefaultValueToJSON(
2439
+ agentToolInputRunDefaultValue: AgentToolInputRunDefaultValue,
2712
2440
  ): string {
2713
2441
  return JSON.stringify(
2714
- RunAgentRequestToolDefaultValue$outboundSchema.parse(
2715
- runAgentRequestToolDefaultValue,
2442
+ AgentToolInputRunDefaultValue$outboundSchema.parse(
2443
+ agentToolInputRunDefaultValue,
2716
2444
  ),
2717
2445
  );
2718
2446
  }
2719
2447
 
2720
- export function runAgentRequestToolDefaultValueFromJSON(
2448
+ export function agentToolInputRunDefaultValueFromJSON(
2721
2449
  jsonString: string,
2722
- ): SafeParseResult<RunAgentRequestToolDefaultValue, SDKValidationError> {
2450
+ ): SafeParseResult<AgentToolInputRunDefaultValue, SDKValidationError> {
2723
2451
  return safeParse(
2724
2452
  jsonString,
2725
- (x) => RunAgentRequestToolDefaultValue$inboundSchema.parse(JSON.parse(x)),
2726
- `Failed to parse 'RunAgentRequestToolDefaultValue' from JSON`,
2453
+ (x) => AgentToolInputRunDefaultValue$inboundSchema.parse(JSON.parse(x)),
2454
+ `Failed to parse 'AgentToolInputRunDefaultValue' from JSON`,
2727
2455
  );
2728
2456
  }
2729
2457
 
2730
2458
  /** @internal */
2731
- export const RunAgentRequestToolArguments$inboundSchema: z.ZodType<
2732
- RunAgentRequestToolArguments,
2459
+ export const AgentToolInputRunArguments$inboundSchema: z.ZodType<
2460
+ AgentToolInputRunArguments,
2733
2461
  z.ZodTypeDef,
2734
2462
  unknown
2735
2463
  > = z.object({
2736
2464
  type:
2737
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
2465
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
2738
2466
  description: z.string(),
2739
2467
  send_to_model: z.boolean().default(true),
2740
2468
  default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2746,7 +2474,7 @@ export const RunAgentRequestToolArguments$inboundSchema: z.ZodType<
2746
2474
  });
2747
2475
 
2748
2476
  /** @internal */
2749
- export type RunAgentRequestToolArguments$Outbound = {
2477
+ export type AgentToolInputRunArguments$Outbound = {
2750
2478
  type: string;
2751
2479
  description: string;
2752
2480
  send_to_model: boolean;
@@ -2754,13 +2482,13 @@ export type RunAgentRequestToolArguments$Outbound = {
2754
2482
  };
2755
2483
 
2756
2484
  /** @internal */
2757
- export const RunAgentRequestToolArguments$outboundSchema: z.ZodType<
2758
- RunAgentRequestToolArguments$Outbound,
2485
+ export const AgentToolInputRunArguments$outboundSchema: z.ZodType<
2486
+ AgentToolInputRunArguments$Outbound,
2759
2487
  z.ZodTypeDef,
2760
- RunAgentRequestToolArguments
2488
+ AgentToolInputRunArguments
2761
2489
  > = z.object({
2762
2490
  type:
2763
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
2491
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
2764
2492
  description: z.string(),
2765
2493
  sendToModel: z.boolean().default(true),
2766
2494
  defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2775,62 +2503,58 @@ export const RunAgentRequestToolArguments$outboundSchema: z.ZodType<
2775
2503
  * @internal
2776
2504
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2777
2505
  */
2778
- export namespace RunAgentRequestToolArguments$ {
2779
- /** @deprecated use `RunAgentRequestToolArguments$inboundSchema` instead. */
2780
- export const inboundSchema = RunAgentRequestToolArguments$inboundSchema;
2781
- /** @deprecated use `RunAgentRequestToolArguments$outboundSchema` instead. */
2782
- export const outboundSchema = RunAgentRequestToolArguments$outboundSchema;
2783
- /** @deprecated use `RunAgentRequestToolArguments$Outbound` instead. */
2784
- export type Outbound = RunAgentRequestToolArguments$Outbound;
2506
+ export namespace AgentToolInputRunArguments$ {
2507
+ /** @deprecated use `AgentToolInputRunArguments$inboundSchema` instead. */
2508
+ export const inboundSchema = AgentToolInputRunArguments$inboundSchema;
2509
+ /** @deprecated use `AgentToolInputRunArguments$outboundSchema` instead. */
2510
+ export const outboundSchema = AgentToolInputRunArguments$outboundSchema;
2511
+ /** @deprecated use `AgentToolInputRunArguments$Outbound` instead. */
2512
+ export type Outbound = AgentToolInputRunArguments$Outbound;
2785
2513
  }
2786
2514
 
2787
- export function runAgentRequestToolArgumentsToJSON(
2788
- runAgentRequestToolArguments: RunAgentRequestToolArguments,
2515
+ export function agentToolInputRunArgumentsToJSON(
2516
+ agentToolInputRunArguments: AgentToolInputRunArguments,
2789
2517
  ): string {
2790
2518
  return JSON.stringify(
2791
- RunAgentRequestToolArguments$outboundSchema.parse(
2792
- runAgentRequestToolArguments,
2793
- ),
2519
+ AgentToolInputRunArguments$outboundSchema.parse(agentToolInputRunArguments),
2794
2520
  );
2795
2521
  }
2796
2522
 
2797
- export function runAgentRequestToolArgumentsFromJSON(
2523
+ export function agentToolInputRunArgumentsFromJSON(
2798
2524
  jsonString: string,
2799
- ): SafeParseResult<RunAgentRequestToolArguments, SDKValidationError> {
2525
+ ): SafeParseResult<AgentToolInputRunArguments, SDKValidationError> {
2800
2526
  return safeParse(
2801
2527
  jsonString,
2802
- (x) => RunAgentRequestToolArguments$inboundSchema.parse(JSON.parse(x)),
2803
- `Failed to parse 'RunAgentRequestToolArguments' from JSON`,
2528
+ (x) => AgentToolInputRunArguments$inboundSchema.parse(JSON.parse(x)),
2529
+ `Failed to parse 'AgentToolInputRunArguments' from JSON`,
2804
2530
  );
2805
2531
  }
2806
2532
 
2807
2533
  /** @internal */
2808
- export const RunAgentRequestToolHttp$inboundSchema: z.ZodType<
2809
- RunAgentRequestToolHttp,
2534
+ export const AgentToolInputRunHttp$inboundSchema: z.ZodType<
2535
+ AgentToolInputRunHttp,
2810
2536
  z.ZodTypeDef,
2811
2537
  unknown
2812
2538
  > = z.object({
2813
- blueprint: z.lazy(() => RunAgentRequestToolBlueprint$inboundSchema),
2814
- arguments: z.record(z.lazy(() => RunAgentRequestToolArguments$inboundSchema))
2539
+ blueprint: z.lazy(() => AgentToolInputRunBlueprint$inboundSchema),
2540
+ arguments: z.record(z.lazy(() => AgentToolInputRunArguments$inboundSchema))
2815
2541
  .optional(),
2816
2542
  });
2817
2543
 
2818
2544
  /** @internal */
2819
- export type RunAgentRequestToolHttp$Outbound = {
2820
- blueprint: RunAgentRequestToolBlueprint$Outbound;
2821
- arguments?:
2822
- | { [k: string]: RunAgentRequestToolArguments$Outbound }
2823
- | undefined;
2545
+ export type AgentToolInputRunHttp$Outbound = {
2546
+ blueprint: AgentToolInputRunBlueprint$Outbound;
2547
+ arguments?: { [k: string]: AgentToolInputRunArguments$Outbound } | undefined;
2824
2548
  };
2825
2549
 
2826
2550
  /** @internal */
2827
- export const RunAgentRequestToolHttp$outboundSchema: z.ZodType<
2828
- RunAgentRequestToolHttp$Outbound,
2551
+ export const AgentToolInputRunHttp$outboundSchema: z.ZodType<
2552
+ AgentToolInputRunHttp$Outbound,
2829
2553
  z.ZodTypeDef,
2830
- RunAgentRequestToolHttp
2554
+ AgentToolInputRunHttp
2831
2555
  > = z.object({
2832
- blueprint: z.lazy(() => RunAgentRequestToolBlueprint$outboundSchema),
2833
- arguments: z.record(z.lazy(() => RunAgentRequestToolArguments$outboundSchema))
2556
+ blueprint: z.lazy(() => AgentToolInputRunBlueprint$outboundSchema),
2557
+ arguments: z.record(z.lazy(() => AgentToolInputRunArguments$outboundSchema))
2834
2558
  .optional(),
2835
2559
  });
2836
2560
 
@@ -2838,78 +2562,83 @@ export const RunAgentRequestToolHttp$outboundSchema: z.ZodType<
2838
2562
  * @internal
2839
2563
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2840
2564
  */
2841
- export namespace RunAgentRequestToolHttp$ {
2842
- /** @deprecated use `RunAgentRequestToolHttp$inboundSchema` instead. */
2843
- export const inboundSchema = RunAgentRequestToolHttp$inboundSchema;
2844
- /** @deprecated use `RunAgentRequestToolHttp$outboundSchema` instead. */
2845
- export const outboundSchema = RunAgentRequestToolHttp$outboundSchema;
2846
- /** @deprecated use `RunAgentRequestToolHttp$Outbound` instead. */
2847
- export type Outbound = RunAgentRequestToolHttp$Outbound;
2565
+ export namespace AgentToolInputRunHttp$ {
2566
+ /** @deprecated use `AgentToolInputRunHttp$inboundSchema` instead. */
2567
+ export const inboundSchema = AgentToolInputRunHttp$inboundSchema;
2568
+ /** @deprecated use `AgentToolInputRunHttp$outboundSchema` instead. */
2569
+ export const outboundSchema = AgentToolInputRunHttp$outboundSchema;
2570
+ /** @deprecated use `AgentToolInputRunHttp$Outbound` instead. */
2571
+ export type Outbound = AgentToolInputRunHttp$Outbound;
2848
2572
  }
2849
2573
 
2850
- export function runAgentRequestToolHttpToJSON(
2851
- runAgentRequestToolHttp: RunAgentRequestToolHttp,
2574
+ export function agentToolInputRunHttpToJSON(
2575
+ agentToolInputRunHttp: AgentToolInputRunHttp,
2852
2576
  ): string {
2853
2577
  return JSON.stringify(
2854
- RunAgentRequestToolHttp$outboundSchema.parse(runAgentRequestToolHttp),
2578
+ AgentToolInputRunHttp$outboundSchema.parse(agentToolInputRunHttp),
2855
2579
  );
2856
2580
  }
2857
2581
 
2858
- export function runAgentRequestToolHttpFromJSON(
2582
+ export function agentToolInputRunHttpFromJSON(
2859
2583
  jsonString: string,
2860
- ): SafeParseResult<RunAgentRequestToolHttp, SDKValidationError> {
2584
+ ): SafeParseResult<AgentToolInputRunHttp, SDKValidationError> {
2861
2585
  return safeParse(
2862
2586
  jsonString,
2863
- (x) => RunAgentRequestToolHttp$inboundSchema.parse(JSON.parse(x)),
2864
- `Failed to parse 'RunAgentRequestToolHttp' from JSON`,
2587
+ (x) => AgentToolInputRunHttp$inboundSchema.parse(JSON.parse(x)),
2588
+ `Failed to parse 'AgentToolInputRunHttp' from JSON`,
2865
2589
  );
2866
2590
  }
2867
2591
 
2868
2592
  /** @internal */
2869
- export const RunAgentRequestToolHTTPTool$inboundSchema: z.ZodType<
2870
- RunAgentRequestToolHTTPTool,
2593
+ export const AgentToolInputRunHTTPToolRun$inboundSchema: z.ZodType<
2594
+ AgentToolInputRunHTTPToolRun,
2871
2595
  z.ZodTypeDef,
2872
2596
  unknown
2873
2597
  > = z.object({
2598
+ type:
2599
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
2874
2600
  key: z.string(),
2875
- display_name: z.string(),
2601
+ _id: z.string().optional(),
2602
+ display_name: z.string().optional(),
2876
2603
  description: z.string(),
2877
- type:
2878
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
2879
- http: z.lazy(() => RunAgentRequestToolHttp$inboundSchema),
2604
+ http: z.lazy(() => AgentToolInputRunHttp$inboundSchema),
2880
2605
  requires_approval: z.boolean().default(false),
2881
2606
  }).transform((v) => {
2882
2607
  return remap$(v, {
2608
+ "_id": "id",
2883
2609
  "display_name": "displayName",
2884
2610
  "requires_approval": "requiresApproval",
2885
2611
  });
2886
2612
  });
2887
2613
 
2888
2614
  /** @internal */
2889
- export type RunAgentRequestToolHTTPTool$Outbound = {
2615
+ export type AgentToolInputRunHTTPToolRun$Outbound = {
2616
+ type: string;
2890
2617
  key: string;
2891
- display_name: string;
2618
+ _id?: string | undefined;
2619
+ display_name?: string | undefined;
2892
2620
  description: string;
2893
- type: string;
2894
- http: RunAgentRequestToolHttp$Outbound;
2621
+ http: AgentToolInputRunHttp$Outbound;
2895
2622
  requires_approval: boolean;
2896
2623
  };
2897
2624
 
2898
2625
  /** @internal */
2899
- export const RunAgentRequestToolHTTPTool$outboundSchema: z.ZodType<
2900
- RunAgentRequestToolHTTPTool$Outbound,
2626
+ export const AgentToolInputRunHTTPToolRun$outboundSchema: z.ZodType<
2627
+ AgentToolInputRunHTTPToolRun$Outbound,
2901
2628
  z.ZodTypeDef,
2902
- RunAgentRequestToolHTTPTool
2629
+ AgentToolInputRunHTTPToolRun
2903
2630
  > = z.object({
2631
+ type:
2632
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
2904
2633
  key: z.string(),
2905
- displayName: z.string(),
2634
+ id: z.string().optional(),
2635
+ displayName: z.string().optional(),
2906
2636
  description: z.string(),
2907
- type:
2908
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
2909
- http: z.lazy(() => RunAgentRequestToolHttp$outboundSchema),
2637
+ http: z.lazy(() => AgentToolInputRunHttp$outboundSchema),
2910
2638
  requiresApproval: z.boolean().default(false),
2911
2639
  }).transform((v) => {
2912
2640
  return remap$(v, {
2641
+ id: "_id",
2913
2642
  displayName: "display_name",
2914
2643
  requiresApproval: "requires_approval",
2915
2644
  });
@@ -2919,192 +2648,203 @@ export const RunAgentRequestToolHTTPTool$outboundSchema: z.ZodType<
2919
2648
  * @internal
2920
2649
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2921
2650
  */
2922
- export namespace RunAgentRequestToolHTTPTool$ {
2923
- /** @deprecated use `RunAgentRequestToolHTTPTool$inboundSchema` instead. */
2924
- export const inboundSchema = RunAgentRequestToolHTTPTool$inboundSchema;
2925
- /** @deprecated use `RunAgentRequestToolHTTPTool$outboundSchema` instead. */
2926
- export const outboundSchema = RunAgentRequestToolHTTPTool$outboundSchema;
2927
- /** @deprecated use `RunAgentRequestToolHTTPTool$Outbound` instead. */
2928
- export type Outbound = RunAgentRequestToolHTTPTool$Outbound;
2651
+ export namespace AgentToolInputRunHTTPToolRun$ {
2652
+ /** @deprecated use `AgentToolInputRunHTTPToolRun$inboundSchema` instead. */
2653
+ export const inboundSchema = AgentToolInputRunHTTPToolRun$inboundSchema;
2654
+ /** @deprecated use `AgentToolInputRunHTTPToolRun$outboundSchema` instead. */
2655
+ export const outboundSchema = AgentToolInputRunHTTPToolRun$outboundSchema;
2656
+ /** @deprecated use `AgentToolInputRunHTTPToolRun$Outbound` instead. */
2657
+ export type Outbound = AgentToolInputRunHTTPToolRun$Outbound;
2929
2658
  }
2930
2659
 
2931
- export function runAgentRequestToolHTTPToolToJSON(
2932
- runAgentRequestToolHTTPTool: RunAgentRequestToolHTTPTool,
2660
+ export function agentToolInputRunHTTPToolRunToJSON(
2661
+ agentToolInputRunHTTPToolRun: AgentToolInputRunHTTPToolRun,
2933
2662
  ): string {
2934
2663
  return JSON.stringify(
2935
- RunAgentRequestToolHTTPTool$outboundSchema.parse(
2936
- runAgentRequestToolHTTPTool,
2664
+ AgentToolInputRunHTTPToolRun$outboundSchema.parse(
2665
+ agentToolInputRunHTTPToolRun,
2937
2666
  ),
2938
2667
  );
2939
2668
  }
2940
2669
 
2941
- export function runAgentRequestToolHTTPToolFromJSON(
2670
+ export function agentToolInputRunHTTPToolRunFromJSON(
2942
2671
  jsonString: string,
2943
- ): SafeParseResult<RunAgentRequestToolHTTPTool, SDKValidationError> {
2672
+ ): SafeParseResult<AgentToolInputRunHTTPToolRun, SDKValidationError> {
2944
2673
  return safeParse(
2945
2674
  jsonString,
2946
- (x) => RunAgentRequestToolHTTPTool$inboundSchema.parse(JSON.parse(x)),
2947
- `Failed to parse 'RunAgentRequestToolHTTPTool' from JSON`,
2675
+ (x) => AgentToolInputRunHTTPToolRun$inboundSchema.parse(JSON.parse(x)),
2676
+ `Failed to parse 'AgentToolInputRunHTTPToolRun' from JSON`,
2948
2677
  );
2949
2678
  }
2950
2679
 
2951
2680
  /** @internal */
2952
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
2681
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
2953
2682
  z.ZodNativeEnum<
2954
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
2683
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2955
2684
  > = z.nativeEnum(
2956
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type,
2685
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
2957
2686
  );
2958
2687
 
2959
2688
  /** @internal */
2960
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
2689
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
2961
2690
  z.ZodNativeEnum<
2962
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
2691
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2963
2692
  > =
2964
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2693
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2965
2694
 
2966
2695
  /**
2967
2696
  * @internal
2968
2697
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2969
2698
  */
2970
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$ {
2971
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
2699
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
2700
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
2972
2701
  export const inboundSchema =
2973
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2974
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
2702
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2703
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
2975
2704
  export const outboundSchema =
2976
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
2705
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
2977
2706
  }
2978
2707
 
2979
2708
  /** @internal */
2980
- export const RunAgentRequestToolCurrentDateTool$inboundSchema: z.ZodType<
2981
- RunAgentRequestToolCurrentDateTool,
2982
- z.ZodTypeDef,
2983
- unknown
2984
- > = z.object({
2985
- type:
2986
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
2987
- requires_approval: z.boolean().default(false),
2988
- }).transform((v) => {
2989
- return remap$(v, {
2990
- "requires_approval": "requiresApproval",
2709
+ export const StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema:
2710
+ z.ZodType<
2711
+ StreamRunAgentAgentToolInputRunCurrentDateTool,
2712
+ z.ZodTypeDef,
2713
+ unknown
2714
+ > = z.object({
2715
+ type:
2716
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
2717
+ requires_approval: z.boolean().default(false),
2718
+ }).transform((v) => {
2719
+ return remap$(v, {
2720
+ "requires_approval": "requiresApproval",
2721
+ });
2991
2722
  });
2992
- });
2993
2723
 
2994
2724
  /** @internal */
2995
- export type RunAgentRequestToolCurrentDateTool$Outbound = {
2725
+ export type StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound = {
2996
2726
  type: string;
2997
2727
  requires_approval: boolean;
2998
2728
  };
2999
2729
 
3000
2730
  /** @internal */
3001
- export const RunAgentRequestToolCurrentDateTool$outboundSchema: z.ZodType<
3002
- RunAgentRequestToolCurrentDateTool$Outbound,
3003
- z.ZodTypeDef,
3004
- RunAgentRequestToolCurrentDateTool
3005
- > = z.object({
3006
- type:
3007
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
3008
- requiresApproval: z.boolean().default(false),
3009
- }).transform((v) => {
3010
- return remap$(v, {
3011
- requiresApproval: "requires_approval",
2731
+ export const StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema:
2732
+ z.ZodType<
2733
+ StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound,
2734
+ z.ZodTypeDef,
2735
+ StreamRunAgentAgentToolInputRunCurrentDateTool
2736
+ > = z.object({
2737
+ type:
2738
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
2739
+ requiresApproval: z.boolean().default(false),
2740
+ }).transform((v) => {
2741
+ return remap$(v, {
2742
+ requiresApproval: "requires_approval",
2743
+ });
3012
2744
  });
3013
- });
3014
2745
 
3015
2746
  /**
3016
2747
  * @internal
3017
2748
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3018
2749
  */
3019
- export namespace RunAgentRequestToolCurrentDateTool$ {
3020
- /** @deprecated use `RunAgentRequestToolCurrentDateTool$inboundSchema` instead. */
3021
- export const inboundSchema = RunAgentRequestToolCurrentDateTool$inboundSchema;
3022
- /** @deprecated use `RunAgentRequestToolCurrentDateTool$outboundSchema` instead. */
2750
+ export namespace StreamRunAgentAgentToolInputRunCurrentDateTool$ {
2751
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema` instead. */
2752
+ export const inboundSchema =
2753
+ StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema;
2754
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema` instead. */
3023
2755
  export const outboundSchema =
3024
- RunAgentRequestToolCurrentDateTool$outboundSchema;
3025
- /** @deprecated use `RunAgentRequestToolCurrentDateTool$Outbound` instead. */
3026
- export type Outbound = RunAgentRequestToolCurrentDateTool$Outbound;
2756
+ StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema;
2757
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound` instead. */
2758
+ export type Outbound =
2759
+ StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
3027
2760
  }
3028
2761
 
3029
- export function runAgentRequestToolCurrentDateToolToJSON(
3030
- runAgentRequestToolCurrentDateTool: RunAgentRequestToolCurrentDateTool,
2762
+ export function streamRunAgentAgentToolInputRunCurrentDateToolToJSON(
2763
+ streamRunAgentAgentToolInputRunCurrentDateTool:
2764
+ StreamRunAgentAgentToolInputRunCurrentDateTool,
3031
2765
  ): string {
3032
2766
  return JSON.stringify(
3033
- RunAgentRequestToolCurrentDateTool$outboundSchema.parse(
3034
- runAgentRequestToolCurrentDateTool,
2767
+ StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema.parse(
2768
+ streamRunAgentAgentToolInputRunCurrentDateTool,
3035
2769
  ),
3036
2770
  );
3037
2771
  }
3038
2772
 
3039
- export function runAgentRequestToolCurrentDateToolFromJSON(
2773
+ export function streamRunAgentAgentToolInputRunCurrentDateToolFromJSON(
3040
2774
  jsonString: string,
3041
- ): SafeParseResult<RunAgentRequestToolCurrentDateTool, SDKValidationError> {
2775
+ ): SafeParseResult<
2776
+ StreamRunAgentAgentToolInputRunCurrentDateTool,
2777
+ SDKValidationError
2778
+ > {
3042
2779
  return safeParse(
3043
2780
  jsonString,
3044
2781
  (x) =>
3045
- RunAgentRequestToolCurrentDateTool$inboundSchema.parse(JSON.parse(x)),
3046
- `Failed to parse 'RunAgentRequestToolCurrentDateTool' from JSON`,
2782
+ StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema.parse(
2783
+ JSON.parse(x),
2784
+ ),
2785
+ `Failed to parse 'StreamRunAgentAgentToolInputRunCurrentDateTool' from JSON`,
3047
2786
  );
3048
2787
  }
3049
2788
 
3050
2789
  /** @internal */
3051
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
2790
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
3052
2791
  z.ZodNativeEnum<
3053
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
2792
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
3054
2793
  > = z.nativeEnum(
3055
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type,
2794
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
3056
2795
  );
3057
2796
 
3058
2797
  /** @internal */
3059
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
2798
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
3060
2799
  z.ZodNativeEnum<
3061
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
2800
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
3062
2801
  > =
3063
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2802
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
3064
2803
 
3065
2804
  /**
3066
2805
  * @internal
3067
2806
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3068
2807
  */
3069
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$ {
3070
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
2808
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
2809
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
3071
2810
  export const inboundSchema =
3072
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
3073
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
2811
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2812
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
3074
2813
  export const outboundSchema =
3075
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
2814
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
3076
2815
  }
3077
2816
 
3078
2817
  /** @internal */
3079
- export const RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
3080
- RunAgentRequestToolQueryKnowledgeBaseTool,
3081
- z.ZodTypeDef,
3082
- unknown
3083
- > = z.object({
3084
- type:
3085
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
3086
- requires_approval: z.boolean().default(false),
3087
- }).transform((v) => {
3088
- return remap$(v, {
3089
- "requires_approval": "requiresApproval",
2818
+ export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema:
2819
+ z.ZodType<
2820
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
2821
+ z.ZodTypeDef,
2822
+ unknown
2823
+ > = z.object({
2824
+ type:
2825
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
2826
+ requires_approval: z.boolean().default(false),
2827
+ }).transform((v) => {
2828
+ return remap$(v, {
2829
+ "requires_approval": "requiresApproval",
2830
+ });
3090
2831
  });
3091
- });
3092
2832
 
3093
2833
  /** @internal */
3094
- export type RunAgentRequestToolQueryKnowledgeBaseTool$Outbound = {
2834
+ export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
3095
2835
  type: string;
3096
2836
  requires_approval: boolean;
3097
2837
  };
3098
2838
 
3099
2839
  /** @internal */
3100
- export const RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema:
2840
+ export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema:
3101
2841
  z.ZodType<
3102
- RunAgentRequestToolQueryKnowledgeBaseTool$Outbound,
2842
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound,
3103
2843
  z.ZodTypeDef,
3104
- RunAgentRequestToolQueryKnowledgeBaseTool
2844
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
3105
2845
  > = z.object({
3106
2846
  type:
3107
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
2847
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
3108
2848
  requiresApproval: z.boolean().default(false),
3109
2849
  }).transform((v) => {
3110
2850
  return remap$(v, {
@@ -3116,81 +2856,82 @@ export const RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema:
3116
2856
  * @internal
3117
2857
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3118
2858
  */
3119
- export namespace RunAgentRequestToolQueryKnowledgeBaseTool$ {
3120
- /** @deprecated use `RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema` instead. */
2859
+ export namespace StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$ {
2860
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
3121
2861
  export const inboundSchema =
3122
- RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema;
3123
- /** @deprecated use `RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema` instead. */
2862
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
2863
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
3124
2864
  export const outboundSchema =
3125
- RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema;
3126
- /** @deprecated use `RunAgentRequestToolQueryKnowledgeBaseTool$Outbound` instead. */
3127
- export type Outbound = RunAgentRequestToolQueryKnowledgeBaseTool$Outbound;
2865
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
2866
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
2867
+ export type Outbound =
2868
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound;
3128
2869
  }
3129
2870
 
3130
- export function runAgentRequestToolQueryKnowledgeBaseToolToJSON(
3131
- runAgentRequestToolQueryKnowledgeBaseTool:
3132
- RunAgentRequestToolQueryKnowledgeBaseTool,
2871
+ export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolToJSON(
2872
+ streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool:
2873
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
3133
2874
  ): string {
3134
2875
  return JSON.stringify(
3135
- RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema.parse(
3136
- runAgentRequestToolQueryKnowledgeBaseTool,
2876
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
2877
+ streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
3137
2878
  ),
3138
2879
  );
3139
2880
  }
3140
2881
 
3141
- export function runAgentRequestToolQueryKnowledgeBaseToolFromJSON(
2882
+ export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolFromJSON(
3142
2883
  jsonString: string,
3143
2884
  ): SafeParseResult<
3144
- RunAgentRequestToolQueryKnowledgeBaseTool,
2885
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
3145
2886
  SDKValidationError
3146
2887
  > {
3147
2888
  return safeParse(
3148
2889
  jsonString,
3149
2890
  (x) =>
3150
- RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema.parse(
2891
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
3151
2892
  JSON.parse(x),
3152
2893
  ),
3153
- `Failed to parse 'RunAgentRequestToolQueryKnowledgeBaseTool' from JSON`,
2894
+ `Failed to parse 'StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
3154
2895
  );
3155
2896
  }
3156
2897
 
3157
2898
  /** @internal */
3158
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
2899
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
3159
2900
  z.ZodNativeEnum<
3160
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
2901
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
3161
2902
  > = z.nativeEnum(
3162
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type,
2903
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
3163
2904
  );
3164
2905
 
3165
2906
  /** @internal */
3166
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
2907
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
3167
2908
  z.ZodNativeEnum<
3168
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
2909
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
3169
2910
  > =
3170
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2911
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
3171
2912
 
3172
2913
  /**
3173
2914
  * @internal
3174
2915
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3175
2916
  */
3176
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$ {
3177
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
2917
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
2918
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
3178
2919
  export const inboundSchema =
3179
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
3180
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
2920
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2921
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
3181
2922
  export const outboundSchema =
3182
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
2923
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
3183
2924
  }
3184
2925
 
3185
2926
  /** @internal */
3186
- export const RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema:
2927
+ export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
3187
2928
  z.ZodType<
3188
- RunAgentRequestToolRetrieveKnowledgeBasesTool,
2929
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
3189
2930
  z.ZodTypeDef,
3190
2931
  unknown
3191
2932
  > = z.object({
3192
2933
  type:
3193
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
2934
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
3194
2935
  requires_approval: z.boolean().default(false),
3195
2936
  }).transform((v) => {
3196
2937
  return remap$(v, {
@@ -3199,20 +2940,21 @@ export const RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema:
3199
2940
  });
3200
2941
 
3201
2942
  /** @internal */
3202
- export type RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound = {
3203
- type: string;
3204
- requires_approval: boolean;
3205
- };
2943
+ export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound =
2944
+ {
2945
+ type: string;
2946
+ requires_approval: boolean;
2947
+ };
3206
2948
 
3207
2949
  /** @internal */
3208
- export const RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema:
2950
+ export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
3209
2951
  z.ZodType<
3210
- RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound,
2952
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
3211
2953
  z.ZodTypeDef,
3212
- RunAgentRequestToolRetrieveKnowledgeBasesTool
2954
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
3213
2955
  > = z.object({
3214
2956
  type:
3215
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
2957
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
3216
2958
  requiresApproval: z.boolean().default(false),
3217
2959
  }).transform((v) => {
3218
2960
  return remap$(v, {
@@ -3224,187 +2966,187 @@ export const RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema:
3224
2966
  * @internal
3225
2967
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3226
2968
  */
3227
- export namespace RunAgentRequestToolRetrieveKnowledgeBasesTool$ {
3228
- /** @deprecated use `RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema` instead. */
2969
+ export namespace StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$ {
2970
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
3229
2971
  export const inboundSchema =
3230
- RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema;
3231
- /** @deprecated use `RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema` instead. */
2972
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
2973
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
3232
2974
  export const outboundSchema =
3233
- RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema;
3234
- /** @deprecated use `RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound` instead. */
3235
- export type Outbound = RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound;
2975
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
2976
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
2977
+ export type Outbound =
2978
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
3236
2979
  }
3237
2980
 
3238
- export function runAgentRequestToolRetrieveKnowledgeBasesToolToJSON(
3239
- runAgentRequestToolRetrieveKnowledgeBasesTool:
3240
- RunAgentRequestToolRetrieveKnowledgeBasesTool,
2981
+ export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolToJSON(
2982
+ streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool:
2983
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
3241
2984
  ): string {
3242
2985
  return JSON.stringify(
3243
- RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema.parse(
3244
- runAgentRequestToolRetrieveKnowledgeBasesTool,
3245
- ),
2986
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
2987
+ .parse(streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool),
3246
2988
  );
3247
2989
  }
3248
2990
 
3249
- export function runAgentRequestToolRetrieveKnowledgeBasesToolFromJSON(
2991
+ export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
3250
2992
  jsonString: string,
3251
2993
  ): SafeParseResult<
3252
- RunAgentRequestToolRetrieveKnowledgeBasesTool,
2994
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
3253
2995
  SDKValidationError
3254
2996
  > {
3255
2997
  return safeParse(
3256
2998
  jsonString,
3257
2999
  (x) =>
3258
- RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema.parse(
3259
- JSON.parse(x),
3260
- ),
3261
- `Failed to parse 'RunAgentRequestToolRetrieveKnowledgeBasesTool' from JSON`,
3000
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
3001
+ .parse(JSON.parse(x)),
3002
+ `Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
3262
3003
  );
3263
3004
  }
3264
3005
 
3265
3006
  /** @internal */
3266
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
3007
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
3267
3008
  z.ZodNativeEnum<
3268
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
3009
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3269
3010
  > = z.nativeEnum(
3270
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type,
3011
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
3271
3012
  );
3272
3013
 
3273
3014
  /** @internal */
3274
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
3015
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
3275
3016
  z.ZodNativeEnum<
3276
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
3017
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3277
3018
  > =
3278
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3019
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3279
3020
 
3280
3021
  /**
3281
3022
  * @internal
3282
3023
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3283
3024
  */
3284
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$ {
3285
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
3025
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
3026
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
3286
3027
  export const inboundSchema =
3287
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3288
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
3028
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3029
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
3289
3030
  export const outboundSchema =
3290
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
3031
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
3291
3032
  }
3292
3033
 
3293
3034
  /** @internal */
3294
- export const RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema: z.ZodType<
3295
- RunAgentRequestToolDeleteMemoryStoreTool,
3296
- z.ZodTypeDef,
3297
- unknown
3298
- > = z.object({
3299
- type:
3300
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
3301
- requires_approval: z.boolean().default(false),
3302
- }).transform((v) => {
3303
- return remap$(v, {
3304
- "requires_approval": "requiresApproval",
3035
+ export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema:
3036
+ z.ZodType<
3037
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
3038
+ z.ZodTypeDef,
3039
+ unknown
3040
+ > = z.object({
3041
+ type:
3042
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
3043
+ requires_approval: z.boolean().default(false),
3044
+ }).transform((v) => {
3045
+ return remap$(v, {
3046
+ "requires_approval": "requiresApproval",
3047
+ });
3305
3048
  });
3306
- });
3307
3049
 
3308
3050
  /** @internal */
3309
- export type RunAgentRequestToolDeleteMemoryStoreTool$Outbound = {
3051
+ export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
3310
3052
  type: string;
3311
3053
  requires_approval: boolean;
3312
3054
  };
3313
3055
 
3314
3056
  /** @internal */
3315
- export const RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema: z.ZodType<
3316
- RunAgentRequestToolDeleteMemoryStoreTool$Outbound,
3317
- z.ZodTypeDef,
3318
- RunAgentRequestToolDeleteMemoryStoreTool
3319
- > = z.object({
3320
- type:
3321
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
3322
- requiresApproval: z.boolean().default(false),
3323
- }).transform((v) => {
3324
- return remap$(v, {
3325
- requiresApproval: "requires_approval",
3057
+ export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
3058
+ z.ZodType<
3059
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound,
3060
+ z.ZodTypeDef,
3061
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
3062
+ > = z.object({
3063
+ type:
3064
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
3065
+ requiresApproval: z.boolean().default(false),
3066
+ }).transform((v) => {
3067
+ return remap$(v, {
3068
+ requiresApproval: "requires_approval",
3069
+ });
3326
3070
  });
3327
- });
3328
3071
 
3329
3072
  /**
3330
3073
  * @internal
3331
3074
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3332
3075
  */
3333
- export namespace RunAgentRequestToolDeleteMemoryStoreTool$ {
3334
- /** @deprecated use `RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema` instead. */
3076
+ export namespace StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$ {
3077
+ /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
3335
3078
  export const inboundSchema =
3336
- RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema;
3337
- /** @deprecated use `RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema` instead. */
3079
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
3080
+ /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
3338
3081
  export const outboundSchema =
3339
- RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema;
3340
- /** @deprecated use `RunAgentRequestToolDeleteMemoryStoreTool$Outbound` instead. */
3341
- export type Outbound = RunAgentRequestToolDeleteMemoryStoreTool$Outbound;
3082
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
3083
+ /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
3084
+ export type Outbound =
3085
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound;
3342
3086
  }
3343
3087
 
3344
- export function runAgentRequestToolDeleteMemoryStoreToolToJSON(
3345
- runAgentRequestToolDeleteMemoryStoreTool:
3346
- RunAgentRequestToolDeleteMemoryStoreTool,
3088
+ export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolToJSON(
3089
+ streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool:
3090
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
3347
3091
  ): string {
3348
3092
  return JSON.stringify(
3349
- RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema.parse(
3350
- runAgentRequestToolDeleteMemoryStoreTool,
3351
- ),
3093
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
3094
+ .parse(streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool),
3352
3095
  );
3353
3096
  }
3354
3097
 
3355
- export function runAgentRequestToolDeleteMemoryStoreToolFromJSON(
3098
+ export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolFromJSON(
3356
3099
  jsonString: string,
3357
3100
  ): SafeParseResult<
3358
- RunAgentRequestToolDeleteMemoryStoreTool,
3101
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
3359
3102
  SDKValidationError
3360
3103
  > {
3361
3104
  return safeParse(
3362
3105
  jsonString,
3363
3106
  (x) =>
3364
- RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema.parse(
3365
- JSON.parse(x),
3366
- ),
3367
- `Failed to parse 'RunAgentRequestToolDeleteMemoryStoreTool' from JSON`,
3107
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
3108
+ .parse(JSON.parse(x)),
3109
+ `Failed to parse 'StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
3368
3110
  );
3369
3111
  }
3370
3112
 
3371
3113
  /** @internal */
3372
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
3114
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
3373
3115
  z.ZodNativeEnum<
3374
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type
3116
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
3375
3117
  > = z.nativeEnum(
3376
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type,
3118
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type,
3377
3119
  );
3378
3120
 
3379
3121
  /** @internal */
3380
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
3122
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
3381
3123
  z.ZodNativeEnum<
3382
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type
3124
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
3383
3125
  > =
3384
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3126
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3385
3127
 
3386
3128
  /**
3387
3129
  * @internal
3388
3130
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3389
3131
  */
3390
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$ {
3391
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
3132
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$ {
3133
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
3392
3134
  export const inboundSchema =
3393
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3394
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
3135
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3136
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
3395
3137
  export const outboundSchema =
3396
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema;
3138
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema;
3397
3139
  }
3398
3140
 
3399
3141
  /** @internal */
3400
- export const RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema:
3142
+ export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema:
3401
3143
  z.ZodType<
3402
- RunAgentRequestToolRetrieveMemoryStoresTool,
3144
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
3403
3145
  z.ZodTypeDef,
3404
3146
  unknown
3405
3147
  > = z.object({
3406
3148
  type:
3407
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
3149
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
3408
3150
  requires_approval: z.boolean().default(false),
3409
3151
  }).transform((v) => {
3410
3152
  return remap$(v, {
@@ -3413,20 +3155,20 @@ export const RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema:
3413
3155
  });
3414
3156
 
3415
3157
  /** @internal */
3416
- export type RunAgentRequestToolRetrieveMemoryStoresTool$Outbound = {
3158
+ export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
3417
3159
  type: string;
3418
3160
  requires_approval: boolean;
3419
3161
  };
3420
3162
 
3421
3163
  /** @internal */
3422
- export const RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema:
3164
+ export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
3423
3165
  z.ZodType<
3424
- RunAgentRequestToolRetrieveMemoryStoresTool$Outbound,
3166
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound,
3425
3167
  z.ZodTypeDef,
3426
- RunAgentRequestToolRetrieveMemoryStoresTool
3168
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
3427
3169
  > = z.object({
3428
3170
  type:
3429
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
3171
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
3430
3172
  requiresApproval: z.boolean().default(false),
3431
3173
  }).transform((v) => {
3432
3174
  return remap$(v, {
@@ -3438,726 +3180,789 @@ export const RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema:
3438
3180
  * @internal
3439
3181
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3440
3182
  */
3441
- export namespace RunAgentRequestToolRetrieveMemoryStoresTool$ {
3442
- /** @deprecated use `RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema` instead. */
3183
+ export namespace StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$ {
3184
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
3443
3185
  export const inboundSchema =
3444
- RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema;
3445
- /** @deprecated use `RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema` instead. */
3186
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
3187
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
3446
3188
  export const outboundSchema =
3447
- RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema;
3448
- /** @deprecated use `RunAgentRequestToolRetrieveMemoryStoresTool$Outbound` instead. */
3449
- export type Outbound = RunAgentRequestToolRetrieveMemoryStoresTool$Outbound;
3189
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
3190
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
3191
+ export type Outbound =
3192
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound;
3450
3193
  }
3451
3194
 
3452
- export function runAgentRequestToolRetrieveMemoryStoresToolToJSON(
3453
- runAgentRequestToolRetrieveMemoryStoresTool:
3454
- RunAgentRequestToolRetrieveMemoryStoresTool,
3195
+ export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolToJSON(
3196
+ streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool:
3197
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
3455
3198
  ): string {
3456
3199
  return JSON.stringify(
3457
- RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema.parse(
3458
- runAgentRequestToolRetrieveMemoryStoresTool,
3459
- ),
3200
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
3201
+ .parse(streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool),
3460
3202
  );
3461
3203
  }
3462
3204
 
3463
- export function runAgentRequestToolRetrieveMemoryStoresToolFromJSON(
3205
+ export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolFromJSON(
3464
3206
  jsonString: string,
3465
3207
  ): SafeParseResult<
3466
- RunAgentRequestToolRetrieveMemoryStoresTool,
3208
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
3467
3209
  SDKValidationError
3468
3210
  > {
3469
3211
  return safeParse(
3470
3212
  jsonString,
3471
3213
  (x) =>
3472
- RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema.parse(
3473
- JSON.parse(x),
3474
- ),
3475
- `Failed to parse 'RunAgentRequestToolRetrieveMemoryStoresTool' from JSON`,
3214
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
3215
+ .parse(JSON.parse(x)),
3216
+ `Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
3476
3217
  );
3477
3218
  }
3478
3219
 
3479
3220
  /** @internal */
3480
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema:
3221
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
3481
3222
  z.ZodNativeEnum<
3482
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
3223
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3483
3224
  > = z.nativeEnum(
3484
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType,
3225
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
3485
3226
  );
3486
3227
 
3487
3228
  /** @internal */
3488
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema:
3229
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
3489
3230
  z.ZodNativeEnum<
3490
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
3231
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3491
3232
  > =
3492
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3233
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3493
3234
 
3494
3235
  /**
3495
3236
  * @internal
3496
3237
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3497
3238
  */
3498
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$ {
3499
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
3239
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
3240
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
3500
3241
  export const inboundSchema =
3501
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3502
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
3242
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3243
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
3503
3244
  export const outboundSchema =
3504
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema;
3245
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
3505
3246
  }
3506
3247
 
3507
3248
  /** @internal */
3508
- export const RunAgentRequestToolWriteMemoryStoreTool$inboundSchema: z.ZodType<
3509
- RunAgentRequestToolWriteMemoryStoreTool,
3510
- z.ZodTypeDef,
3511
- unknown
3512
- > = z.object({
3513
- type:
3514
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema,
3515
- requires_approval: z.boolean().default(false),
3516
- }).transform((v) => {
3517
- return remap$(v, {
3518
- "requires_approval": "requiresApproval",
3249
+ export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema:
3250
+ z.ZodType<
3251
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3252
+ z.ZodTypeDef,
3253
+ unknown
3254
+ > = z.object({
3255
+ type:
3256
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
3257
+ requires_approval: z.boolean().default(false),
3258
+ }).transform((v) => {
3259
+ return remap$(v, {
3260
+ "requires_approval": "requiresApproval",
3261
+ });
3519
3262
  });
3520
- });
3521
3263
 
3522
3264
  /** @internal */
3523
- export type RunAgentRequestToolWriteMemoryStoreTool$Outbound = {
3265
+ export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound = {
3524
3266
  type: string;
3525
3267
  requires_approval: boolean;
3526
3268
  };
3527
3269
 
3528
3270
  /** @internal */
3529
- export const RunAgentRequestToolWriteMemoryStoreTool$outboundSchema: z.ZodType<
3530
- RunAgentRequestToolWriteMemoryStoreTool$Outbound,
3531
- z.ZodTypeDef,
3532
- RunAgentRequestToolWriteMemoryStoreTool
3533
- > = z.object({
3534
- type:
3535
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema,
3536
- requiresApproval: z.boolean().default(false),
3537
- }).transform((v) => {
3538
- return remap$(v, {
3539
- requiresApproval: "requires_approval",
3271
+ export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema:
3272
+ z.ZodType<
3273
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound,
3274
+ z.ZodTypeDef,
3275
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
3276
+ > = z.object({
3277
+ type:
3278
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
3279
+ requiresApproval: z.boolean().default(false),
3280
+ }).transform((v) => {
3281
+ return remap$(v, {
3282
+ requiresApproval: "requires_approval",
3283
+ });
3540
3284
  });
3541
- });
3542
3285
 
3543
3286
  /**
3544
3287
  * @internal
3545
3288
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3546
3289
  */
3547
- export namespace RunAgentRequestToolWriteMemoryStoreTool$ {
3548
- /** @deprecated use `RunAgentRequestToolWriteMemoryStoreTool$inboundSchema` instead. */
3290
+ export namespace StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$ {
3291
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
3549
3292
  export const inboundSchema =
3550
- RunAgentRequestToolWriteMemoryStoreTool$inboundSchema;
3551
- /** @deprecated use `RunAgentRequestToolWriteMemoryStoreTool$outboundSchema` instead. */
3293
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema;
3294
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
3552
3295
  export const outboundSchema =
3553
- RunAgentRequestToolWriteMemoryStoreTool$outboundSchema;
3554
- /** @deprecated use `RunAgentRequestToolWriteMemoryStoreTool$Outbound` instead. */
3555
- export type Outbound = RunAgentRequestToolWriteMemoryStoreTool$Outbound;
3296
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema;
3297
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
3298
+ export type Outbound =
3299
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound;
3556
3300
  }
3557
3301
 
3558
- export function runAgentRequestToolWriteMemoryStoreToolToJSON(
3559
- runAgentRequestToolWriteMemoryStoreTool:
3560
- RunAgentRequestToolWriteMemoryStoreTool,
3302
+ export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolToJSON(
3303
+ streamRunAgentAgentToolInputRunWriteMemoryStoreTool:
3304
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3561
3305
  ): string {
3562
3306
  return JSON.stringify(
3563
- RunAgentRequestToolWriteMemoryStoreTool$outboundSchema.parse(
3564
- runAgentRequestToolWriteMemoryStoreTool,
3307
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
3308
+ streamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3565
3309
  ),
3566
3310
  );
3567
3311
  }
3568
3312
 
3569
- export function runAgentRequestToolWriteMemoryStoreToolFromJSON(
3313
+ export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolFromJSON(
3570
3314
  jsonString: string,
3571
3315
  ): SafeParseResult<
3572
- RunAgentRequestToolWriteMemoryStoreTool,
3316
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3573
3317
  SDKValidationError
3574
3318
  > {
3575
3319
  return safeParse(
3576
3320
  jsonString,
3577
3321
  (x) =>
3578
- RunAgentRequestToolWriteMemoryStoreTool$inboundSchema.parse(
3322
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(
3579
3323
  JSON.parse(x),
3580
3324
  ),
3581
- `Failed to parse 'RunAgentRequestToolWriteMemoryStoreTool' from JSON`,
3325
+ `Failed to parse 'StreamRunAgentAgentToolInputRunWriteMemoryStoreTool' from JSON`,
3582
3326
  );
3583
3327
  }
3584
3328
 
3585
3329
  /** @internal */
3586
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema:
3330
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
3587
3331
  z.ZodNativeEnum<
3588
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
3332
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3589
3333
  > = z.nativeEnum(
3590
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType,
3334
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
3591
3335
  );
3592
3336
 
3593
3337
  /** @internal */
3594
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema:
3338
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
3595
3339
  z.ZodNativeEnum<
3596
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
3340
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3597
3341
  > =
3598
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
3342
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3599
3343
 
3600
3344
  /**
3601
3345
  * @internal
3602
3346
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3603
3347
  */
3604
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$ {
3605
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3348
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
3349
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3606
3350
  export const inboundSchema =
3607
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
3608
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3351
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3352
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3609
3353
  export const outboundSchema =
3610
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema;
3354
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
3611
3355
  }
3612
3356
 
3613
3357
  /** @internal */
3614
- export const RunAgentRequestToolQueryMemoryStoreTool$inboundSchema: z.ZodType<
3615
- RunAgentRequestToolQueryMemoryStoreTool,
3616
- z.ZodTypeDef,
3617
- unknown
3618
- > = z.object({
3619
- type:
3620
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema,
3621
- requires_approval: z.boolean().default(false),
3622
- }).transform((v) => {
3623
- return remap$(v, {
3624
- "requires_approval": "requiresApproval",
3358
+ export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema:
3359
+ z.ZodType<
3360
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3361
+ z.ZodTypeDef,
3362
+ unknown
3363
+ > = z.object({
3364
+ type:
3365
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
3366
+ requires_approval: z.boolean().default(false),
3367
+ }).transform((v) => {
3368
+ return remap$(v, {
3369
+ "requires_approval": "requiresApproval",
3370
+ });
3625
3371
  });
3626
- });
3627
3372
 
3628
3373
  /** @internal */
3629
- export type RunAgentRequestToolQueryMemoryStoreTool$Outbound = {
3374
+ export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound = {
3630
3375
  type: string;
3631
3376
  requires_approval: boolean;
3632
3377
  };
3633
3378
 
3634
3379
  /** @internal */
3635
- export const RunAgentRequestToolQueryMemoryStoreTool$outboundSchema: z.ZodType<
3636
- RunAgentRequestToolQueryMemoryStoreTool$Outbound,
3637
- z.ZodTypeDef,
3638
- RunAgentRequestToolQueryMemoryStoreTool
3639
- > = z.object({
3640
- type:
3641
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema,
3642
- requiresApproval: z.boolean().default(false),
3643
- }).transform((v) => {
3644
- return remap$(v, {
3645
- requiresApproval: "requires_approval",
3380
+ export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema:
3381
+ z.ZodType<
3382
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound,
3383
+ z.ZodTypeDef,
3384
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
3385
+ > = z.object({
3386
+ type:
3387
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
3388
+ requiresApproval: z.boolean().default(false),
3389
+ }).transform((v) => {
3390
+ return remap$(v, {
3391
+ requiresApproval: "requires_approval",
3392
+ });
3646
3393
  });
3647
- });
3648
3394
 
3649
3395
  /**
3650
3396
  * @internal
3651
3397
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3652
3398
  */
3653
- export namespace RunAgentRequestToolQueryMemoryStoreTool$ {
3654
- /** @deprecated use `RunAgentRequestToolQueryMemoryStoreTool$inboundSchema` instead. */
3399
+ export namespace StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$ {
3400
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
3655
3401
  export const inboundSchema =
3656
- RunAgentRequestToolQueryMemoryStoreTool$inboundSchema;
3657
- /** @deprecated use `RunAgentRequestToolQueryMemoryStoreTool$outboundSchema` instead. */
3402
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema;
3403
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
3658
3404
  export const outboundSchema =
3659
- RunAgentRequestToolQueryMemoryStoreTool$outboundSchema;
3660
- /** @deprecated use `RunAgentRequestToolQueryMemoryStoreTool$Outbound` instead. */
3661
- export type Outbound = RunAgentRequestToolQueryMemoryStoreTool$Outbound;
3405
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema;
3406
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
3407
+ export type Outbound =
3408
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound;
3662
3409
  }
3663
3410
 
3664
- export function runAgentRequestToolQueryMemoryStoreToolToJSON(
3665
- runAgentRequestToolQueryMemoryStoreTool:
3666
- RunAgentRequestToolQueryMemoryStoreTool,
3411
+ export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolToJSON(
3412
+ streamRunAgentAgentToolInputRunQueryMemoryStoreTool:
3413
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3667
3414
  ): string {
3668
3415
  return JSON.stringify(
3669
- RunAgentRequestToolQueryMemoryStoreTool$outboundSchema.parse(
3670
- runAgentRequestToolQueryMemoryStoreTool,
3416
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
3417
+ streamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3671
3418
  ),
3672
3419
  );
3673
3420
  }
3674
3421
 
3675
- export function runAgentRequestToolQueryMemoryStoreToolFromJSON(
3422
+ export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolFromJSON(
3676
3423
  jsonString: string,
3677
3424
  ): SafeParseResult<
3678
- RunAgentRequestToolQueryMemoryStoreTool,
3425
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3679
3426
  SDKValidationError
3680
3427
  > {
3681
3428
  return safeParse(
3682
3429
  jsonString,
3683
3430
  (x) =>
3684
- RunAgentRequestToolQueryMemoryStoreTool$inboundSchema.parse(
3431
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(
3685
3432
  JSON.parse(x),
3686
3433
  ),
3687
- `Failed to parse 'RunAgentRequestToolQueryMemoryStoreTool' from JSON`,
3434
+ `Failed to parse 'StreamRunAgentAgentToolInputRunQueryMemoryStoreTool' from JSON`,
3688
3435
  );
3689
3436
  }
3690
3437
 
3691
3438
  /** @internal */
3692
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema:
3439
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
3693
3440
  z.ZodNativeEnum<
3694
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType
3695
- > = z.nativeEnum(
3696
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType,
3697
- );
3441
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
3442
+ > = z.nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType);
3698
3443
 
3699
3444
  /** @internal */
3700
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema:
3445
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
3701
3446
  z.ZodNativeEnum<
3702
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType
3703
- > =
3704
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
3447
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
3448
+ > = StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3705
3449
 
3706
3450
  /**
3707
3451
  * @internal
3708
3452
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3709
3453
  */
3710
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$ {
3711
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema` instead. */
3454
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
3455
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
3712
3456
  export const inboundSchema =
3713
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
3714
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema` instead. */
3457
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3458
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
3715
3459
  export const outboundSchema =
3716
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema;
3460
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
3717
3461
  }
3718
3462
 
3719
3463
  /** @internal */
3720
- export const RunAgentRequestToolRetrieveAgentsTool$inboundSchema: z.ZodType<
3721
- RunAgentRequestToolRetrieveAgentsTool,
3722
- z.ZodTypeDef,
3723
- unknown
3724
- > = z.object({
3725
- type:
3726
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema,
3727
- requires_approval: z.boolean().default(false),
3728
- }).transform((v) => {
3729
- return remap$(v, {
3730
- "requires_approval": "requiresApproval",
3464
+ export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema:
3465
+ z.ZodType<
3466
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
3467
+ z.ZodTypeDef,
3468
+ unknown
3469
+ > = z.object({
3470
+ type:
3471
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
3472
+ requires_approval: z.boolean().default(false),
3473
+ }).transform((v) => {
3474
+ return remap$(v, {
3475
+ "requires_approval": "requiresApproval",
3476
+ });
3731
3477
  });
3732
- });
3733
3478
 
3734
3479
  /** @internal */
3735
- export type RunAgentRequestToolRetrieveAgentsTool$Outbound = {
3480
+ export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound = {
3736
3481
  type: string;
3737
3482
  requires_approval: boolean;
3738
3483
  };
3739
3484
 
3740
3485
  /** @internal */
3741
- export const RunAgentRequestToolRetrieveAgentsTool$outboundSchema: z.ZodType<
3742
- RunAgentRequestToolRetrieveAgentsTool$Outbound,
3743
- z.ZodTypeDef,
3744
- RunAgentRequestToolRetrieveAgentsTool
3745
- > = z.object({
3746
- type:
3747
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema,
3748
- requiresApproval: z.boolean().default(false),
3749
- }).transform((v) => {
3750
- return remap$(v, {
3751
- requiresApproval: "requires_approval",
3486
+ export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema:
3487
+ z.ZodType<
3488
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound,
3489
+ z.ZodTypeDef,
3490
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool
3491
+ > = z.object({
3492
+ type:
3493
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
3494
+ requiresApproval: z.boolean().default(false),
3495
+ }).transform((v) => {
3496
+ return remap$(v, {
3497
+ requiresApproval: "requires_approval",
3498
+ });
3752
3499
  });
3753
- });
3754
3500
 
3755
3501
  /**
3756
3502
  * @internal
3757
3503
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3758
3504
  */
3759
- export namespace RunAgentRequestToolRetrieveAgentsTool$ {
3760
- /** @deprecated use `RunAgentRequestToolRetrieveAgentsTool$inboundSchema` instead. */
3505
+ export namespace StreamRunAgentAgentToolInputRunRetrieveAgentsTool$ {
3506
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
3761
3507
  export const inboundSchema =
3762
- RunAgentRequestToolRetrieveAgentsTool$inboundSchema;
3763
- /** @deprecated use `RunAgentRequestToolRetrieveAgentsTool$outboundSchema` instead. */
3508
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema;
3509
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
3764
3510
  export const outboundSchema =
3765
- RunAgentRequestToolRetrieveAgentsTool$outboundSchema;
3766
- /** @deprecated use `RunAgentRequestToolRetrieveAgentsTool$Outbound` instead. */
3767
- export type Outbound = RunAgentRequestToolRetrieveAgentsTool$Outbound;
3511
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema;
3512
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
3513
+ export type Outbound =
3514
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound;
3768
3515
  }
3769
3516
 
3770
- export function runAgentRequestToolRetrieveAgentsToolToJSON(
3771
- runAgentRequestToolRetrieveAgentsTool: RunAgentRequestToolRetrieveAgentsTool,
3517
+ export function streamRunAgentAgentToolInputRunRetrieveAgentsToolToJSON(
3518
+ streamRunAgentAgentToolInputRunRetrieveAgentsTool:
3519
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
3772
3520
  ): string {
3773
3521
  return JSON.stringify(
3774
- RunAgentRequestToolRetrieveAgentsTool$outboundSchema.parse(
3775
- runAgentRequestToolRetrieveAgentsTool,
3522
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
3523
+ streamRunAgentAgentToolInputRunRetrieveAgentsTool,
3776
3524
  ),
3777
3525
  );
3778
3526
  }
3779
3527
 
3780
- export function runAgentRequestToolRetrieveAgentsToolFromJSON(
3528
+ export function streamRunAgentAgentToolInputRunRetrieveAgentsToolFromJSON(
3781
3529
  jsonString: string,
3782
- ): SafeParseResult<RunAgentRequestToolRetrieveAgentsTool, SDKValidationError> {
3530
+ ): SafeParseResult<
3531
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
3532
+ SDKValidationError
3533
+ > {
3783
3534
  return safeParse(
3784
3535
  jsonString,
3785
3536
  (x) =>
3786
- RunAgentRequestToolRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
3787
- `Failed to parse 'RunAgentRequestToolRetrieveAgentsTool' from JSON`,
3537
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(
3538
+ JSON.parse(x),
3539
+ ),
3540
+ `Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveAgentsTool' from JSON`,
3788
3541
  );
3789
3542
  }
3790
3543
 
3791
3544
  /** @internal */
3792
- export const StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema:
3793
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestType> = z
3794
- .nativeEnum(StreamRunAgentRunAgentRequestToolAgentsRequestType);
3545
+ export const StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
3546
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> = z
3547
+ .nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestType);
3795
3548
 
3796
3549
  /** @internal */
3797
- export const StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema:
3798
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestType> =
3799
- StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
3550
+ export const StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
3551
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> =
3552
+ StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3800
3553
 
3801
3554
  /**
3802
3555
  * @internal
3803
3556
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3804
3557
  */
3805
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestType$ {
3806
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema` instead. */
3558
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestType$ {
3559
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
3807
3560
  export const inboundSchema =
3808
- StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
3809
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema` instead. */
3561
+ StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3562
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
3810
3563
  export const outboundSchema =
3811
- StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema;
3564
+ StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
3812
3565
  }
3813
3566
 
3814
3567
  /** @internal */
3815
- export const RunAgentRequestToolCallSubAgentTool$inboundSchema: z.ZodType<
3816
- RunAgentRequestToolCallSubAgentTool,
3817
- z.ZodTypeDef,
3818
- unknown
3819
- > = z.object({
3820
- type: StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema,
3821
- requires_approval: z.boolean().default(false),
3822
- }).transform((v) => {
3823
- return remap$(v, {
3824
- "requires_approval": "requiresApproval",
3568
+ export const StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema:
3569
+ z.ZodType<
3570
+ StreamRunAgentAgentToolInputRunCallSubAgentTool,
3571
+ z.ZodTypeDef,
3572
+ unknown
3573
+ > = z.object({
3574
+ type: StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
3575
+ requires_approval: z.boolean().default(false),
3576
+ }).transform((v) => {
3577
+ return remap$(v, {
3578
+ "requires_approval": "requiresApproval",
3579
+ });
3825
3580
  });
3826
- });
3827
3581
 
3828
3582
  /** @internal */
3829
- export type RunAgentRequestToolCallSubAgentTool$Outbound = {
3583
+ export type StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound = {
3830
3584
  type: string;
3831
3585
  requires_approval: boolean;
3832
3586
  };
3833
3587
 
3834
3588
  /** @internal */
3835
- export const RunAgentRequestToolCallSubAgentTool$outboundSchema: z.ZodType<
3836
- RunAgentRequestToolCallSubAgentTool$Outbound,
3837
- z.ZodTypeDef,
3838
- RunAgentRequestToolCallSubAgentTool
3839
- > = z.object({
3840
- type: StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema,
3841
- requiresApproval: z.boolean().default(false),
3842
- }).transform((v) => {
3843
- return remap$(v, {
3844
- requiresApproval: "requires_approval",
3589
+ export const StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema:
3590
+ z.ZodType<
3591
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound,
3592
+ z.ZodTypeDef,
3593
+ StreamRunAgentAgentToolInputRunCallSubAgentTool
3594
+ > = z.object({
3595
+ type: StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
3596
+ requiresApproval: z.boolean().default(false),
3597
+ }).transform((v) => {
3598
+ return remap$(v, {
3599
+ requiresApproval: "requires_approval",
3600
+ });
3845
3601
  });
3846
- });
3847
3602
 
3848
3603
  /**
3849
3604
  * @internal
3850
3605
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3851
3606
  */
3852
- export namespace RunAgentRequestToolCallSubAgentTool$ {
3853
- /** @deprecated use `RunAgentRequestToolCallSubAgentTool$inboundSchema` instead. */
3607
+ export namespace StreamRunAgentAgentToolInputRunCallSubAgentTool$ {
3608
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
3854
3609
  export const inboundSchema =
3855
- RunAgentRequestToolCallSubAgentTool$inboundSchema;
3856
- /** @deprecated use `RunAgentRequestToolCallSubAgentTool$outboundSchema` instead. */
3610
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema;
3611
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
3857
3612
  export const outboundSchema =
3858
- RunAgentRequestToolCallSubAgentTool$outboundSchema;
3859
- /** @deprecated use `RunAgentRequestToolCallSubAgentTool$Outbound` instead. */
3860
- export type Outbound = RunAgentRequestToolCallSubAgentTool$Outbound;
3613
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema;
3614
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound` instead. */
3615
+ export type Outbound =
3616
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound;
3861
3617
  }
3862
3618
 
3863
- export function runAgentRequestToolCallSubAgentToolToJSON(
3864
- runAgentRequestToolCallSubAgentTool: RunAgentRequestToolCallSubAgentTool,
3619
+ export function streamRunAgentAgentToolInputRunCallSubAgentToolToJSON(
3620
+ streamRunAgentAgentToolInputRunCallSubAgentTool:
3621
+ StreamRunAgentAgentToolInputRunCallSubAgentTool,
3865
3622
  ): string {
3866
3623
  return JSON.stringify(
3867
- RunAgentRequestToolCallSubAgentTool$outboundSchema.parse(
3868
- runAgentRequestToolCallSubAgentTool,
3624
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema.parse(
3625
+ streamRunAgentAgentToolInputRunCallSubAgentTool,
3869
3626
  ),
3870
3627
  );
3871
3628
  }
3872
3629
 
3873
- export function runAgentRequestToolCallSubAgentToolFromJSON(
3630
+ export function streamRunAgentAgentToolInputRunCallSubAgentToolFromJSON(
3874
3631
  jsonString: string,
3875
- ): SafeParseResult<RunAgentRequestToolCallSubAgentTool, SDKValidationError> {
3632
+ ): SafeParseResult<
3633
+ StreamRunAgentAgentToolInputRunCallSubAgentTool,
3634
+ SDKValidationError
3635
+ > {
3876
3636
  return safeParse(
3877
3637
  jsonString,
3878
3638
  (x) =>
3879
- RunAgentRequestToolCallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
3880
- `Failed to parse 'RunAgentRequestToolCallSubAgentTool' from JSON`,
3639
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema.parse(
3640
+ JSON.parse(x),
3641
+ ),
3642
+ `Failed to parse 'StreamRunAgentAgentToolInputRunCallSubAgentTool' from JSON`,
3881
3643
  );
3882
3644
  }
3883
3645
 
3884
3646
  /** @internal */
3885
- export const StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema:
3886
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsType> = z
3887
- .nativeEnum(StreamRunAgentRunAgentRequestToolAgentsType);
3647
+ export const StreamRunAgentAgentToolInputRunAgentsType$inboundSchema:
3648
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> = z
3649
+ .nativeEnum(StreamRunAgentAgentToolInputRunAgentsType);
3888
3650
 
3889
3651
  /** @internal */
3890
- export const StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema:
3891
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsType> =
3892
- StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema;
3652
+ export const StreamRunAgentAgentToolInputRunAgentsType$outboundSchema:
3653
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> =
3654
+ StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
3893
3655
 
3894
3656
  /**
3895
3657
  * @internal
3896
3658
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3897
3659
  */
3898
- export namespace StreamRunAgentRunAgentRequestToolAgentsType$ {
3899
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema` instead. */
3660
+ export namespace StreamRunAgentAgentToolInputRunAgentsType$ {
3661
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
3900
3662
  export const inboundSchema =
3901
- StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema;
3902
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema` instead. */
3663
+ StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
3664
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
3903
3665
  export const outboundSchema =
3904
- StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema;
3666
+ StreamRunAgentAgentToolInputRunAgentsType$outboundSchema;
3905
3667
  }
3906
3668
 
3907
3669
  /** @internal */
3908
- export const RunAgentRequestToolWebScraperTool$inboundSchema: z.ZodType<
3909
- RunAgentRequestToolWebScraperTool,
3910
- z.ZodTypeDef,
3911
- unknown
3912
- > = z.object({
3913
- type: StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema,
3914
- requires_approval: z.boolean().default(false),
3915
- }).transform((v) => {
3916
- return remap$(v, {
3917
- "requires_approval": "requiresApproval",
3670
+ export const StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema:
3671
+ z.ZodType<
3672
+ StreamRunAgentAgentToolInputRunWebScraperTool,
3673
+ z.ZodTypeDef,
3674
+ unknown
3675
+ > = z.object({
3676
+ type: StreamRunAgentAgentToolInputRunAgentsType$inboundSchema,
3677
+ requires_approval: z.boolean().default(false),
3678
+ }).transform((v) => {
3679
+ return remap$(v, {
3680
+ "requires_approval": "requiresApproval",
3681
+ });
3918
3682
  });
3919
- });
3920
3683
 
3921
3684
  /** @internal */
3922
- export type RunAgentRequestToolWebScraperTool$Outbound = {
3685
+ export type StreamRunAgentAgentToolInputRunWebScraperTool$Outbound = {
3923
3686
  type: string;
3924
3687
  requires_approval: boolean;
3925
3688
  };
3926
3689
 
3927
3690
  /** @internal */
3928
- export const RunAgentRequestToolWebScraperTool$outboundSchema: z.ZodType<
3929
- RunAgentRequestToolWebScraperTool$Outbound,
3930
- z.ZodTypeDef,
3931
- RunAgentRequestToolWebScraperTool
3932
- > = z.object({
3933
- type: StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema,
3934
- requiresApproval: z.boolean().default(false),
3935
- }).transform((v) => {
3936
- return remap$(v, {
3937
- requiresApproval: "requires_approval",
3691
+ export const StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema:
3692
+ z.ZodType<
3693
+ StreamRunAgentAgentToolInputRunWebScraperTool$Outbound,
3694
+ z.ZodTypeDef,
3695
+ StreamRunAgentAgentToolInputRunWebScraperTool
3696
+ > = z.object({
3697
+ type: StreamRunAgentAgentToolInputRunAgentsType$outboundSchema,
3698
+ requiresApproval: z.boolean().default(false),
3699
+ }).transform((v) => {
3700
+ return remap$(v, {
3701
+ requiresApproval: "requires_approval",
3702
+ });
3938
3703
  });
3939
- });
3940
3704
 
3941
3705
  /**
3942
3706
  * @internal
3943
3707
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3944
3708
  */
3945
- export namespace RunAgentRequestToolWebScraperTool$ {
3946
- /** @deprecated use `RunAgentRequestToolWebScraperTool$inboundSchema` instead. */
3947
- export const inboundSchema = RunAgentRequestToolWebScraperTool$inboundSchema;
3948
- /** @deprecated use `RunAgentRequestToolWebScraperTool$outboundSchema` instead. */
3709
+ export namespace StreamRunAgentAgentToolInputRunWebScraperTool$ {
3710
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema` instead. */
3711
+ export const inboundSchema =
3712
+ StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema;
3713
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema` instead. */
3949
3714
  export const outboundSchema =
3950
- RunAgentRequestToolWebScraperTool$outboundSchema;
3951
- /** @deprecated use `RunAgentRequestToolWebScraperTool$Outbound` instead. */
3952
- export type Outbound = RunAgentRequestToolWebScraperTool$Outbound;
3715
+ StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema;
3716
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$Outbound` instead. */
3717
+ export type Outbound = StreamRunAgentAgentToolInputRunWebScraperTool$Outbound;
3953
3718
  }
3954
3719
 
3955
- export function runAgentRequestToolWebScraperToolToJSON(
3956
- runAgentRequestToolWebScraperTool: RunAgentRequestToolWebScraperTool,
3720
+ export function streamRunAgentAgentToolInputRunWebScraperToolToJSON(
3721
+ streamRunAgentAgentToolInputRunWebScraperTool:
3722
+ StreamRunAgentAgentToolInputRunWebScraperTool,
3957
3723
  ): string {
3958
3724
  return JSON.stringify(
3959
- RunAgentRequestToolWebScraperTool$outboundSchema.parse(
3960
- runAgentRequestToolWebScraperTool,
3725
+ StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema.parse(
3726
+ streamRunAgentAgentToolInputRunWebScraperTool,
3961
3727
  ),
3962
3728
  );
3963
3729
  }
3964
3730
 
3965
- export function runAgentRequestToolWebScraperToolFromJSON(
3731
+ export function streamRunAgentAgentToolInputRunWebScraperToolFromJSON(
3966
3732
  jsonString: string,
3967
- ): SafeParseResult<RunAgentRequestToolWebScraperTool, SDKValidationError> {
3733
+ ): SafeParseResult<
3734
+ StreamRunAgentAgentToolInputRunWebScraperTool,
3735
+ SDKValidationError
3736
+ > {
3968
3737
  return safeParse(
3969
3738
  jsonString,
3970
- (x) => RunAgentRequestToolWebScraperTool$inboundSchema.parse(JSON.parse(x)),
3971
- `Failed to parse 'RunAgentRequestToolWebScraperTool' from JSON`,
3739
+ (x) =>
3740
+ StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema.parse(
3741
+ JSON.parse(x),
3742
+ ),
3743
+ `Failed to parse 'StreamRunAgentAgentToolInputRunWebScraperTool' from JSON`,
3972
3744
  );
3973
3745
  }
3974
3746
 
3975
3747
  /** @internal */
3976
- export const StreamRunAgentRunAgentRequestToolType$inboundSchema:
3977
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolType> = z.nativeEnum(
3978
- StreamRunAgentRunAgentRequestToolType,
3979
- );
3748
+ export const StreamRunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
3749
+ typeof StreamRunAgentAgentToolInputRunType
3750
+ > = z.nativeEnum(StreamRunAgentAgentToolInputRunType);
3980
3751
 
3981
3752
  /** @internal */
3982
- export const StreamRunAgentRunAgentRequestToolType$outboundSchema:
3983
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolType> =
3984
- StreamRunAgentRunAgentRequestToolType$inboundSchema;
3753
+ export const StreamRunAgentAgentToolInputRunType$outboundSchema:
3754
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunType> =
3755
+ StreamRunAgentAgentToolInputRunType$inboundSchema;
3985
3756
 
3986
3757
  /**
3987
3758
  * @internal
3988
3759
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3989
3760
  */
3990
- export namespace StreamRunAgentRunAgentRequestToolType$ {
3991
- /** @deprecated use `StreamRunAgentRunAgentRequestToolType$inboundSchema` instead. */
3761
+ export namespace StreamRunAgentAgentToolInputRunType$ {
3762
+ /** @deprecated use `StreamRunAgentAgentToolInputRunType$inboundSchema` instead. */
3992
3763
  export const inboundSchema =
3993
- StreamRunAgentRunAgentRequestToolType$inboundSchema;
3994
- /** @deprecated use `StreamRunAgentRunAgentRequestToolType$outboundSchema` instead. */
3764
+ StreamRunAgentAgentToolInputRunType$inboundSchema;
3765
+ /** @deprecated use `StreamRunAgentAgentToolInputRunType$outboundSchema` instead. */
3995
3766
  export const outboundSchema =
3996
- StreamRunAgentRunAgentRequestToolType$outboundSchema;
3767
+ StreamRunAgentAgentToolInputRunType$outboundSchema;
3997
3768
  }
3998
3769
 
3999
3770
  /** @internal */
4000
- export const RunAgentRequestToolGoogleSearchTool$inboundSchema: z.ZodType<
4001
- RunAgentRequestToolGoogleSearchTool,
4002
- z.ZodTypeDef,
4003
- unknown
4004
- > = z.object({
4005
- type: StreamRunAgentRunAgentRequestToolType$inboundSchema,
4006
- requires_approval: z.boolean().default(false),
4007
- }).transform((v) => {
4008
- return remap$(v, {
4009
- "requires_approval": "requiresApproval",
3771
+ export const StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema:
3772
+ z.ZodType<
3773
+ StreamRunAgentAgentToolInputRunGoogleSearchTool,
3774
+ z.ZodTypeDef,
3775
+ unknown
3776
+ > = z.object({
3777
+ type: StreamRunAgentAgentToolInputRunType$inboundSchema,
3778
+ requires_approval: z.boolean().default(false),
3779
+ }).transform((v) => {
3780
+ return remap$(v, {
3781
+ "requires_approval": "requiresApproval",
3782
+ });
4010
3783
  });
4011
- });
4012
3784
 
4013
3785
  /** @internal */
4014
- export type RunAgentRequestToolGoogleSearchTool$Outbound = {
3786
+ export type StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound = {
4015
3787
  type: string;
4016
3788
  requires_approval: boolean;
4017
3789
  };
4018
3790
 
4019
3791
  /** @internal */
4020
- export const RunAgentRequestToolGoogleSearchTool$outboundSchema: z.ZodType<
4021
- RunAgentRequestToolGoogleSearchTool$Outbound,
4022
- z.ZodTypeDef,
4023
- RunAgentRequestToolGoogleSearchTool
4024
- > = z.object({
4025
- type: StreamRunAgentRunAgentRequestToolType$outboundSchema,
4026
- requiresApproval: z.boolean().default(false),
4027
- }).transform((v) => {
4028
- return remap$(v, {
4029
- requiresApproval: "requires_approval",
3792
+ export const StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema:
3793
+ z.ZodType<
3794
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound,
3795
+ z.ZodTypeDef,
3796
+ StreamRunAgentAgentToolInputRunGoogleSearchTool
3797
+ > = z.object({
3798
+ type: StreamRunAgentAgentToolInputRunType$outboundSchema,
3799
+ requiresApproval: z.boolean().default(false),
3800
+ }).transform((v) => {
3801
+ return remap$(v, {
3802
+ requiresApproval: "requires_approval",
3803
+ });
4030
3804
  });
4031
- });
4032
3805
 
4033
3806
  /**
4034
3807
  * @internal
4035
3808
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4036
3809
  */
4037
- export namespace RunAgentRequestToolGoogleSearchTool$ {
4038
- /** @deprecated use `RunAgentRequestToolGoogleSearchTool$inboundSchema` instead. */
3810
+ export namespace StreamRunAgentAgentToolInputRunGoogleSearchTool$ {
3811
+ /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
4039
3812
  export const inboundSchema =
4040
- RunAgentRequestToolGoogleSearchTool$inboundSchema;
4041
- /** @deprecated use `RunAgentRequestToolGoogleSearchTool$outboundSchema` instead. */
3813
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema;
3814
+ /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
4042
3815
  export const outboundSchema =
4043
- RunAgentRequestToolGoogleSearchTool$outboundSchema;
4044
- /** @deprecated use `RunAgentRequestToolGoogleSearchTool$Outbound` instead. */
4045
- export type Outbound = RunAgentRequestToolGoogleSearchTool$Outbound;
3816
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema;
3817
+ /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound` instead. */
3818
+ export type Outbound =
3819
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound;
4046
3820
  }
4047
3821
 
4048
- export function runAgentRequestToolGoogleSearchToolToJSON(
4049
- runAgentRequestToolGoogleSearchTool: RunAgentRequestToolGoogleSearchTool,
3822
+ export function streamRunAgentAgentToolInputRunGoogleSearchToolToJSON(
3823
+ streamRunAgentAgentToolInputRunGoogleSearchTool:
3824
+ StreamRunAgentAgentToolInputRunGoogleSearchTool,
4050
3825
  ): string {
4051
3826
  return JSON.stringify(
4052
- RunAgentRequestToolGoogleSearchTool$outboundSchema.parse(
4053
- runAgentRequestToolGoogleSearchTool,
3827
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema.parse(
3828
+ streamRunAgentAgentToolInputRunGoogleSearchTool,
4054
3829
  ),
4055
3830
  );
4056
3831
  }
4057
3832
 
4058
- export function runAgentRequestToolGoogleSearchToolFromJSON(
3833
+ export function streamRunAgentAgentToolInputRunGoogleSearchToolFromJSON(
4059
3834
  jsonString: string,
4060
- ): SafeParseResult<RunAgentRequestToolGoogleSearchTool, SDKValidationError> {
3835
+ ): SafeParseResult<
3836
+ StreamRunAgentAgentToolInputRunGoogleSearchTool,
3837
+ SDKValidationError
3838
+ > {
4061
3839
  return safeParse(
4062
3840
  jsonString,
4063
3841
  (x) =>
4064
- RunAgentRequestToolGoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
4065
- `Failed to parse 'RunAgentRequestToolGoogleSearchTool' from JSON`,
3842
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema.parse(
3843
+ JSON.parse(x),
3844
+ ),
3845
+ `Failed to parse 'StreamRunAgentAgentToolInputRunGoogleSearchTool' from JSON`,
4066
3846
  );
4067
3847
  }
4068
3848
 
4069
3849
  /** @internal */
4070
- export const StreamRunAgentRunAgentRequestTool$inboundSchema: z.ZodType<
4071
- StreamRunAgentRunAgentRequestTool,
3850
+ export const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<
3851
+ StreamRunAgentAgentToolInputRun,
4072
3852
  z.ZodTypeDef,
4073
3853
  unknown
4074
3854
  > = z.union([
4075
- z.lazy(() => RunAgentRequestToolHTTPTool$inboundSchema),
4076
- z.lazy(() => RunAgentRequestToolCodeExecutionTool$inboundSchema),
4077
- z.lazy(() => RunAgentRequestToolFunctionTool$inboundSchema),
4078
- z.lazy(() => RunAgentRequestToolGoogleSearchTool$inboundSchema),
4079
- z.lazy(() => RunAgentRequestToolWebScraperTool$inboundSchema),
4080
- z.lazy(() => RunAgentRequestToolCallSubAgentTool$inboundSchema),
4081
- z.lazy(() => RunAgentRequestToolRetrieveAgentsTool$inboundSchema),
4082
- z.lazy(() => RunAgentRequestToolQueryMemoryStoreTool$inboundSchema),
4083
- z.lazy(() => RunAgentRequestToolWriteMemoryStoreTool$inboundSchema),
4084
- z.lazy(() => RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema),
4085
- z.lazy(() => RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema),
4086
- z.lazy(() => RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema),
4087
- z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema),
4088
- z.lazy(() => RunAgentRequestToolCurrentDateTool$inboundSchema),
3855
+ z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
3856
+ z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
3857
+ z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
3858
+ z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema),
3859
+ z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema),
3860
+ z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema),
3861
+ z.lazy(() => StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema),
3862
+ z.lazy(() =>
3863
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
3864
+ ),
3865
+ z.lazy(() =>
3866
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
3867
+ ),
3868
+ z.lazy(() =>
3869
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
3870
+ ),
3871
+ z.lazy(() =>
3872
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
3873
+ ),
3874
+ z.lazy(() =>
3875
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
3876
+ ),
3877
+ z.lazy(() =>
3878
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
3879
+ ),
3880
+ z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema),
4089
3881
  ]);
4090
3882
 
4091
3883
  /** @internal */
4092
- export type StreamRunAgentRunAgentRequestTool$Outbound =
4093
- | RunAgentRequestToolHTTPTool$Outbound
4094
- | RunAgentRequestToolCodeExecutionTool$Outbound
4095
- | RunAgentRequestToolFunctionTool$Outbound
4096
- | RunAgentRequestToolGoogleSearchTool$Outbound
4097
- | RunAgentRequestToolWebScraperTool$Outbound
4098
- | RunAgentRequestToolCallSubAgentTool$Outbound
4099
- | RunAgentRequestToolRetrieveAgentsTool$Outbound
4100
- | RunAgentRequestToolQueryMemoryStoreTool$Outbound
4101
- | RunAgentRequestToolWriteMemoryStoreTool$Outbound
4102
- | RunAgentRequestToolRetrieveMemoryStoresTool$Outbound
4103
- | RunAgentRequestToolDeleteMemoryStoreTool$Outbound
4104
- | RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound
4105
- | RunAgentRequestToolQueryKnowledgeBaseTool$Outbound
4106
- | RunAgentRequestToolCurrentDateTool$Outbound;
4107
-
4108
- /** @internal */
4109
- export const StreamRunAgentRunAgentRequestTool$outboundSchema: z.ZodType<
4110
- StreamRunAgentRunAgentRequestTool$Outbound,
3884
+ export type StreamRunAgentAgentToolInputRun$Outbound =
3885
+ | AgentToolInputRunHTTPToolRun$Outbound
3886
+ | AgentToolInputRunCodeToolRun$Outbound
3887
+ | AgentToolInputRunFunctionToolRun$Outbound
3888
+ | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
3889
+ | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
3890
+ | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
3891
+ | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
3892
+ | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
3893
+ | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
3894
+ | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
3895
+ | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
3896
+ | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
3897
+ | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
3898
+ | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
3899
+
3900
+ /** @internal */
3901
+ export const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<
3902
+ StreamRunAgentAgentToolInputRun$Outbound,
4111
3903
  z.ZodTypeDef,
4112
- StreamRunAgentRunAgentRequestTool
3904
+ StreamRunAgentAgentToolInputRun
4113
3905
  > = z.union([
4114
- z.lazy(() => RunAgentRequestToolHTTPTool$outboundSchema),
4115
- z.lazy(() => RunAgentRequestToolCodeExecutionTool$outboundSchema),
4116
- z.lazy(() => RunAgentRequestToolFunctionTool$outboundSchema),
4117
- z.lazy(() => RunAgentRequestToolGoogleSearchTool$outboundSchema),
4118
- z.lazy(() => RunAgentRequestToolWebScraperTool$outboundSchema),
4119
- z.lazy(() => RunAgentRequestToolCallSubAgentTool$outboundSchema),
4120
- z.lazy(() => RunAgentRequestToolRetrieveAgentsTool$outboundSchema),
4121
- z.lazy(() => RunAgentRequestToolQueryMemoryStoreTool$outboundSchema),
4122
- z.lazy(() => RunAgentRequestToolWriteMemoryStoreTool$outboundSchema),
4123
- z.lazy(() => RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema),
4124
- z.lazy(() => RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema),
4125
- z.lazy(() => RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema),
4126
- z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema),
4127
- z.lazy(() => RunAgentRequestToolCurrentDateTool$outboundSchema),
3906
+ z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
3907
+ z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
3908
+ z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
3909
+ z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema),
3910
+ z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema),
3911
+ z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema),
3912
+ z.lazy(() =>
3913
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
3914
+ ),
3915
+ z.lazy(() =>
3916
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
3917
+ ),
3918
+ z.lazy(() =>
3919
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
3920
+ ),
3921
+ z.lazy(() =>
3922
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
3923
+ ),
3924
+ z.lazy(() =>
3925
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
3926
+ ),
3927
+ z.lazy(() =>
3928
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
3929
+ ),
3930
+ z.lazy(() =>
3931
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
3932
+ ),
3933
+ z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema),
4128
3934
  ]);
4129
3935
 
4130
3936
  /**
4131
3937
  * @internal
4132
3938
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4133
3939
  */
4134
- export namespace StreamRunAgentRunAgentRequestTool$ {
4135
- /** @deprecated use `StreamRunAgentRunAgentRequestTool$inboundSchema` instead. */
4136
- export const inboundSchema = StreamRunAgentRunAgentRequestTool$inboundSchema;
4137
- /** @deprecated use `StreamRunAgentRunAgentRequestTool$outboundSchema` instead. */
4138
- export const outboundSchema =
4139
- StreamRunAgentRunAgentRequestTool$outboundSchema;
4140
- /** @deprecated use `StreamRunAgentRunAgentRequestTool$Outbound` instead. */
4141
- export type Outbound = StreamRunAgentRunAgentRequestTool$Outbound;
3940
+ export namespace StreamRunAgentAgentToolInputRun$ {
3941
+ /** @deprecated use `StreamRunAgentAgentToolInputRun$inboundSchema` instead. */
3942
+ export const inboundSchema = StreamRunAgentAgentToolInputRun$inboundSchema;
3943
+ /** @deprecated use `StreamRunAgentAgentToolInputRun$outboundSchema` instead. */
3944
+ export const outboundSchema = StreamRunAgentAgentToolInputRun$outboundSchema;
3945
+ /** @deprecated use `StreamRunAgentAgentToolInputRun$Outbound` instead. */
3946
+ export type Outbound = StreamRunAgentAgentToolInputRun$Outbound;
4142
3947
  }
4143
3948
 
4144
- export function streamRunAgentRunAgentRequestToolToJSON(
4145
- streamRunAgentRunAgentRequestTool: StreamRunAgentRunAgentRequestTool,
3949
+ export function streamRunAgentAgentToolInputRunToJSON(
3950
+ streamRunAgentAgentToolInputRun: StreamRunAgentAgentToolInputRun,
4146
3951
  ): string {
4147
3952
  return JSON.stringify(
4148
- StreamRunAgentRunAgentRequestTool$outboundSchema.parse(
4149
- streamRunAgentRunAgentRequestTool,
3953
+ StreamRunAgentAgentToolInputRun$outboundSchema.parse(
3954
+ streamRunAgentAgentToolInputRun,
4150
3955
  ),
4151
3956
  );
4152
3957
  }
4153
3958
 
4154
- export function streamRunAgentRunAgentRequestToolFromJSON(
3959
+ export function streamRunAgentAgentToolInputRunFromJSON(
4155
3960
  jsonString: string,
4156
- ): SafeParseResult<StreamRunAgentRunAgentRequestTool, SDKValidationError> {
3961
+ ): SafeParseResult<StreamRunAgentAgentToolInputRun, SDKValidationError> {
4157
3962
  return safeParse(
4158
3963
  jsonString,
4159
- (x) => StreamRunAgentRunAgentRequestTool$inboundSchema.parse(JSON.parse(x)),
4160
- `Failed to parse 'StreamRunAgentRunAgentRequestTool' from JSON`,
3964
+ (x) => StreamRunAgentAgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
3965
+ `Failed to parse 'StreamRunAgentAgentToolInputRun' from JSON`,
4161
3966
  );
4162
3967
  }
4163
3968
 
@@ -4191,20 +3996,42 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
4191
3996
  > = z.object({
4192
3997
  tools: z.array(
4193
3998
  z.union([
4194
- z.lazy(() => RunAgentRequestToolHTTPTool$inboundSchema),
4195
- z.lazy(() => RunAgentRequestToolCodeExecutionTool$inboundSchema),
4196
- z.lazy(() => RunAgentRequestToolFunctionTool$inboundSchema),
4197
- z.lazy(() => RunAgentRequestToolGoogleSearchTool$inboundSchema),
4198
- z.lazy(() => RunAgentRequestToolWebScraperTool$inboundSchema),
4199
- z.lazy(() => RunAgentRequestToolCallSubAgentTool$inboundSchema),
4200
- z.lazy(() => RunAgentRequestToolRetrieveAgentsTool$inboundSchema),
4201
- z.lazy(() => RunAgentRequestToolQueryMemoryStoreTool$inboundSchema),
4202
- z.lazy(() => RunAgentRequestToolWriteMemoryStoreTool$inboundSchema),
4203
- z.lazy(() => RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema),
4204
- z.lazy(() => RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema),
4205
- z.lazy(() => RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema),
4206
- z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema),
4207
- z.lazy(() => RunAgentRequestToolCurrentDateTool$inboundSchema),
3999
+ z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
4000
+ z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
4001
+ z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
4002
+ z.lazy(() =>
4003
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema
4004
+ ),
4005
+ z.lazy(() =>
4006
+ StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema
4007
+ ),
4008
+ z.lazy(() =>
4009
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema
4010
+ ),
4011
+ z.lazy(() =>
4012
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema
4013
+ ),
4014
+ z.lazy(() =>
4015
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
4016
+ ),
4017
+ z.lazy(() =>
4018
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
4019
+ ),
4020
+ z.lazy(() =>
4021
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
4022
+ ),
4023
+ z.lazy(() =>
4024
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
4025
+ ),
4026
+ z.lazy(() =>
4027
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
4028
+ ),
4029
+ z.lazy(() =>
4030
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
4031
+ ),
4032
+ z.lazy(() =>
4033
+ StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema
4034
+ ),
4208
4035
  ]),
4209
4036
  ),
4210
4037
  tool_approval_required: StreamRunAgentToolApprovalRequired$inboundSchema
@@ -4222,20 +4049,20 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
4222
4049
  /** @internal */
4223
4050
  export type StreamRunAgentSettings$Outbound = {
4224
4051
  tools: Array<
4225
- | RunAgentRequestToolHTTPTool$Outbound
4226
- | RunAgentRequestToolCodeExecutionTool$Outbound
4227
- | RunAgentRequestToolFunctionTool$Outbound
4228
- | RunAgentRequestToolGoogleSearchTool$Outbound
4229
- | RunAgentRequestToolWebScraperTool$Outbound
4230
- | RunAgentRequestToolCallSubAgentTool$Outbound
4231
- | RunAgentRequestToolRetrieveAgentsTool$Outbound
4232
- | RunAgentRequestToolQueryMemoryStoreTool$Outbound
4233
- | RunAgentRequestToolWriteMemoryStoreTool$Outbound
4234
- | RunAgentRequestToolRetrieveMemoryStoresTool$Outbound
4235
- | RunAgentRequestToolDeleteMemoryStoreTool$Outbound
4236
- | RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound
4237
- | RunAgentRequestToolQueryKnowledgeBaseTool$Outbound
4238
- | RunAgentRequestToolCurrentDateTool$Outbound
4052
+ | AgentToolInputRunHTTPToolRun$Outbound
4053
+ | AgentToolInputRunCodeToolRun$Outbound
4054
+ | AgentToolInputRunFunctionToolRun$Outbound
4055
+ | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
4056
+ | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
4057
+ | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
4058
+ | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
4059
+ | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
4060
+ | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
4061
+ | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
4062
+ | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
4063
+ | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
4064
+ | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
4065
+ | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound
4239
4066
  >;
4240
4067
  tool_approval_required: string;
4241
4068
  max_iterations: number;
@@ -4250,22 +4077,42 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
4250
4077
  > = z.object({
4251
4078
  tools: z.array(
4252
4079
  z.union([
4253
- z.lazy(() => RunAgentRequestToolHTTPTool$outboundSchema),
4254
- z.lazy(() => RunAgentRequestToolCodeExecutionTool$outboundSchema),
4255
- z.lazy(() => RunAgentRequestToolFunctionTool$outboundSchema),
4256
- z.lazy(() => RunAgentRequestToolGoogleSearchTool$outboundSchema),
4257
- z.lazy(() => RunAgentRequestToolWebScraperTool$outboundSchema),
4258
- z.lazy(() => RunAgentRequestToolCallSubAgentTool$outboundSchema),
4259
- z.lazy(() => RunAgentRequestToolRetrieveAgentsTool$outboundSchema),
4260
- z.lazy(() => RunAgentRequestToolQueryMemoryStoreTool$outboundSchema),
4261
- z.lazy(() => RunAgentRequestToolWriteMemoryStoreTool$outboundSchema),
4262
- z.lazy(() => RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema),
4263
- z.lazy(() => RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema),
4080
+ z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
4081
+ z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
4082
+ z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
4083
+ z.lazy(() =>
4084
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema
4085
+ ),
4086
+ z.lazy(() =>
4087
+ StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema
4088
+ ),
4089
+ z.lazy(() =>
4090
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema
4091
+ ),
4092
+ z.lazy(() =>
4093
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
4094
+ ),
4264
4095
  z.lazy(() =>
4265
- RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema
4096
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
4097
+ ),
4098
+ z.lazy(() =>
4099
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
4100
+ ),
4101
+ z.lazy(() =>
4102
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
4103
+ ),
4104
+ z.lazy(() =>
4105
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
4106
+ ),
4107
+ z.lazy(() =>
4108
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
4109
+ ),
4110
+ z.lazy(() =>
4111
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
4112
+ ),
4113
+ z.lazy(() =>
4114
+ StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema
4266
4115
  ),
4267
- z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema),
4268
- z.lazy(() => RunAgentRequestToolCurrentDateTool$outboundSchema),
4269
4116
  ]),
4270
4117
  ),
4271
4118
  toolApprovalRequired: StreamRunAgentToolApprovalRequired$outboundSchema
@@ -4318,7 +4165,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
4318
4165
  unknown
4319
4166
  > = z.object({
4320
4167
  key: z.string(),
4321
- taskId: z.string().optional(),
4168
+ task_id: z.string().optional(),
4322
4169
  model: z.string(),
4323
4170
  fallback_models: z.array(z.string()).optional(),
4324
4171
  role: z.string(),
@@ -4343,6 +4190,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
4343
4190
  stream_timeout_seconds: z.number().optional(),
4344
4191
  }).transform((v) => {
4345
4192
  return remap$(v, {
4193
+ "task_id": "taskId",
4346
4194
  "fallback_models": "fallbackModels",
4347
4195
  "system_prompt": "systemPrompt",
4348
4196
  "memory_stores": "memoryStores",
@@ -4355,7 +4203,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
4355
4203
  /** @internal */
4356
4204
  export type StreamRunAgentRequestBody$Outbound = {
4357
4205
  key: string;
4358
- taskId?: string | undefined;
4206
+ task_id?: string | undefined;
4359
4207
  model: string;
4360
4208
  fallback_models?: Array<string> | undefined;
4361
4209
  role: string;
@@ -4407,6 +4255,7 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
4407
4255
  streamTimeoutSeconds: z.number().optional(),
4408
4256
  }).transform((v) => {
4409
4257
  return remap$(v, {
4258
+ taskId: "task_id",
4410
4259
  fallbackModels: "fallback_models",
4411
4260
  systemPrompt: "system_prompt",
4412
4261
  memoryStores: "memory_stores",