@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
@@ -212,47 +212,11 @@ export type RunAgentMemory = {
212
212
  entityId: string;
213
213
  };
214
214
 
215
- export const RunAgentKnowledgeBaseConfigurationType = {
216
- Query: "query",
217
- } as const;
218
- export type RunAgentKnowledgeBaseConfigurationType = ClosedEnum<
219
- typeof RunAgentKnowledgeBaseConfigurationType
220
- >;
221
-
222
- /**
223
- * Defines the configuration settings for a static query.
224
- */
225
- export type KnowledgeBaseStaticQuery = {
226
- type: RunAgentKnowledgeBaseConfigurationType;
227
- query: string;
228
- };
229
-
230
- export const KnowledgeBaseConfigurationType = {
231
- LastUserMessage: "last_user_message",
232
- } as const;
233
- export type KnowledgeBaseConfigurationType = ClosedEnum<
234
- typeof KnowledgeBaseConfigurationType
235
- >;
236
-
237
- /**
238
- * Defines the configuration settings for a last user message type retrieval.
239
- */
240
- export type KnowledgeBaseLastUserMessage = {
241
- type: KnowledgeBaseConfigurationType;
242
- };
243
-
244
- /**
245
- * Defines the configuration settings which can either be for a user message or a text entry.
246
- */
247
- export type KnowledgeBaseConfiguration =
248
- | KnowledgeBaseStaticQuery
249
- | KnowledgeBaseLastUserMessage;
250
-
251
- export type KnowledgeBases = {
215
+ export type RunAgentKnowledgeBases = {
252
216
  /**
253
- * Defines the configuration settings which can either be for a user message or a text entry.
217
+ * Unique identifier of the knowledge base to search
254
218
  */
255
- configuration: KnowledgeBaseStaticQuery | KnowledgeBaseLastUserMessage;
219
+ knowledgeId: string;
256
220
  };
257
221
 
258
222
  export type TeamOfAgents = {
@@ -266,42 +230,57 @@ export type TeamOfAgents = {
266
230
  role?: string | undefined;
267
231
  };
268
232
 
269
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type =
233
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
270
234
  {
271
235
  Function: "function",
272
236
  } as const;
273
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type =
237
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
274
238
  ClosedEnum<
275
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
239
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
276
240
  >;
277
241
 
278
- export type RunAgentRequestToolFunction = {
242
+ export type AgentToolInputRunFunction = {
243
+ /**
244
+ * 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.
245
+ */
279
246
  name: string;
247
+ /**
248
+ * A description of what the function does, used by the model to choose when and how to call the function.
249
+ */
280
250
  description?: string | undefined;
251
+ /**
252
+ * 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.
253
+ */
281
254
  strict?: boolean | undefined;
255
+ /**
256
+ * 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.
257
+ */
282
258
  parameters?: { [k: string]: any } | undefined;
283
259
  };
284
260
 
285
261
  /**
286
- * Custom function tool with configurable parameters
262
+ * Function tool with inline definition for on-the-fly creation in run endpoint
287
263
  */
288
- export type FunctionTool = {
289
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type;
290
- id?: string | undefined;
264
+ export type FunctionToolRun = {
265
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
266
+ /**
267
+ * Unique key of the tool as it will be displayed in the UI
268
+ */
291
269
  key: string;
270
+ id?: string | undefined;
292
271
  displayName?: string | undefined;
293
272
  description?: string | undefined;
273
+ function: AgentToolInputRunFunction;
294
274
  requiresApproval?: boolean | undefined;
295
- function: RunAgentRequestToolFunction;
296
275
  };
297
276
 
298
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
277
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
299
278
  {
300
279
  Code: "code",
301
280
  } as const;
302
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
281
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
303
282
  ClosedEnum<
304
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
283
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
305
284
  >;
306
285
 
307
286
  export const Language = {
@@ -322,34 +301,31 @@ export type CodeTool = {
322
301
  };
323
302
 
324
303
  /**
325
- * Executes code in a secure sandbox environment
304
+ * Code execution tool with inline definition for on-the-fly creation in run endpoint
326
305
  */
327
- export type CodeExecutionTool = {
306
+ export type CodeToolRun = {
307
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
328
308
  /**
329
309
  * Unique key of the tool as it will be displayed in the UI
330
310
  */
331
311
  key: string;
332
- /**
333
- * 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.
334
- */
335
- displayName: string;
312
+ id?: string | undefined;
313
+ displayName?: string | undefined;
336
314
  /**
337
315
  * 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.
338
316
  */
339
317
  description: string;
340
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
341
318
  codeTool: CodeTool;
342
- id?: string | undefined;
343
319
  requiresApproval?: boolean | undefined;
344
320
  };
345
321
 
346
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
322
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
347
323
  {
348
324
  Http: "http",
349
325
  } as const;
350
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
326
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
351
327
  ClosedEnum<
352
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
328
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
353
329
  >;
354
330
 
355
331
  /**
@@ -391,7 +367,7 @@ export type Blueprint = {
391
367
  /**
392
368
  * The type of the argument.
393
369
  */
394
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType =
370
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
395
371
  {
396
372
  String: "string",
397
373
  Number: "number",
@@ -400,9 +376,9 @@ export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12H
400
376
  /**
401
377
  * The type of the argument.
402
378
  */
403
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType =
379
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
404
380
  ClosedEnum<
405
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
381
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
406
382
  >;
407
383
 
408
384
  /**
@@ -415,7 +391,7 @@ export type Arguments = {
415
391
  * The type of the argument.
416
392
  */
417
393
  type:
418
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType;
394
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
419
395
  /**
420
396
  * A description of the argument.
421
397
  */
@@ -442,224 +418,254 @@ export type Http = {
442
418
  };
443
419
 
444
420
  /**
445
- * Makes HTTP requests to external APIs
421
+ * HTTP tool with inline definition for on-the-fly creation in run endpoint
446
422
  */
447
- export type HTTPTool = {
423
+ export type HTTPToolRun = {
424
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
448
425
  /**
449
426
  * Unique key of the tool as it will be displayed in the UI
450
427
  */
451
428
  key: string;
452
- /**
453
- * 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.
454
- */
455
- displayName: string;
429
+ id?: string | undefined;
430
+ displayName?: string | undefined;
456
431
  /**
457
432
  * 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.
458
433
  */
459
434
  description: string;
460
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
461
435
  http: Http;
462
436
  requiresApproval?: boolean | undefined;
463
437
  };
464
438
 
465
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
439
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
466
440
  {
467
441
  CurrentDate: "current_date",
468
442
  } as const;
469
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
443
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
470
444
  ClosedEnum<
471
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
445
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
472
446
  >;
473
447
 
474
448
  /**
475
- * Provides the current date and time
449
+ * Returns the current date and time
476
450
  */
477
- export type CurrentDateTool = {
478
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type;
451
+ export type AgentToolInputRunCurrentDateTool = {
452
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
453
+ /**
454
+ * Whether this tool requires approval before execution
455
+ */
479
456
  requiresApproval?: boolean | undefined;
480
457
  };
481
458
 
482
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
459
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
483
460
  {
484
461
  QueryKnowledgeBase: "query_knowledge_base",
485
462
  } as const;
486
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
463
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
487
464
  ClosedEnum<
488
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
465
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
489
466
  >;
490
467
 
491
468
  /**
492
469
  * Queries knowledge bases for information
493
470
  */
494
- export type QueryKnowledgeBaseTool = {
495
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type;
471
+ export type AgentToolInputRunQueryKnowledgeBaseTool = {
472
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
473
+ /**
474
+ * Whether this tool requires approval before execution
475
+ */
496
476
  requiresApproval?: boolean | undefined;
497
477
  };
498
478
 
499
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
479
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
500
480
  {
501
481
  RetrieveKnowledgeBases: "retrieve_knowledge_bases",
502
482
  } as const;
503
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
483
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
504
484
  ClosedEnum<
505
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
485
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
506
486
  >;
507
487
 
508
488
  /**
509
489
  * Lists available knowledge bases
510
490
  */
511
- export type RetrieveKnowledgeBasesTool = {
512
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type;
491
+ export type AgentToolInputRunRetrieveKnowledgeBasesTool = {
492
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
493
+ /**
494
+ * Whether this tool requires approval before execution
495
+ */
513
496
  requiresApproval?: boolean | undefined;
514
497
  };
515
498
 
516
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
499
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
517
500
  {
518
501
  DeleteMemoryDocument: "delete_memory_document",
519
502
  } as const;
520
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
503
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
521
504
  ClosedEnum<
522
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
505
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
523
506
  >;
524
507
 
525
508
  /**
526
- * Deletes a memory store
509
+ * Deletes documents from memory stores
527
510
  */
528
- export type DeleteMemoryStoreTool = {
529
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type;
511
+ export type AgentToolInputRunDeleteMemoryDocumentTool = {
512
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
513
+ /**
514
+ * Whether this tool requires approval before execution
515
+ */
530
516
  requiresApproval?: boolean | undefined;
531
517
  };
532
518
 
533
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
519
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
534
520
  {
535
521
  RetrieveMemoryStores: "retrieve_memory_stores",
536
522
  } as const;
537
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
523
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
538
524
  ClosedEnum<
539
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
525
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
540
526
  >;
541
527
 
542
528
  /**
543
529
  * Lists available memory stores
544
530
  */
545
- export type RetrieveMemoryStoresTool = {
546
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType;
531
+ export type AgentToolInputRunRetrieveMemoryStoresTool = {
532
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
533
+ /**
534
+ * Whether this tool requires approval before execution
535
+ */
547
536
  requiresApproval?: boolean | undefined;
548
537
  };
549
538
 
550
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType = {
539
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = {
551
540
  WriteMemoryStore: "write_memory_store",
552
541
  } as const;
553
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType =
542
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
554
543
  ClosedEnum<
555
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
544
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
556
545
  >;
557
546
 
558
547
  /**
559
548
  * Writes information to agent memory stores
560
549
  */
561
- export type WriteMemoryStoreTool = {
562
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType;
550
+ export type AgentToolInputRunWriteMemoryStoreTool = {
551
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
552
+ /**
553
+ * Whether this tool requires approval before execution
554
+ */
563
555
  requiresApproval?: boolean | undefined;
564
556
  };
565
557
 
566
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType = {
558
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
567
559
  QueryMemoryStore: "query_memory_store",
568
560
  } as const;
569
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodyType =
570
- ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType>;
561
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodyType = ClosedEnum<
562
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
563
+ >;
571
564
 
572
565
  /**
573
566
  * Queries agent memory stores for context
574
567
  */
575
- export type QueryMemoryStoreTool = {
576
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType;
568
+ export type AgentToolInputRunQueryMemoryStoreTool = {
569
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType;
570
+ /**
571
+ * Whether this tool requires approval before execution
572
+ */
577
573
  requiresApproval?: boolean | undefined;
578
574
  };
579
575
 
580
- export const RunAgentRunAgentRequestToolAgentsRequestType = {
576
+ export const RunAgentAgentToolInputRunAgentsRequestType = {
581
577
  RetrieveAgents: "retrieve_agents",
582
578
  } as const;
583
- export type RunAgentRunAgentRequestToolAgentsRequestType = ClosedEnum<
584
- typeof RunAgentRunAgentRequestToolAgentsRequestType
579
+ export type RunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
580
+ typeof RunAgentAgentToolInputRunAgentsRequestType
585
581
  >;
586
582
 
587
583
  /**
588
584
  * Retrieves available agents in the system
589
585
  */
590
- export type RetrieveAgentsTool = {
591
- type: RunAgentRunAgentRequestToolAgentsRequestType;
586
+ export type AgentToolInputRunRetrieveAgentsTool = {
587
+ type: RunAgentAgentToolInputRunAgentsRequestType;
588
+ /**
589
+ * Whether this tool requires approval before execution
590
+ */
592
591
  requiresApproval?: boolean | undefined;
593
592
  };
594
593
 
595
- export const RunAgentRunAgentRequestToolAgentsType = {
594
+ export const RunAgentAgentToolInputRunAgentsType = {
596
595
  CallSubAgent: "call_sub_agent",
597
596
  } as const;
598
- export type RunAgentRunAgentRequestToolAgentsType = ClosedEnum<
599
- typeof RunAgentRunAgentRequestToolAgentsType
597
+ export type RunAgentAgentToolInputRunAgentsType = ClosedEnum<
598
+ typeof RunAgentAgentToolInputRunAgentsType
600
599
  >;
601
600
 
602
601
  /**
603
602
  * Delegates tasks to specialized sub-agents
604
603
  */
605
- export type CallSubAgentTool = {
606
- type: RunAgentRunAgentRequestToolAgentsType;
604
+ export type AgentToolInputRunCallSubAgentTool = {
605
+ type: RunAgentAgentToolInputRunAgentsType;
606
+ /**
607
+ * Whether this tool requires approval before execution
608
+ */
607
609
  requiresApproval?: boolean | undefined;
608
610
  };
609
611
 
610
- export const RunAgentRunAgentRequestToolType = {
612
+ export const RunAgentAgentToolInputRunType = {
611
613
  WebScraper: "web_scraper",
612
614
  } as const;
613
- export type RunAgentRunAgentRequestToolType = ClosedEnum<
614
- typeof RunAgentRunAgentRequestToolType
615
+ export type RunAgentAgentToolInputRunType = ClosedEnum<
616
+ typeof RunAgentAgentToolInputRunType
615
617
  >;
616
618
 
617
619
  /**
618
620
  * Scrapes and extracts content from web pages
619
621
  */
620
- export type WebScraperTool = {
621
- type: RunAgentRunAgentRequestToolType;
622
+ export type AgentToolInputRunWebScraperTool = {
623
+ type: RunAgentAgentToolInputRunType;
624
+ /**
625
+ * Whether this tool requires approval before execution
626
+ */
622
627
  requiresApproval?: boolean | undefined;
623
628
  };
624
629
 
625
- export const RunAgentRequestToolType = {
630
+ export const AgentToolInputRunType = {
626
631
  GoogleSearch: "google_search",
627
632
  } as const;
628
- export type RunAgentRequestToolType = ClosedEnum<
629
- typeof RunAgentRequestToolType
630
- >;
633
+ export type AgentToolInputRunType = ClosedEnum<typeof AgentToolInputRunType>;
631
634
 
632
635
  /**
633
636
  * Performs Google searches to retrieve web content
634
637
  */
635
- export type GoogleSearchTool = {
636
- type: RunAgentRequestToolType;
638
+ export type AgentToolInputRunGoogleSearchTool = {
639
+ type: AgentToolInputRunType;
640
+ /**
641
+ * Whether this tool requires approval before execution
642
+ */
637
643
  requiresApproval?: boolean | undefined;
638
644
  };
639
645
 
640
646
  /**
641
- * Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
647
+ * 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.
642
648
  */
643
- export type RunAgentRequestTool =
644
- | HTTPTool
645
- | CodeExecutionTool
646
- | FunctionTool
647
- | GoogleSearchTool
648
- | WebScraperTool
649
- | CallSubAgentTool
650
- | RetrieveAgentsTool
651
- | QueryMemoryStoreTool
652
- | WriteMemoryStoreTool
653
- | RetrieveMemoryStoresTool
654
- | DeleteMemoryStoreTool
655
- | RetrieveKnowledgeBasesTool
656
- | QueryKnowledgeBaseTool
657
- | CurrentDateTool;
649
+ export type AgentToolInputRun =
650
+ | HTTPToolRun
651
+ | CodeToolRun
652
+ | FunctionToolRun
653
+ | AgentToolInputRunGoogleSearchTool
654
+ | AgentToolInputRunWebScraperTool
655
+ | AgentToolInputRunCallSubAgentTool
656
+ | AgentToolInputRunRetrieveAgentsTool
657
+ | AgentToolInputRunQueryMemoryStoreTool
658
+ | AgentToolInputRunWriteMemoryStoreTool
659
+ | AgentToolInputRunRetrieveMemoryStoresTool
660
+ | AgentToolInputRunDeleteMemoryDocumentTool
661
+ | AgentToolInputRunRetrieveKnowledgeBasesTool
662
+ | AgentToolInputRunQueryKnowledgeBaseTool
663
+ | AgentToolInputRunCurrentDateTool;
658
664
 
659
665
  /**
660
666
  * 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.
661
667
  */
662
- export const ToolApprovalRequired = {
668
+ export const RunAgentToolApprovalRequired = {
663
669
  All: "all",
664
670
  RespectTool: "respect_tool",
665
671
  None: "none",
@@ -667,32 +673,34 @@ export const ToolApprovalRequired = {
667
673
  /**
668
674
  * 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.
669
675
  */
670
- export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
676
+ export type RunAgentToolApprovalRequired = ClosedEnum<
677
+ typeof RunAgentToolApprovalRequired
678
+ >;
671
679
 
672
- export type Settings = {
680
+ export type RunAgentSettings = {
673
681
  /**
674
682
  * Tools available to the agent
675
683
  */
676
684
  tools: Array<
677
- | HTTPTool
678
- | CodeExecutionTool
679
- | FunctionTool
680
- | GoogleSearchTool
681
- | WebScraperTool
682
- | CallSubAgentTool
683
- | RetrieveAgentsTool
684
- | QueryMemoryStoreTool
685
- | WriteMemoryStoreTool
686
- | RetrieveMemoryStoresTool
687
- | DeleteMemoryStoreTool
688
- | RetrieveKnowledgeBasesTool
689
- | QueryKnowledgeBaseTool
690
- | CurrentDateTool
685
+ | HTTPToolRun
686
+ | CodeToolRun
687
+ | FunctionToolRun
688
+ | AgentToolInputRunGoogleSearchTool
689
+ | AgentToolInputRunWebScraperTool
690
+ | AgentToolInputRunCallSubAgentTool
691
+ | AgentToolInputRunRetrieveAgentsTool
692
+ | AgentToolInputRunQueryMemoryStoreTool
693
+ | AgentToolInputRunWriteMemoryStoreTool
694
+ | AgentToolInputRunRetrieveMemoryStoresTool
695
+ | AgentToolInputRunDeleteMemoryDocumentTool
696
+ | AgentToolInputRunRetrieveKnowledgeBasesTool
697
+ | AgentToolInputRunQueryKnowledgeBaseTool
698
+ | AgentToolInputRunCurrentDateTool
691
699
  >;
692
700
  /**
693
701
  * 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.
694
702
  */
695
- toolApprovalRequired?: ToolApprovalRequired | undefined;
703
+ toolApprovalRequired?: RunAgentToolApprovalRequired | undefined;
696
704
  /**
697
705
  * Maximum iterations(llm calls) before the agent will stop executing.
698
706
  */
@@ -770,12 +778,15 @@ export type RunAgentRequestBody = {
770
778
  * The list of keys of the memory stores that are accessible to the agent.
771
779
  */
772
780
  memoryStores?: Array<string> | undefined;
773
- knowledgeBases?: Array<KnowledgeBases> | undefined;
781
+ /**
782
+ * Knowledge base configurations for the agent to access
783
+ */
784
+ knowledgeBases?: Array<RunAgentKnowledgeBases> | undefined;
774
785
  /**
775
786
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
776
787
  */
777
788
  teamOfAgents?: Array<TeamOfAgents> | undefined;
778
- settings: Settings;
789
+ settings: RunAgentSettings;
779
790
  /**
780
791
  * Optional metadata for the agent run as key-value pairs that will be included in traces
781
792
  */
@@ -871,7 +882,7 @@ export type RunAgentResponseBody = {
871
882
  */
872
883
  id: string;
873
884
  /**
874
- * The context ID (workspace ID)
885
+ * The correlation ID for this execution
875
886
  */
876
887
  contextId: string;
877
888
  /**
@@ -883,7 +894,7 @@ export type RunAgentResponseBody = {
883
894
  */
884
895
  status: RunAgentStatus;
885
896
  /**
886
- * Task metadata
897
+ * Task metadata containing workspace_id and trace_id for feedback
887
898
  */
888
899
  metadata?: { [k: string]: any } | undefined;
889
900
  };
@@ -1749,274 +1760,64 @@ export function runAgentMemoryFromJSON(
1749
1760
  }
1750
1761
 
1751
1762
  /** @internal */
1752
- export const RunAgentKnowledgeBaseConfigurationType$inboundSchema:
1753
- z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType> = z.nativeEnum(
1754
- RunAgentKnowledgeBaseConfigurationType,
1755
- );
1756
-
1757
- /** @internal */
1758
- export const RunAgentKnowledgeBaseConfigurationType$outboundSchema:
1759
- z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType> =
1760
- RunAgentKnowledgeBaseConfigurationType$inboundSchema;
1761
-
1762
- /**
1763
- * @internal
1764
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1765
- */
1766
- export namespace RunAgentKnowledgeBaseConfigurationType$ {
1767
- /** @deprecated use `RunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
1768
- export const inboundSchema =
1769
- RunAgentKnowledgeBaseConfigurationType$inboundSchema;
1770
- /** @deprecated use `RunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
1771
- export const outboundSchema =
1772
- RunAgentKnowledgeBaseConfigurationType$outboundSchema;
1773
- }
1774
-
1775
- /** @internal */
1776
- export const KnowledgeBaseStaticQuery$inboundSchema: z.ZodType<
1777
- KnowledgeBaseStaticQuery,
1763
+ export const RunAgentKnowledgeBases$inboundSchema: z.ZodType<
1764
+ RunAgentKnowledgeBases,
1778
1765
  z.ZodTypeDef,
1779
1766
  unknown
1780
1767
  > = z.object({
1781
- type: RunAgentKnowledgeBaseConfigurationType$inboundSchema,
1782
- query: z.string(),
1783
- });
1784
-
1785
- /** @internal */
1786
- export type KnowledgeBaseStaticQuery$Outbound = {
1787
- type: string;
1788
- query: string;
1789
- };
1790
-
1791
- /** @internal */
1792
- export const KnowledgeBaseStaticQuery$outboundSchema: z.ZodType<
1793
- KnowledgeBaseStaticQuery$Outbound,
1794
- z.ZodTypeDef,
1795
- KnowledgeBaseStaticQuery
1796
- > = z.object({
1797
- type: RunAgentKnowledgeBaseConfigurationType$outboundSchema,
1798
- query: z.string(),
1799
- });
1800
-
1801
- /**
1802
- * @internal
1803
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1804
- */
1805
- export namespace KnowledgeBaseStaticQuery$ {
1806
- /** @deprecated use `KnowledgeBaseStaticQuery$inboundSchema` instead. */
1807
- export const inboundSchema = KnowledgeBaseStaticQuery$inboundSchema;
1808
- /** @deprecated use `KnowledgeBaseStaticQuery$outboundSchema` instead. */
1809
- export const outboundSchema = KnowledgeBaseStaticQuery$outboundSchema;
1810
- /** @deprecated use `KnowledgeBaseStaticQuery$Outbound` instead. */
1811
- export type Outbound = KnowledgeBaseStaticQuery$Outbound;
1812
- }
1813
-
1814
- export function knowledgeBaseStaticQueryToJSON(
1815
- knowledgeBaseStaticQuery: KnowledgeBaseStaticQuery,
1816
- ): string {
1817
- return JSON.stringify(
1818
- KnowledgeBaseStaticQuery$outboundSchema.parse(knowledgeBaseStaticQuery),
1819
- );
1820
- }
1821
-
1822
- export function knowledgeBaseStaticQueryFromJSON(
1823
- jsonString: string,
1824
- ): SafeParseResult<KnowledgeBaseStaticQuery, SDKValidationError> {
1825
- return safeParse(
1826
- jsonString,
1827
- (x) => KnowledgeBaseStaticQuery$inboundSchema.parse(JSON.parse(x)),
1828
- `Failed to parse 'KnowledgeBaseStaticQuery' from JSON`,
1829
- );
1830
- }
1831
-
1832
- /** @internal */
1833
- export const KnowledgeBaseConfigurationType$inboundSchema: z.ZodNativeEnum<
1834
- typeof KnowledgeBaseConfigurationType
1835
- > = z.nativeEnum(KnowledgeBaseConfigurationType);
1836
-
1837
- /** @internal */
1838
- export const KnowledgeBaseConfigurationType$outboundSchema: z.ZodNativeEnum<
1839
- typeof KnowledgeBaseConfigurationType
1840
- > = KnowledgeBaseConfigurationType$inboundSchema;
1841
-
1842
- /**
1843
- * @internal
1844
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1845
- */
1846
- export namespace KnowledgeBaseConfigurationType$ {
1847
- /** @deprecated use `KnowledgeBaseConfigurationType$inboundSchema` instead. */
1848
- export const inboundSchema = KnowledgeBaseConfigurationType$inboundSchema;
1849
- /** @deprecated use `KnowledgeBaseConfigurationType$outboundSchema` instead. */
1850
- export const outboundSchema = KnowledgeBaseConfigurationType$outboundSchema;
1851
- }
1852
-
1853
- /** @internal */
1854
- export const KnowledgeBaseLastUserMessage$inboundSchema: z.ZodType<
1855
- KnowledgeBaseLastUserMessage,
1856
- z.ZodTypeDef,
1857
- unknown
1858
- > = z.object({
1859
- type: KnowledgeBaseConfigurationType$inboundSchema,
1768
+ knowledge_id: z.string(),
1769
+ }).transform((v) => {
1770
+ return remap$(v, {
1771
+ "knowledge_id": "knowledgeId",
1772
+ });
1860
1773
  });
1861
1774
 
1862
1775
  /** @internal */
1863
- export type KnowledgeBaseLastUserMessage$Outbound = {
1864
- type: string;
1776
+ export type RunAgentKnowledgeBases$Outbound = {
1777
+ knowledge_id: string;
1865
1778
  };
1866
1779
 
1867
1780
  /** @internal */
1868
- export const KnowledgeBaseLastUserMessage$outboundSchema: z.ZodType<
1869
- KnowledgeBaseLastUserMessage$Outbound,
1781
+ export const RunAgentKnowledgeBases$outboundSchema: z.ZodType<
1782
+ RunAgentKnowledgeBases$Outbound,
1870
1783
  z.ZodTypeDef,
1871
- KnowledgeBaseLastUserMessage
1784
+ RunAgentKnowledgeBases
1872
1785
  > = z.object({
1873
- type: KnowledgeBaseConfigurationType$outboundSchema,
1786
+ knowledgeId: z.string(),
1787
+ }).transform((v) => {
1788
+ return remap$(v, {
1789
+ knowledgeId: "knowledge_id",
1790
+ });
1874
1791
  });
1875
1792
 
1876
1793
  /**
1877
1794
  * @internal
1878
1795
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1879
1796
  */
1880
- export namespace KnowledgeBaseLastUserMessage$ {
1881
- /** @deprecated use `KnowledgeBaseLastUserMessage$inboundSchema` instead. */
1882
- export const inboundSchema = KnowledgeBaseLastUserMessage$inboundSchema;
1883
- /** @deprecated use `KnowledgeBaseLastUserMessage$outboundSchema` instead. */
1884
- export const outboundSchema = KnowledgeBaseLastUserMessage$outboundSchema;
1885
- /** @deprecated use `KnowledgeBaseLastUserMessage$Outbound` instead. */
1886
- export type Outbound = KnowledgeBaseLastUserMessage$Outbound;
1887
- }
1888
-
1889
- export function knowledgeBaseLastUserMessageToJSON(
1890
- knowledgeBaseLastUserMessage: KnowledgeBaseLastUserMessage,
1891
- ): string {
1892
- return JSON.stringify(
1893
- KnowledgeBaseLastUserMessage$outboundSchema.parse(
1894
- knowledgeBaseLastUserMessage,
1895
- ),
1896
- );
1897
- }
1898
-
1899
- export function knowledgeBaseLastUserMessageFromJSON(
1900
- jsonString: string,
1901
- ): SafeParseResult<KnowledgeBaseLastUserMessage, SDKValidationError> {
1902
- return safeParse(
1903
- jsonString,
1904
- (x) => KnowledgeBaseLastUserMessage$inboundSchema.parse(JSON.parse(x)),
1905
- `Failed to parse 'KnowledgeBaseLastUserMessage' from JSON`,
1906
- );
1907
- }
1908
-
1909
- /** @internal */
1910
- export const KnowledgeBaseConfiguration$inboundSchema: z.ZodType<
1911
- KnowledgeBaseConfiguration,
1912
- z.ZodTypeDef,
1913
- unknown
1914
- > = z.union([
1915
- z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
1916
- z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
1917
- ]);
1918
-
1919
- /** @internal */
1920
- export type KnowledgeBaseConfiguration$Outbound =
1921
- | KnowledgeBaseStaticQuery$Outbound
1922
- | KnowledgeBaseLastUserMessage$Outbound;
1923
-
1924
- /** @internal */
1925
- export const KnowledgeBaseConfiguration$outboundSchema: z.ZodType<
1926
- KnowledgeBaseConfiguration$Outbound,
1927
- z.ZodTypeDef,
1928
- KnowledgeBaseConfiguration
1929
- > = z.union([
1930
- z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
1931
- z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
1932
- ]);
1933
-
1934
- /**
1935
- * @internal
1936
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1937
- */
1938
- export namespace KnowledgeBaseConfiguration$ {
1939
- /** @deprecated use `KnowledgeBaseConfiguration$inboundSchema` instead. */
1940
- export const inboundSchema = KnowledgeBaseConfiguration$inboundSchema;
1941
- /** @deprecated use `KnowledgeBaseConfiguration$outboundSchema` instead. */
1942
- export const outboundSchema = KnowledgeBaseConfiguration$outboundSchema;
1943
- /** @deprecated use `KnowledgeBaseConfiguration$Outbound` instead. */
1944
- export type Outbound = KnowledgeBaseConfiguration$Outbound;
1797
+ export namespace RunAgentKnowledgeBases$ {
1798
+ /** @deprecated use `RunAgentKnowledgeBases$inboundSchema` instead. */
1799
+ export const inboundSchema = RunAgentKnowledgeBases$inboundSchema;
1800
+ /** @deprecated use `RunAgentKnowledgeBases$outboundSchema` instead. */
1801
+ export const outboundSchema = RunAgentKnowledgeBases$outboundSchema;
1802
+ /** @deprecated use `RunAgentKnowledgeBases$Outbound` instead. */
1803
+ export type Outbound = RunAgentKnowledgeBases$Outbound;
1945
1804
  }
1946
1805
 
1947
- export function knowledgeBaseConfigurationToJSON(
1948
- knowledgeBaseConfiguration: KnowledgeBaseConfiguration,
1806
+ export function runAgentKnowledgeBasesToJSON(
1807
+ runAgentKnowledgeBases: RunAgentKnowledgeBases,
1949
1808
  ): string {
1950
1809
  return JSON.stringify(
1951
- KnowledgeBaseConfiguration$outboundSchema.parse(knowledgeBaseConfiguration),
1810
+ RunAgentKnowledgeBases$outboundSchema.parse(runAgentKnowledgeBases),
1952
1811
  );
1953
1812
  }
1954
1813
 
1955
- export function knowledgeBaseConfigurationFromJSON(
1814
+ export function runAgentKnowledgeBasesFromJSON(
1956
1815
  jsonString: string,
1957
- ): SafeParseResult<KnowledgeBaseConfiguration, SDKValidationError> {
1816
+ ): SafeParseResult<RunAgentKnowledgeBases, SDKValidationError> {
1958
1817
  return safeParse(
1959
1818
  jsonString,
1960
- (x) => KnowledgeBaseConfiguration$inboundSchema.parse(JSON.parse(x)),
1961
- `Failed to parse 'KnowledgeBaseConfiguration' from JSON`,
1962
- );
1963
- }
1964
-
1965
- /** @internal */
1966
- export const KnowledgeBases$inboundSchema: z.ZodType<
1967
- KnowledgeBases,
1968
- z.ZodTypeDef,
1969
- unknown
1970
- > = z.object({
1971
- configuration: z.union([
1972
- z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
1973
- z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
1974
- ]),
1975
- });
1976
-
1977
- /** @internal */
1978
- export type KnowledgeBases$Outbound = {
1979
- configuration:
1980
- | KnowledgeBaseStaticQuery$Outbound
1981
- | KnowledgeBaseLastUserMessage$Outbound;
1982
- };
1983
-
1984
- /** @internal */
1985
- export const KnowledgeBases$outboundSchema: z.ZodType<
1986
- KnowledgeBases$Outbound,
1987
- z.ZodTypeDef,
1988
- KnowledgeBases
1989
- > = z.object({
1990
- configuration: z.union([
1991
- z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
1992
- z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
1993
- ]),
1994
- });
1995
-
1996
- /**
1997
- * @internal
1998
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1999
- */
2000
- export namespace KnowledgeBases$ {
2001
- /** @deprecated use `KnowledgeBases$inboundSchema` instead. */
2002
- export const inboundSchema = KnowledgeBases$inboundSchema;
2003
- /** @deprecated use `KnowledgeBases$outboundSchema` instead. */
2004
- export const outboundSchema = KnowledgeBases$outboundSchema;
2005
- /** @deprecated use `KnowledgeBases$Outbound` instead. */
2006
- export type Outbound = KnowledgeBases$Outbound;
2007
- }
2008
-
2009
- export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
2010
- return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
2011
- }
2012
-
2013
- export function knowledgeBasesFromJSON(
2014
- jsonString: string,
2015
- ): SafeParseResult<KnowledgeBases, SDKValidationError> {
2016
- return safeParse(
2017
- jsonString,
2018
- (x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
2019
- `Failed to parse 'KnowledgeBases' from JSON`,
1819
+ (x) => RunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1820
+ `Failed to parse 'RunAgentKnowledgeBases' from JSON`,
2020
1821
  );
2021
1822
  }
2022
1823
 
@@ -2074,36 +1875,36 @@ export function teamOfAgentsFromJSON(
2074
1875
  }
2075
1876
 
2076
1877
  /** @internal */
2077
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
1878
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
2078
1879
  z.ZodNativeEnum<
2079
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
1880
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
2080
1881
  > = z.nativeEnum(
2081
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type,
1882
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
2082
1883
  );
2083
1884
 
2084
1885
  /** @internal */
2085
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
1886
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
2086
1887
  z.ZodNativeEnum<
2087
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
1888
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
2088
1889
  > =
2089
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1890
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
2090
1891
 
2091
1892
  /**
2092
1893
  * @internal
2093
1894
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2094
1895
  */
2095
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$ {
2096
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
1896
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
1897
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
2097
1898
  export const inboundSchema =
2098
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
2099
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
1899
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1900
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
2100
1901
  export const outboundSchema =
2101
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
1902
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
2102
1903
  }
2103
1904
 
2104
1905
  /** @internal */
2105
- export const RunAgentRequestToolFunction$inboundSchema: z.ZodType<
2106
- RunAgentRequestToolFunction,
1906
+ export const AgentToolInputRunFunction$inboundSchema: z.ZodType<
1907
+ AgentToolInputRunFunction,
2107
1908
  z.ZodTypeDef,
2108
1909
  unknown
2109
1910
  > = z.object({
@@ -2114,7 +1915,7 @@ export const RunAgentRequestToolFunction$inboundSchema: z.ZodType<
2114
1915
  });
2115
1916
 
2116
1917
  /** @internal */
2117
- export type RunAgentRequestToolFunction$Outbound = {
1918
+ export type AgentToolInputRunFunction$Outbound = {
2118
1919
  name: string;
2119
1920
  description?: string | undefined;
2120
1921
  strict?: boolean | undefined;
@@ -2122,10 +1923,10 @@ export type RunAgentRequestToolFunction$Outbound = {
2122
1923
  };
2123
1924
 
2124
1925
  /** @internal */
2125
- export const RunAgentRequestToolFunction$outboundSchema: z.ZodType<
2126
- RunAgentRequestToolFunction$Outbound,
1926
+ export const AgentToolInputRunFunction$outboundSchema: z.ZodType<
1927
+ AgentToolInputRunFunction$Outbound,
2127
1928
  z.ZodTypeDef,
2128
- RunAgentRequestToolFunction
1929
+ AgentToolInputRunFunction
2129
1930
  > = z.object({
2130
1931
  name: z.string(),
2131
1932
  description: z.string().optional(),
@@ -2137,49 +1938,47 @@ export const RunAgentRequestToolFunction$outboundSchema: z.ZodType<
2137
1938
  * @internal
2138
1939
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2139
1940
  */
2140
- export namespace RunAgentRequestToolFunction$ {
2141
- /** @deprecated use `RunAgentRequestToolFunction$inboundSchema` instead. */
2142
- export const inboundSchema = RunAgentRequestToolFunction$inboundSchema;
2143
- /** @deprecated use `RunAgentRequestToolFunction$outboundSchema` instead. */
2144
- export const outboundSchema = RunAgentRequestToolFunction$outboundSchema;
2145
- /** @deprecated use `RunAgentRequestToolFunction$Outbound` instead. */
2146
- export type Outbound = RunAgentRequestToolFunction$Outbound;
1941
+ export namespace AgentToolInputRunFunction$ {
1942
+ /** @deprecated use `AgentToolInputRunFunction$inboundSchema` instead. */
1943
+ export const inboundSchema = AgentToolInputRunFunction$inboundSchema;
1944
+ /** @deprecated use `AgentToolInputRunFunction$outboundSchema` instead. */
1945
+ export const outboundSchema = AgentToolInputRunFunction$outboundSchema;
1946
+ /** @deprecated use `AgentToolInputRunFunction$Outbound` instead. */
1947
+ export type Outbound = AgentToolInputRunFunction$Outbound;
2147
1948
  }
2148
1949
 
2149
- export function runAgentRequestToolFunctionToJSON(
2150
- runAgentRequestToolFunction: RunAgentRequestToolFunction,
1950
+ export function agentToolInputRunFunctionToJSON(
1951
+ agentToolInputRunFunction: AgentToolInputRunFunction,
2151
1952
  ): string {
2152
1953
  return JSON.stringify(
2153
- RunAgentRequestToolFunction$outboundSchema.parse(
2154
- runAgentRequestToolFunction,
2155
- ),
1954
+ AgentToolInputRunFunction$outboundSchema.parse(agentToolInputRunFunction),
2156
1955
  );
2157
1956
  }
2158
1957
 
2159
- export function runAgentRequestToolFunctionFromJSON(
1958
+ export function agentToolInputRunFunctionFromJSON(
2160
1959
  jsonString: string,
2161
- ): SafeParseResult<RunAgentRequestToolFunction, SDKValidationError> {
1960
+ ): SafeParseResult<AgentToolInputRunFunction, SDKValidationError> {
2162
1961
  return safeParse(
2163
1962
  jsonString,
2164
- (x) => RunAgentRequestToolFunction$inboundSchema.parse(JSON.parse(x)),
2165
- `Failed to parse 'RunAgentRequestToolFunction' from JSON`,
1963
+ (x) => AgentToolInputRunFunction$inboundSchema.parse(JSON.parse(x)),
1964
+ `Failed to parse 'AgentToolInputRunFunction' from JSON`,
2166
1965
  );
2167
1966
  }
2168
1967
 
2169
1968
  /** @internal */
2170
- export const FunctionTool$inboundSchema: z.ZodType<
2171
- FunctionTool,
1969
+ export const FunctionToolRun$inboundSchema: z.ZodType<
1970
+ FunctionToolRun,
2172
1971
  z.ZodTypeDef,
2173
1972
  unknown
2174
1973
  > = z.object({
2175
1974
  type:
2176
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
2177
- _id: z.string().optional(),
1975
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
2178
1976
  key: z.string(),
1977
+ _id: z.string().optional(),
2179
1978
  display_name: z.string().optional(),
2180
1979
  description: z.string().optional(),
1980
+ function: z.lazy(() => AgentToolInputRunFunction$inboundSchema),
2181
1981
  requires_approval: z.boolean().default(false),
2182
- function: z.lazy(() => RunAgentRequestToolFunction$inboundSchema),
2183
1982
  }).transform((v) => {
2184
1983
  return remap$(v, {
2185
1984
  "_id": "id",
@@ -2189,30 +1988,30 @@ export const FunctionTool$inboundSchema: z.ZodType<
2189
1988
  });
2190
1989
 
2191
1990
  /** @internal */
2192
- export type FunctionTool$Outbound = {
1991
+ export type FunctionToolRun$Outbound = {
2193
1992
  type: string;
2194
- _id?: string | undefined;
2195
1993
  key: string;
1994
+ _id?: string | undefined;
2196
1995
  display_name?: string | undefined;
2197
1996
  description?: string | undefined;
1997
+ function: AgentToolInputRunFunction$Outbound;
2198
1998
  requires_approval: boolean;
2199
- function: RunAgentRequestToolFunction$Outbound;
2200
1999
  };
2201
2000
 
2202
2001
  /** @internal */
2203
- export const FunctionTool$outboundSchema: z.ZodType<
2204
- FunctionTool$Outbound,
2002
+ export const FunctionToolRun$outboundSchema: z.ZodType<
2003
+ FunctionToolRun$Outbound,
2205
2004
  z.ZodTypeDef,
2206
- FunctionTool
2005
+ FunctionToolRun
2207
2006
  > = z.object({
2208
2007
  type:
2209
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
2210
- id: z.string().optional(),
2008
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
2211
2009
  key: z.string(),
2010
+ id: z.string().optional(),
2212
2011
  displayName: z.string().optional(),
2213
2012
  description: z.string().optional(),
2013
+ function: z.lazy(() => AgentToolInputRunFunction$outboundSchema),
2214
2014
  requiresApproval: z.boolean().default(false),
2215
- function: z.lazy(() => RunAgentRequestToolFunction$outboundSchema),
2216
2015
  }).transform((v) => {
2217
2016
  return remap$(v, {
2218
2017
  id: "_id",
@@ -2225,55 +2024,57 @@ export const FunctionTool$outboundSchema: z.ZodType<
2225
2024
  * @internal
2226
2025
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2227
2026
  */
2228
- export namespace FunctionTool$ {
2229
- /** @deprecated use `FunctionTool$inboundSchema` instead. */
2230
- export const inboundSchema = FunctionTool$inboundSchema;
2231
- /** @deprecated use `FunctionTool$outboundSchema` instead. */
2232
- export const outboundSchema = FunctionTool$outboundSchema;
2233
- /** @deprecated use `FunctionTool$Outbound` instead. */
2234
- export type Outbound = FunctionTool$Outbound;
2027
+ export namespace FunctionToolRun$ {
2028
+ /** @deprecated use `FunctionToolRun$inboundSchema` instead. */
2029
+ export const inboundSchema = FunctionToolRun$inboundSchema;
2030
+ /** @deprecated use `FunctionToolRun$outboundSchema` instead. */
2031
+ export const outboundSchema = FunctionToolRun$outboundSchema;
2032
+ /** @deprecated use `FunctionToolRun$Outbound` instead. */
2033
+ export type Outbound = FunctionToolRun$Outbound;
2235
2034
  }
2236
2035
 
2237
- export function functionToolToJSON(functionTool: FunctionTool): string {
2238
- return JSON.stringify(FunctionTool$outboundSchema.parse(functionTool));
2036
+ export function functionToolRunToJSON(
2037
+ functionToolRun: FunctionToolRun,
2038
+ ): string {
2039
+ return JSON.stringify(FunctionToolRun$outboundSchema.parse(functionToolRun));
2239
2040
  }
2240
2041
 
2241
- export function functionToolFromJSON(
2042
+ export function functionToolRunFromJSON(
2242
2043
  jsonString: string,
2243
- ): SafeParseResult<FunctionTool, SDKValidationError> {
2044
+ ): SafeParseResult<FunctionToolRun, SDKValidationError> {
2244
2045
  return safeParse(
2245
2046
  jsonString,
2246
- (x) => FunctionTool$inboundSchema.parse(JSON.parse(x)),
2247
- `Failed to parse 'FunctionTool' from JSON`,
2047
+ (x) => FunctionToolRun$inboundSchema.parse(JSON.parse(x)),
2048
+ `Failed to parse 'FunctionToolRun' from JSON`,
2248
2049
  );
2249
2050
  }
2250
2051
 
2251
2052
  /** @internal */
2252
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
2053
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
2253
2054
  z.ZodNativeEnum<
2254
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
2055
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2255
2056
  > = z.nativeEnum(
2256
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type,
2057
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
2257
2058
  );
2258
2059
 
2259
2060
  /** @internal */
2260
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
2061
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
2261
2062
  z.ZodNativeEnum<
2262
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
2063
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2263
2064
  > =
2264
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2065
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2265
2066
 
2266
2067
  /**
2267
2068
  * @internal
2268
2069
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2269
2070
  */
2270
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$ {
2271
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
2071
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
2072
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
2272
2073
  export const inboundSchema =
2273
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2274
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
2074
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2075
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
2275
2076
  export const outboundSchema =
2276
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
2077
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
2277
2078
  }
2278
2079
 
2279
2080
  /** @internal */
@@ -2352,58 +2153,58 @@ export function codeToolFromJSON(
2352
2153
  }
2353
2154
 
2354
2155
  /** @internal */
2355
- export const CodeExecutionTool$inboundSchema: z.ZodType<
2356
- CodeExecutionTool,
2156
+ export const CodeToolRun$inboundSchema: z.ZodType<
2157
+ CodeToolRun,
2357
2158
  z.ZodTypeDef,
2358
2159
  unknown
2359
2160
  > = z.object({
2161
+ type:
2162
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
2360
2163
  key: z.string(),
2361
- display_name: z.string(),
2164
+ _id: z.string().optional(),
2165
+ display_name: z.string().optional(),
2362
2166
  description: z.string(),
2363
- type:
2364
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
2365
2167
  code_tool: z.lazy(() => CodeTool$inboundSchema),
2366
- _id: z.string().optional(),
2367
2168
  requires_approval: z.boolean().default(false),
2368
2169
  }).transform((v) => {
2369
2170
  return remap$(v, {
2171
+ "_id": "id",
2370
2172
  "display_name": "displayName",
2371
2173
  "code_tool": "codeTool",
2372
- "_id": "id",
2373
2174
  "requires_approval": "requiresApproval",
2374
2175
  });
2375
2176
  });
2376
2177
 
2377
2178
  /** @internal */
2378
- export type CodeExecutionTool$Outbound = {
2179
+ export type CodeToolRun$Outbound = {
2180
+ type: string;
2379
2181
  key: string;
2380
- display_name: string;
2182
+ _id?: string | undefined;
2183
+ display_name?: string | undefined;
2381
2184
  description: string;
2382
- type: string;
2383
2185
  code_tool: CodeTool$Outbound;
2384
- _id?: string | undefined;
2385
2186
  requires_approval: boolean;
2386
2187
  };
2387
2188
 
2388
2189
  /** @internal */
2389
- export const CodeExecutionTool$outboundSchema: z.ZodType<
2390
- CodeExecutionTool$Outbound,
2190
+ export const CodeToolRun$outboundSchema: z.ZodType<
2191
+ CodeToolRun$Outbound,
2391
2192
  z.ZodTypeDef,
2392
- CodeExecutionTool
2193
+ CodeToolRun
2393
2194
  > = z.object({
2195
+ type:
2196
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
2394
2197
  key: z.string(),
2395
- displayName: z.string(),
2198
+ id: z.string().optional(),
2199
+ displayName: z.string().optional(),
2396
2200
  description: z.string(),
2397
- type:
2398
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
2399
2201
  codeTool: z.lazy(() => CodeTool$outboundSchema),
2400
- id: z.string().optional(),
2401
2202
  requiresApproval: z.boolean().default(false),
2402
2203
  }).transform((v) => {
2403
2204
  return remap$(v, {
2205
+ id: "_id",
2404
2206
  displayName: "display_name",
2405
2207
  codeTool: "code_tool",
2406
- id: "_id",
2407
2208
  requiresApproval: "requires_approval",
2408
2209
  });
2409
2210
  });
@@ -2412,59 +2213,55 @@ export const CodeExecutionTool$outboundSchema: z.ZodType<
2412
2213
  * @internal
2413
2214
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2414
2215
  */
2415
- export namespace CodeExecutionTool$ {
2416
- /** @deprecated use `CodeExecutionTool$inboundSchema` instead. */
2417
- export const inboundSchema = CodeExecutionTool$inboundSchema;
2418
- /** @deprecated use `CodeExecutionTool$outboundSchema` instead. */
2419
- export const outboundSchema = CodeExecutionTool$outboundSchema;
2420
- /** @deprecated use `CodeExecutionTool$Outbound` instead. */
2421
- export type Outbound = CodeExecutionTool$Outbound;
2216
+ export namespace CodeToolRun$ {
2217
+ /** @deprecated use `CodeToolRun$inboundSchema` instead. */
2218
+ export const inboundSchema = CodeToolRun$inboundSchema;
2219
+ /** @deprecated use `CodeToolRun$outboundSchema` instead. */
2220
+ export const outboundSchema = CodeToolRun$outboundSchema;
2221
+ /** @deprecated use `CodeToolRun$Outbound` instead. */
2222
+ export type Outbound = CodeToolRun$Outbound;
2422
2223
  }
2423
2224
 
2424
- export function codeExecutionToolToJSON(
2425
- codeExecutionTool: CodeExecutionTool,
2426
- ): string {
2427
- return JSON.stringify(
2428
- CodeExecutionTool$outboundSchema.parse(codeExecutionTool),
2429
- );
2225
+ export function codeToolRunToJSON(codeToolRun: CodeToolRun): string {
2226
+ return JSON.stringify(CodeToolRun$outboundSchema.parse(codeToolRun));
2430
2227
  }
2431
2228
 
2432
- export function codeExecutionToolFromJSON(
2229
+ export function codeToolRunFromJSON(
2433
2230
  jsonString: string,
2434
- ): SafeParseResult<CodeExecutionTool, SDKValidationError> {
2231
+ ): SafeParseResult<CodeToolRun, SDKValidationError> {
2435
2232
  return safeParse(
2436
2233
  jsonString,
2437
- (x) => CodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
2438
- `Failed to parse 'CodeExecutionTool' from JSON`,
2234
+ (x) => CodeToolRun$inboundSchema.parse(JSON.parse(x)),
2235
+ `Failed to parse 'CodeToolRun' from JSON`,
2439
2236
  );
2440
2237
  }
2441
2238
 
2442
2239
  /** @internal */
2443
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
2240
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
2444
2241
  z.ZodNativeEnum<
2445
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
2242
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2446
2243
  > = z.nativeEnum(
2447
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type,
2244
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
2448
2245
  );
2449
2246
 
2450
2247
  /** @internal */
2451
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
2248
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
2452
2249
  z.ZodNativeEnum<
2453
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
2250
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2454
2251
  > =
2455
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2252
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2456
2253
 
2457
2254
  /**
2458
2255
  * @internal
2459
2256
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2460
2257
  */
2461
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$ {
2462
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
2258
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
2259
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
2463
2260
  export const inboundSchema =
2464
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2465
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
2261
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2262
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
2466
2263
  export const outboundSchema =
2467
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
2264
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
2468
2265
  }
2469
2266
 
2470
2267
  /** @internal */
@@ -2546,31 +2343,31 @@ export function blueprintFromJSON(
2546
2343
  }
2547
2344
 
2548
2345
  /** @internal */
2549
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
2346
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
2550
2347
  z.ZodNativeEnum<
2551
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
2348
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2552
2349
  > = z.nativeEnum(
2553
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType,
2350
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
2554
2351
  );
2555
2352
 
2556
2353
  /** @internal */
2557
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
2354
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
2558
2355
  z.ZodNativeEnum<
2559
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
2356
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2560
2357
  > =
2561
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2358
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2562
2359
 
2563
2360
  /**
2564
2361
  * @internal
2565
2362
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2566
2363
  */
2567
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$ {
2568
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
2364
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
2365
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
2569
2366
  export const inboundSchema =
2570
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2571
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
2367
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2368
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
2572
2369
  export const outboundSchema =
2573
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
2370
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
2574
2371
  }
2575
2372
 
2576
2373
  /** @internal */
@@ -2624,7 +2421,7 @@ export const Arguments$inboundSchema: z.ZodType<
2624
2421
  unknown
2625
2422
  > = z.object({
2626
2423
  type:
2627
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
2424
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
2628
2425
  description: z.string(),
2629
2426
  send_to_model: z.boolean().default(true),
2630
2427
  default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2650,7 +2447,7 @@ export const Arguments$outboundSchema: z.ZodType<
2650
2447
  Arguments
2651
2448
  > = z.object({
2652
2449
  type:
2653
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
2450
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
2654
2451
  description: z.string(),
2655
2452
  sendToModel: z.boolean().default(true),
2656
2453
  defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2736,50 +2533,55 @@ export function httpFromJSON(
2736
2533
  }
2737
2534
 
2738
2535
  /** @internal */
2739
- export const HTTPTool$inboundSchema: z.ZodType<
2740
- HTTPTool,
2536
+ export const HTTPToolRun$inboundSchema: z.ZodType<
2537
+ HTTPToolRun,
2741
2538
  z.ZodTypeDef,
2742
2539
  unknown
2743
2540
  > = z.object({
2541
+ type:
2542
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
2744
2543
  key: z.string(),
2745
- display_name: z.string(),
2544
+ _id: z.string().optional(),
2545
+ display_name: z.string().optional(),
2746
2546
  description: z.string(),
2747
- type:
2748
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
2749
2547
  http: z.lazy(() => Http$inboundSchema),
2750
2548
  requires_approval: z.boolean().default(false),
2751
2549
  }).transform((v) => {
2752
2550
  return remap$(v, {
2551
+ "_id": "id",
2753
2552
  "display_name": "displayName",
2754
2553
  "requires_approval": "requiresApproval",
2755
2554
  });
2756
2555
  });
2757
2556
 
2758
2557
  /** @internal */
2759
- export type HTTPTool$Outbound = {
2558
+ export type HTTPToolRun$Outbound = {
2559
+ type: string;
2760
2560
  key: string;
2761
- display_name: string;
2561
+ _id?: string | undefined;
2562
+ display_name?: string | undefined;
2762
2563
  description: string;
2763
- type: string;
2764
2564
  http: Http$Outbound;
2765
2565
  requires_approval: boolean;
2766
2566
  };
2767
2567
 
2768
2568
  /** @internal */
2769
- export const HTTPTool$outboundSchema: z.ZodType<
2770
- HTTPTool$Outbound,
2569
+ export const HTTPToolRun$outboundSchema: z.ZodType<
2570
+ HTTPToolRun$Outbound,
2771
2571
  z.ZodTypeDef,
2772
- HTTPTool
2572
+ HTTPToolRun
2773
2573
  > = z.object({
2574
+ type:
2575
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
2774
2576
  key: z.string(),
2775
- displayName: z.string(),
2577
+ id: z.string().optional(),
2578
+ displayName: z.string().optional(),
2776
2579
  description: z.string(),
2777
- type:
2778
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
2779
2580
  http: z.lazy(() => Http$outboundSchema),
2780
2581
  requiresApproval: z.boolean().default(false),
2781
2582
  }).transform((v) => {
2782
2583
  return remap$(v, {
2584
+ id: "_id",
2783
2585
  displayName: "display_name",
2784
2586
  requiresApproval: "requires_approval",
2785
2587
  });
@@ -2789,65 +2591,65 @@ export const HTTPTool$outboundSchema: z.ZodType<
2789
2591
  * @internal
2790
2592
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2791
2593
  */
2792
- export namespace HTTPTool$ {
2793
- /** @deprecated use `HTTPTool$inboundSchema` instead. */
2794
- export const inboundSchema = HTTPTool$inboundSchema;
2795
- /** @deprecated use `HTTPTool$outboundSchema` instead. */
2796
- export const outboundSchema = HTTPTool$outboundSchema;
2797
- /** @deprecated use `HTTPTool$Outbound` instead. */
2798
- export type Outbound = HTTPTool$Outbound;
2594
+ export namespace HTTPToolRun$ {
2595
+ /** @deprecated use `HTTPToolRun$inboundSchema` instead. */
2596
+ export const inboundSchema = HTTPToolRun$inboundSchema;
2597
+ /** @deprecated use `HTTPToolRun$outboundSchema` instead. */
2598
+ export const outboundSchema = HTTPToolRun$outboundSchema;
2599
+ /** @deprecated use `HTTPToolRun$Outbound` instead. */
2600
+ export type Outbound = HTTPToolRun$Outbound;
2799
2601
  }
2800
2602
 
2801
- export function httpToolToJSON(httpTool: HTTPTool): string {
2802
- return JSON.stringify(HTTPTool$outboundSchema.parse(httpTool));
2603
+ export function httpToolRunToJSON(httpToolRun: HTTPToolRun): string {
2604
+ return JSON.stringify(HTTPToolRun$outboundSchema.parse(httpToolRun));
2803
2605
  }
2804
2606
 
2805
- export function httpToolFromJSON(
2607
+ export function httpToolRunFromJSON(
2806
2608
  jsonString: string,
2807
- ): SafeParseResult<HTTPTool, SDKValidationError> {
2609
+ ): SafeParseResult<HTTPToolRun, SDKValidationError> {
2808
2610
  return safeParse(
2809
2611
  jsonString,
2810
- (x) => HTTPTool$inboundSchema.parse(JSON.parse(x)),
2811
- `Failed to parse 'HTTPTool' from JSON`,
2612
+ (x) => HTTPToolRun$inboundSchema.parse(JSON.parse(x)),
2613
+ `Failed to parse 'HTTPToolRun' from JSON`,
2812
2614
  );
2813
2615
  }
2814
2616
 
2815
2617
  /** @internal */
2816
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
2618
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
2817
2619
  z.ZodNativeEnum<
2818
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
2620
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2819
2621
  > = z.nativeEnum(
2820
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type,
2622
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
2821
2623
  );
2822
2624
 
2823
2625
  /** @internal */
2824
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
2626
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
2825
2627
  z.ZodNativeEnum<
2826
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
2628
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2827
2629
  > =
2828
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2630
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2829
2631
 
2830
2632
  /**
2831
2633
  * @internal
2832
2634
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2833
2635
  */
2834
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$ {
2835
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
2636
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
2637
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
2836
2638
  export const inboundSchema =
2837
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2838
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
2639
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2640
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
2839
2641
  export const outboundSchema =
2840
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
2642
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
2841
2643
  }
2842
2644
 
2843
2645
  /** @internal */
2844
- export const CurrentDateTool$inboundSchema: z.ZodType<
2845
- CurrentDateTool,
2646
+ export const AgentToolInputRunCurrentDateTool$inboundSchema: z.ZodType<
2647
+ AgentToolInputRunCurrentDateTool,
2846
2648
  z.ZodTypeDef,
2847
2649
  unknown
2848
2650
  > = z.object({
2849
2651
  type:
2850
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
2652
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
2851
2653
  requires_approval: z.boolean().default(false),
2852
2654
  }).transform((v) => {
2853
2655
  return remap$(v, {
@@ -2856,19 +2658,19 @@ export const CurrentDateTool$inboundSchema: z.ZodType<
2856
2658
  });
2857
2659
 
2858
2660
  /** @internal */
2859
- export type CurrentDateTool$Outbound = {
2661
+ export type AgentToolInputRunCurrentDateTool$Outbound = {
2860
2662
  type: string;
2861
2663
  requires_approval: boolean;
2862
2664
  };
2863
2665
 
2864
2666
  /** @internal */
2865
- export const CurrentDateTool$outboundSchema: z.ZodType<
2866
- CurrentDateTool$Outbound,
2667
+ export const AgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<
2668
+ AgentToolInputRunCurrentDateTool$Outbound,
2867
2669
  z.ZodTypeDef,
2868
- CurrentDateTool
2670
+ AgentToolInputRunCurrentDateTool
2869
2671
  > = z.object({
2870
2672
  type:
2871
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
2673
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
2872
2674
  requiresApproval: z.boolean().default(false),
2873
2675
  }).transform((v) => {
2874
2676
  return remap$(v, {
@@ -2880,67 +2682,71 @@ export const CurrentDateTool$outboundSchema: z.ZodType<
2880
2682
  * @internal
2881
2683
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2882
2684
  */
2883
- export namespace CurrentDateTool$ {
2884
- /** @deprecated use `CurrentDateTool$inboundSchema` instead. */
2885
- export const inboundSchema = CurrentDateTool$inboundSchema;
2886
- /** @deprecated use `CurrentDateTool$outboundSchema` instead. */
2887
- export const outboundSchema = CurrentDateTool$outboundSchema;
2888
- /** @deprecated use `CurrentDateTool$Outbound` instead. */
2889
- export type Outbound = CurrentDateTool$Outbound;
2685
+ export namespace AgentToolInputRunCurrentDateTool$ {
2686
+ /** @deprecated use `AgentToolInputRunCurrentDateTool$inboundSchema` instead. */
2687
+ export const inboundSchema = AgentToolInputRunCurrentDateTool$inboundSchema;
2688
+ /** @deprecated use `AgentToolInputRunCurrentDateTool$outboundSchema` instead. */
2689
+ export const outboundSchema = AgentToolInputRunCurrentDateTool$outboundSchema;
2690
+ /** @deprecated use `AgentToolInputRunCurrentDateTool$Outbound` instead. */
2691
+ export type Outbound = AgentToolInputRunCurrentDateTool$Outbound;
2890
2692
  }
2891
2693
 
2892
- export function currentDateToolToJSON(
2893
- currentDateTool: CurrentDateTool,
2694
+ export function agentToolInputRunCurrentDateToolToJSON(
2695
+ agentToolInputRunCurrentDateTool: AgentToolInputRunCurrentDateTool,
2894
2696
  ): string {
2895
- return JSON.stringify(CurrentDateTool$outboundSchema.parse(currentDateTool));
2697
+ return JSON.stringify(
2698
+ AgentToolInputRunCurrentDateTool$outboundSchema.parse(
2699
+ agentToolInputRunCurrentDateTool,
2700
+ ),
2701
+ );
2896
2702
  }
2897
2703
 
2898
- export function currentDateToolFromJSON(
2704
+ export function agentToolInputRunCurrentDateToolFromJSON(
2899
2705
  jsonString: string,
2900
- ): SafeParseResult<CurrentDateTool, SDKValidationError> {
2706
+ ): SafeParseResult<AgentToolInputRunCurrentDateTool, SDKValidationError> {
2901
2707
  return safeParse(
2902
2708
  jsonString,
2903
- (x) => CurrentDateTool$inboundSchema.parse(JSON.parse(x)),
2904
- `Failed to parse 'CurrentDateTool' from JSON`,
2709
+ (x) => AgentToolInputRunCurrentDateTool$inboundSchema.parse(JSON.parse(x)),
2710
+ `Failed to parse 'AgentToolInputRunCurrentDateTool' from JSON`,
2905
2711
  );
2906
2712
  }
2907
2713
 
2908
2714
  /** @internal */
2909
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
2715
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
2910
2716
  z.ZodNativeEnum<
2911
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
2717
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
2912
2718
  > = z.nativeEnum(
2913
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type,
2719
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
2914
2720
  );
2915
2721
 
2916
2722
  /** @internal */
2917
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
2723
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
2918
2724
  z.ZodNativeEnum<
2919
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
2725
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
2920
2726
  > =
2921
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2727
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2922
2728
 
2923
2729
  /**
2924
2730
  * @internal
2925
2731
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2926
2732
  */
2927
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$ {
2928
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
2733
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
2734
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
2929
2735
  export const inboundSchema =
2930
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2931
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
2736
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2737
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
2932
2738
  export const outboundSchema =
2933
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
2739
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
2934
2740
  }
2935
2741
 
2936
2742
  /** @internal */
2937
- export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
2938
- QueryKnowledgeBaseTool,
2743
+ export const AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
2744
+ AgentToolInputRunQueryKnowledgeBaseTool,
2939
2745
  z.ZodTypeDef,
2940
2746
  unknown
2941
2747
  > = z.object({
2942
2748
  type:
2943
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
2749
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
2944
2750
  requires_approval: z.boolean().default(false),
2945
2751
  }).transform((v) => {
2946
2752
  return remap$(v, {
@@ -2949,19 +2755,19 @@ export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
2949
2755
  });
2950
2756
 
2951
2757
  /** @internal */
2952
- export type QueryKnowledgeBaseTool$Outbound = {
2758
+ export type AgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
2953
2759
  type: string;
2954
2760
  requires_approval: boolean;
2955
2761
  };
2956
2762
 
2957
2763
  /** @internal */
2958
- export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
2959
- QueryKnowledgeBaseTool$Outbound,
2764
+ export const AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
2765
+ AgentToolInputRunQueryKnowledgeBaseTool$Outbound,
2960
2766
  z.ZodTypeDef,
2961
- QueryKnowledgeBaseTool
2767
+ AgentToolInputRunQueryKnowledgeBaseTool
2962
2768
  > = z.object({
2963
2769
  type:
2964
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
2770
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
2965
2771
  requiresApproval: z.boolean().default(false),
2966
2772
  }).transform((v) => {
2967
2773
  return remap$(v, {
@@ -2973,164 +2779,188 @@ export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
2973
2779
  * @internal
2974
2780
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2975
2781
  */
2976
- export namespace QueryKnowledgeBaseTool$ {
2977
- /** @deprecated use `QueryKnowledgeBaseTool$inboundSchema` instead. */
2978
- export const inboundSchema = QueryKnowledgeBaseTool$inboundSchema;
2979
- /** @deprecated use `QueryKnowledgeBaseTool$outboundSchema` instead. */
2980
- export const outboundSchema = QueryKnowledgeBaseTool$outboundSchema;
2981
- /** @deprecated use `QueryKnowledgeBaseTool$Outbound` instead. */
2982
- export type Outbound = QueryKnowledgeBaseTool$Outbound;
2782
+ export namespace AgentToolInputRunQueryKnowledgeBaseTool$ {
2783
+ /** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
2784
+ export const inboundSchema =
2785
+ AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
2786
+ /** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
2787
+ export const outboundSchema =
2788
+ AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
2789
+ /** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
2790
+ export type Outbound = AgentToolInputRunQueryKnowledgeBaseTool$Outbound;
2983
2791
  }
2984
2792
 
2985
- export function queryKnowledgeBaseToolToJSON(
2986
- queryKnowledgeBaseTool: QueryKnowledgeBaseTool,
2793
+ export function agentToolInputRunQueryKnowledgeBaseToolToJSON(
2794
+ agentToolInputRunQueryKnowledgeBaseTool:
2795
+ AgentToolInputRunQueryKnowledgeBaseTool,
2987
2796
  ): string {
2988
2797
  return JSON.stringify(
2989
- QueryKnowledgeBaseTool$outboundSchema.parse(queryKnowledgeBaseTool),
2798
+ AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
2799
+ agentToolInputRunQueryKnowledgeBaseTool,
2800
+ ),
2990
2801
  );
2991
2802
  }
2992
2803
 
2993
- export function queryKnowledgeBaseToolFromJSON(
2804
+ export function agentToolInputRunQueryKnowledgeBaseToolFromJSON(
2994
2805
  jsonString: string,
2995
- ): SafeParseResult<QueryKnowledgeBaseTool, SDKValidationError> {
2806
+ ): SafeParseResult<
2807
+ AgentToolInputRunQueryKnowledgeBaseTool,
2808
+ SDKValidationError
2809
+ > {
2996
2810
  return safeParse(
2997
2811
  jsonString,
2998
- (x) => QueryKnowledgeBaseTool$inboundSchema.parse(JSON.parse(x)),
2999
- `Failed to parse 'QueryKnowledgeBaseTool' from JSON`,
2812
+ (x) =>
2813
+ AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
2814
+ JSON.parse(x),
2815
+ ),
2816
+ `Failed to parse 'AgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
3000
2817
  );
3001
2818
  }
3002
2819
 
3003
2820
  /** @internal */
3004
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
2821
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
3005
2822
  z.ZodNativeEnum<
3006
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
2823
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
3007
2824
  > = z.nativeEnum(
3008
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type,
2825
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
3009
2826
  );
3010
2827
 
3011
2828
  /** @internal */
3012
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
2829
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
3013
2830
  z.ZodNativeEnum<
3014
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
2831
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
3015
2832
  > =
3016
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2833
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
3017
2834
 
3018
2835
  /**
3019
2836
  * @internal
3020
2837
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3021
2838
  */
3022
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$ {
3023
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
2839
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
2840
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
3024
2841
  export const inboundSchema =
3025
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
3026
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
2842
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2843
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
3027
2844
  export const outboundSchema =
3028
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
3029
- }
3030
-
3031
- /** @internal */
3032
- export const RetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<
3033
- RetrieveKnowledgeBasesTool,
3034
- z.ZodTypeDef,
3035
- unknown
3036
- > = z.object({
3037
- type:
3038
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
3039
- requires_approval: z.boolean().default(false),
3040
- }).transform((v) => {
3041
- return remap$(v, {
3042
- "requires_approval": "requiresApproval",
2845
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
2846
+ }
2847
+
2848
+ /** @internal */
2849
+ export const AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
2850
+ z.ZodType<
2851
+ AgentToolInputRunRetrieveKnowledgeBasesTool,
2852
+ z.ZodTypeDef,
2853
+ unknown
2854
+ > = z.object({
2855
+ type:
2856
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
2857
+ requires_approval: z.boolean().default(false),
2858
+ }).transform((v) => {
2859
+ return remap$(v, {
2860
+ "requires_approval": "requiresApproval",
2861
+ });
3043
2862
  });
3044
- });
3045
2863
 
3046
2864
  /** @internal */
3047
- export type RetrieveKnowledgeBasesTool$Outbound = {
2865
+ export type AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
3048
2866
  type: string;
3049
2867
  requires_approval: boolean;
3050
2868
  };
3051
2869
 
3052
2870
  /** @internal */
3053
- export const RetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<
3054
- RetrieveKnowledgeBasesTool$Outbound,
3055
- z.ZodTypeDef,
3056
- RetrieveKnowledgeBasesTool
3057
- > = z.object({
3058
- type:
3059
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
3060
- requiresApproval: z.boolean().default(false),
3061
- }).transform((v) => {
3062
- return remap$(v, {
3063
- requiresApproval: "requires_approval",
2871
+ export const AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
2872
+ z.ZodType<
2873
+ AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
2874
+ z.ZodTypeDef,
2875
+ AgentToolInputRunRetrieveKnowledgeBasesTool
2876
+ > = z.object({
2877
+ type:
2878
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
2879
+ requiresApproval: z.boolean().default(false),
2880
+ }).transform((v) => {
2881
+ return remap$(v, {
2882
+ requiresApproval: "requires_approval",
2883
+ });
3064
2884
  });
3065
- });
3066
2885
 
3067
2886
  /**
3068
2887
  * @internal
3069
2888
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3070
2889
  */
3071
- export namespace RetrieveKnowledgeBasesTool$ {
3072
- /** @deprecated use `RetrieveKnowledgeBasesTool$inboundSchema` instead. */
3073
- export const inboundSchema = RetrieveKnowledgeBasesTool$inboundSchema;
3074
- /** @deprecated use `RetrieveKnowledgeBasesTool$outboundSchema` instead. */
3075
- export const outboundSchema = RetrieveKnowledgeBasesTool$outboundSchema;
3076
- /** @deprecated use `RetrieveKnowledgeBasesTool$Outbound` instead. */
3077
- export type Outbound = RetrieveKnowledgeBasesTool$Outbound;
2890
+ export namespace AgentToolInputRunRetrieveKnowledgeBasesTool$ {
2891
+ /** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
2892
+ export const inboundSchema =
2893
+ AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
2894
+ /** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
2895
+ export const outboundSchema =
2896
+ AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
2897
+ /** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
2898
+ export type Outbound = AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
3078
2899
  }
3079
2900
 
3080
- export function retrieveKnowledgeBasesToolToJSON(
3081
- retrieveKnowledgeBasesTool: RetrieveKnowledgeBasesTool,
2901
+ export function agentToolInputRunRetrieveKnowledgeBasesToolToJSON(
2902
+ agentToolInputRunRetrieveKnowledgeBasesTool:
2903
+ AgentToolInputRunRetrieveKnowledgeBasesTool,
3082
2904
  ): string {
3083
2905
  return JSON.stringify(
3084
- RetrieveKnowledgeBasesTool$outboundSchema.parse(retrieveKnowledgeBasesTool),
2906
+ AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema.parse(
2907
+ agentToolInputRunRetrieveKnowledgeBasesTool,
2908
+ ),
3085
2909
  );
3086
2910
  }
3087
2911
 
3088
- export function retrieveKnowledgeBasesToolFromJSON(
2912
+ export function agentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
3089
2913
  jsonString: string,
3090
- ): SafeParseResult<RetrieveKnowledgeBasesTool, SDKValidationError> {
2914
+ ): SafeParseResult<
2915
+ AgentToolInputRunRetrieveKnowledgeBasesTool,
2916
+ SDKValidationError
2917
+ > {
3091
2918
  return safeParse(
3092
2919
  jsonString,
3093
- (x) => RetrieveKnowledgeBasesTool$inboundSchema.parse(JSON.parse(x)),
3094
- `Failed to parse 'RetrieveKnowledgeBasesTool' from JSON`,
2920
+ (x) =>
2921
+ AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema.parse(
2922
+ JSON.parse(x),
2923
+ ),
2924
+ `Failed to parse 'AgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
3095
2925
  );
3096
2926
  }
3097
2927
 
3098
2928
  /** @internal */
3099
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
2929
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
3100
2930
  z.ZodNativeEnum<
3101
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
2931
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3102
2932
  > = z.nativeEnum(
3103
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type,
2933
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
3104
2934
  );
3105
2935
 
3106
2936
  /** @internal */
3107
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
2937
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
3108
2938
  z.ZodNativeEnum<
3109
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
2939
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3110
2940
  > =
3111
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
2941
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3112
2942
 
3113
2943
  /**
3114
2944
  * @internal
3115
2945
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3116
2946
  */
3117
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$ {
3118
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
2947
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
2948
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
3119
2949
  export const inboundSchema =
3120
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3121
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
2950
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
2951
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
3122
2952
  export const outboundSchema =
3123
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
2953
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
3124
2954
  }
3125
2955
 
3126
2956
  /** @internal */
3127
- export const DeleteMemoryStoreTool$inboundSchema: z.ZodType<
3128
- DeleteMemoryStoreTool,
2957
+ export const AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema: z.ZodType<
2958
+ AgentToolInputRunDeleteMemoryDocumentTool,
3129
2959
  z.ZodTypeDef,
3130
2960
  unknown
3131
2961
  > = z.object({
3132
2962
  type:
3133
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
2963
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
3134
2964
  requires_approval: z.boolean().default(false),
3135
2965
  }).transform((v) => {
3136
2966
  return remap$(v, {
@@ -3139,93 +2969,105 @@ export const DeleteMemoryStoreTool$inboundSchema: z.ZodType<
3139
2969
  });
3140
2970
 
3141
2971
  /** @internal */
3142
- export type DeleteMemoryStoreTool$Outbound = {
2972
+ export type AgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
3143
2973
  type: string;
3144
2974
  requires_approval: boolean;
3145
2975
  };
3146
2976
 
3147
2977
  /** @internal */
3148
- export const DeleteMemoryStoreTool$outboundSchema: z.ZodType<
3149
- DeleteMemoryStoreTool$Outbound,
3150
- z.ZodTypeDef,
3151
- DeleteMemoryStoreTool
3152
- > = z.object({
3153
- type:
3154
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
3155
- requiresApproval: z.boolean().default(false),
3156
- }).transform((v) => {
3157
- return remap$(v, {
3158
- requiresApproval: "requires_approval",
2978
+ export const AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
2979
+ z.ZodType<
2980
+ AgentToolInputRunDeleteMemoryDocumentTool$Outbound,
2981
+ z.ZodTypeDef,
2982
+ AgentToolInputRunDeleteMemoryDocumentTool
2983
+ > = z.object({
2984
+ type:
2985
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
2986
+ requiresApproval: z.boolean().default(false),
2987
+ }).transform((v) => {
2988
+ return remap$(v, {
2989
+ requiresApproval: "requires_approval",
2990
+ });
3159
2991
  });
3160
- });
3161
2992
 
3162
2993
  /**
3163
2994
  * @internal
3164
2995
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3165
2996
  */
3166
- export namespace DeleteMemoryStoreTool$ {
3167
- /** @deprecated use `DeleteMemoryStoreTool$inboundSchema` instead. */
3168
- export const inboundSchema = DeleteMemoryStoreTool$inboundSchema;
3169
- /** @deprecated use `DeleteMemoryStoreTool$outboundSchema` instead. */
3170
- export const outboundSchema = DeleteMemoryStoreTool$outboundSchema;
3171
- /** @deprecated use `DeleteMemoryStoreTool$Outbound` instead. */
3172
- export type Outbound = DeleteMemoryStoreTool$Outbound;
2997
+ export namespace AgentToolInputRunDeleteMemoryDocumentTool$ {
2998
+ /** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
2999
+ export const inboundSchema =
3000
+ AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
3001
+ /** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
3002
+ export const outboundSchema =
3003
+ AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
3004
+ /** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
3005
+ export type Outbound = AgentToolInputRunDeleteMemoryDocumentTool$Outbound;
3173
3006
  }
3174
3007
 
3175
- export function deleteMemoryStoreToolToJSON(
3176
- deleteMemoryStoreTool: DeleteMemoryStoreTool,
3008
+ export function agentToolInputRunDeleteMemoryDocumentToolToJSON(
3009
+ agentToolInputRunDeleteMemoryDocumentTool:
3010
+ AgentToolInputRunDeleteMemoryDocumentTool,
3177
3011
  ): string {
3178
3012
  return JSON.stringify(
3179
- DeleteMemoryStoreTool$outboundSchema.parse(deleteMemoryStoreTool),
3013
+ AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema.parse(
3014
+ agentToolInputRunDeleteMemoryDocumentTool,
3015
+ ),
3180
3016
  );
3181
3017
  }
3182
3018
 
3183
- export function deleteMemoryStoreToolFromJSON(
3019
+ export function agentToolInputRunDeleteMemoryDocumentToolFromJSON(
3184
3020
  jsonString: string,
3185
- ): SafeParseResult<DeleteMemoryStoreTool, SDKValidationError> {
3021
+ ): SafeParseResult<
3022
+ AgentToolInputRunDeleteMemoryDocumentTool,
3023
+ SDKValidationError
3024
+ > {
3186
3025
  return safeParse(
3187
3026
  jsonString,
3188
- (x) => DeleteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3189
- `Failed to parse 'DeleteMemoryStoreTool' from JSON`,
3027
+ (x) =>
3028
+ AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema.parse(
3029
+ JSON.parse(x),
3030
+ ),
3031
+ `Failed to parse 'AgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
3190
3032
  );
3191
3033
  }
3192
3034
 
3193
3035
  /** @internal */
3194
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema:
3036
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
3195
3037
  z.ZodNativeEnum<
3196
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
3038
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3197
3039
  > = z.nativeEnum(
3198
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType,
3040
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
3199
3041
  );
3200
3042
 
3201
3043
  /** @internal */
3202
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema:
3044
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
3203
3045
  z.ZodNativeEnum<
3204
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
3046
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3205
3047
  > =
3206
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3048
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3207
3049
 
3208
3050
  /**
3209
3051
  * @internal
3210
3052
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3211
3053
  */
3212
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$ {
3213
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
3054
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
3055
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
3214
3056
  export const inboundSchema =
3215
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3216
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
3057
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3058
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
3217
3059
  export const outboundSchema =
3218
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema;
3060
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
3219
3061
  }
3220
3062
 
3221
3063
  /** @internal */
3222
- export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
3223
- RetrieveMemoryStoresTool,
3064
+ export const AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema: z.ZodType<
3065
+ AgentToolInputRunRetrieveMemoryStoresTool,
3224
3066
  z.ZodTypeDef,
3225
3067
  unknown
3226
3068
  > = z.object({
3227
3069
  type:
3228
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema,
3070
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
3229
3071
  requires_approval: z.boolean().default(false),
3230
3072
  }).transform((v) => {
3231
3073
  return remap$(v, {
@@ -3234,93 +3076,105 @@ export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
3234
3076
  });
3235
3077
 
3236
3078
  /** @internal */
3237
- export type RetrieveMemoryStoresTool$Outbound = {
3079
+ export type AgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
3238
3080
  type: string;
3239
3081
  requires_approval: boolean;
3240
3082
  };
3241
3083
 
3242
3084
  /** @internal */
3243
- export const RetrieveMemoryStoresTool$outboundSchema: z.ZodType<
3244
- RetrieveMemoryStoresTool$Outbound,
3245
- z.ZodTypeDef,
3246
- RetrieveMemoryStoresTool
3247
- > = z.object({
3248
- type:
3249
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema,
3250
- requiresApproval: z.boolean().default(false),
3251
- }).transform((v) => {
3252
- return remap$(v, {
3253
- requiresApproval: "requires_approval",
3085
+ export const AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
3086
+ z.ZodType<
3087
+ AgentToolInputRunRetrieveMemoryStoresTool$Outbound,
3088
+ z.ZodTypeDef,
3089
+ AgentToolInputRunRetrieveMemoryStoresTool
3090
+ > = z.object({
3091
+ type:
3092
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
3093
+ requiresApproval: z.boolean().default(false),
3094
+ }).transform((v) => {
3095
+ return remap$(v, {
3096
+ requiresApproval: "requires_approval",
3097
+ });
3254
3098
  });
3255
- });
3256
3099
 
3257
3100
  /**
3258
3101
  * @internal
3259
3102
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3260
3103
  */
3261
- export namespace RetrieveMemoryStoresTool$ {
3262
- /** @deprecated use `RetrieveMemoryStoresTool$inboundSchema` instead. */
3263
- export const inboundSchema = RetrieveMemoryStoresTool$inboundSchema;
3264
- /** @deprecated use `RetrieveMemoryStoresTool$outboundSchema` instead. */
3265
- export const outboundSchema = RetrieveMemoryStoresTool$outboundSchema;
3266
- /** @deprecated use `RetrieveMemoryStoresTool$Outbound` instead. */
3267
- export type Outbound = RetrieveMemoryStoresTool$Outbound;
3104
+ export namespace AgentToolInputRunRetrieveMemoryStoresTool$ {
3105
+ /** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
3106
+ export const inboundSchema =
3107
+ AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
3108
+ /** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
3109
+ export const outboundSchema =
3110
+ AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
3111
+ /** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
3112
+ export type Outbound = AgentToolInputRunRetrieveMemoryStoresTool$Outbound;
3268
3113
  }
3269
3114
 
3270
- export function retrieveMemoryStoresToolToJSON(
3271
- retrieveMemoryStoresTool: RetrieveMemoryStoresTool,
3115
+ export function agentToolInputRunRetrieveMemoryStoresToolToJSON(
3116
+ agentToolInputRunRetrieveMemoryStoresTool:
3117
+ AgentToolInputRunRetrieveMemoryStoresTool,
3272
3118
  ): string {
3273
3119
  return JSON.stringify(
3274
- RetrieveMemoryStoresTool$outboundSchema.parse(retrieveMemoryStoresTool),
3120
+ AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema.parse(
3121
+ agentToolInputRunRetrieveMemoryStoresTool,
3122
+ ),
3275
3123
  );
3276
3124
  }
3277
3125
 
3278
- export function retrieveMemoryStoresToolFromJSON(
3126
+ export function agentToolInputRunRetrieveMemoryStoresToolFromJSON(
3279
3127
  jsonString: string,
3280
- ): SafeParseResult<RetrieveMemoryStoresTool, SDKValidationError> {
3128
+ ): SafeParseResult<
3129
+ AgentToolInputRunRetrieveMemoryStoresTool,
3130
+ SDKValidationError
3131
+ > {
3281
3132
  return safeParse(
3282
3133
  jsonString,
3283
- (x) => RetrieveMemoryStoresTool$inboundSchema.parse(JSON.parse(x)),
3284
- `Failed to parse 'RetrieveMemoryStoresTool' from JSON`,
3134
+ (x) =>
3135
+ AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema.parse(
3136
+ JSON.parse(x),
3137
+ ),
3138
+ `Failed to parse 'AgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
3285
3139
  );
3286
3140
  }
3287
3141
 
3288
3142
  /** @internal */
3289
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema:
3143
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
3290
3144
  z.ZodNativeEnum<
3291
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
3145
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3292
3146
  > = z.nativeEnum(
3293
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType,
3147
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
3294
3148
  );
3295
3149
 
3296
3150
  /** @internal */
3297
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema:
3151
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
3298
3152
  z.ZodNativeEnum<
3299
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
3153
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3300
3154
  > =
3301
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
3155
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3302
3156
 
3303
3157
  /**
3304
3158
  * @internal
3305
3159
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3306
3160
  */
3307
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$ {
3308
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3161
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
3162
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3309
3163
  export const inboundSchema =
3310
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
3311
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3164
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3165
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3312
3166
  export const outboundSchema =
3313
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema;
3167
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
3314
3168
  }
3315
3169
 
3316
3170
  /** @internal */
3317
- export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
3318
- WriteMemoryStoreTool,
3171
+ export const AgentToolInputRunWriteMemoryStoreTool$inboundSchema: z.ZodType<
3172
+ AgentToolInputRunWriteMemoryStoreTool,
3319
3173
  z.ZodTypeDef,
3320
3174
  unknown
3321
3175
  > = z.object({
3322
3176
  type:
3323
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema,
3177
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
3324
3178
  requires_approval: z.boolean().default(false),
3325
3179
  }).transform((v) => {
3326
3180
  return remap$(v, {
@@ -3329,19 +3183,19 @@ export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
3329
3183
  });
3330
3184
 
3331
3185
  /** @internal */
3332
- export type WriteMemoryStoreTool$Outbound = {
3186
+ export type AgentToolInputRunWriteMemoryStoreTool$Outbound = {
3333
3187
  type: string;
3334
3188
  requires_approval: boolean;
3335
3189
  };
3336
3190
 
3337
3191
  /** @internal */
3338
- export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
3339
- WriteMemoryStoreTool$Outbound,
3192
+ export const AgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<
3193
+ AgentToolInputRunWriteMemoryStoreTool$Outbound,
3340
3194
  z.ZodTypeDef,
3341
- WriteMemoryStoreTool
3195
+ AgentToolInputRunWriteMemoryStoreTool
3342
3196
  > = z.object({
3343
3197
  type:
3344
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema,
3198
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
3345
3199
  requiresApproval: z.boolean().default(false),
3346
3200
  }).transform((v) => {
3347
3201
  return remap$(v, {
@@ -3353,65 +3207,70 @@ export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
3353
3207
  * @internal
3354
3208
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3355
3209
  */
3356
- export namespace WriteMemoryStoreTool$ {
3357
- /** @deprecated use `WriteMemoryStoreTool$inboundSchema` instead. */
3358
- export const inboundSchema = WriteMemoryStoreTool$inboundSchema;
3359
- /** @deprecated use `WriteMemoryStoreTool$outboundSchema` instead. */
3360
- export const outboundSchema = WriteMemoryStoreTool$outboundSchema;
3361
- /** @deprecated use `WriteMemoryStoreTool$Outbound` instead. */
3362
- export type Outbound = WriteMemoryStoreTool$Outbound;
3210
+ export namespace AgentToolInputRunWriteMemoryStoreTool$ {
3211
+ /** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
3212
+ export const inboundSchema =
3213
+ AgentToolInputRunWriteMemoryStoreTool$inboundSchema;
3214
+ /** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
3215
+ export const outboundSchema =
3216
+ AgentToolInputRunWriteMemoryStoreTool$outboundSchema;
3217
+ /** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
3218
+ export type Outbound = AgentToolInputRunWriteMemoryStoreTool$Outbound;
3363
3219
  }
3364
3220
 
3365
- export function writeMemoryStoreToolToJSON(
3366
- writeMemoryStoreTool: WriteMemoryStoreTool,
3221
+ export function agentToolInputRunWriteMemoryStoreToolToJSON(
3222
+ agentToolInputRunWriteMemoryStoreTool: AgentToolInputRunWriteMemoryStoreTool,
3367
3223
  ): string {
3368
3224
  return JSON.stringify(
3369
- WriteMemoryStoreTool$outboundSchema.parse(writeMemoryStoreTool),
3225
+ AgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
3226
+ agentToolInputRunWriteMemoryStoreTool,
3227
+ ),
3370
3228
  );
3371
3229
  }
3372
3230
 
3373
- export function writeMemoryStoreToolFromJSON(
3231
+ export function agentToolInputRunWriteMemoryStoreToolFromJSON(
3374
3232
  jsonString: string,
3375
- ): SafeParseResult<WriteMemoryStoreTool, SDKValidationError> {
3233
+ ): SafeParseResult<AgentToolInputRunWriteMemoryStoreTool, SDKValidationError> {
3376
3234
  return safeParse(
3377
3235
  jsonString,
3378
- (x) => WriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3379
- `Failed to parse 'WriteMemoryStoreTool' from JSON`,
3236
+ (x) =>
3237
+ AgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3238
+ `Failed to parse 'AgentToolInputRunWriteMemoryStoreTool' from JSON`,
3380
3239
  );
3381
3240
  }
3382
3241
 
3383
3242
  /** @internal */
3384
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema:
3243
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
3385
3244
  z.ZodNativeEnum<
3386
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType
3387
- > = z.nativeEnum(RunAgentRunAgentRequestToolAgentsRequestRequestBodyType);
3245
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
3246
+ > = z.nativeEnum(RunAgentAgentToolInputRunAgentsRequestRequestBodyType);
3388
3247
 
3389
3248
  /** @internal */
3390
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema:
3249
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
3391
3250
  z.ZodNativeEnum<
3392
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType
3393
- > = RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
3251
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
3252
+ > = RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3394
3253
 
3395
3254
  /**
3396
3255
  * @internal
3397
3256
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3398
3257
  */
3399
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$ {
3400
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema` instead. */
3258
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
3259
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
3401
3260
  export const inboundSchema =
3402
- RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
3403
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema` instead. */
3261
+ RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3262
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
3404
3263
  export const outboundSchema =
3405
- RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema;
3264
+ RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
3406
3265
  }
3407
3266
 
3408
3267
  /** @internal */
3409
- export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
3410
- QueryMemoryStoreTool,
3268
+ export const AgentToolInputRunQueryMemoryStoreTool$inboundSchema: z.ZodType<
3269
+ AgentToolInputRunQueryMemoryStoreTool,
3411
3270
  z.ZodTypeDef,
3412
3271
  unknown
3413
3272
  > = z.object({
3414
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema,
3273
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
3415
3274
  requires_approval: z.boolean().default(false),
3416
3275
  }).transform((v) => {
3417
3276
  return remap$(v, {
@@ -3420,18 +3279,18 @@ export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
3420
3279
  });
3421
3280
 
3422
3281
  /** @internal */
3423
- export type QueryMemoryStoreTool$Outbound = {
3282
+ export type AgentToolInputRunQueryMemoryStoreTool$Outbound = {
3424
3283
  type: string;
3425
3284
  requires_approval: boolean;
3426
3285
  };
3427
3286
 
3428
3287
  /** @internal */
3429
- export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
3430
- QueryMemoryStoreTool$Outbound,
3288
+ export const AgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<
3289
+ AgentToolInputRunQueryMemoryStoreTool$Outbound,
3431
3290
  z.ZodTypeDef,
3432
- QueryMemoryStoreTool
3291
+ AgentToolInputRunQueryMemoryStoreTool
3433
3292
  > = z.object({
3434
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema,
3293
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
3435
3294
  requiresApproval: z.boolean().default(false),
3436
3295
  }).transform((v) => {
3437
3296
  return remap$(v, {
@@ -3443,63 +3302,68 @@ export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
3443
3302
  * @internal
3444
3303
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3445
3304
  */
3446
- export namespace QueryMemoryStoreTool$ {
3447
- /** @deprecated use `QueryMemoryStoreTool$inboundSchema` instead. */
3448
- export const inboundSchema = QueryMemoryStoreTool$inboundSchema;
3449
- /** @deprecated use `QueryMemoryStoreTool$outboundSchema` instead. */
3450
- export const outboundSchema = QueryMemoryStoreTool$outboundSchema;
3451
- /** @deprecated use `QueryMemoryStoreTool$Outbound` instead. */
3452
- export type Outbound = QueryMemoryStoreTool$Outbound;
3305
+ export namespace AgentToolInputRunQueryMemoryStoreTool$ {
3306
+ /** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
3307
+ export const inboundSchema =
3308
+ AgentToolInputRunQueryMemoryStoreTool$inboundSchema;
3309
+ /** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
3310
+ export const outboundSchema =
3311
+ AgentToolInputRunQueryMemoryStoreTool$outboundSchema;
3312
+ /** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
3313
+ export type Outbound = AgentToolInputRunQueryMemoryStoreTool$Outbound;
3453
3314
  }
3454
3315
 
3455
- export function queryMemoryStoreToolToJSON(
3456
- queryMemoryStoreTool: QueryMemoryStoreTool,
3316
+ export function agentToolInputRunQueryMemoryStoreToolToJSON(
3317
+ agentToolInputRunQueryMemoryStoreTool: AgentToolInputRunQueryMemoryStoreTool,
3457
3318
  ): string {
3458
3319
  return JSON.stringify(
3459
- QueryMemoryStoreTool$outboundSchema.parse(queryMemoryStoreTool),
3320
+ AgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
3321
+ agentToolInputRunQueryMemoryStoreTool,
3322
+ ),
3460
3323
  );
3461
3324
  }
3462
3325
 
3463
- export function queryMemoryStoreToolFromJSON(
3326
+ export function agentToolInputRunQueryMemoryStoreToolFromJSON(
3464
3327
  jsonString: string,
3465
- ): SafeParseResult<QueryMemoryStoreTool, SDKValidationError> {
3328
+ ): SafeParseResult<AgentToolInputRunQueryMemoryStoreTool, SDKValidationError> {
3466
3329
  return safeParse(
3467
3330
  jsonString,
3468
- (x) => QueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3469
- `Failed to parse 'QueryMemoryStoreTool' from JSON`,
3331
+ (x) =>
3332
+ AgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3333
+ `Failed to parse 'AgentToolInputRunQueryMemoryStoreTool' from JSON`,
3470
3334
  );
3471
3335
  }
3472
3336
 
3473
3337
  /** @internal */
3474
- export const RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema:
3475
- z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestType> = z
3476
- .nativeEnum(RunAgentRunAgentRequestToolAgentsRequestType);
3338
+ export const RunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
3339
+ z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> = z
3340
+ .nativeEnum(RunAgentAgentToolInputRunAgentsRequestType);
3477
3341
 
3478
3342
  /** @internal */
3479
- export const RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema:
3480
- z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestType> =
3481
- RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
3343
+ export const RunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
3344
+ z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> =
3345
+ RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3482
3346
 
3483
3347
  /**
3484
3348
  * @internal
3485
3349
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3486
3350
  */
3487
- export namespace RunAgentRunAgentRequestToolAgentsRequestType$ {
3488
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema` instead. */
3351
+ export namespace RunAgentAgentToolInputRunAgentsRequestType$ {
3352
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
3489
3353
  export const inboundSchema =
3490
- RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
3491
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema` instead. */
3354
+ RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3355
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
3492
3356
  export const outboundSchema =
3493
- RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema;
3357
+ RunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
3494
3358
  }
3495
3359
 
3496
3360
  /** @internal */
3497
- export const RetrieveAgentsTool$inboundSchema: z.ZodType<
3498
- RetrieveAgentsTool,
3361
+ export const AgentToolInputRunRetrieveAgentsTool$inboundSchema: z.ZodType<
3362
+ AgentToolInputRunRetrieveAgentsTool,
3499
3363
  z.ZodTypeDef,
3500
3364
  unknown
3501
3365
  > = z.object({
3502
- type: RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema,
3366
+ type: RunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
3503
3367
  requires_approval: z.boolean().default(false),
3504
3368
  }).transform((v) => {
3505
3369
  return remap$(v, {
@@ -3508,18 +3372,18 @@ export const RetrieveAgentsTool$inboundSchema: z.ZodType<
3508
3372
  });
3509
3373
 
3510
3374
  /** @internal */
3511
- export type RetrieveAgentsTool$Outbound = {
3375
+ export type AgentToolInputRunRetrieveAgentsTool$Outbound = {
3512
3376
  type: string;
3513
3377
  requires_approval: boolean;
3514
3378
  };
3515
3379
 
3516
3380
  /** @internal */
3517
- export const RetrieveAgentsTool$outboundSchema: z.ZodType<
3518
- RetrieveAgentsTool$Outbound,
3381
+ export const AgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<
3382
+ AgentToolInputRunRetrieveAgentsTool$Outbound,
3519
3383
  z.ZodTypeDef,
3520
- RetrieveAgentsTool
3384
+ AgentToolInputRunRetrieveAgentsTool
3521
3385
  > = z.object({
3522
- type: RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema,
3386
+ type: RunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
3523
3387
  requiresApproval: z.boolean().default(false),
3524
3388
  }).transform((v) => {
3525
3389
  return remap$(v, {
@@ -3531,64 +3395,68 @@ export const RetrieveAgentsTool$outboundSchema: z.ZodType<
3531
3395
  * @internal
3532
3396
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3533
3397
  */
3534
- export namespace RetrieveAgentsTool$ {
3535
- /** @deprecated use `RetrieveAgentsTool$inboundSchema` instead. */
3536
- export const inboundSchema = RetrieveAgentsTool$inboundSchema;
3537
- /** @deprecated use `RetrieveAgentsTool$outboundSchema` instead. */
3538
- export const outboundSchema = RetrieveAgentsTool$outboundSchema;
3539
- /** @deprecated use `RetrieveAgentsTool$Outbound` instead. */
3540
- export type Outbound = RetrieveAgentsTool$Outbound;
3398
+ export namespace AgentToolInputRunRetrieveAgentsTool$ {
3399
+ /** @deprecated use `AgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
3400
+ export const inboundSchema =
3401
+ AgentToolInputRunRetrieveAgentsTool$inboundSchema;
3402
+ /** @deprecated use `AgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
3403
+ export const outboundSchema =
3404
+ AgentToolInputRunRetrieveAgentsTool$outboundSchema;
3405
+ /** @deprecated use `AgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
3406
+ export type Outbound = AgentToolInputRunRetrieveAgentsTool$Outbound;
3541
3407
  }
3542
3408
 
3543
- export function retrieveAgentsToolToJSON(
3544
- retrieveAgentsTool: RetrieveAgentsTool,
3409
+ export function agentToolInputRunRetrieveAgentsToolToJSON(
3410
+ agentToolInputRunRetrieveAgentsTool: AgentToolInputRunRetrieveAgentsTool,
3545
3411
  ): string {
3546
3412
  return JSON.stringify(
3547
- RetrieveAgentsTool$outboundSchema.parse(retrieveAgentsTool),
3413
+ AgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
3414
+ agentToolInputRunRetrieveAgentsTool,
3415
+ ),
3548
3416
  );
3549
3417
  }
3550
3418
 
3551
- export function retrieveAgentsToolFromJSON(
3419
+ export function agentToolInputRunRetrieveAgentsToolFromJSON(
3552
3420
  jsonString: string,
3553
- ): SafeParseResult<RetrieveAgentsTool, SDKValidationError> {
3421
+ ): SafeParseResult<AgentToolInputRunRetrieveAgentsTool, SDKValidationError> {
3554
3422
  return safeParse(
3555
3423
  jsonString,
3556
- (x) => RetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
3557
- `Failed to parse 'RetrieveAgentsTool' from JSON`,
3424
+ (x) =>
3425
+ AgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
3426
+ `Failed to parse 'AgentToolInputRunRetrieveAgentsTool' from JSON`,
3558
3427
  );
3559
3428
  }
3560
3429
 
3561
3430
  /** @internal */
3562
- export const RunAgentRunAgentRequestToolAgentsType$inboundSchema:
3563
- z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsType> = z.nativeEnum(
3564
- RunAgentRunAgentRequestToolAgentsType,
3565
- );
3431
+ export const RunAgentAgentToolInputRunAgentsType$inboundSchema: z.ZodNativeEnum<
3432
+ typeof RunAgentAgentToolInputRunAgentsType
3433
+ > = z.nativeEnum(RunAgentAgentToolInputRunAgentsType);
3566
3434
 
3567
3435
  /** @internal */
3568
- export const RunAgentRunAgentRequestToolAgentsType$outboundSchema:
3569
- z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsType> =
3570
- RunAgentRunAgentRequestToolAgentsType$inboundSchema;
3436
+ export const RunAgentAgentToolInputRunAgentsType$outboundSchema:
3437
+ z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsType> =
3438
+ RunAgentAgentToolInputRunAgentsType$inboundSchema;
3571
3439
 
3572
3440
  /**
3573
3441
  * @internal
3574
3442
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3575
3443
  */
3576
- export namespace RunAgentRunAgentRequestToolAgentsType$ {
3577
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsType$inboundSchema` instead. */
3444
+ export namespace RunAgentAgentToolInputRunAgentsType$ {
3445
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
3578
3446
  export const inboundSchema =
3579
- RunAgentRunAgentRequestToolAgentsType$inboundSchema;
3580
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsType$outboundSchema` instead. */
3447
+ RunAgentAgentToolInputRunAgentsType$inboundSchema;
3448
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
3581
3449
  export const outboundSchema =
3582
- RunAgentRunAgentRequestToolAgentsType$outboundSchema;
3450
+ RunAgentAgentToolInputRunAgentsType$outboundSchema;
3583
3451
  }
3584
3452
 
3585
3453
  /** @internal */
3586
- export const CallSubAgentTool$inboundSchema: z.ZodType<
3587
- CallSubAgentTool,
3454
+ export const AgentToolInputRunCallSubAgentTool$inboundSchema: z.ZodType<
3455
+ AgentToolInputRunCallSubAgentTool,
3588
3456
  z.ZodTypeDef,
3589
3457
  unknown
3590
3458
  > = z.object({
3591
- type: RunAgentRunAgentRequestToolAgentsType$inboundSchema,
3459
+ type: RunAgentAgentToolInputRunAgentsType$inboundSchema,
3592
3460
  requires_approval: z.boolean().default(false),
3593
3461
  }).transform((v) => {
3594
3462
  return remap$(v, {
@@ -3597,18 +3465,18 @@ export const CallSubAgentTool$inboundSchema: z.ZodType<
3597
3465
  });
3598
3466
 
3599
3467
  /** @internal */
3600
- export type CallSubAgentTool$Outbound = {
3468
+ export type AgentToolInputRunCallSubAgentTool$Outbound = {
3601
3469
  type: string;
3602
3470
  requires_approval: boolean;
3603
3471
  };
3604
3472
 
3605
3473
  /** @internal */
3606
- export const CallSubAgentTool$outboundSchema: z.ZodType<
3607
- CallSubAgentTool$Outbound,
3474
+ export const AgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<
3475
+ AgentToolInputRunCallSubAgentTool$Outbound,
3608
3476
  z.ZodTypeDef,
3609
- CallSubAgentTool
3477
+ AgentToolInputRunCallSubAgentTool
3610
3478
  > = z.object({
3611
- type: RunAgentRunAgentRequestToolAgentsType$outboundSchema,
3479
+ type: RunAgentAgentToolInputRunAgentsType$outboundSchema,
3612
3480
  requiresApproval: z.boolean().default(false),
3613
3481
  }).transform((v) => {
3614
3482
  return remap$(v, {
@@ -3620,61 +3488,64 @@ export const CallSubAgentTool$outboundSchema: z.ZodType<
3620
3488
  * @internal
3621
3489
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3622
3490
  */
3623
- export namespace CallSubAgentTool$ {
3624
- /** @deprecated use `CallSubAgentTool$inboundSchema` instead. */
3625
- export const inboundSchema = CallSubAgentTool$inboundSchema;
3626
- /** @deprecated use `CallSubAgentTool$outboundSchema` instead. */
3627
- export const outboundSchema = CallSubAgentTool$outboundSchema;
3628
- /** @deprecated use `CallSubAgentTool$Outbound` instead. */
3629
- export type Outbound = CallSubAgentTool$Outbound;
3491
+ export namespace AgentToolInputRunCallSubAgentTool$ {
3492
+ /** @deprecated use `AgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
3493
+ export const inboundSchema = AgentToolInputRunCallSubAgentTool$inboundSchema;
3494
+ /** @deprecated use `AgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
3495
+ export const outboundSchema =
3496
+ AgentToolInputRunCallSubAgentTool$outboundSchema;
3497
+ /** @deprecated use `AgentToolInputRunCallSubAgentTool$Outbound` instead. */
3498
+ export type Outbound = AgentToolInputRunCallSubAgentTool$Outbound;
3630
3499
  }
3631
3500
 
3632
- export function callSubAgentToolToJSON(
3633
- callSubAgentTool: CallSubAgentTool,
3501
+ export function agentToolInputRunCallSubAgentToolToJSON(
3502
+ agentToolInputRunCallSubAgentTool: AgentToolInputRunCallSubAgentTool,
3634
3503
  ): string {
3635
3504
  return JSON.stringify(
3636
- CallSubAgentTool$outboundSchema.parse(callSubAgentTool),
3505
+ AgentToolInputRunCallSubAgentTool$outboundSchema.parse(
3506
+ agentToolInputRunCallSubAgentTool,
3507
+ ),
3637
3508
  );
3638
3509
  }
3639
3510
 
3640
- export function callSubAgentToolFromJSON(
3511
+ export function agentToolInputRunCallSubAgentToolFromJSON(
3641
3512
  jsonString: string,
3642
- ): SafeParseResult<CallSubAgentTool, SDKValidationError> {
3513
+ ): SafeParseResult<AgentToolInputRunCallSubAgentTool, SDKValidationError> {
3643
3514
  return safeParse(
3644
3515
  jsonString,
3645
- (x) => CallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
3646
- `Failed to parse 'CallSubAgentTool' from JSON`,
3516
+ (x) => AgentToolInputRunCallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
3517
+ `Failed to parse 'AgentToolInputRunCallSubAgentTool' from JSON`,
3647
3518
  );
3648
3519
  }
3649
3520
 
3650
3521
  /** @internal */
3651
- export const RunAgentRunAgentRequestToolType$inboundSchema: z.ZodNativeEnum<
3652
- typeof RunAgentRunAgentRequestToolType
3653
- > = z.nativeEnum(RunAgentRunAgentRequestToolType);
3522
+ export const RunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
3523
+ typeof RunAgentAgentToolInputRunType
3524
+ > = z.nativeEnum(RunAgentAgentToolInputRunType);
3654
3525
 
3655
3526
  /** @internal */
3656
- export const RunAgentRunAgentRequestToolType$outboundSchema: z.ZodNativeEnum<
3657
- typeof RunAgentRunAgentRequestToolType
3658
- > = RunAgentRunAgentRequestToolType$inboundSchema;
3527
+ export const RunAgentAgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
3528
+ typeof RunAgentAgentToolInputRunType
3529
+ > = RunAgentAgentToolInputRunType$inboundSchema;
3659
3530
 
3660
3531
  /**
3661
3532
  * @internal
3662
3533
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3663
3534
  */
3664
- export namespace RunAgentRunAgentRequestToolType$ {
3665
- /** @deprecated use `RunAgentRunAgentRequestToolType$inboundSchema` instead. */
3666
- export const inboundSchema = RunAgentRunAgentRequestToolType$inboundSchema;
3667
- /** @deprecated use `RunAgentRunAgentRequestToolType$outboundSchema` instead. */
3668
- export const outboundSchema = RunAgentRunAgentRequestToolType$outboundSchema;
3535
+ export namespace RunAgentAgentToolInputRunType$ {
3536
+ /** @deprecated use `RunAgentAgentToolInputRunType$inboundSchema` instead. */
3537
+ export const inboundSchema = RunAgentAgentToolInputRunType$inboundSchema;
3538
+ /** @deprecated use `RunAgentAgentToolInputRunType$outboundSchema` instead. */
3539
+ export const outboundSchema = RunAgentAgentToolInputRunType$outboundSchema;
3669
3540
  }
3670
3541
 
3671
3542
  /** @internal */
3672
- export const WebScraperTool$inboundSchema: z.ZodType<
3673
- WebScraperTool,
3543
+ export const AgentToolInputRunWebScraperTool$inboundSchema: z.ZodType<
3544
+ AgentToolInputRunWebScraperTool,
3674
3545
  z.ZodTypeDef,
3675
3546
  unknown
3676
3547
  > = z.object({
3677
- type: RunAgentRunAgentRequestToolType$inboundSchema,
3548
+ type: RunAgentAgentToolInputRunType$inboundSchema,
3678
3549
  requires_approval: z.boolean().default(false),
3679
3550
  }).transform((v) => {
3680
3551
  return remap$(v, {
@@ -3683,18 +3554,18 @@ export const WebScraperTool$inboundSchema: z.ZodType<
3683
3554
  });
3684
3555
 
3685
3556
  /** @internal */
3686
- export type WebScraperTool$Outbound = {
3557
+ export type AgentToolInputRunWebScraperTool$Outbound = {
3687
3558
  type: string;
3688
3559
  requires_approval: boolean;
3689
3560
  };
3690
3561
 
3691
3562
  /** @internal */
3692
- export const WebScraperTool$outboundSchema: z.ZodType<
3693
- WebScraperTool$Outbound,
3563
+ export const AgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<
3564
+ AgentToolInputRunWebScraperTool$Outbound,
3694
3565
  z.ZodTypeDef,
3695
- WebScraperTool
3566
+ AgentToolInputRunWebScraperTool
3696
3567
  > = z.object({
3697
- type: RunAgentRunAgentRequestToolType$outboundSchema,
3568
+ type: RunAgentAgentToolInputRunType$outboundSchema,
3698
3569
  requiresApproval: z.boolean().default(false),
3699
3570
  }).transform((v) => {
3700
3571
  return remap$(v, {
@@ -3706,57 +3577,63 @@ export const WebScraperTool$outboundSchema: z.ZodType<
3706
3577
  * @internal
3707
3578
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3708
3579
  */
3709
- export namespace WebScraperTool$ {
3710
- /** @deprecated use `WebScraperTool$inboundSchema` instead. */
3711
- export const inboundSchema = WebScraperTool$inboundSchema;
3712
- /** @deprecated use `WebScraperTool$outboundSchema` instead. */
3713
- export const outboundSchema = WebScraperTool$outboundSchema;
3714
- /** @deprecated use `WebScraperTool$Outbound` instead. */
3715
- export type Outbound = WebScraperTool$Outbound;
3580
+ export namespace AgentToolInputRunWebScraperTool$ {
3581
+ /** @deprecated use `AgentToolInputRunWebScraperTool$inboundSchema` instead. */
3582
+ export const inboundSchema = AgentToolInputRunWebScraperTool$inboundSchema;
3583
+ /** @deprecated use `AgentToolInputRunWebScraperTool$outboundSchema` instead. */
3584
+ export const outboundSchema = AgentToolInputRunWebScraperTool$outboundSchema;
3585
+ /** @deprecated use `AgentToolInputRunWebScraperTool$Outbound` instead. */
3586
+ export type Outbound = AgentToolInputRunWebScraperTool$Outbound;
3716
3587
  }
3717
3588
 
3718
- export function webScraperToolToJSON(webScraperTool: WebScraperTool): string {
3719
- return JSON.stringify(WebScraperTool$outboundSchema.parse(webScraperTool));
3589
+ export function agentToolInputRunWebScraperToolToJSON(
3590
+ agentToolInputRunWebScraperTool: AgentToolInputRunWebScraperTool,
3591
+ ): string {
3592
+ return JSON.stringify(
3593
+ AgentToolInputRunWebScraperTool$outboundSchema.parse(
3594
+ agentToolInputRunWebScraperTool,
3595
+ ),
3596
+ );
3720
3597
  }
3721
3598
 
3722
- export function webScraperToolFromJSON(
3599
+ export function agentToolInputRunWebScraperToolFromJSON(
3723
3600
  jsonString: string,
3724
- ): SafeParseResult<WebScraperTool, SDKValidationError> {
3601
+ ): SafeParseResult<AgentToolInputRunWebScraperTool, SDKValidationError> {
3725
3602
  return safeParse(
3726
3603
  jsonString,
3727
- (x) => WebScraperTool$inboundSchema.parse(JSON.parse(x)),
3728
- `Failed to parse 'WebScraperTool' from JSON`,
3604
+ (x) => AgentToolInputRunWebScraperTool$inboundSchema.parse(JSON.parse(x)),
3605
+ `Failed to parse 'AgentToolInputRunWebScraperTool' from JSON`,
3729
3606
  );
3730
3607
  }
3731
3608
 
3732
3609
  /** @internal */
3733
- export const RunAgentRequestToolType$inboundSchema: z.ZodNativeEnum<
3734
- typeof RunAgentRequestToolType
3735
- > = z.nativeEnum(RunAgentRequestToolType);
3610
+ export const AgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
3611
+ typeof AgentToolInputRunType
3612
+ > = z.nativeEnum(AgentToolInputRunType);
3736
3613
 
3737
3614
  /** @internal */
3738
- export const RunAgentRequestToolType$outboundSchema: z.ZodNativeEnum<
3739
- typeof RunAgentRequestToolType
3740
- > = RunAgentRequestToolType$inboundSchema;
3615
+ export const AgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
3616
+ typeof AgentToolInputRunType
3617
+ > = AgentToolInputRunType$inboundSchema;
3741
3618
 
3742
3619
  /**
3743
3620
  * @internal
3744
3621
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3745
3622
  */
3746
- export namespace RunAgentRequestToolType$ {
3747
- /** @deprecated use `RunAgentRequestToolType$inboundSchema` instead. */
3748
- export const inboundSchema = RunAgentRequestToolType$inboundSchema;
3749
- /** @deprecated use `RunAgentRequestToolType$outboundSchema` instead. */
3750
- export const outboundSchema = RunAgentRequestToolType$outboundSchema;
3623
+ export namespace AgentToolInputRunType$ {
3624
+ /** @deprecated use `AgentToolInputRunType$inboundSchema` instead. */
3625
+ export const inboundSchema = AgentToolInputRunType$inboundSchema;
3626
+ /** @deprecated use `AgentToolInputRunType$outboundSchema` instead. */
3627
+ export const outboundSchema = AgentToolInputRunType$outboundSchema;
3751
3628
  }
3752
3629
 
3753
3630
  /** @internal */
3754
- export const GoogleSearchTool$inboundSchema: z.ZodType<
3755
- GoogleSearchTool,
3631
+ export const AgentToolInputRunGoogleSearchTool$inboundSchema: z.ZodType<
3632
+ AgentToolInputRunGoogleSearchTool,
3756
3633
  z.ZodTypeDef,
3757
3634
  unknown
3758
3635
  > = z.object({
3759
- type: RunAgentRequestToolType$inboundSchema,
3636
+ type: AgentToolInputRunType$inboundSchema,
3760
3637
  requires_approval: z.boolean().default(false),
3761
3638
  }).transform((v) => {
3762
3639
  return remap$(v, {
@@ -3765,18 +3642,18 @@ export const GoogleSearchTool$inboundSchema: z.ZodType<
3765
3642
  });
3766
3643
 
3767
3644
  /** @internal */
3768
- export type GoogleSearchTool$Outbound = {
3645
+ export type AgentToolInputRunGoogleSearchTool$Outbound = {
3769
3646
  type: string;
3770
3647
  requires_approval: boolean;
3771
3648
  };
3772
3649
 
3773
3650
  /** @internal */
3774
- export const GoogleSearchTool$outboundSchema: z.ZodType<
3775
- GoogleSearchTool$Outbound,
3651
+ export const AgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<
3652
+ AgentToolInputRunGoogleSearchTool$Outbound,
3776
3653
  z.ZodTypeDef,
3777
- GoogleSearchTool
3654
+ AgentToolInputRunGoogleSearchTool
3778
3655
  > = z.object({
3779
- type: RunAgentRequestToolType$outboundSchema,
3656
+ type: AgentToolInputRunType$outboundSchema,
3780
3657
  requiresApproval: z.boolean().default(false),
3781
3658
  }).transform((v) => {
3782
3659
  return remap$(v, {
@@ -3788,171 +3665,176 @@ export const GoogleSearchTool$outboundSchema: z.ZodType<
3788
3665
  * @internal
3789
3666
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3790
3667
  */
3791
- export namespace GoogleSearchTool$ {
3792
- /** @deprecated use `GoogleSearchTool$inboundSchema` instead. */
3793
- export const inboundSchema = GoogleSearchTool$inboundSchema;
3794
- /** @deprecated use `GoogleSearchTool$outboundSchema` instead. */
3795
- export const outboundSchema = GoogleSearchTool$outboundSchema;
3796
- /** @deprecated use `GoogleSearchTool$Outbound` instead. */
3797
- export type Outbound = GoogleSearchTool$Outbound;
3668
+ export namespace AgentToolInputRunGoogleSearchTool$ {
3669
+ /** @deprecated use `AgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
3670
+ export const inboundSchema = AgentToolInputRunGoogleSearchTool$inboundSchema;
3671
+ /** @deprecated use `AgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
3672
+ export const outboundSchema =
3673
+ AgentToolInputRunGoogleSearchTool$outboundSchema;
3674
+ /** @deprecated use `AgentToolInputRunGoogleSearchTool$Outbound` instead. */
3675
+ export type Outbound = AgentToolInputRunGoogleSearchTool$Outbound;
3798
3676
  }
3799
3677
 
3800
- export function googleSearchToolToJSON(
3801
- googleSearchTool: GoogleSearchTool,
3678
+ export function agentToolInputRunGoogleSearchToolToJSON(
3679
+ agentToolInputRunGoogleSearchTool: AgentToolInputRunGoogleSearchTool,
3802
3680
  ): string {
3803
3681
  return JSON.stringify(
3804
- GoogleSearchTool$outboundSchema.parse(googleSearchTool),
3682
+ AgentToolInputRunGoogleSearchTool$outboundSchema.parse(
3683
+ agentToolInputRunGoogleSearchTool,
3684
+ ),
3805
3685
  );
3806
3686
  }
3807
3687
 
3808
- export function googleSearchToolFromJSON(
3688
+ export function agentToolInputRunGoogleSearchToolFromJSON(
3809
3689
  jsonString: string,
3810
- ): SafeParseResult<GoogleSearchTool, SDKValidationError> {
3690
+ ): SafeParseResult<AgentToolInputRunGoogleSearchTool, SDKValidationError> {
3811
3691
  return safeParse(
3812
3692
  jsonString,
3813
- (x) => GoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
3814
- `Failed to parse 'GoogleSearchTool' from JSON`,
3693
+ (x) => AgentToolInputRunGoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
3694
+ `Failed to parse 'AgentToolInputRunGoogleSearchTool' from JSON`,
3815
3695
  );
3816
3696
  }
3817
3697
 
3818
3698
  /** @internal */
3819
- export const RunAgentRequestTool$inboundSchema: z.ZodType<
3820
- RunAgentRequestTool,
3699
+ export const AgentToolInputRun$inboundSchema: z.ZodType<
3700
+ AgentToolInputRun,
3821
3701
  z.ZodTypeDef,
3822
3702
  unknown
3823
3703
  > = z.union([
3824
- z.lazy(() => HTTPTool$inboundSchema),
3825
- z.lazy(() => CodeExecutionTool$inboundSchema),
3826
- z.lazy(() => FunctionTool$inboundSchema),
3827
- z.lazy(() => GoogleSearchTool$inboundSchema),
3828
- z.lazy(() => WebScraperTool$inboundSchema),
3829
- z.lazy(() => CallSubAgentTool$inboundSchema),
3830
- z.lazy(() => RetrieveAgentsTool$inboundSchema),
3831
- z.lazy(() => QueryMemoryStoreTool$inboundSchema),
3832
- z.lazy(() => WriteMemoryStoreTool$inboundSchema),
3833
- z.lazy(() => RetrieveMemoryStoresTool$inboundSchema),
3834
- z.lazy(() => DeleteMemoryStoreTool$inboundSchema),
3835
- z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
3836
- z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
3837
- z.lazy(() => CurrentDateTool$inboundSchema),
3704
+ z.lazy(() => HTTPToolRun$inboundSchema),
3705
+ z.lazy(() => CodeToolRun$inboundSchema),
3706
+ z.lazy(() => FunctionToolRun$inboundSchema),
3707
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
3708
+ z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
3709
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
3710
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
3711
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
3712
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
3713
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
3714
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
3715
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
3716
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
3717
+ z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
3838
3718
  ]);
3839
3719
 
3840
3720
  /** @internal */
3841
- export type RunAgentRequestTool$Outbound =
3842
- | HTTPTool$Outbound
3843
- | CodeExecutionTool$Outbound
3844
- | FunctionTool$Outbound
3845
- | GoogleSearchTool$Outbound
3846
- | WebScraperTool$Outbound
3847
- | CallSubAgentTool$Outbound
3848
- | RetrieveAgentsTool$Outbound
3849
- | QueryMemoryStoreTool$Outbound
3850
- | WriteMemoryStoreTool$Outbound
3851
- | RetrieveMemoryStoresTool$Outbound
3852
- | DeleteMemoryStoreTool$Outbound
3853
- | RetrieveKnowledgeBasesTool$Outbound
3854
- | QueryKnowledgeBaseTool$Outbound
3855
- | CurrentDateTool$Outbound;
3856
-
3857
- /** @internal */
3858
- export const RunAgentRequestTool$outboundSchema: z.ZodType<
3859
- RunAgentRequestTool$Outbound,
3721
+ export type AgentToolInputRun$Outbound =
3722
+ | HTTPToolRun$Outbound
3723
+ | CodeToolRun$Outbound
3724
+ | FunctionToolRun$Outbound
3725
+ | AgentToolInputRunGoogleSearchTool$Outbound
3726
+ | AgentToolInputRunWebScraperTool$Outbound
3727
+ | AgentToolInputRunCallSubAgentTool$Outbound
3728
+ | AgentToolInputRunRetrieveAgentsTool$Outbound
3729
+ | AgentToolInputRunQueryMemoryStoreTool$Outbound
3730
+ | AgentToolInputRunWriteMemoryStoreTool$Outbound
3731
+ | AgentToolInputRunRetrieveMemoryStoresTool$Outbound
3732
+ | AgentToolInputRunDeleteMemoryDocumentTool$Outbound
3733
+ | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
3734
+ | AgentToolInputRunQueryKnowledgeBaseTool$Outbound
3735
+ | AgentToolInputRunCurrentDateTool$Outbound;
3736
+
3737
+ /** @internal */
3738
+ export const AgentToolInputRun$outboundSchema: z.ZodType<
3739
+ AgentToolInputRun$Outbound,
3860
3740
  z.ZodTypeDef,
3861
- RunAgentRequestTool
3741
+ AgentToolInputRun
3862
3742
  > = z.union([
3863
- z.lazy(() => HTTPTool$outboundSchema),
3864
- z.lazy(() => CodeExecutionTool$outboundSchema),
3865
- z.lazy(() => FunctionTool$outboundSchema),
3866
- z.lazy(() => GoogleSearchTool$outboundSchema),
3867
- z.lazy(() => WebScraperTool$outboundSchema),
3868
- z.lazy(() => CallSubAgentTool$outboundSchema),
3869
- z.lazy(() => RetrieveAgentsTool$outboundSchema),
3870
- z.lazy(() => QueryMemoryStoreTool$outboundSchema),
3871
- z.lazy(() => WriteMemoryStoreTool$outboundSchema),
3872
- z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
3873
- z.lazy(() => DeleteMemoryStoreTool$outboundSchema),
3874
- z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
3875
- z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
3876
- z.lazy(() => CurrentDateTool$outboundSchema),
3743
+ z.lazy(() => HTTPToolRun$outboundSchema),
3744
+ z.lazy(() => CodeToolRun$outboundSchema),
3745
+ z.lazy(() => FunctionToolRun$outboundSchema),
3746
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
3747
+ z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
3748
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
3749
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
3750
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
3751
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
3752
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
3753
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
3754
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
3755
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
3756
+ z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
3877
3757
  ]);
3878
3758
 
3879
3759
  /**
3880
3760
  * @internal
3881
3761
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3882
3762
  */
3883
- export namespace RunAgentRequestTool$ {
3884
- /** @deprecated use `RunAgentRequestTool$inboundSchema` instead. */
3885
- export const inboundSchema = RunAgentRequestTool$inboundSchema;
3886
- /** @deprecated use `RunAgentRequestTool$outboundSchema` instead. */
3887
- export const outboundSchema = RunAgentRequestTool$outboundSchema;
3888
- /** @deprecated use `RunAgentRequestTool$Outbound` instead. */
3889
- export type Outbound = RunAgentRequestTool$Outbound;
3763
+ export namespace AgentToolInputRun$ {
3764
+ /** @deprecated use `AgentToolInputRun$inboundSchema` instead. */
3765
+ export const inboundSchema = AgentToolInputRun$inboundSchema;
3766
+ /** @deprecated use `AgentToolInputRun$outboundSchema` instead. */
3767
+ export const outboundSchema = AgentToolInputRun$outboundSchema;
3768
+ /** @deprecated use `AgentToolInputRun$Outbound` instead. */
3769
+ export type Outbound = AgentToolInputRun$Outbound;
3890
3770
  }
3891
3771
 
3892
- export function runAgentRequestToolToJSON(
3893
- runAgentRequestTool: RunAgentRequestTool,
3772
+ export function agentToolInputRunToJSON(
3773
+ agentToolInputRun: AgentToolInputRun,
3894
3774
  ): string {
3895
3775
  return JSON.stringify(
3896
- RunAgentRequestTool$outboundSchema.parse(runAgentRequestTool),
3776
+ AgentToolInputRun$outboundSchema.parse(agentToolInputRun),
3897
3777
  );
3898
3778
  }
3899
3779
 
3900
- export function runAgentRequestToolFromJSON(
3780
+ export function agentToolInputRunFromJSON(
3901
3781
  jsonString: string,
3902
- ): SafeParseResult<RunAgentRequestTool, SDKValidationError> {
3782
+ ): SafeParseResult<AgentToolInputRun, SDKValidationError> {
3903
3783
  return safeParse(
3904
3784
  jsonString,
3905
- (x) => RunAgentRequestTool$inboundSchema.parse(JSON.parse(x)),
3906
- `Failed to parse 'RunAgentRequestTool' from JSON`,
3785
+ (x) => AgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
3786
+ `Failed to parse 'AgentToolInputRun' from JSON`,
3907
3787
  );
3908
3788
  }
3909
3789
 
3910
3790
  /** @internal */
3911
- export const ToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
3912
- typeof ToolApprovalRequired
3913
- > = z.nativeEnum(ToolApprovalRequired);
3791
+ export const RunAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
3792
+ typeof RunAgentToolApprovalRequired
3793
+ > = z.nativeEnum(RunAgentToolApprovalRequired);
3914
3794
 
3915
3795
  /** @internal */
3916
- export const ToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
3917
- typeof ToolApprovalRequired
3918
- > = ToolApprovalRequired$inboundSchema;
3796
+ export const RunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
3797
+ typeof RunAgentToolApprovalRequired
3798
+ > = RunAgentToolApprovalRequired$inboundSchema;
3919
3799
 
3920
3800
  /**
3921
3801
  * @internal
3922
3802
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3923
3803
  */
3924
- export namespace ToolApprovalRequired$ {
3925
- /** @deprecated use `ToolApprovalRequired$inboundSchema` instead. */
3926
- export const inboundSchema = ToolApprovalRequired$inboundSchema;
3927
- /** @deprecated use `ToolApprovalRequired$outboundSchema` instead. */
3928
- export const outboundSchema = ToolApprovalRequired$outboundSchema;
3804
+ export namespace RunAgentToolApprovalRequired$ {
3805
+ /** @deprecated use `RunAgentToolApprovalRequired$inboundSchema` instead. */
3806
+ export const inboundSchema = RunAgentToolApprovalRequired$inboundSchema;
3807
+ /** @deprecated use `RunAgentToolApprovalRequired$outboundSchema` instead. */
3808
+ export const outboundSchema = RunAgentToolApprovalRequired$outboundSchema;
3929
3809
  }
3930
3810
 
3931
3811
  /** @internal */
3932
- export const Settings$inboundSchema: z.ZodType<
3933
- Settings,
3812
+ export const RunAgentSettings$inboundSchema: z.ZodType<
3813
+ RunAgentSettings,
3934
3814
  z.ZodTypeDef,
3935
3815
  unknown
3936
3816
  > = z.object({
3937
3817
  tools: z.array(
3938
3818
  z.union([
3939
- z.lazy(() => HTTPTool$inboundSchema),
3940
- z.lazy(() => CodeExecutionTool$inboundSchema),
3941
- z.lazy(() => FunctionTool$inboundSchema),
3942
- z.lazy(() => GoogleSearchTool$inboundSchema),
3943
- z.lazy(() => WebScraperTool$inboundSchema),
3944
- z.lazy(() => CallSubAgentTool$inboundSchema),
3945
- z.lazy(() => RetrieveAgentsTool$inboundSchema),
3946
- z.lazy(() => QueryMemoryStoreTool$inboundSchema),
3947
- z.lazy(() => WriteMemoryStoreTool$inboundSchema),
3948
- z.lazy(() => RetrieveMemoryStoresTool$inboundSchema),
3949
- z.lazy(() => DeleteMemoryStoreTool$inboundSchema),
3950
- z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
3951
- z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
3952
- z.lazy(() => CurrentDateTool$inboundSchema),
3819
+ z.lazy(() => HTTPToolRun$inboundSchema),
3820
+ z.lazy(() => CodeToolRun$inboundSchema),
3821
+ z.lazy(() => FunctionToolRun$inboundSchema),
3822
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
3823
+ z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
3824
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
3825
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
3826
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
3827
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
3828
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
3829
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
3830
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
3831
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
3832
+ z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
3953
3833
  ]),
3954
3834
  ),
3955
- tool_approval_required: ToolApprovalRequired$inboundSchema.default("none"),
3835
+ tool_approval_required: RunAgentToolApprovalRequired$inboundSchema.default(
3836
+ "none",
3837
+ ),
3956
3838
  max_iterations: z.number().int().default(15),
3957
3839
  max_execution_time: z.number().int().default(300),
3958
3840
  }).transform((v) => {
@@ -3964,22 +3846,22 @@ export const Settings$inboundSchema: z.ZodType<
3964
3846
  });
3965
3847
 
3966
3848
  /** @internal */
3967
- export type Settings$Outbound = {
3849
+ export type RunAgentSettings$Outbound = {
3968
3850
  tools: Array<
3969
- | HTTPTool$Outbound
3970
- | CodeExecutionTool$Outbound
3971
- | FunctionTool$Outbound
3972
- | GoogleSearchTool$Outbound
3973
- | WebScraperTool$Outbound
3974
- | CallSubAgentTool$Outbound
3975
- | RetrieveAgentsTool$Outbound
3976
- | QueryMemoryStoreTool$Outbound
3977
- | WriteMemoryStoreTool$Outbound
3978
- | RetrieveMemoryStoresTool$Outbound
3979
- | DeleteMemoryStoreTool$Outbound
3980
- | RetrieveKnowledgeBasesTool$Outbound
3981
- | QueryKnowledgeBaseTool$Outbound
3982
- | CurrentDateTool$Outbound
3851
+ | HTTPToolRun$Outbound
3852
+ | CodeToolRun$Outbound
3853
+ | FunctionToolRun$Outbound
3854
+ | AgentToolInputRunGoogleSearchTool$Outbound
3855
+ | AgentToolInputRunWebScraperTool$Outbound
3856
+ | AgentToolInputRunCallSubAgentTool$Outbound
3857
+ | AgentToolInputRunRetrieveAgentsTool$Outbound
3858
+ | AgentToolInputRunQueryMemoryStoreTool$Outbound
3859
+ | AgentToolInputRunWriteMemoryStoreTool$Outbound
3860
+ | AgentToolInputRunRetrieveMemoryStoresTool$Outbound
3861
+ | AgentToolInputRunDeleteMemoryDocumentTool$Outbound
3862
+ | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
3863
+ | AgentToolInputRunQueryKnowledgeBaseTool$Outbound
3864
+ | AgentToolInputRunCurrentDateTool$Outbound
3983
3865
  >;
3984
3866
  tool_approval_required: string;
3985
3867
  max_iterations: number;
@@ -3987,30 +3869,32 @@ export type Settings$Outbound = {
3987
3869
  };
3988
3870
 
3989
3871
  /** @internal */
3990
- export const Settings$outboundSchema: z.ZodType<
3991
- Settings$Outbound,
3872
+ export const RunAgentSettings$outboundSchema: z.ZodType<
3873
+ RunAgentSettings$Outbound,
3992
3874
  z.ZodTypeDef,
3993
- Settings
3875
+ RunAgentSettings
3994
3876
  > = z.object({
3995
3877
  tools: z.array(
3996
3878
  z.union([
3997
- z.lazy(() => HTTPTool$outboundSchema),
3998
- z.lazy(() => CodeExecutionTool$outboundSchema),
3999
- z.lazy(() => FunctionTool$outboundSchema),
4000
- z.lazy(() => GoogleSearchTool$outboundSchema),
4001
- z.lazy(() => WebScraperTool$outboundSchema),
4002
- z.lazy(() => CallSubAgentTool$outboundSchema),
4003
- z.lazy(() => RetrieveAgentsTool$outboundSchema),
4004
- z.lazy(() => QueryMemoryStoreTool$outboundSchema),
4005
- z.lazy(() => WriteMemoryStoreTool$outboundSchema),
4006
- z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
4007
- z.lazy(() => DeleteMemoryStoreTool$outboundSchema),
4008
- z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
4009
- z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
4010
- z.lazy(() => CurrentDateTool$outboundSchema),
3879
+ z.lazy(() => HTTPToolRun$outboundSchema),
3880
+ z.lazy(() => CodeToolRun$outboundSchema),
3881
+ z.lazy(() => FunctionToolRun$outboundSchema),
3882
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
3883
+ z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
3884
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
3885
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
3886
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
3887
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
3888
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
3889
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
3890
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
3891
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
3892
+ z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
4011
3893
  ]),
4012
3894
  ),
4013
- toolApprovalRequired: ToolApprovalRequired$outboundSchema.default("none"),
3895
+ toolApprovalRequired: RunAgentToolApprovalRequired$outboundSchema.default(
3896
+ "none",
3897
+ ),
4014
3898
  maxIterations: z.number().int().default(15),
4015
3899
  maxExecutionTime: z.number().int().default(300),
4016
3900
  }).transform((v) => {
@@ -4025,26 +3909,30 @@ export const Settings$outboundSchema: z.ZodType<
4025
3909
  * @internal
4026
3910
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4027
3911
  */
4028
- export namespace Settings$ {
4029
- /** @deprecated use `Settings$inboundSchema` instead. */
4030
- export const inboundSchema = Settings$inboundSchema;
4031
- /** @deprecated use `Settings$outboundSchema` instead. */
4032
- export const outboundSchema = Settings$outboundSchema;
4033
- /** @deprecated use `Settings$Outbound` instead. */
4034
- export type Outbound = Settings$Outbound;
3912
+ export namespace RunAgentSettings$ {
3913
+ /** @deprecated use `RunAgentSettings$inboundSchema` instead. */
3914
+ export const inboundSchema = RunAgentSettings$inboundSchema;
3915
+ /** @deprecated use `RunAgentSettings$outboundSchema` instead. */
3916
+ export const outboundSchema = RunAgentSettings$outboundSchema;
3917
+ /** @deprecated use `RunAgentSettings$Outbound` instead. */
3918
+ export type Outbound = RunAgentSettings$Outbound;
4035
3919
  }
4036
3920
 
4037
- export function settingsToJSON(settings: Settings): string {
4038
- return JSON.stringify(Settings$outboundSchema.parse(settings));
3921
+ export function runAgentSettingsToJSON(
3922
+ runAgentSettings: RunAgentSettings,
3923
+ ): string {
3924
+ return JSON.stringify(
3925
+ RunAgentSettings$outboundSchema.parse(runAgentSettings),
3926
+ );
4039
3927
  }
4040
3928
 
4041
- export function settingsFromJSON(
3929
+ export function runAgentSettingsFromJSON(
4042
3930
  jsonString: string,
4043
- ): SafeParseResult<Settings, SDKValidationError> {
3931
+ ): SafeParseResult<RunAgentSettings, SDKValidationError> {
4044
3932
  return safeParse(
4045
3933
  jsonString,
4046
- (x) => Settings$inboundSchema.parse(JSON.parse(x)),
4047
- `Failed to parse 'Settings' from JSON`,
3934
+ (x) => RunAgentSettings$inboundSchema.parse(JSON.parse(x)),
3935
+ `Failed to parse 'RunAgentSettings' from JSON`,
4048
3936
  );
4049
3937
  }
4050
3938
 
@@ -4055,7 +3943,7 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
4055
3943
  unknown
4056
3944
  > = z.object({
4057
3945
  key: z.string(),
4058
- taskId: z.string().optional(),
3946
+ task_id: z.string().optional(),
4059
3947
  model: z.string(),
4060
3948
  fallback_models: z.array(z.string()).optional(),
4061
3949
  role: z.string(),
@@ -4069,13 +3957,14 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
4069
3957
  description: z.string().optional(),
4070
3958
  system_prompt: z.string().optional(),
4071
3959
  memory_stores: z.array(z.string()).optional(),
4072
- knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
3960
+ knowledge_bases: z.array(z.lazy(() => RunAgentKnowledgeBases$inboundSchema))
4073
3961
  .optional(),
4074
3962
  team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
4075
- settings: z.lazy(() => Settings$inboundSchema),
3963
+ settings: z.lazy(() => RunAgentSettings$inboundSchema),
4076
3964
  metadata: z.record(z.any()).optional(),
4077
3965
  }).transform((v) => {
4078
3966
  return remap$(v, {
3967
+ "task_id": "taskId",
4079
3968
  "fallback_models": "fallbackModels",
4080
3969
  "system_prompt": "systemPrompt",
4081
3970
  "memory_stores": "memoryStores",
@@ -4087,7 +3976,7 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
4087
3976
  /** @internal */
4088
3977
  export type RunAgentRequestBody$Outbound = {
4089
3978
  key: string;
4090
- taskId?: string | undefined;
3979
+ task_id?: string | undefined;
4091
3980
  model: string;
4092
3981
  fallback_models?: Array<string> | undefined;
4093
3982
  role: string;
@@ -4101,9 +3990,9 @@ export type RunAgentRequestBody$Outbound = {
4101
3990
  description?: string | undefined;
4102
3991
  system_prompt?: string | undefined;
4103
3992
  memory_stores?: Array<string> | undefined;
4104
- knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
3993
+ knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
4105
3994
  team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
4106
- settings: Settings$Outbound;
3995
+ settings: RunAgentSettings$Outbound;
4107
3996
  metadata?: { [k: string]: any } | undefined;
4108
3997
  };
4109
3998
 
@@ -4128,13 +4017,14 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
4128
4017
  description: z.string().optional(),
4129
4018
  systemPrompt: z.string().optional(),
4130
4019
  memoryStores: z.array(z.string()).optional(),
4131
- knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
4020
+ knowledgeBases: z.array(z.lazy(() => RunAgentKnowledgeBases$outboundSchema))
4132
4021
  .optional(),
4133
4022
  teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
4134
- settings: z.lazy(() => Settings$outboundSchema),
4023
+ settings: z.lazy(() => RunAgentSettings$outboundSchema),
4135
4024
  metadata: z.record(z.any()).optional(),
4136
4025
  }).transform((v) => {
4137
4026
  return remap$(v, {
4027
+ taskId: "task_id",
4138
4028
  fallbackModels: "fallback_models",
4139
4029
  systemPrompt: "system_prompt",
4140
4030
  memoryStores: "memory_stores",