@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
@@ -33,7 +33,7 @@ export type StreamRunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<typeof
33
33
  /**
34
34
  * Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
35
35
  */
36
- export type PublicMessagePartToolResultPart = {
36
+ export type StreamRunAgentPublicMessagePartToolResultPart = {
37
37
  kind: StreamRunAgentPublicMessagePartAgentsRequestKind;
38
38
  toolCallId: string;
39
39
  result?: any | undefined;
@@ -48,7 +48,7 @@ export type StreamRunAgentPublicMessagePartAgentsKind = ClosedEnum<typeof Stream
48
48
  /**
49
49
  * File in URI format. Check in the model's documentation for the supported mime types for the URI format
50
50
  */
51
- export type FileFileInURIFormat = {
51
+ export type StreamRunAgentFileFileInURIFormat = {
52
52
  /**
53
53
  * URL for the File content
54
54
  */
@@ -65,7 +65,7 @@ export type FileFileInURIFormat = {
65
65
  /**
66
66
  * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
67
67
  */
68
- export type FileBinaryFormat = {
68
+ export type StreamRunAgentFileBinaryFormat = {
69
69
  /**
70
70
  * base64 encoded content of the file
71
71
  */
@@ -79,13 +79,13 @@ export type FileBinaryFormat = {
79
79
  */
80
80
  name?: string | undefined;
81
81
  };
82
- export type StreamRunAgentPublicMessagePartFile = FileBinaryFormat | FileFileInURIFormat;
82
+ export type StreamRunAgentPublicMessagePartFile = StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
83
83
  /**
84
84
  * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
85
85
  */
86
- export type PublicMessagePartFilePart = {
86
+ export type StreamRunAgentPublicMessagePartFilePart = {
87
87
  kind: StreamRunAgentPublicMessagePartAgentsKind;
88
- file: FileBinaryFormat | FileFileInURIFormat;
88
+ file: StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
89
89
  metadata?: {
90
90
  [k: string]: any;
91
91
  } | undefined;
@@ -97,14 +97,14 @@ export type StreamRunAgentPublicMessagePartKind = ClosedEnum<typeof StreamRunAge
97
97
  /**
98
98
  * Text content part. Use this to send text messages to the agent.
99
99
  */
100
- export type PublicMessagePartTextPart = {
100
+ export type StreamRunAgentPublicMessagePartTextPart = {
101
101
  kind: StreamRunAgentPublicMessagePartKind;
102
102
  text: string;
103
103
  };
104
104
  /**
105
105
  * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
106
106
  */
107
- export type StreamRunAgentPublicMessagePart = PublicMessagePartTextPart | PublicMessagePartFilePart | PublicMessagePartToolResultPart;
107
+ export type StreamRunAgentPublicMessagePart = StreamRunAgentPublicMessagePartTextPart | StreamRunAgentPublicMessagePartFilePart | StreamRunAgentPublicMessagePartToolResultPart;
108
108
  /**
109
109
  * The A2A format message containing the task for the agent to perform.
110
110
  */
@@ -120,7 +120,7 @@ export type StreamRunAgentMessage = {
120
120
  /**
121
121
  * A2A message parts (text, file, or tool_result only)
122
122
  */
123
- parts: Array<PublicMessagePartTextPart | PublicMessagePartFilePart | PublicMessagePartToolResultPart>;
123
+ parts: Array<StreamRunAgentPublicMessagePartTextPart | StreamRunAgentPublicMessagePartFilePart | StreamRunAgentPublicMessagePartToolResultPart>;
124
124
  };
125
125
  /**
126
126
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
@@ -175,36 +175,11 @@ export type StreamRunAgentMemory = {
175
175
  */
176
176
  entityId: string;
177
177
  };
178
- export declare const StreamRunAgentKnowledgeBaseConfigurationAgentsType: {
179
- readonly Query: "query";
180
- };
181
- export type StreamRunAgentKnowledgeBaseConfigurationAgentsType = ClosedEnum<typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType>;
182
- /**
183
- * Defines the configuration settings for a static query.
184
- */
185
- export type KnowledgeBaseConfigurationKnowledgeBaseStaticQuery = {
186
- type: StreamRunAgentKnowledgeBaseConfigurationAgentsType;
187
- query: string;
188
- };
189
- export declare const StreamRunAgentKnowledgeBaseConfigurationType: {
190
- readonly LastUserMessage: "last_user_message";
191
- };
192
- export type StreamRunAgentKnowledgeBaseConfigurationType = ClosedEnum<typeof StreamRunAgentKnowledgeBaseConfigurationType>;
193
- /**
194
- * Defines the configuration settings for a last user message type retrieval.
195
- */
196
- export type KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage = {
197
- type: StreamRunAgentKnowledgeBaseConfigurationType;
198
- };
199
- /**
200
- * Defines the configuration settings which can either be for a user message or a text entry.
201
- */
202
- export type StreamRunAgentKnowledgeBaseConfiguration = KnowledgeBaseConfigurationKnowledgeBaseStaticQuery | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
203
178
  export type StreamRunAgentKnowledgeBases = {
204
179
  /**
205
- * Defines the configuration settings which can either be for a user message or a text entry.
180
+ * Unique identifier of the knowledge base to search
206
181
  */
207
- configuration: KnowledgeBaseConfigurationKnowledgeBaseStaticQuery | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
182
+ knowledgeId: string;
208
183
  };
209
184
  export type StreamRunAgentTeamOfAgents = {
210
185
  /**
@@ -216,80 +191,92 @@ export type StreamRunAgentTeamOfAgents = {
216
191
  */
217
192
  role?: string | undefined;
218
193
  };
219
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type: {
194
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type: {
220
195
  readonly Function: "function";
221
196
  };
222
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type>;
223
- export type StreamRunAgentRunAgentRequestToolFunction = {
197
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
198
+ export type StreamRunAgentAgentToolInputRunFunction = {
199
+ /**
200
+ * 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.
201
+ */
224
202
  name: string;
203
+ /**
204
+ * A description of what the function does, used by the model to choose when and how to call the function.
205
+ */
225
206
  description?: string | undefined;
207
+ /**
208
+ * 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.
209
+ */
226
210
  strict?: boolean | undefined;
211
+ /**
212
+ * 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.
213
+ */
227
214
  parameters?: {
228
215
  [k: string]: any;
229
216
  } | undefined;
230
217
  };
231
218
  /**
232
- * Custom function tool with configurable parameters
219
+ * Function tool with inline definition for on-the-fly creation in run endpoint
233
220
  */
234
- export type RunAgentRequestToolFunctionTool = {
235
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type;
236
- id?: string | undefined;
221
+ export type AgentToolInputRunFunctionToolRun = {
222
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
223
+ /**
224
+ * Unique key of the tool as it will be displayed in the UI
225
+ */
237
226
  key: string;
227
+ id?: string | undefined;
238
228
  displayName?: string | undefined;
239
229
  description?: string | undefined;
230
+ function: StreamRunAgentAgentToolInputRunFunction;
240
231
  requiresApproval?: boolean | undefined;
241
- function: StreamRunAgentRunAgentRequestToolFunction;
242
232
  };
243
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type: {
233
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type: {
244
234
  readonly Code: "code";
245
235
  };
246
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type>;
247
- export declare const RunAgentRequestToolLanguage: {
236
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
237
+ export declare const AgentToolInputRunLanguage: {
248
238
  readonly Python: "python";
249
239
  };
250
- export type RunAgentRequestToolLanguage = ClosedEnum<typeof RunAgentRequestToolLanguage>;
251
- export type RunAgentRequestToolCodeTool = {
240
+ export type AgentToolInputRunLanguage = ClosedEnum<typeof AgentToolInputRunLanguage>;
241
+ export type AgentToolInputRunCodeTool = {
252
242
  /**
253
243
  * 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.
254
244
  */
255
245
  parameters?: {
256
246
  [k: string]: any;
257
247
  } | undefined;
258
- language: RunAgentRequestToolLanguage;
248
+ language: AgentToolInputRunLanguage;
259
249
  /**
260
250
  * The code to execute.
261
251
  */
262
252
  code: string;
263
253
  };
264
254
  /**
265
- * Executes code in a secure sandbox environment
255
+ * Code execution tool with inline definition for on-the-fly creation in run endpoint
266
256
  */
267
- export type RunAgentRequestToolCodeExecutionTool = {
257
+ export type AgentToolInputRunCodeToolRun = {
258
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
268
259
  /**
269
260
  * Unique key of the tool as it will be displayed in the UI
270
261
  */
271
262
  key: string;
272
- /**
273
- * 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.
274
- */
275
- displayName: string;
263
+ id?: string | undefined;
264
+ displayName?: string | undefined;
276
265
  /**
277
266
  * 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.
278
267
  */
279
268
  description: string;
280
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
281
- codeTool: RunAgentRequestToolCodeTool;
282
- id?: string | undefined;
269
+ codeTool: AgentToolInputRunCodeTool;
283
270
  requiresApproval?: boolean | undefined;
284
271
  };
285
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type: {
272
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type: {
286
273
  readonly Http: "http";
287
274
  };
288
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type>;
275
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type>;
289
276
  /**
290
277
  * The HTTP method to use.
291
278
  */
292
- export declare const RunAgentRequestToolMethod: {
279
+ export declare const AgentToolInputRunMethod: {
293
280
  readonly Get: "GET";
294
281
  readonly Post: "POST";
295
282
  readonly Put: "PUT";
@@ -298,11 +285,11 @@ export declare const RunAgentRequestToolMethod: {
298
285
  /**
299
286
  * The HTTP method to use.
300
287
  */
301
- export type RunAgentRequestToolMethod = ClosedEnum<typeof RunAgentRequestToolMethod>;
288
+ export type AgentToolInputRunMethod = ClosedEnum<typeof AgentToolInputRunMethod>;
302
289
  /**
303
290
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
304
291
  */
305
- export type RunAgentRequestToolBlueprint = {
292
+ export type AgentToolInputRunBlueprint = {
306
293
  /**
307
294
  * The URL to send the request to.
308
295
  */
@@ -310,7 +297,7 @@ export type RunAgentRequestToolBlueprint = {
310
297
  /**
311
298
  * The HTTP method to use.
312
299
  */
313
- method: RunAgentRequestToolMethod;
300
+ method: AgentToolInputRunMethod;
314
301
  /**
315
302
  * The headers to send with the request.
316
303
  */
@@ -327,7 +314,7 @@ export type RunAgentRequestToolBlueprint = {
327
314
  /**
328
315
  * The type of the argument.
329
316
  */
330
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType: {
317
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType: {
331
318
  readonly String: "string";
332
319
  readonly Number: "number";
333
320
  readonly Boolean: "boolean";
@@ -335,16 +322,16 @@ export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySe
335
322
  /**
336
323
  * The type of the argument.
337
324
  */
338
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType>;
325
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType>;
339
326
  /**
340
327
  * The default value of the argument.
341
328
  */
342
- export type RunAgentRequestToolDefaultValue = string | number | boolean;
343
- export type RunAgentRequestToolArguments = {
329
+ export type AgentToolInputRunDefaultValue = string | number | boolean;
330
+ export type AgentToolInputRunArguments = {
344
331
  /**
345
332
  * The type of the argument.
346
333
  */
347
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType;
334
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
348
335
  /**
349
336
  * A description of the argument.
350
337
  */
@@ -358,164 +345,194 @@ export type RunAgentRequestToolArguments = {
358
345
  */
359
346
  defaultValue?: string | number | boolean | undefined;
360
347
  };
361
- export type RunAgentRequestToolHttp = {
348
+ export type AgentToolInputRunHttp = {
362
349
  /**
363
350
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
364
351
  */
365
- blueprint: RunAgentRequestToolBlueprint;
352
+ blueprint: AgentToolInputRunBlueprint;
366
353
  /**
367
354
  * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
368
355
  */
369
356
  arguments?: {
370
- [k: string]: RunAgentRequestToolArguments;
357
+ [k: string]: AgentToolInputRunArguments;
371
358
  } | undefined;
372
359
  };
373
360
  /**
374
- * Makes HTTP requests to external APIs
361
+ * HTTP tool with inline definition for on-the-fly creation in run endpoint
375
362
  */
376
- export type RunAgentRequestToolHTTPTool = {
377
- id?: string | undefined;
363
+ export type AgentToolInputRunHTTPToolRun = {
364
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
378
365
  /**
379
366
  * Unique key of the tool as it will be displayed in the UI
380
367
  */
381
368
  key: string;
382
- /**
383
- * 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.
384
- */
385
- displayName: string;
369
+ id?: string | undefined;
370
+ displayName?: string | undefined;
386
371
  /**
387
372
  * 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.
388
373
  */
389
374
  description: string;
390
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
391
- http: RunAgentRequestToolHttp;
375
+ http: AgentToolInputRunHttp;
392
376
  requiresApproval?: boolean | undefined;
393
377
  };
394
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type: {
378
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type: {
395
379
  readonly CurrentDate: "current_date";
396
380
  };
397
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type>;
381
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type>;
398
382
  /**
399
- * Provides the current date and time
383
+ * Returns the current date and time
400
384
  */
401
- export type RunAgentRequestToolCurrentDateTool = {
402
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type;
385
+ export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
386
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
387
+ /**
388
+ * Whether this tool requires approval before execution
389
+ */
403
390
  requiresApproval?: boolean | undefined;
404
391
  };
405
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type: {
392
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type: {
406
393
  readonly QueryKnowledgeBase: "query_knowledge_base";
407
394
  };
408
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type>;
395
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type>;
409
396
  /**
410
397
  * Queries knowledge bases for information
411
398
  */
412
- export type RunAgentRequestToolQueryKnowledgeBaseTool = {
413
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type;
399
+ export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool = {
400
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
401
+ /**
402
+ * Whether this tool requires approval before execution
403
+ */
414
404
  requiresApproval?: boolean | undefined;
415
405
  };
416
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type: {
406
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type: {
417
407
  readonly RetrieveKnowledgeBases: "retrieve_knowledge_bases";
418
408
  };
419
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type>;
409
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type>;
420
410
  /**
421
411
  * Lists available knowledge bases
422
412
  */
423
- export type RunAgentRequestToolRetrieveKnowledgeBasesTool = {
424
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type;
413
+ export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool = {
414
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
415
+ /**
416
+ * Whether this tool requires approval before execution
417
+ */
425
418
  requiresApproval?: boolean | undefined;
426
419
  };
427
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type: {
420
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type: {
428
421
  readonly DeleteMemoryDocument: "delete_memory_document";
429
422
  };
430
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type>;
423
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type>;
431
424
  /**
432
- * Deletes a memory store
425
+ * Deletes documents from memory stores
433
426
  */
434
- export type RunAgentRequestToolDeleteMemoryStoreTool = {
435
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type;
427
+ export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool = {
428
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
429
+ /**
430
+ * Whether this tool requires approval before execution
431
+ */
436
432
  requiresApproval?: boolean | undefined;
437
433
  };
438
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type: {
434
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type: {
439
435
  readonly RetrieveMemoryStores: "retrieve_memory_stores";
440
436
  };
441
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type>;
437
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type>;
442
438
  /**
443
439
  * Lists available memory stores
444
440
  */
445
- export type RunAgentRequestToolRetrieveMemoryStoresTool = {
446
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type;
441
+ export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool = {
442
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type;
443
+ /**
444
+ * Whether this tool requires approval before execution
445
+ */
447
446
  requiresApproval?: boolean | undefined;
448
447
  };
449
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType: {
448
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType: {
450
449
  readonly WriteMemoryStore: "write_memory_store";
451
450
  };
452
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType>;
451
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType>;
453
452
  /**
454
453
  * Writes information to agent memory stores
455
454
  */
456
- export type RunAgentRequestToolWriteMemoryStoreTool = {
457
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType;
455
+ export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool = {
456
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
457
+ /**
458
+ * Whether this tool requires approval before execution
459
+ */
458
460
  requiresApproval?: boolean | undefined;
459
461
  };
460
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType: {
462
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType: {
461
463
  readonly QueryMemoryStore: "query_memory_store";
462
464
  };
463
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType>;
465
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType>;
464
466
  /**
465
467
  * Queries agent memory stores for context
466
468
  */
467
- export type RunAgentRequestToolQueryMemoryStoreTool = {
468
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType;
469
+ export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
470
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
471
+ /**
472
+ * Whether this tool requires approval before execution
473
+ */
469
474
  requiresApproval?: boolean | undefined;
470
475
  };
471
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType: {
476
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType: {
472
477
  readonly RetrieveAgents: "retrieve_agents";
473
478
  };
474
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType>;
479
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType>;
475
480
  /**
476
481
  * Retrieves available agents in the system
477
482
  */
478
- export type RunAgentRequestToolRetrieveAgentsTool = {
479
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType;
483
+ export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool = {
484
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType;
485
+ /**
486
+ * Whether this tool requires approval before execution
487
+ */
480
488
  requiresApproval?: boolean | undefined;
481
489
  };
482
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestType: {
490
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestType: {
483
491
  readonly CallSubAgent: "call_sub_agent";
484
492
  };
485
- export type StreamRunAgentRunAgentRequestToolAgentsRequestType = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestType>;
493
+ export type StreamRunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType>;
486
494
  /**
487
495
  * Delegates tasks to specialized sub-agents
488
496
  */
489
- export type RunAgentRequestToolCallSubAgentTool = {
490
- type: StreamRunAgentRunAgentRequestToolAgentsRequestType;
497
+ export type StreamRunAgentAgentToolInputRunCallSubAgentTool = {
498
+ type: StreamRunAgentAgentToolInputRunAgentsRequestType;
499
+ /**
500
+ * Whether this tool requires approval before execution
501
+ */
491
502
  requiresApproval?: boolean | undefined;
492
503
  };
493
- export declare const StreamRunAgentRunAgentRequestToolAgentsType: {
504
+ export declare const StreamRunAgentAgentToolInputRunAgentsType: {
494
505
  readonly WebScraper: "web_scraper";
495
506
  };
496
- export type StreamRunAgentRunAgentRequestToolAgentsType = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolAgentsType>;
507
+ export type StreamRunAgentAgentToolInputRunAgentsType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsType>;
497
508
  /**
498
509
  * Scrapes and extracts content from web pages
499
510
  */
500
- export type RunAgentRequestToolWebScraperTool = {
501
- type: StreamRunAgentRunAgentRequestToolAgentsType;
511
+ export type StreamRunAgentAgentToolInputRunWebScraperTool = {
512
+ type: StreamRunAgentAgentToolInputRunAgentsType;
513
+ /**
514
+ * Whether this tool requires approval before execution
515
+ */
502
516
  requiresApproval?: boolean | undefined;
503
517
  };
504
- export declare const StreamRunAgentRunAgentRequestToolType: {
518
+ export declare const StreamRunAgentAgentToolInputRunType: {
505
519
  readonly GoogleSearch: "google_search";
506
520
  };
507
- export type StreamRunAgentRunAgentRequestToolType = ClosedEnum<typeof StreamRunAgentRunAgentRequestToolType>;
521
+ export type StreamRunAgentAgentToolInputRunType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunType>;
508
522
  /**
509
523
  * Performs Google searches to retrieve web content
510
524
  */
511
- export type RunAgentRequestToolGoogleSearchTool = {
512
- type: StreamRunAgentRunAgentRequestToolType;
525
+ export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
526
+ type: StreamRunAgentAgentToolInputRunType;
527
+ /**
528
+ * Whether this tool requires approval before execution
529
+ */
513
530
  requiresApproval?: boolean | undefined;
514
531
  };
515
532
  /**
516
- * Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
533
+ * 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.
517
534
  */
518
- export type StreamRunAgentRunAgentRequestTool = RunAgentRequestToolHTTPTool | RunAgentRequestToolCodeExecutionTool | RunAgentRequestToolFunctionTool | RunAgentRequestToolGoogleSearchTool | RunAgentRequestToolWebScraperTool | RunAgentRequestToolCallSubAgentTool | RunAgentRequestToolRetrieveAgentsTool | RunAgentRequestToolQueryMemoryStoreTool | RunAgentRequestToolWriteMemoryStoreTool | RunAgentRequestToolRetrieveMemoryStoresTool | RunAgentRequestToolDeleteMemoryStoreTool | RunAgentRequestToolRetrieveKnowledgeBasesTool | RunAgentRequestToolQueryKnowledgeBaseTool | RunAgentRequestToolCurrentDateTool;
535
+ export type StreamRunAgentAgentToolInputRun = AgentToolInputRunHTTPToolRun | AgentToolInputRunCodeToolRun | AgentToolInputRunFunctionToolRun | StreamRunAgentAgentToolInputRunGoogleSearchTool | StreamRunAgentAgentToolInputRunWebScraperTool | StreamRunAgentAgentToolInputRunCallSubAgentTool | StreamRunAgentAgentToolInputRunRetrieveAgentsTool | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool | StreamRunAgentAgentToolInputRunCurrentDateTool;
519
536
  /**
520
537
  * 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.
521
538
  */
@@ -532,7 +549,7 @@ export type StreamRunAgentSettings = {
532
549
  /**
533
550
  * Tools available to the agent
534
551
  */
535
- tools: Array<RunAgentRequestToolHTTPTool | RunAgentRequestToolCodeExecutionTool | RunAgentRequestToolFunctionTool | RunAgentRequestToolGoogleSearchTool | RunAgentRequestToolWebScraperTool | RunAgentRequestToolCallSubAgentTool | RunAgentRequestToolRetrieveAgentsTool | RunAgentRequestToolQueryMemoryStoreTool | RunAgentRequestToolWriteMemoryStoreTool | RunAgentRequestToolRetrieveMemoryStoresTool | RunAgentRequestToolDeleteMemoryStoreTool | RunAgentRequestToolRetrieveKnowledgeBasesTool | RunAgentRequestToolQueryKnowledgeBaseTool | RunAgentRequestToolCurrentDateTool>;
552
+ tools: Array<AgentToolInputRunHTTPToolRun | AgentToolInputRunCodeToolRun | AgentToolInputRunFunctionToolRun | StreamRunAgentAgentToolInputRunGoogleSearchTool | StreamRunAgentAgentToolInputRunWebScraperTool | StreamRunAgentAgentToolInputRunCallSubAgentTool | StreamRunAgentAgentToolInputRunRetrieveAgentsTool | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool | StreamRunAgentAgentToolInputRunCurrentDateTool>;
536
553
  /**
537
554
  * 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.
538
555
  */
@@ -609,6 +626,9 @@ export type StreamRunAgentRequestBody = {
609
626
  * The list of keys of the memory stores that are accessible to the agent.
610
627
  */
611
628
  memoryStores?: Array<string> | undefined;
629
+ /**
630
+ * Knowledge base configurations for the agent to access
631
+ */
612
632
  knowledgeBases?: Array<StreamRunAgentKnowledgeBases> | undefined;
613
633
  /**
614
634
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
@@ -710,9 +730,9 @@ export declare namespace StreamRunAgentPublicMessagePartAgentsRequestKind$ {
710
730
  }>;
711
731
  }
712
732
  /** @internal */
713
- export declare const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<PublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
733
+ export declare const StreamRunAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<StreamRunAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
714
734
  /** @internal */
715
- export type PublicMessagePartToolResultPart$Outbound = {
735
+ export type StreamRunAgentPublicMessagePartToolResultPart$Outbound = {
716
736
  kind: string;
717
737
  tool_call_id: string;
718
738
  result?: any | undefined;
@@ -721,21 +741,21 @@ export type PublicMessagePartToolResultPart$Outbound = {
721
741
  } | undefined;
722
742
  };
723
743
  /** @internal */
724
- export declare const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<PublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, PublicMessagePartToolResultPart>;
744
+ export declare const StreamRunAgentPublicMessagePartToolResultPart$outboundSchema: z.ZodType<StreamRunAgentPublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePartToolResultPart>;
725
745
  /**
726
746
  * @internal
727
747
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
728
748
  */
729
- export declare namespace PublicMessagePartToolResultPart$ {
730
- /** @deprecated use `PublicMessagePartToolResultPart$inboundSchema` instead. */
731
- const inboundSchema: z.ZodType<PublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
732
- /** @deprecated use `PublicMessagePartToolResultPart$outboundSchema` instead. */
733
- const outboundSchema: z.ZodType<PublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, PublicMessagePartToolResultPart>;
734
- /** @deprecated use `PublicMessagePartToolResultPart$Outbound` instead. */
735
- type Outbound = PublicMessagePartToolResultPart$Outbound;
749
+ export declare namespace StreamRunAgentPublicMessagePartToolResultPart$ {
750
+ /** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$inboundSchema` instead. */
751
+ const inboundSchema: z.ZodType<StreamRunAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
752
+ /** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$outboundSchema` instead. */
753
+ const outboundSchema: z.ZodType<StreamRunAgentPublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePartToolResultPart>;
754
+ /** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$Outbound` instead. */
755
+ type Outbound = StreamRunAgentPublicMessagePartToolResultPart$Outbound;
736
756
  }
737
- export declare function publicMessagePartToolResultPartToJSON(publicMessagePartToolResultPart: PublicMessagePartToolResultPart): string;
738
- export declare function publicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError>;
757
+ export declare function streamRunAgentPublicMessagePartToolResultPartToJSON(streamRunAgentPublicMessagePartToolResultPart: StreamRunAgentPublicMessagePartToolResultPart): string;
758
+ export declare function streamRunAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPublicMessagePartToolResultPart, SDKValidationError>;
739
759
  /** @internal */
740
760
  export declare const StreamRunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartAgentsKind>;
741
761
  /** @internal */
@@ -755,57 +775,57 @@ export declare namespace StreamRunAgentPublicMessagePartAgentsKind$ {
755
775
  }>;
756
776
  }
757
777
  /** @internal */
758
- export declare const FileFileInURIFormat$inboundSchema: z.ZodType<FileFileInURIFormat, z.ZodTypeDef, unknown>;
778
+ export declare const StreamRunAgentFileFileInURIFormat$inboundSchema: z.ZodType<StreamRunAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
759
779
  /** @internal */
760
- export type FileFileInURIFormat$Outbound = {
780
+ export type StreamRunAgentFileFileInURIFormat$Outbound = {
761
781
  uri: string;
762
782
  mimeType?: string | undefined;
763
783
  name?: string | undefined;
764
784
  };
765
785
  /** @internal */
766
- export declare const FileFileInURIFormat$outboundSchema: z.ZodType<FileFileInURIFormat$Outbound, z.ZodTypeDef, FileFileInURIFormat>;
786
+ export declare const StreamRunAgentFileFileInURIFormat$outboundSchema: z.ZodType<StreamRunAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileFileInURIFormat>;
767
787
  /**
768
788
  * @internal
769
789
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
770
790
  */
771
- export declare namespace FileFileInURIFormat$ {
772
- /** @deprecated use `FileFileInURIFormat$inboundSchema` instead. */
773
- const inboundSchema: z.ZodType<FileFileInURIFormat, z.ZodTypeDef, unknown>;
774
- /** @deprecated use `FileFileInURIFormat$outboundSchema` instead. */
775
- const outboundSchema: z.ZodType<FileFileInURIFormat$Outbound, z.ZodTypeDef, FileFileInURIFormat>;
776
- /** @deprecated use `FileFileInURIFormat$Outbound` instead. */
777
- type Outbound = FileFileInURIFormat$Outbound;
791
+ export declare namespace StreamRunAgentFileFileInURIFormat$ {
792
+ /** @deprecated use `StreamRunAgentFileFileInURIFormat$inboundSchema` instead. */
793
+ const inboundSchema: z.ZodType<StreamRunAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
794
+ /** @deprecated use `StreamRunAgentFileFileInURIFormat$outboundSchema` instead. */
795
+ const outboundSchema: z.ZodType<StreamRunAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileFileInURIFormat>;
796
+ /** @deprecated use `StreamRunAgentFileFileInURIFormat$Outbound` instead. */
797
+ type Outbound = StreamRunAgentFileFileInURIFormat$Outbound;
778
798
  }
779
- export declare function fileFileInURIFormatToJSON(fileFileInURIFormat: FileFileInURIFormat): string;
780
- export declare function fileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<FileFileInURIFormat, SDKValidationError>;
799
+ export declare function streamRunAgentFileFileInURIFormatToJSON(streamRunAgentFileFileInURIFormat: StreamRunAgentFileFileInURIFormat): string;
800
+ export declare function streamRunAgentFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileFileInURIFormat, SDKValidationError>;
781
801
  /** @internal */
782
- export declare const FileBinaryFormat$inboundSchema: z.ZodType<FileBinaryFormat, z.ZodTypeDef, unknown>;
802
+ export declare const StreamRunAgentFileBinaryFormat$inboundSchema: z.ZodType<StreamRunAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
783
803
  /** @internal */
784
- export type FileBinaryFormat$Outbound = {
804
+ export type StreamRunAgentFileBinaryFormat$Outbound = {
785
805
  bytes: string;
786
806
  mimeType?: string | undefined;
787
807
  name?: string | undefined;
788
808
  };
789
809
  /** @internal */
790
- export declare const FileBinaryFormat$outboundSchema: z.ZodType<FileBinaryFormat$Outbound, z.ZodTypeDef, FileBinaryFormat>;
810
+ export declare const StreamRunAgentFileBinaryFormat$outboundSchema: z.ZodType<StreamRunAgentFileBinaryFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileBinaryFormat>;
791
811
  /**
792
812
  * @internal
793
813
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
794
814
  */
795
- export declare namespace FileBinaryFormat$ {
796
- /** @deprecated use `FileBinaryFormat$inboundSchema` instead. */
797
- const inboundSchema: z.ZodType<FileBinaryFormat, z.ZodTypeDef, unknown>;
798
- /** @deprecated use `FileBinaryFormat$outboundSchema` instead. */
799
- const outboundSchema: z.ZodType<FileBinaryFormat$Outbound, z.ZodTypeDef, FileBinaryFormat>;
800
- /** @deprecated use `FileBinaryFormat$Outbound` instead. */
801
- type Outbound = FileBinaryFormat$Outbound;
815
+ export declare namespace StreamRunAgentFileBinaryFormat$ {
816
+ /** @deprecated use `StreamRunAgentFileBinaryFormat$inboundSchema` instead. */
817
+ const inboundSchema: z.ZodType<StreamRunAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
818
+ /** @deprecated use `StreamRunAgentFileBinaryFormat$outboundSchema` instead. */
819
+ const outboundSchema: z.ZodType<StreamRunAgentFileBinaryFormat$Outbound, z.ZodTypeDef, StreamRunAgentFileBinaryFormat>;
820
+ /** @deprecated use `StreamRunAgentFileBinaryFormat$Outbound` instead. */
821
+ type Outbound = StreamRunAgentFileBinaryFormat$Outbound;
802
822
  }
803
- export declare function fileBinaryFormatToJSON(fileBinaryFormat: FileBinaryFormat): string;
804
- export declare function fileBinaryFormatFromJSON(jsonString: string): SafeParseResult<FileBinaryFormat, SDKValidationError>;
823
+ export declare function streamRunAgentFileBinaryFormatToJSON(streamRunAgentFileBinaryFormat: StreamRunAgentFileBinaryFormat): string;
824
+ export declare function streamRunAgentFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFileBinaryFormat, SDKValidationError>;
805
825
  /** @internal */
806
826
  export declare const StreamRunAgentPublicMessagePartFile$inboundSchema: z.ZodType<StreamRunAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
807
827
  /** @internal */
808
- export type StreamRunAgentPublicMessagePartFile$Outbound = FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
828
+ export type StreamRunAgentPublicMessagePartFile$Outbound = StreamRunAgentFileBinaryFormat$Outbound | StreamRunAgentFileFileInURIFormat$Outbound;
809
829
  /** @internal */
810
830
  export declare const StreamRunAgentPublicMessagePartFile$outboundSchema: z.ZodType<StreamRunAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePartFile>;
811
831
  /**
@@ -823,31 +843,31 @@ export declare namespace StreamRunAgentPublicMessagePartFile$ {
823
843
  export declare function streamRunAgentPublicMessagePartFileToJSON(streamRunAgentPublicMessagePartFile: StreamRunAgentPublicMessagePartFile): string;
824
844
  export declare function streamRunAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPublicMessagePartFile, SDKValidationError>;
825
845
  /** @internal */
826
- export declare const PublicMessagePartFilePart$inboundSchema: z.ZodType<PublicMessagePartFilePart, z.ZodTypeDef, unknown>;
846
+ export declare const StreamRunAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<StreamRunAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
827
847
  /** @internal */
828
- export type PublicMessagePartFilePart$Outbound = {
848
+ export type StreamRunAgentPublicMessagePartFilePart$Outbound = {
829
849
  kind: string;
830
- file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
850
+ file: StreamRunAgentFileBinaryFormat$Outbound | StreamRunAgentFileFileInURIFormat$Outbound;
831
851
  metadata?: {
832
852
  [k: string]: any;
833
853
  } | undefined;
834
854
  };
835
855
  /** @internal */
836
- export declare const PublicMessagePartFilePart$outboundSchema: z.ZodType<PublicMessagePartFilePart$Outbound, z.ZodTypeDef, PublicMessagePartFilePart>;
856
+ export declare const StreamRunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<StreamRunAgentPublicMessagePartFilePart$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePartFilePart>;
837
857
  /**
838
858
  * @internal
839
859
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
840
860
  */
841
- export declare namespace PublicMessagePartFilePart$ {
842
- /** @deprecated use `PublicMessagePartFilePart$inboundSchema` instead. */
843
- const inboundSchema: z.ZodType<PublicMessagePartFilePart, z.ZodTypeDef, unknown>;
844
- /** @deprecated use `PublicMessagePartFilePart$outboundSchema` instead. */
845
- const outboundSchema: z.ZodType<PublicMessagePartFilePart$Outbound, z.ZodTypeDef, PublicMessagePartFilePart>;
846
- /** @deprecated use `PublicMessagePartFilePart$Outbound` instead. */
847
- type Outbound = PublicMessagePartFilePart$Outbound;
861
+ export declare namespace StreamRunAgentPublicMessagePartFilePart$ {
862
+ /** @deprecated use `StreamRunAgentPublicMessagePartFilePart$inboundSchema` instead. */
863
+ const inboundSchema: z.ZodType<StreamRunAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
864
+ /** @deprecated use `StreamRunAgentPublicMessagePartFilePart$outboundSchema` instead. */
865
+ const outboundSchema: z.ZodType<StreamRunAgentPublicMessagePartFilePart$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePartFilePart>;
866
+ /** @deprecated use `StreamRunAgentPublicMessagePartFilePart$Outbound` instead. */
867
+ type Outbound = StreamRunAgentPublicMessagePartFilePart$Outbound;
848
868
  }
849
- export declare function publicMessagePartFilePartToJSON(publicMessagePartFilePart: PublicMessagePartFilePart): string;
850
- export declare function publicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartFilePart, SDKValidationError>;
869
+ export declare function streamRunAgentPublicMessagePartFilePartToJSON(streamRunAgentPublicMessagePartFilePart: StreamRunAgentPublicMessagePartFilePart): string;
870
+ export declare function streamRunAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPublicMessagePartFilePart, SDKValidationError>;
851
871
  /** @internal */
852
872
  export declare const StreamRunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentPublicMessagePartKind>;
853
873
  /** @internal */
@@ -867,32 +887,32 @@ export declare namespace StreamRunAgentPublicMessagePartKind$ {
867
887
  }>;
868
888
  }
869
889
  /** @internal */
870
- export declare const PublicMessagePartTextPart$inboundSchema: z.ZodType<PublicMessagePartTextPart, z.ZodTypeDef, unknown>;
890
+ export declare const StreamRunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<StreamRunAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
871
891
  /** @internal */
872
- export type PublicMessagePartTextPart$Outbound = {
892
+ export type StreamRunAgentPublicMessagePartTextPart$Outbound = {
873
893
  kind: string;
874
894
  text: string;
875
895
  };
876
896
  /** @internal */
877
- export declare const PublicMessagePartTextPart$outboundSchema: z.ZodType<PublicMessagePartTextPart$Outbound, z.ZodTypeDef, PublicMessagePartTextPart>;
897
+ export declare const StreamRunAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<StreamRunAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePartTextPart>;
878
898
  /**
879
899
  * @internal
880
900
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
881
901
  */
882
- export declare namespace PublicMessagePartTextPart$ {
883
- /** @deprecated use `PublicMessagePartTextPart$inboundSchema` instead. */
884
- const inboundSchema: z.ZodType<PublicMessagePartTextPart, z.ZodTypeDef, unknown>;
885
- /** @deprecated use `PublicMessagePartTextPart$outboundSchema` instead. */
886
- const outboundSchema: z.ZodType<PublicMessagePartTextPart$Outbound, z.ZodTypeDef, PublicMessagePartTextPart>;
887
- /** @deprecated use `PublicMessagePartTextPart$Outbound` instead. */
888
- type Outbound = PublicMessagePartTextPart$Outbound;
902
+ export declare namespace StreamRunAgentPublicMessagePartTextPart$ {
903
+ /** @deprecated use `StreamRunAgentPublicMessagePartTextPart$inboundSchema` instead. */
904
+ const inboundSchema: z.ZodType<StreamRunAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
905
+ /** @deprecated use `StreamRunAgentPublicMessagePartTextPart$outboundSchema` instead. */
906
+ const outboundSchema: z.ZodType<StreamRunAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePartTextPart>;
907
+ /** @deprecated use `StreamRunAgentPublicMessagePartTextPart$Outbound` instead. */
908
+ type Outbound = StreamRunAgentPublicMessagePartTextPart$Outbound;
889
909
  }
890
- export declare function publicMessagePartTextPartToJSON(publicMessagePartTextPart: PublicMessagePartTextPart): string;
891
- export declare function publicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartTextPart, SDKValidationError>;
910
+ export declare function streamRunAgentPublicMessagePartTextPartToJSON(streamRunAgentPublicMessagePartTextPart: StreamRunAgentPublicMessagePartTextPart): string;
911
+ export declare function streamRunAgentPublicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<StreamRunAgentPublicMessagePartTextPart, SDKValidationError>;
892
912
  /** @internal */
893
913
  export declare const StreamRunAgentPublicMessagePart$inboundSchema: z.ZodType<StreamRunAgentPublicMessagePart, z.ZodTypeDef, unknown>;
894
914
  /** @internal */
895
- export type StreamRunAgentPublicMessagePart$Outbound = PublicMessagePartTextPart$Outbound | PublicMessagePartFilePart$Outbound | PublicMessagePartToolResultPart$Outbound;
915
+ export type StreamRunAgentPublicMessagePart$Outbound = StreamRunAgentPublicMessagePartTextPart$Outbound | StreamRunAgentPublicMessagePartFilePart$Outbound | StreamRunAgentPublicMessagePartToolResultPart$Outbound;
896
916
  /** @internal */
897
917
  export declare const StreamRunAgentPublicMessagePart$outboundSchema: z.ZodType<StreamRunAgentPublicMessagePart$Outbound, z.ZodTypeDef, StreamRunAgentPublicMessagePart>;
898
918
  /**
@@ -915,7 +935,7 @@ export declare const StreamRunAgentMessage$inboundSchema: z.ZodType<StreamRunAge
915
935
  export type StreamRunAgentMessage$Outbound = {
916
936
  messageId?: string | undefined;
917
937
  role: string | string;
918
- parts: Array<PublicMessagePartTextPart$Outbound | PublicMessagePartFilePart$Outbound | PublicMessagePartToolResultPart$Outbound>;
938
+ parts: Array<StreamRunAgentPublicMessagePartTextPart$Outbound | StreamRunAgentPublicMessagePartFilePart$Outbound | StreamRunAgentPublicMessagePartToolResultPart$Outbound>;
919
939
  };
920
940
  /** @internal */
921
941
  export declare const StreamRunAgentMessage$outboundSchema: z.ZodType<StreamRunAgentMessage$Outbound, z.ZodTypeDef, StreamRunAgentMessage>;
@@ -1008,111 +1028,10 @@ export declare namespace StreamRunAgentMemory$ {
1008
1028
  export declare function streamRunAgentMemoryToJSON(streamRunAgentMemory: StreamRunAgentMemory): string;
1009
1029
  export declare function streamRunAgentMemoryFromJSON(jsonString: string): SafeParseResult<StreamRunAgentMemory, SDKValidationError>;
1010
1030
  /** @internal */
1011
- export declare const StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType>;
1012
- /** @internal */
1013
- export declare const StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType>;
1014
- /**
1015
- * @internal
1016
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1017
- */
1018
- export declare namespace StreamRunAgentKnowledgeBaseConfigurationAgentsType$ {
1019
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema` instead. */
1020
- const inboundSchema: z.ZodNativeEnum<{
1021
- readonly Query: "query";
1022
- }>;
1023
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema` instead. */
1024
- const outboundSchema: z.ZodNativeEnum<{
1025
- readonly Query: "query";
1026
- }>;
1027
- }
1028
- /** @internal */
1029
- export declare const KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema: z.ZodType<KnowledgeBaseConfigurationKnowledgeBaseStaticQuery, z.ZodTypeDef, unknown>;
1030
- /** @internal */
1031
- export type KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound = {
1032
- type: string;
1033
- query: string;
1034
- };
1035
- /** @internal */
1036
- export declare const KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema: z.ZodType<KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound, z.ZodTypeDef, KnowledgeBaseConfigurationKnowledgeBaseStaticQuery>;
1037
- /**
1038
- * @internal
1039
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1040
- */
1041
- export declare namespace KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$ {
1042
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema` instead. */
1043
- const inboundSchema: z.ZodType<KnowledgeBaseConfigurationKnowledgeBaseStaticQuery, z.ZodTypeDef, unknown>;
1044
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema` instead. */
1045
- const outboundSchema: z.ZodType<KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound, z.ZodTypeDef, KnowledgeBaseConfigurationKnowledgeBaseStaticQuery>;
1046
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound` instead. */
1047
- type Outbound = KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound;
1048
- }
1049
- export declare function knowledgeBaseConfigurationKnowledgeBaseStaticQueryToJSON(knowledgeBaseConfigurationKnowledgeBaseStaticQuery: KnowledgeBaseConfigurationKnowledgeBaseStaticQuery): string;
1050
- export declare function knowledgeBaseConfigurationKnowledgeBaseStaticQueryFromJSON(jsonString: string): SafeParseResult<KnowledgeBaseConfigurationKnowledgeBaseStaticQuery, SDKValidationError>;
1051
- /** @internal */
1052
- export declare const StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationType>;
1053
- /** @internal */
1054
- export declare const StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationType>;
1055
- /**
1056
- * @internal
1057
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1058
- */
1059
- export declare namespace StreamRunAgentKnowledgeBaseConfigurationType$ {
1060
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
1061
- const inboundSchema: z.ZodNativeEnum<{
1062
- readonly LastUserMessage: "last_user_message";
1063
- }>;
1064
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
1065
- const outboundSchema: z.ZodNativeEnum<{
1066
- readonly LastUserMessage: "last_user_message";
1067
- }>;
1068
- }
1069
- /** @internal */
1070
- export declare const KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema: z.ZodType<KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage, z.ZodTypeDef, unknown>;
1071
- /** @internal */
1072
- export type KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound = {
1073
- type: string;
1074
- };
1075
- /** @internal */
1076
- export declare const KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema: z.ZodType<KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound, z.ZodTypeDef, KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage>;
1077
- /**
1078
- * @internal
1079
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1080
- */
1081
- export declare namespace KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$ {
1082
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema` instead. */
1083
- const inboundSchema: z.ZodType<KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage, z.ZodTypeDef, unknown>;
1084
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema` instead. */
1085
- const outboundSchema: z.ZodType<KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound, z.ZodTypeDef, KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage>;
1086
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound` instead. */
1087
- type Outbound = KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
1088
- }
1089
- export declare function knowledgeBaseConfigurationKnowledgeBaseLastUserMessageToJSON(knowledgeBaseConfigurationKnowledgeBaseLastUserMessage: KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage): string;
1090
- export declare function knowledgeBaseConfigurationKnowledgeBaseLastUserMessageFromJSON(jsonString: string): SafeParseResult<KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage, SDKValidationError>;
1091
- /** @internal */
1092
- export declare const StreamRunAgentKnowledgeBaseConfiguration$inboundSchema: z.ZodType<StreamRunAgentKnowledgeBaseConfiguration, z.ZodTypeDef, unknown>;
1093
- /** @internal */
1094
- export type StreamRunAgentKnowledgeBaseConfiguration$Outbound = KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
1095
- /** @internal */
1096
- export declare const StreamRunAgentKnowledgeBaseConfiguration$outboundSchema: z.ZodType<StreamRunAgentKnowledgeBaseConfiguration$Outbound, z.ZodTypeDef, StreamRunAgentKnowledgeBaseConfiguration>;
1097
- /**
1098
- * @internal
1099
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1100
- */
1101
- export declare namespace StreamRunAgentKnowledgeBaseConfiguration$ {
1102
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$inboundSchema` instead. */
1103
- const inboundSchema: z.ZodType<StreamRunAgentKnowledgeBaseConfiguration, z.ZodTypeDef, unknown>;
1104
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$outboundSchema` instead. */
1105
- const outboundSchema: z.ZodType<StreamRunAgentKnowledgeBaseConfiguration$Outbound, z.ZodTypeDef, StreamRunAgentKnowledgeBaseConfiguration>;
1106
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$Outbound` instead. */
1107
- type Outbound = StreamRunAgentKnowledgeBaseConfiguration$Outbound;
1108
- }
1109
- export declare function streamRunAgentKnowledgeBaseConfigurationToJSON(streamRunAgentKnowledgeBaseConfiguration: StreamRunAgentKnowledgeBaseConfiguration): string;
1110
- export declare function streamRunAgentKnowledgeBaseConfigurationFromJSON(jsonString: string): SafeParseResult<StreamRunAgentKnowledgeBaseConfiguration, SDKValidationError>;
1111
- /** @internal */
1112
1031
  export declare const StreamRunAgentKnowledgeBases$inboundSchema: z.ZodType<StreamRunAgentKnowledgeBases, z.ZodTypeDef, unknown>;
1113
1032
  /** @internal */
1114
1033
  export type StreamRunAgentKnowledgeBases$Outbound = {
1115
- configuration: KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
1034
+ knowledge_id: string;
1116
1035
  };
1117
1036
  /** @internal */
1118
1037
  export declare const StreamRunAgentKnowledgeBases$outboundSchema: z.ZodType<StreamRunAgentKnowledgeBases$Outbound, z.ZodTypeDef, StreamRunAgentKnowledgeBases>;
@@ -1154,27 +1073,27 @@ export declare namespace StreamRunAgentTeamOfAgents$ {
1154
1073
  export declare function streamRunAgentTeamOfAgentsToJSON(streamRunAgentTeamOfAgents: StreamRunAgentTeamOfAgents): string;
1155
1074
  export declare function streamRunAgentTeamOfAgentsFromJSON(jsonString: string): SafeParseResult<StreamRunAgentTeamOfAgents, SDKValidationError>;
1156
1075
  /** @internal */
1157
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type>;
1076
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
1158
1077
  /** @internal */
1159
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type>;
1078
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
1160
1079
  /**
1161
1080
  * @internal
1162
1081
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1163
1082
  */
1164
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$ {
1165
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
1083
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
1084
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
1166
1085
  const inboundSchema: z.ZodNativeEnum<{
1167
1086
  readonly Function: "function";
1168
1087
  }>;
1169
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
1088
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
1170
1089
  const outboundSchema: z.ZodNativeEnum<{
1171
1090
  readonly Function: "function";
1172
1091
  }>;
1173
1092
  }
1174
1093
  /** @internal */
1175
- export declare const StreamRunAgentRunAgentRequestToolFunction$inboundSchema: z.ZodType<StreamRunAgentRunAgentRequestToolFunction, z.ZodTypeDef, unknown>;
1094
+ export declare const StreamRunAgentAgentToolInputRunFunction$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunFunction, z.ZodTypeDef, unknown>;
1176
1095
  /** @internal */
1177
- export type StreamRunAgentRunAgentRequestToolFunction$Outbound = {
1096
+ export type StreamRunAgentAgentToolInputRunFunction$Outbound = {
1178
1097
  name: string;
1179
1098
  description?: string | undefined;
1180
1099
  strict?: boolean | undefined;
@@ -1183,89 +1102,89 @@ export type StreamRunAgentRunAgentRequestToolFunction$Outbound = {
1183
1102
  } | undefined;
1184
1103
  };
1185
1104
  /** @internal */
1186
- export declare const StreamRunAgentRunAgentRequestToolFunction$outboundSchema: z.ZodType<StreamRunAgentRunAgentRequestToolFunction$Outbound, z.ZodTypeDef, StreamRunAgentRunAgentRequestToolFunction>;
1105
+ export declare const StreamRunAgentAgentToolInputRunFunction$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunFunction$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunFunction>;
1187
1106
  /**
1188
1107
  * @internal
1189
1108
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1190
1109
  */
1191
- export declare namespace StreamRunAgentRunAgentRequestToolFunction$ {
1192
- /** @deprecated use `StreamRunAgentRunAgentRequestToolFunction$inboundSchema` instead. */
1193
- const inboundSchema: z.ZodType<StreamRunAgentRunAgentRequestToolFunction, z.ZodTypeDef, unknown>;
1194
- /** @deprecated use `StreamRunAgentRunAgentRequestToolFunction$outboundSchema` instead. */
1195
- const outboundSchema: z.ZodType<StreamRunAgentRunAgentRequestToolFunction$Outbound, z.ZodTypeDef, StreamRunAgentRunAgentRequestToolFunction>;
1196
- /** @deprecated use `StreamRunAgentRunAgentRequestToolFunction$Outbound` instead. */
1197
- type Outbound = StreamRunAgentRunAgentRequestToolFunction$Outbound;
1110
+ export declare namespace StreamRunAgentAgentToolInputRunFunction$ {
1111
+ /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$inboundSchema` instead. */
1112
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunFunction, z.ZodTypeDef, unknown>;
1113
+ /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$outboundSchema` instead. */
1114
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunFunction$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunFunction>;
1115
+ /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$Outbound` instead. */
1116
+ type Outbound = StreamRunAgentAgentToolInputRunFunction$Outbound;
1198
1117
  }
1199
- export declare function streamRunAgentRunAgentRequestToolFunctionToJSON(streamRunAgentRunAgentRequestToolFunction: StreamRunAgentRunAgentRequestToolFunction): string;
1200
- export declare function streamRunAgentRunAgentRequestToolFunctionFromJSON(jsonString: string): SafeParseResult<StreamRunAgentRunAgentRequestToolFunction, SDKValidationError>;
1118
+ export declare function streamRunAgentAgentToolInputRunFunctionToJSON(streamRunAgentAgentToolInputRunFunction: StreamRunAgentAgentToolInputRunFunction): string;
1119
+ export declare function streamRunAgentAgentToolInputRunFunctionFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunFunction, SDKValidationError>;
1201
1120
  /** @internal */
1202
- export declare const RunAgentRequestToolFunctionTool$inboundSchema: z.ZodType<RunAgentRequestToolFunctionTool, z.ZodTypeDef, unknown>;
1121
+ export declare const AgentToolInputRunFunctionToolRun$inboundSchema: z.ZodType<AgentToolInputRunFunctionToolRun, z.ZodTypeDef, unknown>;
1203
1122
  /** @internal */
1204
- export type RunAgentRequestToolFunctionTool$Outbound = {
1123
+ export type AgentToolInputRunFunctionToolRun$Outbound = {
1205
1124
  type: string;
1206
- _id?: string | undefined;
1207
1125
  key: string;
1126
+ _id?: string | undefined;
1208
1127
  display_name?: string | undefined;
1209
1128
  description?: string | undefined;
1129
+ function: StreamRunAgentAgentToolInputRunFunction$Outbound;
1210
1130
  requires_approval: boolean;
1211
- function: StreamRunAgentRunAgentRequestToolFunction$Outbound;
1212
1131
  };
1213
1132
  /** @internal */
1214
- export declare const RunAgentRequestToolFunctionTool$outboundSchema: z.ZodType<RunAgentRequestToolFunctionTool$Outbound, z.ZodTypeDef, RunAgentRequestToolFunctionTool>;
1133
+ export declare const AgentToolInputRunFunctionToolRun$outboundSchema: z.ZodType<AgentToolInputRunFunctionToolRun$Outbound, z.ZodTypeDef, AgentToolInputRunFunctionToolRun>;
1215
1134
  /**
1216
1135
  * @internal
1217
1136
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1218
1137
  */
1219
- export declare namespace RunAgentRequestToolFunctionTool$ {
1220
- /** @deprecated use `RunAgentRequestToolFunctionTool$inboundSchema` instead. */
1221
- const inboundSchema: z.ZodType<RunAgentRequestToolFunctionTool, z.ZodTypeDef, unknown>;
1222
- /** @deprecated use `RunAgentRequestToolFunctionTool$outboundSchema` instead. */
1223
- const outboundSchema: z.ZodType<RunAgentRequestToolFunctionTool$Outbound, z.ZodTypeDef, RunAgentRequestToolFunctionTool>;
1224
- /** @deprecated use `RunAgentRequestToolFunctionTool$Outbound` instead. */
1225
- type Outbound = RunAgentRequestToolFunctionTool$Outbound;
1138
+ export declare namespace AgentToolInputRunFunctionToolRun$ {
1139
+ /** @deprecated use `AgentToolInputRunFunctionToolRun$inboundSchema` instead. */
1140
+ const inboundSchema: z.ZodType<AgentToolInputRunFunctionToolRun, z.ZodTypeDef, unknown>;
1141
+ /** @deprecated use `AgentToolInputRunFunctionToolRun$outboundSchema` instead. */
1142
+ const outboundSchema: z.ZodType<AgentToolInputRunFunctionToolRun$Outbound, z.ZodTypeDef, AgentToolInputRunFunctionToolRun>;
1143
+ /** @deprecated use `AgentToolInputRunFunctionToolRun$Outbound` instead. */
1144
+ type Outbound = AgentToolInputRunFunctionToolRun$Outbound;
1226
1145
  }
1227
- export declare function runAgentRequestToolFunctionToolToJSON(runAgentRequestToolFunctionTool: RunAgentRequestToolFunctionTool): string;
1228
- export declare function runAgentRequestToolFunctionToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolFunctionTool, SDKValidationError>;
1146
+ export declare function agentToolInputRunFunctionToolRunToJSON(agentToolInputRunFunctionToolRun: AgentToolInputRunFunctionToolRun): string;
1147
+ export declare function agentToolInputRunFunctionToolRunFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunFunctionToolRun, SDKValidationError>;
1229
1148
  /** @internal */
1230
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type>;
1149
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
1231
1150
  /** @internal */
1232
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type>;
1151
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
1233
1152
  /**
1234
1153
  * @internal
1235
1154
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1236
1155
  */
1237
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$ {
1238
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
1156
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
1157
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
1239
1158
  const inboundSchema: z.ZodNativeEnum<{
1240
1159
  readonly Code: "code";
1241
1160
  }>;
1242
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
1161
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
1243
1162
  const outboundSchema: z.ZodNativeEnum<{
1244
1163
  readonly Code: "code";
1245
1164
  }>;
1246
1165
  }
1247
1166
  /** @internal */
1248
- export declare const RunAgentRequestToolLanguage$inboundSchema: z.ZodNativeEnum<typeof RunAgentRequestToolLanguage>;
1167
+ export declare const AgentToolInputRunLanguage$inboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunLanguage>;
1249
1168
  /** @internal */
1250
- export declare const RunAgentRequestToolLanguage$outboundSchema: z.ZodNativeEnum<typeof RunAgentRequestToolLanguage>;
1169
+ export declare const AgentToolInputRunLanguage$outboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunLanguage>;
1251
1170
  /**
1252
1171
  * @internal
1253
1172
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1254
1173
  */
1255
- export declare namespace RunAgentRequestToolLanguage$ {
1256
- /** @deprecated use `RunAgentRequestToolLanguage$inboundSchema` instead. */
1174
+ export declare namespace AgentToolInputRunLanguage$ {
1175
+ /** @deprecated use `AgentToolInputRunLanguage$inboundSchema` instead. */
1257
1176
  const inboundSchema: z.ZodNativeEnum<{
1258
1177
  readonly Python: "python";
1259
1178
  }>;
1260
- /** @deprecated use `RunAgentRequestToolLanguage$outboundSchema` instead. */
1179
+ /** @deprecated use `AgentToolInputRunLanguage$outboundSchema` instead. */
1261
1180
  const outboundSchema: z.ZodNativeEnum<{
1262
1181
  readonly Python: "python";
1263
1182
  }>;
1264
1183
  }
1265
1184
  /** @internal */
1266
- export declare const RunAgentRequestToolCodeTool$inboundSchema: z.ZodType<RunAgentRequestToolCodeTool, z.ZodTypeDef, unknown>;
1185
+ export declare const AgentToolInputRunCodeTool$inboundSchema: z.ZodType<AgentToolInputRunCodeTool, z.ZodTypeDef, unknown>;
1267
1186
  /** @internal */
1268
- export type RunAgentRequestToolCodeTool$Outbound = {
1187
+ export type AgentToolInputRunCodeTool$Outbound = {
1269
1188
  parameters?: {
1270
1189
  [k: string]: any;
1271
1190
  } | undefined;
@@ -1273,84 +1192,84 @@ export type RunAgentRequestToolCodeTool$Outbound = {
1273
1192
  code: string;
1274
1193
  };
1275
1194
  /** @internal */
1276
- export declare const RunAgentRequestToolCodeTool$outboundSchema: z.ZodType<RunAgentRequestToolCodeTool$Outbound, z.ZodTypeDef, RunAgentRequestToolCodeTool>;
1195
+ export declare const AgentToolInputRunCodeTool$outboundSchema: z.ZodType<AgentToolInputRunCodeTool$Outbound, z.ZodTypeDef, AgentToolInputRunCodeTool>;
1277
1196
  /**
1278
1197
  * @internal
1279
1198
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1280
1199
  */
1281
- export declare namespace RunAgentRequestToolCodeTool$ {
1282
- /** @deprecated use `RunAgentRequestToolCodeTool$inboundSchema` instead. */
1283
- const inboundSchema: z.ZodType<RunAgentRequestToolCodeTool, z.ZodTypeDef, unknown>;
1284
- /** @deprecated use `RunAgentRequestToolCodeTool$outboundSchema` instead. */
1285
- const outboundSchema: z.ZodType<RunAgentRequestToolCodeTool$Outbound, z.ZodTypeDef, RunAgentRequestToolCodeTool>;
1286
- /** @deprecated use `RunAgentRequestToolCodeTool$Outbound` instead. */
1287
- type Outbound = RunAgentRequestToolCodeTool$Outbound;
1200
+ export declare namespace AgentToolInputRunCodeTool$ {
1201
+ /** @deprecated use `AgentToolInputRunCodeTool$inboundSchema` instead. */
1202
+ const inboundSchema: z.ZodType<AgentToolInputRunCodeTool, z.ZodTypeDef, unknown>;
1203
+ /** @deprecated use `AgentToolInputRunCodeTool$outboundSchema` instead. */
1204
+ const outboundSchema: z.ZodType<AgentToolInputRunCodeTool$Outbound, z.ZodTypeDef, AgentToolInputRunCodeTool>;
1205
+ /** @deprecated use `AgentToolInputRunCodeTool$Outbound` instead. */
1206
+ type Outbound = AgentToolInputRunCodeTool$Outbound;
1288
1207
  }
1289
- export declare function runAgentRequestToolCodeToolToJSON(runAgentRequestToolCodeTool: RunAgentRequestToolCodeTool): string;
1290
- export declare function runAgentRequestToolCodeToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolCodeTool, SDKValidationError>;
1208
+ export declare function agentToolInputRunCodeToolToJSON(agentToolInputRunCodeTool: AgentToolInputRunCodeTool): string;
1209
+ export declare function agentToolInputRunCodeToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunCodeTool, SDKValidationError>;
1291
1210
  /** @internal */
1292
- export declare const RunAgentRequestToolCodeExecutionTool$inboundSchema: z.ZodType<RunAgentRequestToolCodeExecutionTool, z.ZodTypeDef, unknown>;
1211
+ export declare const AgentToolInputRunCodeToolRun$inboundSchema: z.ZodType<AgentToolInputRunCodeToolRun, z.ZodTypeDef, unknown>;
1293
1212
  /** @internal */
1294
- export type RunAgentRequestToolCodeExecutionTool$Outbound = {
1295
- key: string;
1296
- display_name: string;
1297
- description: string;
1213
+ export type AgentToolInputRunCodeToolRun$Outbound = {
1298
1214
  type: string;
1299
- code_tool: RunAgentRequestToolCodeTool$Outbound;
1215
+ key: string;
1300
1216
  _id?: string | undefined;
1217
+ display_name?: string | undefined;
1218
+ description: string;
1219
+ code_tool: AgentToolInputRunCodeTool$Outbound;
1301
1220
  requires_approval: boolean;
1302
1221
  };
1303
1222
  /** @internal */
1304
- export declare const RunAgentRequestToolCodeExecutionTool$outboundSchema: z.ZodType<RunAgentRequestToolCodeExecutionTool$Outbound, z.ZodTypeDef, RunAgentRequestToolCodeExecutionTool>;
1223
+ export declare const AgentToolInputRunCodeToolRun$outboundSchema: z.ZodType<AgentToolInputRunCodeToolRun$Outbound, z.ZodTypeDef, AgentToolInputRunCodeToolRun>;
1305
1224
  /**
1306
1225
  * @internal
1307
1226
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1308
1227
  */
1309
- export declare namespace RunAgentRequestToolCodeExecutionTool$ {
1310
- /** @deprecated use `RunAgentRequestToolCodeExecutionTool$inboundSchema` instead. */
1311
- const inboundSchema: z.ZodType<RunAgentRequestToolCodeExecutionTool, z.ZodTypeDef, unknown>;
1312
- /** @deprecated use `RunAgentRequestToolCodeExecutionTool$outboundSchema` instead. */
1313
- const outboundSchema: z.ZodType<RunAgentRequestToolCodeExecutionTool$Outbound, z.ZodTypeDef, RunAgentRequestToolCodeExecutionTool>;
1314
- /** @deprecated use `RunAgentRequestToolCodeExecutionTool$Outbound` instead. */
1315
- type Outbound = RunAgentRequestToolCodeExecutionTool$Outbound;
1228
+ export declare namespace AgentToolInputRunCodeToolRun$ {
1229
+ /** @deprecated use `AgentToolInputRunCodeToolRun$inboundSchema` instead. */
1230
+ const inboundSchema: z.ZodType<AgentToolInputRunCodeToolRun, z.ZodTypeDef, unknown>;
1231
+ /** @deprecated use `AgentToolInputRunCodeToolRun$outboundSchema` instead. */
1232
+ const outboundSchema: z.ZodType<AgentToolInputRunCodeToolRun$Outbound, z.ZodTypeDef, AgentToolInputRunCodeToolRun>;
1233
+ /** @deprecated use `AgentToolInputRunCodeToolRun$Outbound` instead. */
1234
+ type Outbound = AgentToolInputRunCodeToolRun$Outbound;
1316
1235
  }
1317
- export declare function runAgentRequestToolCodeExecutionToolToJSON(runAgentRequestToolCodeExecutionTool: RunAgentRequestToolCodeExecutionTool): string;
1318
- export declare function runAgentRequestToolCodeExecutionToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolCodeExecutionTool, SDKValidationError>;
1236
+ export declare function agentToolInputRunCodeToolRunToJSON(agentToolInputRunCodeToolRun: AgentToolInputRunCodeToolRun): string;
1237
+ export declare function agentToolInputRunCodeToolRunFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunCodeToolRun, SDKValidationError>;
1319
1238
  /** @internal */
1320
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type>;
1239
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type>;
1321
1240
  /** @internal */
1322
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type>;
1241
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type>;
1323
1242
  /**
1324
1243
  * @internal
1325
1244
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1326
1245
  */
1327
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$ {
1328
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
1246
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
1247
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
1329
1248
  const inboundSchema: z.ZodNativeEnum<{
1330
1249
  readonly Http: "http";
1331
1250
  }>;
1332
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
1251
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
1333
1252
  const outboundSchema: z.ZodNativeEnum<{
1334
1253
  readonly Http: "http";
1335
1254
  }>;
1336
1255
  }
1337
1256
  /** @internal */
1338
- export declare const RunAgentRequestToolMethod$inboundSchema: z.ZodNativeEnum<typeof RunAgentRequestToolMethod>;
1257
+ export declare const AgentToolInputRunMethod$inboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunMethod>;
1339
1258
  /** @internal */
1340
- export declare const RunAgentRequestToolMethod$outboundSchema: z.ZodNativeEnum<typeof RunAgentRequestToolMethod>;
1259
+ export declare const AgentToolInputRunMethod$outboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunMethod>;
1341
1260
  /**
1342
1261
  * @internal
1343
1262
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1344
1263
  */
1345
- export declare namespace RunAgentRequestToolMethod$ {
1346
- /** @deprecated use `RunAgentRequestToolMethod$inboundSchema` instead. */
1264
+ export declare namespace AgentToolInputRunMethod$ {
1265
+ /** @deprecated use `AgentToolInputRunMethod$inboundSchema` instead. */
1347
1266
  const inboundSchema: z.ZodNativeEnum<{
1348
1267
  readonly Get: "GET";
1349
1268
  readonly Post: "POST";
1350
1269
  readonly Put: "PUT";
1351
1270
  readonly Delete: "DELETE";
1352
1271
  }>;
1353
- /** @deprecated use `RunAgentRequestToolMethod$outboundSchema` instead. */
1272
+ /** @deprecated use `AgentToolInputRunMethod$outboundSchema` instead. */
1354
1273
  const outboundSchema: z.ZodNativeEnum<{
1355
1274
  readonly Get: "GET";
1356
1275
  readonly Post: "POST";
@@ -1359,9 +1278,9 @@ export declare namespace RunAgentRequestToolMethod$ {
1359
1278
  }>;
1360
1279
  }
1361
1280
  /** @internal */
1362
- export declare const RunAgentRequestToolBlueprint$inboundSchema: z.ZodType<RunAgentRequestToolBlueprint, z.ZodTypeDef, unknown>;
1281
+ export declare const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<AgentToolInputRunBlueprint, z.ZodTypeDef, unknown>;
1363
1282
  /** @internal */
1364
- export type RunAgentRequestToolBlueprint$Outbound = {
1283
+ export type AgentToolInputRunBlueprint$Outbound = {
1365
1284
  url: string;
1366
1285
  method: string;
1367
1286
  headers?: {
@@ -1372,37 +1291,37 @@ export type RunAgentRequestToolBlueprint$Outbound = {
1372
1291
  } | undefined;
1373
1292
  };
1374
1293
  /** @internal */
1375
- export declare const RunAgentRequestToolBlueprint$outboundSchema: z.ZodType<RunAgentRequestToolBlueprint$Outbound, z.ZodTypeDef, RunAgentRequestToolBlueprint>;
1294
+ export declare const AgentToolInputRunBlueprint$outboundSchema: z.ZodType<AgentToolInputRunBlueprint$Outbound, z.ZodTypeDef, AgentToolInputRunBlueprint>;
1376
1295
  /**
1377
1296
  * @internal
1378
1297
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1379
1298
  */
1380
- export declare namespace RunAgentRequestToolBlueprint$ {
1381
- /** @deprecated use `RunAgentRequestToolBlueprint$inboundSchema` instead. */
1382
- const inboundSchema: z.ZodType<RunAgentRequestToolBlueprint, z.ZodTypeDef, unknown>;
1383
- /** @deprecated use `RunAgentRequestToolBlueprint$outboundSchema` instead. */
1384
- const outboundSchema: z.ZodType<RunAgentRequestToolBlueprint$Outbound, z.ZodTypeDef, RunAgentRequestToolBlueprint>;
1385
- /** @deprecated use `RunAgentRequestToolBlueprint$Outbound` instead. */
1386
- type Outbound = RunAgentRequestToolBlueprint$Outbound;
1299
+ export declare namespace AgentToolInputRunBlueprint$ {
1300
+ /** @deprecated use `AgentToolInputRunBlueprint$inboundSchema` instead. */
1301
+ const inboundSchema: z.ZodType<AgentToolInputRunBlueprint, z.ZodTypeDef, unknown>;
1302
+ /** @deprecated use `AgentToolInputRunBlueprint$outboundSchema` instead. */
1303
+ const outboundSchema: z.ZodType<AgentToolInputRunBlueprint$Outbound, z.ZodTypeDef, AgentToolInputRunBlueprint>;
1304
+ /** @deprecated use `AgentToolInputRunBlueprint$Outbound` instead. */
1305
+ type Outbound = AgentToolInputRunBlueprint$Outbound;
1387
1306
  }
1388
- export declare function runAgentRequestToolBlueprintToJSON(runAgentRequestToolBlueprint: RunAgentRequestToolBlueprint): string;
1389
- export declare function runAgentRequestToolBlueprintFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolBlueprint, SDKValidationError>;
1307
+ export declare function agentToolInputRunBlueprintToJSON(agentToolInputRunBlueprint: AgentToolInputRunBlueprint): string;
1308
+ export declare function agentToolInputRunBlueprintFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunBlueprint, SDKValidationError>;
1390
1309
  /** @internal */
1391
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType>;
1310
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType>;
1392
1311
  /** @internal */
1393
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType>;
1312
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType>;
1394
1313
  /**
1395
1314
  * @internal
1396
1315
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1397
1316
  */
1398
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$ {
1399
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
1317
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
1318
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
1400
1319
  const inboundSchema: z.ZodNativeEnum<{
1401
1320
  readonly String: "string";
1402
1321
  readonly Number: "number";
1403
1322
  readonly Boolean: "boolean";
1404
1323
  }>;
1405
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
1324
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
1406
1325
  const outboundSchema: z.ZodNativeEnum<{
1407
1326
  readonly String: "string";
1408
1327
  readonly Number: "number";
@@ -1410,574 +1329,574 @@ export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBo
1410
1329
  }>;
1411
1330
  }
1412
1331
  /** @internal */
1413
- export declare const RunAgentRequestToolDefaultValue$inboundSchema: z.ZodType<RunAgentRequestToolDefaultValue, z.ZodTypeDef, unknown>;
1332
+ export declare const AgentToolInputRunDefaultValue$inboundSchema: z.ZodType<AgentToolInputRunDefaultValue, z.ZodTypeDef, unknown>;
1414
1333
  /** @internal */
1415
- export type RunAgentRequestToolDefaultValue$Outbound = string | number | boolean;
1334
+ export type AgentToolInputRunDefaultValue$Outbound = string | number | boolean;
1416
1335
  /** @internal */
1417
- export declare const RunAgentRequestToolDefaultValue$outboundSchema: z.ZodType<RunAgentRequestToolDefaultValue$Outbound, z.ZodTypeDef, RunAgentRequestToolDefaultValue>;
1336
+ export declare const AgentToolInputRunDefaultValue$outboundSchema: z.ZodType<AgentToolInputRunDefaultValue$Outbound, z.ZodTypeDef, AgentToolInputRunDefaultValue>;
1418
1337
  /**
1419
1338
  * @internal
1420
1339
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1421
1340
  */
1422
- export declare namespace RunAgentRequestToolDefaultValue$ {
1423
- /** @deprecated use `RunAgentRequestToolDefaultValue$inboundSchema` instead. */
1424
- const inboundSchema: z.ZodType<RunAgentRequestToolDefaultValue, z.ZodTypeDef, unknown>;
1425
- /** @deprecated use `RunAgentRequestToolDefaultValue$outboundSchema` instead. */
1426
- const outboundSchema: z.ZodType<RunAgentRequestToolDefaultValue$Outbound, z.ZodTypeDef, RunAgentRequestToolDefaultValue>;
1427
- /** @deprecated use `RunAgentRequestToolDefaultValue$Outbound` instead. */
1428
- type Outbound = RunAgentRequestToolDefaultValue$Outbound;
1341
+ export declare namespace AgentToolInputRunDefaultValue$ {
1342
+ /** @deprecated use `AgentToolInputRunDefaultValue$inboundSchema` instead. */
1343
+ const inboundSchema: z.ZodType<AgentToolInputRunDefaultValue, z.ZodTypeDef, unknown>;
1344
+ /** @deprecated use `AgentToolInputRunDefaultValue$outboundSchema` instead. */
1345
+ const outboundSchema: z.ZodType<AgentToolInputRunDefaultValue$Outbound, z.ZodTypeDef, AgentToolInputRunDefaultValue>;
1346
+ /** @deprecated use `AgentToolInputRunDefaultValue$Outbound` instead. */
1347
+ type Outbound = AgentToolInputRunDefaultValue$Outbound;
1429
1348
  }
1430
- export declare function runAgentRequestToolDefaultValueToJSON(runAgentRequestToolDefaultValue: RunAgentRequestToolDefaultValue): string;
1431
- export declare function runAgentRequestToolDefaultValueFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolDefaultValue, SDKValidationError>;
1349
+ export declare function agentToolInputRunDefaultValueToJSON(agentToolInputRunDefaultValue: AgentToolInputRunDefaultValue): string;
1350
+ export declare function agentToolInputRunDefaultValueFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunDefaultValue, SDKValidationError>;
1432
1351
  /** @internal */
1433
- export declare const RunAgentRequestToolArguments$inboundSchema: z.ZodType<RunAgentRequestToolArguments, z.ZodTypeDef, unknown>;
1352
+ export declare const AgentToolInputRunArguments$inboundSchema: z.ZodType<AgentToolInputRunArguments, z.ZodTypeDef, unknown>;
1434
1353
  /** @internal */
1435
- export type RunAgentRequestToolArguments$Outbound = {
1354
+ export type AgentToolInputRunArguments$Outbound = {
1436
1355
  type: string;
1437
1356
  description: string;
1438
1357
  send_to_model: boolean;
1439
1358
  default_value?: string | number | boolean | undefined;
1440
1359
  };
1441
1360
  /** @internal */
1442
- export declare const RunAgentRequestToolArguments$outboundSchema: z.ZodType<RunAgentRequestToolArguments$Outbound, z.ZodTypeDef, RunAgentRequestToolArguments>;
1361
+ export declare const AgentToolInputRunArguments$outboundSchema: z.ZodType<AgentToolInputRunArguments$Outbound, z.ZodTypeDef, AgentToolInputRunArguments>;
1443
1362
  /**
1444
1363
  * @internal
1445
1364
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1446
1365
  */
1447
- export declare namespace RunAgentRequestToolArguments$ {
1448
- /** @deprecated use `RunAgentRequestToolArguments$inboundSchema` instead. */
1449
- const inboundSchema: z.ZodType<RunAgentRequestToolArguments, z.ZodTypeDef, unknown>;
1450
- /** @deprecated use `RunAgentRequestToolArguments$outboundSchema` instead. */
1451
- const outboundSchema: z.ZodType<RunAgentRequestToolArguments$Outbound, z.ZodTypeDef, RunAgentRequestToolArguments>;
1452
- /** @deprecated use `RunAgentRequestToolArguments$Outbound` instead. */
1453
- type Outbound = RunAgentRequestToolArguments$Outbound;
1366
+ export declare namespace AgentToolInputRunArguments$ {
1367
+ /** @deprecated use `AgentToolInputRunArguments$inboundSchema` instead. */
1368
+ const inboundSchema: z.ZodType<AgentToolInputRunArguments, z.ZodTypeDef, unknown>;
1369
+ /** @deprecated use `AgentToolInputRunArguments$outboundSchema` instead. */
1370
+ const outboundSchema: z.ZodType<AgentToolInputRunArguments$Outbound, z.ZodTypeDef, AgentToolInputRunArguments>;
1371
+ /** @deprecated use `AgentToolInputRunArguments$Outbound` instead. */
1372
+ type Outbound = AgentToolInputRunArguments$Outbound;
1454
1373
  }
1455
- export declare function runAgentRequestToolArgumentsToJSON(runAgentRequestToolArguments: RunAgentRequestToolArguments): string;
1456
- export declare function runAgentRequestToolArgumentsFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolArguments, SDKValidationError>;
1374
+ export declare function agentToolInputRunArgumentsToJSON(agentToolInputRunArguments: AgentToolInputRunArguments): string;
1375
+ export declare function agentToolInputRunArgumentsFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunArguments, SDKValidationError>;
1457
1376
  /** @internal */
1458
- export declare const RunAgentRequestToolHttp$inboundSchema: z.ZodType<RunAgentRequestToolHttp, z.ZodTypeDef, unknown>;
1377
+ export declare const AgentToolInputRunHttp$inboundSchema: z.ZodType<AgentToolInputRunHttp, z.ZodTypeDef, unknown>;
1459
1378
  /** @internal */
1460
- export type RunAgentRequestToolHttp$Outbound = {
1461
- blueprint: RunAgentRequestToolBlueprint$Outbound;
1379
+ export type AgentToolInputRunHttp$Outbound = {
1380
+ blueprint: AgentToolInputRunBlueprint$Outbound;
1462
1381
  arguments?: {
1463
- [k: string]: RunAgentRequestToolArguments$Outbound;
1382
+ [k: string]: AgentToolInputRunArguments$Outbound;
1464
1383
  } | undefined;
1465
1384
  };
1466
1385
  /** @internal */
1467
- export declare const RunAgentRequestToolHttp$outboundSchema: z.ZodType<RunAgentRequestToolHttp$Outbound, z.ZodTypeDef, RunAgentRequestToolHttp>;
1386
+ export declare const AgentToolInputRunHttp$outboundSchema: z.ZodType<AgentToolInputRunHttp$Outbound, z.ZodTypeDef, AgentToolInputRunHttp>;
1468
1387
  /**
1469
1388
  * @internal
1470
1389
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1471
1390
  */
1472
- export declare namespace RunAgentRequestToolHttp$ {
1473
- /** @deprecated use `RunAgentRequestToolHttp$inboundSchema` instead. */
1474
- const inboundSchema: z.ZodType<RunAgentRequestToolHttp, z.ZodTypeDef, unknown>;
1475
- /** @deprecated use `RunAgentRequestToolHttp$outboundSchema` instead. */
1476
- const outboundSchema: z.ZodType<RunAgentRequestToolHttp$Outbound, z.ZodTypeDef, RunAgentRequestToolHttp>;
1477
- /** @deprecated use `RunAgentRequestToolHttp$Outbound` instead. */
1478
- type Outbound = RunAgentRequestToolHttp$Outbound;
1391
+ export declare namespace AgentToolInputRunHttp$ {
1392
+ /** @deprecated use `AgentToolInputRunHttp$inboundSchema` instead. */
1393
+ const inboundSchema: z.ZodType<AgentToolInputRunHttp, z.ZodTypeDef, unknown>;
1394
+ /** @deprecated use `AgentToolInputRunHttp$outboundSchema` instead. */
1395
+ const outboundSchema: z.ZodType<AgentToolInputRunHttp$Outbound, z.ZodTypeDef, AgentToolInputRunHttp>;
1396
+ /** @deprecated use `AgentToolInputRunHttp$Outbound` instead. */
1397
+ type Outbound = AgentToolInputRunHttp$Outbound;
1479
1398
  }
1480
- export declare function runAgentRequestToolHttpToJSON(runAgentRequestToolHttp: RunAgentRequestToolHttp): string;
1481
- export declare function runAgentRequestToolHttpFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolHttp, SDKValidationError>;
1399
+ export declare function agentToolInputRunHttpToJSON(agentToolInputRunHttp: AgentToolInputRunHttp): string;
1400
+ export declare function agentToolInputRunHttpFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunHttp, SDKValidationError>;
1482
1401
  /** @internal */
1483
- export declare const RunAgentRequestToolHTTPTool$inboundSchema: z.ZodType<RunAgentRequestToolHTTPTool, z.ZodTypeDef, unknown>;
1402
+ export declare const AgentToolInputRunHTTPToolRun$inboundSchema: z.ZodType<AgentToolInputRunHTTPToolRun, z.ZodTypeDef, unknown>;
1484
1403
  /** @internal */
1485
- export type RunAgentRequestToolHTTPTool$Outbound = {
1486
- _id: string;
1404
+ export type AgentToolInputRunHTTPToolRun$Outbound = {
1405
+ type: string;
1487
1406
  key: string;
1488
- display_name: string;
1407
+ _id?: string | undefined;
1408
+ display_name?: string | undefined;
1489
1409
  description: string;
1490
- type: string;
1491
- http: RunAgentRequestToolHttp$Outbound;
1410
+ http: AgentToolInputRunHttp$Outbound;
1492
1411
  requires_approval: boolean;
1493
1412
  };
1494
1413
  /** @internal */
1495
- export declare const RunAgentRequestToolHTTPTool$outboundSchema: z.ZodType<RunAgentRequestToolHTTPTool$Outbound, z.ZodTypeDef, RunAgentRequestToolHTTPTool>;
1414
+ export declare const AgentToolInputRunHTTPToolRun$outboundSchema: z.ZodType<AgentToolInputRunHTTPToolRun$Outbound, z.ZodTypeDef, AgentToolInputRunHTTPToolRun>;
1496
1415
  /**
1497
1416
  * @internal
1498
1417
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1499
1418
  */
1500
- export declare namespace RunAgentRequestToolHTTPTool$ {
1501
- /** @deprecated use `RunAgentRequestToolHTTPTool$inboundSchema` instead. */
1502
- const inboundSchema: z.ZodType<RunAgentRequestToolHTTPTool, z.ZodTypeDef, unknown>;
1503
- /** @deprecated use `RunAgentRequestToolHTTPTool$outboundSchema` instead. */
1504
- const outboundSchema: z.ZodType<RunAgentRequestToolHTTPTool$Outbound, z.ZodTypeDef, RunAgentRequestToolHTTPTool>;
1505
- /** @deprecated use `RunAgentRequestToolHTTPTool$Outbound` instead. */
1506
- type Outbound = RunAgentRequestToolHTTPTool$Outbound;
1419
+ export declare namespace AgentToolInputRunHTTPToolRun$ {
1420
+ /** @deprecated use `AgentToolInputRunHTTPToolRun$inboundSchema` instead. */
1421
+ const inboundSchema: z.ZodType<AgentToolInputRunHTTPToolRun, z.ZodTypeDef, unknown>;
1422
+ /** @deprecated use `AgentToolInputRunHTTPToolRun$outboundSchema` instead. */
1423
+ const outboundSchema: z.ZodType<AgentToolInputRunHTTPToolRun$Outbound, z.ZodTypeDef, AgentToolInputRunHTTPToolRun>;
1424
+ /** @deprecated use `AgentToolInputRunHTTPToolRun$Outbound` instead. */
1425
+ type Outbound = AgentToolInputRunHTTPToolRun$Outbound;
1507
1426
  }
1508
- export declare function runAgentRequestToolHTTPToolToJSON(runAgentRequestToolHTTPTool: RunAgentRequestToolHTTPTool): string;
1509
- export declare function runAgentRequestToolHTTPToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolHTTPTool, SDKValidationError>;
1427
+ export declare function agentToolInputRunHTTPToolRunToJSON(agentToolInputRunHTTPToolRun: AgentToolInputRunHTTPToolRun): string;
1428
+ export declare function agentToolInputRunHTTPToolRunFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunHTTPToolRun, SDKValidationError>;
1510
1429
  /** @internal */
1511
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type>;
1430
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type>;
1512
1431
  /** @internal */
1513
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type>;
1432
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type>;
1514
1433
  /**
1515
1434
  * @internal
1516
1435
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1517
1436
  */
1518
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$ {
1519
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
1437
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
1438
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
1520
1439
  const inboundSchema: z.ZodNativeEnum<{
1521
1440
  readonly CurrentDate: "current_date";
1522
1441
  }>;
1523
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
1442
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
1524
1443
  const outboundSchema: z.ZodNativeEnum<{
1525
1444
  readonly CurrentDate: "current_date";
1526
1445
  }>;
1527
1446
  }
1528
1447
  /** @internal */
1529
- export declare const RunAgentRequestToolCurrentDateTool$inboundSchema: z.ZodType<RunAgentRequestToolCurrentDateTool, z.ZodTypeDef, unknown>;
1448
+ export declare const StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunCurrentDateTool, z.ZodTypeDef, unknown>;
1530
1449
  /** @internal */
1531
- export type RunAgentRequestToolCurrentDateTool$Outbound = {
1450
+ export type StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound = {
1532
1451
  type: string;
1533
1452
  requires_approval: boolean;
1534
1453
  };
1535
1454
  /** @internal */
1536
- export declare const RunAgentRequestToolCurrentDateTool$outboundSchema: z.ZodType<RunAgentRequestToolCurrentDateTool$Outbound, z.ZodTypeDef, RunAgentRequestToolCurrentDateTool>;
1455
+ export declare const StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunCurrentDateTool>;
1537
1456
  /**
1538
1457
  * @internal
1539
1458
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1540
1459
  */
1541
- export declare namespace RunAgentRequestToolCurrentDateTool$ {
1542
- /** @deprecated use `RunAgentRequestToolCurrentDateTool$inboundSchema` instead. */
1543
- const inboundSchema: z.ZodType<RunAgentRequestToolCurrentDateTool, z.ZodTypeDef, unknown>;
1544
- /** @deprecated use `RunAgentRequestToolCurrentDateTool$outboundSchema` instead. */
1545
- const outboundSchema: z.ZodType<RunAgentRequestToolCurrentDateTool$Outbound, z.ZodTypeDef, RunAgentRequestToolCurrentDateTool>;
1546
- /** @deprecated use `RunAgentRequestToolCurrentDateTool$Outbound` instead. */
1547
- type Outbound = RunAgentRequestToolCurrentDateTool$Outbound;
1460
+ export declare namespace StreamRunAgentAgentToolInputRunCurrentDateTool$ {
1461
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema` instead. */
1462
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunCurrentDateTool, z.ZodTypeDef, unknown>;
1463
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema` instead. */
1464
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunCurrentDateTool>;
1465
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound` instead. */
1466
+ type Outbound = StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
1548
1467
  }
1549
- export declare function runAgentRequestToolCurrentDateToolToJSON(runAgentRequestToolCurrentDateTool: RunAgentRequestToolCurrentDateTool): string;
1550
- export declare function runAgentRequestToolCurrentDateToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolCurrentDateTool, SDKValidationError>;
1468
+ export declare function streamRunAgentAgentToolInputRunCurrentDateToolToJSON(streamRunAgentAgentToolInputRunCurrentDateTool: StreamRunAgentAgentToolInputRunCurrentDateTool): string;
1469
+ export declare function streamRunAgentAgentToolInputRunCurrentDateToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunCurrentDateTool, SDKValidationError>;
1551
1470
  /** @internal */
1552
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type>;
1471
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type>;
1553
1472
  /** @internal */
1554
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type>;
1473
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type>;
1555
1474
  /**
1556
1475
  * @internal
1557
1476
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1558
1477
  */
1559
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$ {
1560
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
1478
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
1479
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
1561
1480
  const inboundSchema: z.ZodNativeEnum<{
1562
1481
  readonly QueryKnowledgeBase: "query_knowledge_base";
1563
1482
  }>;
1564
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
1483
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
1565
1484
  const outboundSchema: z.ZodNativeEnum<{
1566
1485
  readonly QueryKnowledgeBase: "query_knowledge_base";
1567
1486
  }>;
1568
1487
  }
1569
1488
  /** @internal */
1570
- export declare const RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema: z.ZodType<RunAgentRequestToolQueryKnowledgeBaseTool, z.ZodTypeDef, unknown>;
1489
+ export declare const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool, z.ZodTypeDef, unknown>;
1571
1490
  /** @internal */
1572
- export type RunAgentRequestToolQueryKnowledgeBaseTool$Outbound = {
1491
+ export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
1573
1492
  type: string;
1574
1493
  requires_approval: boolean;
1575
1494
  };
1576
1495
  /** @internal */
1577
- export declare const RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema: z.ZodType<RunAgentRequestToolQueryKnowledgeBaseTool$Outbound, z.ZodTypeDef, RunAgentRequestToolQueryKnowledgeBaseTool>;
1496
+ export declare const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool>;
1578
1497
  /**
1579
1498
  * @internal
1580
1499
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1581
1500
  */
1582
- export declare namespace RunAgentRequestToolQueryKnowledgeBaseTool$ {
1583
- /** @deprecated use `RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema` instead. */
1584
- const inboundSchema: z.ZodType<RunAgentRequestToolQueryKnowledgeBaseTool, z.ZodTypeDef, unknown>;
1585
- /** @deprecated use `RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema` instead. */
1586
- const outboundSchema: z.ZodType<RunAgentRequestToolQueryKnowledgeBaseTool$Outbound, z.ZodTypeDef, RunAgentRequestToolQueryKnowledgeBaseTool>;
1587
- /** @deprecated use `RunAgentRequestToolQueryKnowledgeBaseTool$Outbound` instead. */
1588
- type Outbound = RunAgentRequestToolQueryKnowledgeBaseTool$Outbound;
1501
+ export declare namespace StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$ {
1502
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
1503
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool, z.ZodTypeDef, unknown>;
1504
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
1505
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool>;
1506
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
1507
+ type Outbound = StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound;
1589
1508
  }
1590
- export declare function runAgentRequestToolQueryKnowledgeBaseToolToJSON(runAgentRequestToolQueryKnowledgeBaseTool: RunAgentRequestToolQueryKnowledgeBaseTool): string;
1591
- export declare function runAgentRequestToolQueryKnowledgeBaseToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolQueryKnowledgeBaseTool, SDKValidationError>;
1509
+ export declare function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolToJSON(streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool: StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool): string;
1510
+ export declare function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool, SDKValidationError>;
1592
1511
  /** @internal */
1593
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type>;
1512
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type>;
1594
1513
  /** @internal */
1595
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type>;
1514
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type>;
1596
1515
  /**
1597
1516
  * @internal
1598
1517
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1599
1518
  */
1600
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$ {
1601
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
1519
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
1520
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
1602
1521
  const inboundSchema: z.ZodNativeEnum<{
1603
1522
  readonly RetrieveKnowledgeBases: "retrieve_knowledge_bases";
1604
1523
  }>;
1605
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
1524
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
1606
1525
  const outboundSchema: z.ZodNativeEnum<{
1607
1526
  readonly RetrieveKnowledgeBases: "retrieve_knowledge_bases";
1608
1527
  }>;
1609
1528
  }
1610
1529
  /** @internal */
1611
- export declare const RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<RunAgentRequestToolRetrieveKnowledgeBasesTool, z.ZodTypeDef, unknown>;
1530
+ export declare const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool, z.ZodTypeDef, unknown>;
1612
1531
  /** @internal */
1613
- export type RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound = {
1532
+ export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
1614
1533
  type: string;
1615
1534
  requires_approval: boolean;
1616
1535
  };
1617
1536
  /** @internal */
1618
- export declare const RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound, z.ZodTypeDef, RunAgentRequestToolRetrieveKnowledgeBasesTool>;
1537
+ export declare const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool>;
1619
1538
  /**
1620
1539
  * @internal
1621
1540
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1622
1541
  */
1623
- export declare namespace RunAgentRequestToolRetrieveKnowledgeBasesTool$ {
1624
- /** @deprecated use `RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema` instead. */
1625
- const inboundSchema: z.ZodType<RunAgentRequestToolRetrieveKnowledgeBasesTool, z.ZodTypeDef, unknown>;
1626
- /** @deprecated use `RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema` instead. */
1627
- const outboundSchema: z.ZodType<RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound, z.ZodTypeDef, RunAgentRequestToolRetrieveKnowledgeBasesTool>;
1628
- /** @deprecated use `RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound` instead. */
1629
- type Outbound = RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound;
1542
+ export declare namespace StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$ {
1543
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
1544
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool, z.ZodTypeDef, unknown>;
1545
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
1546
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool>;
1547
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
1548
+ type Outbound = StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
1630
1549
  }
1631
- export declare function runAgentRequestToolRetrieveKnowledgeBasesToolToJSON(runAgentRequestToolRetrieveKnowledgeBasesTool: RunAgentRequestToolRetrieveKnowledgeBasesTool): string;
1632
- export declare function runAgentRequestToolRetrieveKnowledgeBasesToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolRetrieveKnowledgeBasesTool, SDKValidationError>;
1550
+ export declare function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolToJSON(streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool: StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool): string;
1551
+ export declare function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool, SDKValidationError>;
1633
1552
  /** @internal */
1634
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type>;
1553
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type>;
1635
1554
  /** @internal */
1636
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type>;
1555
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type>;
1637
1556
  /**
1638
1557
  * @internal
1639
1558
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1640
1559
  */
1641
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$ {
1642
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
1560
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
1561
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
1643
1562
  const inboundSchema: z.ZodNativeEnum<{
1644
1563
  readonly DeleteMemoryDocument: "delete_memory_document";
1645
1564
  }>;
1646
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
1565
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
1647
1566
  const outboundSchema: z.ZodNativeEnum<{
1648
1567
  readonly DeleteMemoryDocument: "delete_memory_document";
1649
1568
  }>;
1650
1569
  }
1651
1570
  /** @internal */
1652
- export declare const RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema: z.ZodType<RunAgentRequestToolDeleteMemoryStoreTool, z.ZodTypeDef, unknown>;
1571
+ export declare const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool, z.ZodTypeDef, unknown>;
1653
1572
  /** @internal */
1654
- export type RunAgentRequestToolDeleteMemoryStoreTool$Outbound = {
1573
+ export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
1655
1574
  type: string;
1656
1575
  requires_approval: boolean;
1657
1576
  };
1658
1577
  /** @internal */
1659
- export declare const RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema: z.ZodType<RunAgentRequestToolDeleteMemoryStoreTool$Outbound, z.ZodTypeDef, RunAgentRequestToolDeleteMemoryStoreTool>;
1578
+ export declare const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool>;
1660
1579
  /**
1661
1580
  * @internal
1662
1581
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1663
1582
  */
1664
- export declare namespace RunAgentRequestToolDeleteMemoryStoreTool$ {
1665
- /** @deprecated use `RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema` instead. */
1666
- const inboundSchema: z.ZodType<RunAgentRequestToolDeleteMemoryStoreTool, z.ZodTypeDef, unknown>;
1667
- /** @deprecated use `RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema` instead. */
1668
- const outboundSchema: z.ZodType<RunAgentRequestToolDeleteMemoryStoreTool$Outbound, z.ZodTypeDef, RunAgentRequestToolDeleteMemoryStoreTool>;
1669
- /** @deprecated use `RunAgentRequestToolDeleteMemoryStoreTool$Outbound` instead. */
1670
- type Outbound = RunAgentRequestToolDeleteMemoryStoreTool$Outbound;
1583
+ export declare namespace StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$ {
1584
+ /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
1585
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool, z.ZodTypeDef, unknown>;
1586
+ /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
1587
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool>;
1588
+ /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
1589
+ type Outbound = StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound;
1671
1590
  }
1672
- export declare function runAgentRequestToolDeleteMemoryStoreToolToJSON(runAgentRequestToolDeleteMemoryStoreTool: RunAgentRequestToolDeleteMemoryStoreTool): string;
1673
- export declare function runAgentRequestToolDeleteMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolDeleteMemoryStoreTool, SDKValidationError>;
1591
+ export declare function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolToJSON(streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool: StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool): string;
1592
+ export declare function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool, SDKValidationError>;
1674
1593
  /** @internal */
1675
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type>;
1594
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type>;
1676
1595
  /** @internal */
1677
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type>;
1596
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type>;
1678
1597
  /**
1679
1598
  * @internal
1680
1599
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1681
1600
  */
1682
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$ {
1683
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
1601
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$ {
1602
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
1684
1603
  const inboundSchema: z.ZodNativeEnum<{
1685
1604
  readonly RetrieveMemoryStores: "retrieve_memory_stores";
1686
1605
  }>;
1687
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
1606
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
1688
1607
  const outboundSchema: z.ZodNativeEnum<{
1689
1608
  readonly RetrieveMemoryStores: "retrieve_memory_stores";
1690
1609
  }>;
1691
1610
  }
1692
1611
  /** @internal */
1693
- export declare const RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema: z.ZodType<RunAgentRequestToolRetrieveMemoryStoresTool, z.ZodTypeDef, unknown>;
1612
+ export declare const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool, z.ZodTypeDef, unknown>;
1694
1613
  /** @internal */
1695
- export type RunAgentRequestToolRetrieveMemoryStoresTool$Outbound = {
1614
+ export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
1696
1615
  type: string;
1697
1616
  requires_approval: boolean;
1698
1617
  };
1699
1618
  /** @internal */
1700
- export declare const RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema: z.ZodType<RunAgentRequestToolRetrieveMemoryStoresTool$Outbound, z.ZodTypeDef, RunAgentRequestToolRetrieveMemoryStoresTool>;
1619
+ export declare const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool>;
1701
1620
  /**
1702
1621
  * @internal
1703
1622
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1704
1623
  */
1705
- export declare namespace RunAgentRequestToolRetrieveMemoryStoresTool$ {
1706
- /** @deprecated use `RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema` instead. */
1707
- const inboundSchema: z.ZodType<RunAgentRequestToolRetrieveMemoryStoresTool, z.ZodTypeDef, unknown>;
1708
- /** @deprecated use `RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema` instead. */
1709
- const outboundSchema: z.ZodType<RunAgentRequestToolRetrieveMemoryStoresTool$Outbound, z.ZodTypeDef, RunAgentRequestToolRetrieveMemoryStoresTool>;
1710
- /** @deprecated use `RunAgentRequestToolRetrieveMemoryStoresTool$Outbound` instead. */
1711
- type Outbound = RunAgentRequestToolRetrieveMemoryStoresTool$Outbound;
1624
+ export declare namespace StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$ {
1625
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
1626
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool, z.ZodTypeDef, unknown>;
1627
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
1628
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool>;
1629
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
1630
+ type Outbound = StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound;
1712
1631
  }
1713
- export declare function runAgentRequestToolRetrieveMemoryStoresToolToJSON(runAgentRequestToolRetrieveMemoryStoresTool: RunAgentRequestToolRetrieveMemoryStoresTool): string;
1714
- export declare function runAgentRequestToolRetrieveMemoryStoresToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolRetrieveMemoryStoresTool, SDKValidationError>;
1632
+ export declare function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolToJSON(streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool: StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool): string;
1633
+ export declare function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool, SDKValidationError>;
1715
1634
  /** @internal */
1716
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType>;
1635
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType>;
1717
1636
  /** @internal */
1718
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType>;
1637
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType>;
1719
1638
  /**
1720
1639
  * @internal
1721
1640
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1722
1641
  */
1723
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$ {
1724
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
1642
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
1643
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
1725
1644
  const inboundSchema: z.ZodNativeEnum<{
1726
1645
  readonly WriteMemoryStore: "write_memory_store";
1727
1646
  }>;
1728
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
1647
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
1729
1648
  const outboundSchema: z.ZodNativeEnum<{
1730
1649
  readonly WriteMemoryStore: "write_memory_store";
1731
1650
  }>;
1732
1651
  }
1733
1652
  /** @internal */
1734
- export declare const RunAgentRequestToolWriteMemoryStoreTool$inboundSchema: z.ZodType<RunAgentRequestToolWriteMemoryStoreTool, z.ZodTypeDef, unknown>;
1653
+ export declare const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunWriteMemoryStoreTool, z.ZodTypeDef, unknown>;
1735
1654
  /** @internal */
1736
- export type RunAgentRequestToolWriteMemoryStoreTool$Outbound = {
1655
+ export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound = {
1737
1656
  type: string;
1738
1657
  requires_approval: boolean;
1739
1658
  };
1740
1659
  /** @internal */
1741
- export declare const RunAgentRequestToolWriteMemoryStoreTool$outboundSchema: z.ZodType<RunAgentRequestToolWriteMemoryStoreTool$Outbound, z.ZodTypeDef, RunAgentRequestToolWriteMemoryStoreTool>;
1660
+ export declare const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunWriteMemoryStoreTool>;
1742
1661
  /**
1743
1662
  * @internal
1744
1663
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1745
1664
  */
1746
- export declare namespace RunAgentRequestToolWriteMemoryStoreTool$ {
1747
- /** @deprecated use `RunAgentRequestToolWriteMemoryStoreTool$inboundSchema` instead. */
1748
- const inboundSchema: z.ZodType<RunAgentRequestToolWriteMemoryStoreTool, z.ZodTypeDef, unknown>;
1749
- /** @deprecated use `RunAgentRequestToolWriteMemoryStoreTool$outboundSchema` instead. */
1750
- const outboundSchema: z.ZodType<RunAgentRequestToolWriteMemoryStoreTool$Outbound, z.ZodTypeDef, RunAgentRequestToolWriteMemoryStoreTool>;
1751
- /** @deprecated use `RunAgentRequestToolWriteMemoryStoreTool$Outbound` instead. */
1752
- type Outbound = RunAgentRequestToolWriteMemoryStoreTool$Outbound;
1665
+ export declare namespace StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$ {
1666
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
1667
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunWriteMemoryStoreTool, z.ZodTypeDef, unknown>;
1668
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
1669
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunWriteMemoryStoreTool>;
1670
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
1671
+ type Outbound = StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound;
1753
1672
  }
1754
- export declare function runAgentRequestToolWriteMemoryStoreToolToJSON(runAgentRequestToolWriteMemoryStoreTool: RunAgentRequestToolWriteMemoryStoreTool): string;
1755
- export declare function runAgentRequestToolWriteMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolWriteMemoryStoreTool, SDKValidationError>;
1673
+ export declare function streamRunAgentAgentToolInputRunWriteMemoryStoreToolToJSON(streamRunAgentAgentToolInputRunWriteMemoryStoreTool: StreamRunAgentAgentToolInputRunWriteMemoryStoreTool): string;
1674
+ export declare function streamRunAgentAgentToolInputRunWriteMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunWriteMemoryStoreTool, SDKValidationError>;
1756
1675
  /** @internal */
1757
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType>;
1676
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType>;
1758
1677
  /** @internal */
1759
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType>;
1678
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType>;
1760
1679
  /**
1761
1680
  * @internal
1762
1681
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1763
1682
  */
1764
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$ {
1765
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
1683
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
1684
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
1766
1685
  const inboundSchema: z.ZodNativeEnum<{
1767
1686
  readonly QueryMemoryStore: "query_memory_store";
1768
1687
  }>;
1769
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
1688
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
1770
1689
  const outboundSchema: z.ZodNativeEnum<{
1771
1690
  readonly QueryMemoryStore: "query_memory_store";
1772
1691
  }>;
1773
1692
  }
1774
1693
  /** @internal */
1775
- export declare const RunAgentRequestToolQueryMemoryStoreTool$inboundSchema: z.ZodType<RunAgentRequestToolQueryMemoryStoreTool, z.ZodTypeDef, unknown>;
1694
+ export declare const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunQueryMemoryStoreTool, z.ZodTypeDef, unknown>;
1776
1695
  /** @internal */
1777
- export type RunAgentRequestToolQueryMemoryStoreTool$Outbound = {
1696
+ export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound = {
1778
1697
  type: string;
1779
1698
  requires_approval: boolean;
1780
1699
  };
1781
1700
  /** @internal */
1782
- export declare const RunAgentRequestToolQueryMemoryStoreTool$outboundSchema: z.ZodType<RunAgentRequestToolQueryMemoryStoreTool$Outbound, z.ZodTypeDef, RunAgentRequestToolQueryMemoryStoreTool>;
1701
+ export declare const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunQueryMemoryStoreTool>;
1783
1702
  /**
1784
1703
  * @internal
1785
1704
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1786
1705
  */
1787
- export declare namespace RunAgentRequestToolQueryMemoryStoreTool$ {
1788
- /** @deprecated use `RunAgentRequestToolQueryMemoryStoreTool$inboundSchema` instead. */
1789
- const inboundSchema: z.ZodType<RunAgentRequestToolQueryMemoryStoreTool, z.ZodTypeDef, unknown>;
1790
- /** @deprecated use `RunAgentRequestToolQueryMemoryStoreTool$outboundSchema` instead. */
1791
- const outboundSchema: z.ZodType<RunAgentRequestToolQueryMemoryStoreTool$Outbound, z.ZodTypeDef, RunAgentRequestToolQueryMemoryStoreTool>;
1792
- /** @deprecated use `RunAgentRequestToolQueryMemoryStoreTool$Outbound` instead. */
1793
- type Outbound = RunAgentRequestToolQueryMemoryStoreTool$Outbound;
1706
+ export declare namespace StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$ {
1707
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
1708
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunQueryMemoryStoreTool, z.ZodTypeDef, unknown>;
1709
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
1710
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunQueryMemoryStoreTool>;
1711
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
1712
+ type Outbound = StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound;
1794
1713
  }
1795
- export declare function runAgentRequestToolQueryMemoryStoreToolToJSON(runAgentRequestToolQueryMemoryStoreTool: RunAgentRequestToolQueryMemoryStoreTool): string;
1796
- export declare function runAgentRequestToolQueryMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolQueryMemoryStoreTool, SDKValidationError>;
1714
+ export declare function streamRunAgentAgentToolInputRunQueryMemoryStoreToolToJSON(streamRunAgentAgentToolInputRunQueryMemoryStoreTool: StreamRunAgentAgentToolInputRunQueryMemoryStoreTool): string;
1715
+ export declare function streamRunAgentAgentToolInputRunQueryMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunQueryMemoryStoreTool, SDKValidationError>;
1797
1716
  /** @internal */
1798
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType>;
1717
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType>;
1799
1718
  /** @internal */
1800
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType>;
1719
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType>;
1801
1720
  /**
1802
1721
  * @internal
1803
1722
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1804
1723
  */
1805
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$ {
1806
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema` instead. */
1724
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
1725
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
1807
1726
  const inboundSchema: z.ZodNativeEnum<{
1808
1727
  readonly RetrieveAgents: "retrieve_agents";
1809
1728
  }>;
1810
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema` instead. */
1729
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
1811
1730
  const outboundSchema: z.ZodNativeEnum<{
1812
1731
  readonly RetrieveAgents: "retrieve_agents";
1813
1732
  }>;
1814
1733
  }
1815
1734
  /** @internal */
1816
- export declare const RunAgentRequestToolRetrieveAgentsTool$inboundSchema: z.ZodType<RunAgentRequestToolRetrieveAgentsTool, z.ZodTypeDef, unknown>;
1735
+ export declare const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveAgentsTool, z.ZodTypeDef, unknown>;
1817
1736
  /** @internal */
1818
- export type RunAgentRequestToolRetrieveAgentsTool$Outbound = {
1737
+ export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound = {
1819
1738
  type: string;
1820
1739
  requires_approval: boolean;
1821
1740
  };
1822
1741
  /** @internal */
1823
- export declare const RunAgentRequestToolRetrieveAgentsTool$outboundSchema: z.ZodType<RunAgentRequestToolRetrieveAgentsTool$Outbound, z.ZodTypeDef, RunAgentRequestToolRetrieveAgentsTool>;
1742
+ export declare const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunRetrieveAgentsTool>;
1824
1743
  /**
1825
1744
  * @internal
1826
1745
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1827
1746
  */
1828
- export declare namespace RunAgentRequestToolRetrieveAgentsTool$ {
1829
- /** @deprecated use `RunAgentRequestToolRetrieveAgentsTool$inboundSchema` instead. */
1830
- const inboundSchema: z.ZodType<RunAgentRequestToolRetrieveAgentsTool, z.ZodTypeDef, unknown>;
1831
- /** @deprecated use `RunAgentRequestToolRetrieveAgentsTool$outboundSchema` instead. */
1832
- const outboundSchema: z.ZodType<RunAgentRequestToolRetrieveAgentsTool$Outbound, z.ZodTypeDef, RunAgentRequestToolRetrieveAgentsTool>;
1833
- /** @deprecated use `RunAgentRequestToolRetrieveAgentsTool$Outbound` instead. */
1834
- type Outbound = RunAgentRequestToolRetrieveAgentsTool$Outbound;
1747
+ export declare namespace StreamRunAgentAgentToolInputRunRetrieveAgentsTool$ {
1748
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
1749
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveAgentsTool, z.ZodTypeDef, unknown>;
1750
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
1751
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunRetrieveAgentsTool>;
1752
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
1753
+ type Outbound = StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound;
1835
1754
  }
1836
- export declare function runAgentRequestToolRetrieveAgentsToolToJSON(runAgentRequestToolRetrieveAgentsTool: RunAgentRequestToolRetrieveAgentsTool): string;
1837
- export declare function runAgentRequestToolRetrieveAgentsToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolRetrieveAgentsTool, SDKValidationError>;
1755
+ export declare function streamRunAgentAgentToolInputRunRetrieveAgentsToolToJSON(streamRunAgentAgentToolInputRunRetrieveAgentsTool: StreamRunAgentAgentToolInputRunRetrieveAgentsTool): string;
1756
+ export declare function streamRunAgentAgentToolInputRunRetrieveAgentsToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunRetrieveAgentsTool, SDKValidationError>;
1838
1757
  /** @internal */
1839
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestType>;
1758
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType>;
1840
1759
  /** @internal */
1841
- export declare const StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestType>;
1760
+ export declare const StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType>;
1842
1761
  /**
1843
1762
  * @internal
1844
1763
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1845
1764
  */
1846
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsRequestType$ {
1847
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema` instead. */
1765
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsRequestType$ {
1766
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
1848
1767
  const inboundSchema: z.ZodNativeEnum<{
1849
1768
  readonly CallSubAgent: "call_sub_agent";
1850
1769
  }>;
1851
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema` instead. */
1770
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
1852
1771
  const outboundSchema: z.ZodNativeEnum<{
1853
1772
  readonly CallSubAgent: "call_sub_agent";
1854
1773
  }>;
1855
1774
  }
1856
1775
  /** @internal */
1857
- export declare const RunAgentRequestToolCallSubAgentTool$inboundSchema: z.ZodType<RunAgentRequestToolCallSubAgentTool, z.ZodTypeDef, unknown>;
1776
+ export declare const StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunCallSubAgentTool, z.ZodTypeDef, unknown>;
1858
1777
  /** @internal */
1859
- export type RunAgentRequestToolCallSubAgentTool$Outbound = {
1778
+ export type StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound = {
1860
1779
  type: string;
1861
1780
  requires_approval: boolean;
1862
1781
  };
1863
1782
  /** @internal */
1864
- export declare const RunAgentRequestToolCallSubAgentTool$outboundSchema: z.ZodType<RunAgentRequestToolCallSubAgentTool$Outbound, z.ZodTypeDef, RunAgentRequestToolCallSubAgentTool>;
1783
+ export declare const StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunCallSubAgentTool>;
1865
1784
  /**
1866
1785
  * @internal
1867
1786
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1868
1787
  */
1869
- export declare namespace RunAgentRequestToolCallSubAgentTool$ {
1870
- /** @deprecated use `RunAgentRequestToolCallSubAgentTool$inboundSchema` instead. */
1871
- const inboundSchema: z.ZodType<RunAgentRequestToolCallSubAgentTool, z.ZodTypeDef, unknown>;
1872
- /** @deprecated use `RunAgentRequestToolCallSubAgentTool$outboundSchema` instead. */
1873
- const outboundSchema: z.ZodType<RunAgentRequestToolCallSubAgentTool$Outbound, z.ZodTypeDef, RunAgentRequestToolCallSubAgentTool>;
1874
- /** @deprecated use `RunAgentRequestToolCallSubAgentTool$Outbound` instead. */
1875
- type Outbound = RunAgentRequestToolCallSubAgentTool$Outbound;
1788
+ export declare namespace StreamRunAgentAgentToolInputRunCallSubAgentTool$ {
1789
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
1790
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunCallSubAgentTool, z.ZodTypeDef, unknown>;
1791
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
1792
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunCallSubAgentTool>;
1793
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound` instead. */
1794
+ type Outbound = StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound;
1876
1795
  }
1877
- export declare function runAgentRequestToolCallSubAgentToolToJSON(runAgentRequestToolCallSubAgentTool: RunAgentRequestToolCallSubAgentTool): string;
1878
- export declare function runAgentRequestToolCallSubAgentToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolCallSubAgentTool, SDKValidationError>;
1796
+ export declare function streamRunAgentAgentToolInputRunCallSubAgentToolToJSON(streamRunAgentAgentToolInputRunCallSubAgentTool: StreamRunAgentAgentToolInputRunCallSubAgentTool): string;
1797
+ export declare function streamRunAgentAgentToolInputRunCallSubAgentToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunCallSubAgentTool, SDKValidationError>;
1879
1798
  /** @internal */
1880
- export declare const StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsType>;
1799
+ export declare const StreamRunAgentAgentToolInputRunAgentsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType>;
1881
1800
  /** @internal */
1882
- export declare const StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsType>;
1801
+ export declare const StreamRunAgentAgentToolInputRunAgentsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType>;
1883
1802
  /**
1884
1803
  * @internal
1885
1804
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1886
1805
  */
1887
- export declare namespace StreamRunAgentRunAgentRequestToolAgentsType$ {
1888
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema` instead. */
1806
+ export declare namespace StreamRunAgentAgentToolInputRunAgentsType$ {
1807
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
1889
1808
  const inboundSchema: z.ZodNativeEnum<{
1890
1809
  readonly WebScraper: "web_scraper";
1891
1810
  }>;
1892
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema` instead. */
1811
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
1893
1812
  const outboundSchema: z.ZodNativeEnum<{
1894
1813
  readonly WebScraper: "web_scraper";
1895
1814
  }>;
1896
1815
  }
1897
1816
  /** @internal */
1898
- export declare const RunAgentRequestToolWebScraperTool$inboundSchema: z.ZodType<RunAgentRequestToolWebScraperTool, z.ZodTypeDef, unknown>;
1817
+ export declare const StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunWebScraperTool, z.ZodTypeDef, unknown>;
1899
1818
  /** @internal */
1900
- export type RunAgentRequestToolWebScraperTool$Outbound = {
1819
+ export type StreamRunAgentAgentToolInputRunWebScraperTool$Outbound = {
1901
1820
  type: string;
1902
1821
  requires_approval: boolean;
1903
1822
  };
1904
1823
  /** @internal */
1905
- export declare const RunAgentRequestToolWebScraperTool$outboundSchema: z.ZodType<RunAgentRequestToolWebScraperTool$Outbound, z.ZodTypeDef, RunAgentRequestToolWebScraperTool>;
1824
+ export declare const StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunWebScraperTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunWebScraperTool>;
1906
1825
  /**
1907
1826
  * @internal
1908
1827
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1909
1828
  */
1910
- export declare namespace RunAgentRequestToolWebScraperTool$ {
1911
- /** @deprecated use `RunAgentRequestToolWebScraperTool$inboundSchema` instead. */
1912
- const inboundSchema: z.ZodType<RunAgentRequestToolWebScraperTool, z.ZodTypeDef, unknown>;
1913
- /** @deprecated use `RunAgentRequestToolWebScraperTool$outboundSchema` instead. */
1914
- const outboundSchema: z.ZodType<RunAgentRequestToolWebScraperTool$Outbound, z.ZodTypeDef, RunAgentRequestToolWebScraperTool>;
1915
- /** @deprecated use `RunAgentRequestToolWebScraperTool$Outbound` instead. */
1916
- type Outbound = RunAgentRequestToolWebScraperTool$Outbound;
1829
+ export declare namespace StreamRunAgentAgentToolInputRunWebScraperTool$ {
1830
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema` instead. */
1831
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunWebScraperTool, z.ZodTypeDef, unknown>;
1832
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema` instead. */
1833
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunWebScraperTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunWebScraperTool>;
1834
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$Outbound` instead. */
1835
+ type Outbound = StreamRunAgentAgentToolInputRunWebScraperTool$Outbound;
1917
1836
  }
1918
- export declare function runAgentRequestToolWebScraperToolToJSON(runAgentRequestToolWebScraperTool: RunAgentRequestToolWebScraperTool): string;
1919
- export declare function runAgentRequestToolWebScraperToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolWebScraperTool, SDKValidationError>;
1837
+ export declare function streamRunAgentAgentToolInputRunWebScraperToolToJSON(streamRunAgentAgentToolInputRunWebScraperTool: StreamRunAgentAgentToolInputRunWebScraperTool): string;
1838
+ export declare function streamRunAgentAgentToolInputRunWebScraperToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunWebScraperTool, SDKValidationError>;
1920
1839
  /** @internal */
1921
- export declare const StreamRunAgentRunAgentRequestToolType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolType>;
1840
+ export declare const StreamRunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunType>;
1922
1841
  /** @internal */
1923
- export declare const StreamRunAgentRunAgentRequestToolType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolType>;
1842
+ export declare const StreamRunAgentAgentToolInputRunType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunType>;
1924
1843
  /**
1925
1844
  * @internal
1926
1845
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1927
1846
  */
1928
- export declare namespace StreamRunAgentRunAgentRequestToolType$ {
1929
- /** @deprecated use `StreamRunAgentRunAgentRequestToolType$inboundSchema` instead. */
1847
+ export declare namespace StreamRunAgentAgentToolInputRunType$ {
1848
+ /** @deprecated use `StreamRunAgentAgentToolInputRunType$inboundSchema` instead. */
1930
1849
  const inboundSchema: z.ZodNativeEnum<{
1931
1850
  readonly GoogleSearch: "google_search";
1932
1851
  }>;
1933
- /** @deprecated use `StreamRunAgentRunAgentRequestToolType$outboundSchema` instead. */
1852
+ /** @deprecated use `StreamRunAgentAgentToolInputRunType$outboundSchema` instead. */
1934
1853
  const outboundSchema: z.ZodNativeEnum<{
1935
1854
  readonly GoogleSearch: "google_search";
1936
1855
  }>;
1937
1856
  }
1938
1857
  /** @internal */
1939
- export declare const RunAgentRequestToolGoogleSearchTool$inboundSchema: z.ZodType<RunAgentRequestToolGoogleSearchTool, z.ZodTypeDef, unknown>;
1858
+ export declare const StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunGoogleSearchTool, z.ZodTypeDef, unknown>;
1940
1859
  /** @internal */
1941
- export type RunAgentRequestToolGoogleSearchTool$Outbound = {
1860
+ export type StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound = {
1942
1861
  type: string;
1943
1862
  requires_approval: boolean;
1944
1863
  };
1945
1864
  /** @internal */
1946
- export declare const RunAgentRequestToolGoogleSearchTool$outboundSchema: z.ZodType<RunAgentRequestToolGoogleSearchTool$Outbound, z.ZodTypeDef, RunAgentRequestToolGoogleSearchTool>;
1865
+ export declare const StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunGoogleSearchTool>;
1947
1866
  /**
1948
1867
  * @internal
1949
1868
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1950
1869
  */
1951
- export declare namespace RunAgentRequestToolGoogleSearchTool$ {
1952
- /** @deprecated use `RunAgentRequestToolGoogleSearchTool$inboundSchema` instead. */
1953
- const inboundSchema: z.ZodType<RunAgentRequestToolGoogleSearchTool, z.ZodTypeDef, unknown>;
1954
- /** @deprecated use `RunAgentRequestToolGoogleSearchTool$outboundSchema` instead. */
1955
- const outboundSchema: z.ZodType<RunAgentRequestToolGoogleSearchTool$Outbound, z.ZodTypeDef, RunAgentRequestToolGoogleSearchTool>;
1956
- /** @deprecated use `RunAgentRequestToolGoogleSearchTool$Outbound` instead. */
1957
- type Outbound = RunAgentRequestToolGoogleSearchTool$Outbound;
1870
+ export declare namespace StreamRunAgentAgentToolInputRunGoogleSearchTool$ {
1871
+ /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
1872
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunGoogleSearchTool, z.ZodTypeDef, unknown>;
1873
+ /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
1874
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRunGoogleSearchTool>;
1875
+ /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound` instead. */
1876
+ type Outbound = StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound;
1958
1877
  }
1959
- export declare function runAgentRequestToolGoogleSearchToolToJSON(runAgentRequestToolGoogleSearchTool: RunAgentRequestToolGoogleSearchTool): string;
1960
- export declare function runAgentRequestToolGoogleSearchToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolGoogleSearchTool, SDKValidationError>;
1878
+ export declare function streamRunAgentAgentToolInputRunGoogleSearchToolToJSON(streamRunAgentAgentToolInputRunGoogleSearchTool: StreamRunAgentAgentToolInputRunGoogleSearchTool): string;
1879
+ export declare function streamRunAgentAgentToolInputRunGoogleSearchToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRunGoogleSearchTool, SDKValidationError>;
1961
1880
  /** @internal */
1962
- export declare const StreamRunAgentRunAgentRequestTool$inboundSchema: z.ZodType<StreamRunAgentRunAgentRequestTool, z.ZodTypeDef, unknown>;
1881
+ export declare const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRun, z.ZodTypeDef, unknown>;
1963
1882
  /** @internal */
1964
- export type StreamRunAgentRunAgentRequestTool$Outbound = RunAgentRequestToolHTTPTool$Outbound | RunAgentRequestToolCodeExecutionTool$Outbound | RunAgentRequestToolFunctionTool$Outbound | RunAgentRequestToolGoogleSearchTool$Outbound | RunAgentRequestToolWebScraperTool$Outbound | RunAgentRequestToolCallSubAgentTool$Outbound | RunAgentRequestToolRetrieveAgentsTool$Outbound | RunAgentRequestToolQueryMemoryStoreTool$Outbound | RunAgentRequestToolWriteMemoryStoreTool$Outbound | RunAgentRequestToolRetrieveMemoryStoresTool$Outbound | RunAgentRequestToolDeleteMemoryStoreTool$Outbound | RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound | RunAgentRequestToolQueryKnowledgeBaseTool$Outbound | RunAgentRequestToolCurrentDateTool$Outbound;
1883
+ export type StreamRunAgentAgentToolInputRun$Outbound = AgentToolInputRunHTTPToolRun$Outbound | AgentToolInputRunCodeToolRun$Outbound | AgentToolInputRunFunctionToolRun$Outbound | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
1965
1884
  /** @internal */
1966
- export declare const StreamRunAgentRunAgentRequestTool$outboundSchema: z.ZodType<StreamRunAgentRunAgentRequestTool$Outbound, z.ZodTypeDef, StreamRunAgentRunAgentRequestTool>;
1885
+ export declare const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRun$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRun>;
1967
1886
  /**
1968
1887
  * @internal
1969
1888
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1970
1889
  */
1971
- export declare namespace StreamRunAgentRunAgentRequestTool$ {
1972
- /** @deprecated use `StreamRunAgentRunAgentRequestTool$inboundSchema` instead. */
1973
- const inboundSchema: z.ZodType<StreamRunAgentRunAgentRequestTool, z.ZodTypeDef, unknown>;
1974
- /** @deprecated use `StreamRunAgentRunAgentRequestTool$outboundSchema` instead. */
1975
- const outboundSchema: z.ZodType<StreamRunAgentRunAgentRequestTool$Outbound, z.ZodTypeDef, StreamRunAgentRunAgentRequestTool>;
1976
- /** @deprecated use `StreamRunAgentRunAgentRequestTool$Outbound` instead. */
1977
- type Outbound = StreamRunAgentRunAgentRequestTool$Outbound;
1890
+ export declare namespace StreamRunAgentAgentToolInputRun$ {
1891
+ /** @deprecated use `StreamRunAgentAgentToolInputRun$inboundSchema` instead. */
1892
+ const inboundSchema: z.ZodType<StreamRunAgentAgentToolInputRun, z.ZodTypeDef, unknown>;
1893
+ /** @deprecated use `StreamRunAgentAgentToolInputRun$outboundSchema` instead. */
1894
+ const outboundSchema: z.ZodType<StreamRunAgentAgentToolInputRun$Outbound, z.ZodTypeDef, StreamRunAgentAgentToolInputRun>;
1895
+ /** @deprecated use `StreamRunAgentAgentToolInputRun$Outbound` instead. */
1896
+ type Outbound = StreamRunAgentAgentToolInputRun$Outbound;
1978
1897
  }
1979
- export declare function streamRunAgentRunAgentRequestToolToJSON(streamRunAgentRunAgentRequestTool: StreamRunAgentRunAgentRequestTool): string;
1980
- export declare function streamRunAgentRunAgentRequestToolFromJSON(jsonString: string): SafeParseResult<StreamRunAgentRunAgentRequestTool, SDKValidationError>;
1898
+ export declare function streamRunAgentAgentToolInputRunToJSON(streamRunAgentAgentToolInputRun: StreamRunAgentAgentToolInputRun): string;
1899
+ export declare function streamRunAgentAgentToolInputRunFromJSON(jsonString: string): SafeParseResult<StreamRunAgentAgentToolInputRun, SDKValidationError>;
1981
1900
  /** @internal */
1982
1901
  export declare const StreamRunAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentToolApprovalRequired>;
1983
1902
  /** @internal */
@@ -2004,7 +1923,7 @@ export declare namespace StreamRunAgentToolApprovalRequired$ {
2004
1923
  export declare const StreamRunAgentSettings$inboundSchema: z.ZodType<StreamRunAgentSettings, z.ZodTypeDef, unknown>;
2005
1924
  /** @internal */
2006
1925
  export type StreamRunAgentSettings$Outbound = {
2007
- tools: Array<RunAgentRequestToolHTTPTool$Outbound | RunAgentRequestToolCodeExecutionTool$Outbound | RunAgentRequestToolFunctionTool$Outbound | RunAgentRequestToolGoogleSearchTool$Outbound | RunAgentRequestToolWebScraperTool$Outbound | RunAgentRequestToolCallSubAgentTool$Outbound | RunAgentRequestToolRetrieveAgentsTool$Outbound | RunAgentRequestToolQueryMemoryStoreTool$Outbound | RunAgentRequestToolWriteMemoryStoreTool$Outbound | RunAgentRequestToolRetrieveMemoryStoresTool$Outbound | RunAgentRequestToolDeleteMemoryStoreTool$Outbound | RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound | RunAgentRequestToolQueryKnowledgeBaseTool$Outbound | RunAgentRequestToolCurrentDateTool$Outbound>;
1926
+ tools: Array<AgentToolInputRunHTTPToolRun$Outbound | AgentToolInputRunCodeToolRun$Outbound | AgentToolInputRunFunctionToolRun$Outbound | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound>;
2008
1927
  tool_approval_required: string;
2009
1928
  max_iterations: number;
2010
1929
  max_execution_time: number;
@@ -2030,7 +1949,7 @@ export declare const StreamRunAgentRequestBody$inboundSchema: z.ZodType<StreamRu
2030
1949
  /** @internal */
2031
1950
  export type StreamRunAgentRequestBody$Outbound = {
2032
1951
  key: string;
2033
- taskId?: string | undefined;
1952
+ task_id?: string | undefined;
2034
1953
  model: string;
2035
1954
  fallback_models?: Array<string> | undefined;
2036
1955
  role: string;