@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
@@ -52,7 +52,7 @@ export type StreamRunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
52
52
  /**
53
53
  * Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
54
54
  */
55
- export type PublicMessagePartToolResultPart = {
55
+ export type StreamRunAgentPublicMessagePartToolResultPart = {
56
56
  kind: StreamRunAgentPublicMessagePartAgentsRequestKind;
57
57
  toolCallId: string;
58
58
  result?: any | undefined;
@@ -69,7 +69,7 @@ export type StreamRunAgentPublicMessagePartAgentsKind = ClosedEnum<
69
69
  /**
70
70
  * File in URI format. Check in the model's documentation for the supported mime types for the URI format
71
71
  */
72
- export type FileFileInURIFormat = {
72
+ export type StreamRunAgentFileFileInURIFormat = {
73
73
  /**
74
74
  * URL for the File content
75
75
  */
@@ -87,7 +87,7 @@ export type FileFileInURIFormat = {
87
87
  /**
88
88
  * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
89
89
  */
90
- export type FileBinaryFormat = {
90
+ export type StreamRunAgentFileBinaryFormat = {
91
91
  /**
92
92
  * base64 encoded content of the file
93
93
  */
@@ -103,15 +103,15 @@ export type FileBinaryFormat = {
103
103
  };
104
104
 
105
105
  export type StreamRunAgentPublicMessagePartFile =
106
- | FileBinaryFormat
107
- | FileFileInURIFormat;
106
+ | StreamRunAgentFileBinaryFormat
107
+ | StreamRunAgentFileFileInURIFormat;
108
108
 
109
109
  /**
110
110
  * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
111
111
  */
112
- export type PublicMessagePartFilePart = {
112
+ export type StreamRunAgentPublicMessagePartFilePart = {
113
113
  kind: StreamRunAgentPublicMessagePartAgentsKind;
114
- file: FileBinaryFormat | FileFileInURIFormat;
114
+ file: StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
115
115
  metadata?: { [k: string]: any } | undefined;
116
116
  };
117
117
 
@@ -125,7 +125,7 @@ export type StreamRunAgentPublicMessagePartKind = ClosedEnum<
125
125
  /**
126
126
  * Text content part. Use this to send text messages to the agent.
127
127
  */
128
- export type PublicMessagePartTextPart = {
128
+ export type StreamRunAgentPublicMessagePartTextPart = {
129
129
  kind: StreamRunAgentPublicMessagePartKind;
130
130
  text: string;
131
131
  };
@@ -134,9 +134,9 @@ export type PublicMessagePartTextPart = {
134
134
  * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
135
135
  */
136
136
  export type StreamRunAgentPublicMessagePart =
137
- | PublicMessagePartTextPart
138
- | PublicMessagePartFilePart
139
- | PublicMessagePartToolResultPart;
137
+ | StreamRunAgentPublicMessagePartTextPart
138
+ | StreamRunAgentPublicMessagePartFilePart
139
+ | StreamRunAgentPublicMessagePartToolResultPart;
140
140
 
141
141
  /**
142
142
  * The A2A format message containing the task for the agent to perform.
@@ -154,9 +154,9 @@ export type StreamRunAgentMessage = {
154
154
  * A2A message parts (text, file, or tool_result only)
155
155
  */
156
156
  parts: Array<
157
- | PublicMessagePartTextPart
158
- | PublicMessagePartFilePart
159
- | PublicMessagePartToolResultPart
157
+ | StreamRunAgentPublicMessagePartTextPart
158
+ | StreamRunAgentPublicMessagePartFilePart
159
+ | StreamRunAgentPublicMessagePartToolResultPart
160
160
  >;
161
161
  };
162
162
 
@@ -214,49 +214,11 @@ export type StreamRunAgentMemory = {
214
214
  entityId: string;
215
215
  };
216
216
 
217
- export const StreamRunAgentKnowledgeBaseConfigurationAgentsType = {
218
- Query: "query",
219
- } as const;
220
- export type StreamRunAgentKnowledgeBaseConfigurationAgentsType = ClosedEnum<
221
- typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType
222
- >;
223
-
224
- /**
225
- * Defines the configuration settings for a static query.
226
- */
227
- export type KnowledgeBaseConfigurationKnowledgeBaseStaticQuery = {
228
- type: StreamRunAgentKnowledgeBaseConfigurationAgentsType;
229
- query: string;
230
- };
231
-
232
- export const StreamRunAgentKnowledgeBaseConfigurationType = {
233
- LastUserMessage: "last_user_message",
234
- } as const;
235
- export type StreamRunAgentKnowledgeBaseConfigurationType = ClosedEnum<
236
- typeof StreamRunAgentKnowledgeBaseConfigurationType
237
- >;
238
-
239
- /**
240
- * Defines the configuration settings for a last user message type retrieval.
241
- */
242
- export type KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage = {
243
- type: StreamRunAgentKnowledgeBaseConfigurationType;
244
- };
245
-
246
- /**
247
- * Defines the configuration settings which can either be for a user message or a text entry.
248
- */
249
- export type StreamRunAgentKnowledgeBaseConfiguration =
250
- | KnowledgeBaseConfigurationKnowledgeBaseStaticQuery
251
- | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
252
-
253
217
  export type StreamRunAgentKnowledgeBases = {
254
218
  /**
255
- * Defines the configuration settings which can either be for a user message or a text entry.
219
+ * Unique identifier of the knowledge base to search
256
220
  */
257
- configuration:
258
- | KnowledgeBaseConfigurationKnowledgeBaseStaticQuery
259
- | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage;
221
+ knowledgeId: string;
260
222
  };
261
223
 
262
224
  export type StreamRunAgentTeamOfAgents = {
@@ -270,58 +232,73 @@ export type StreamRunAgentTeamOfAgents = {
270
232
  role?: string | undefined;
271
233
  };
272
234
 
273
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type =
235
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
274
236
  {
275
237
  Function: "function",
276
238
  } as const;
277
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type =
239
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
278
240
  ClosedEnum<
279
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
241
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
280
242
  >;
281
243
 
282
- export type StreamRunAgentRunAgentRequestToolFunction = {
244
+ export type StreamRunAgentAgentToolInputRunFunction = {
245
+ /**
246
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
247
+ */
283
248
  name: string;
249
+ /**
250
+ * A description of what the function does, used by the model to choose when and how to call the function.
251
+ */
284
252
  description?: string | undefined;
253
+ /**
254
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
255
+ */
285
256
  strict?: boolean | undefined;
257
+ /**
258
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
259
+ */
286
260
  parameters?: { [k: string]: any } | undefined;
287
261
  };
288
262
 
289
263
  /**
290
- * Custom function tool with configurable parameters
264
+ * Function tool with inline definition for on-the-fly creation in run endpoint
291
265
  */
292
- export type RunAgentRequestToolFunctionTool = {
266
+ export type AgentToolInputRunFunctionToolRun = {
293
267
  type:
294
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type;
295
- id?: string | undefined;
268
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
269
+ /**
270
+ * Unique key of the tool as it will be displayed in the UI
271
+ */
296
272
  key: string;
273
+ id?: string | undefined;
297
274
  displayName?: string | undefined;
298
275
  description?: string | undefined;
276
+ function: StreamRunAgentAgentToolInputRunFunction;
299
277
  requiresApproval?: boolean | undefined;
300
- function: StreamRunAgentRunAgentRequestToolFunction;
301
278
  };
302
279
 
303
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
280
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
304
281
  {
305
282
  Code: "code",
306
283
  } as const;
307
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
284
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
308
285
  ClosedEnum<
309
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
286
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
310
287
  >;
311
288
 
312
- export const RunAgentRequestToolLanguage = {
289
+ export const AgentToolInputRunLanguage = {
313
290
  Python: "python",
314
291
  } as const;
315
- export type RunAgentRequestToolLanguage = ClosedEnum<
316
- typeof RunAgentRequestToolLanguage
292
+ export type AgentToolInputRunLanguage = ClosedEnum<
293
+ typeof AgentToolInputRunLanguage
317
294
  >;
318
295
 
319
- export type RunAgentRequestToolCodeTool = {
296
+ export type AgentToolInputRunCodeTool = {
320
297
  /**
321
298
  * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
322
299
  */
323
300
  parameters?: { [k: string]: any } | undefined;
324
- language: RunAgentRequestToolLanguage;
301
+ language: AgentToolInputRunLanguage;
325
302
  /**
326
303
  * The code to execute.
327
304
  */
@@ -329,41 +306,38 @@ export type RunAgentRequestToolCodeTool = {
329
306
  };
330
307
 
331
308
  /**
332
- * Executes code in a secure sandbox environment
309
+ * Code execution tool with inline definition for on-the-fly creation in run endpoint
333
310
  */
334
- export type RunAgentRequestToolCodeExecutionTool = {
311
+ export type AgentToolInputRunCodeToolRun = {
312
+ type:
313
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
335
314
  /**
336
315
  * Unique key of the tool as it will be displayed in the UI
337
316
  */
338
317
  key: string;
339
- /**
340
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
341
- */
342
- displayName: string;
318
+ id?: string | undefined;
319
+ displayName?: string | undefined;
343
320
  /**
344
321
  * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
345
322
  */
346
323
  description: string;
347
- type:
348
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
349
- codeTool: RunAgentRequestToolCodeTool;
350
- id?: string | undefined;
324
+ codeTool: AgentToolInputRunCodeTool;
351
325
  requiresApproval?: boolean | undefined;
352
326
  };
353
327
 
354
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
328
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
355
329
  {
356
330
  Http: "http",
357
331
  } as const;
358
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
332
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
359
333
  ClosedEnum<
360
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
334
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
361
335
  >;
362
336
 
363
337
  /**
364
338
  * The HTTP method to use.
365
339
  */
366
- export const RunAgentRequestToolMethod = {
340
+ export const AgentToolInputRunMethod = {
367
341
  Get: "GET",
368
342
  Post: "POST",
369
343
  Put: "PUT",
@@ -372,14 +346,14 @@ export const RunAgentRequestToolMethod = {
372
346
  /**
373
347
  * The HTTP method to use.
374
348
  */
375
- export type RunAgentRequestToolMethod = ClosedEnum<
376
- typeof RunAgentRequestToolMethod
349
+ export type AgentToolInputRunMethod = ClosedEnum<
350
+ typeof AgentToolInputRunMethod
377
351
  >;
378
352
 
379
353
  /**
380
354
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
381
355
  */
382
- export type RunAgentRequestToolBlueprint = {
356
+ export type AgentToolInputRunBlueprint = {
383
357
  /**
384
358
  * The URL to send the request to.
385
359
  */
@@ -387,7 +361,7 @@ export type RunAgentRequestToolBlueprint = {
387
361
  /**
388
362
  * The HTTP method to use.
389
363
  */
390
- method: RunAgentRequestToolMethod;
364
+ method: AgentToolInputRunMethod;
391
365
  /**
392
366
  * The headers to send with the request.
393
367
  */
@@ -401,7 +375,7 @@ export type RunAgentRequestToolBlueprint = {
401
375
  /**
402
376
  * The type of the argument.
403
377
  */
404
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType =
378
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
405
379
  {
406
380
  String: "string",
407
381
  Number: "number",
@@ -410,22 +384,22 @@ export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTo
410
384
  /**
411
385
  * The type of the argument.
412
386
  */
413
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType =
387
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
414
388
  ClosedEnum<
415
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
389
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
416
390
  >;
417
391
 
418
392
  /**
419
393
  * The default value of the argument.
420
394
  */
421
- export type RunAgentRequestToolDefaultValue = string | number | boolean;
395
+ export type AgentToolInputRunDefaultValue = string | number | boolean;
422
396
 
423
- export type RunAgentRequestToolArguments = {
397
+ export type AgentToolInputRunArguments = {
424
398
  /**
425
399
  * The type of the argument.
426
400
  */
427
401
  type:
428
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType;
402
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
429
403
  /**
430
404
  * A description of the argument.
431
405
  */
@@ -440,244 +414,274 @@ export type RunAgentRequestToolArguments = {
440
414
  defaultValue?: string | number | boolean | undefined;
441
415
  };
442
416
 
443
- export type RunAgentRequestToolHttp = {
417
+ export type AgentToolInputRunHttp = {
444
418
  /**
445
419
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
446
420
  */
447
- blueprint: RunAgentRequestToolBlueprint;
421
+ blueprint: AgentToolInputRunBlueprint;
448
422
  /**
449
423
  * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
450
424
  */
451
- arguments?: { [k: string]: RunAgentRequestToolArguments } | undefined;
425
+ arguments?: { [k: string]: AgentToolInputRunArguments } | undefined;
452
426
  };
453
427
 
454
428
  /**
455
- * Makes HTTP requests to external APIs
429
+ * HTTP tool with inline definition for on-the-fly creation in run endpoint
456
430
  */
457
- export type RunAgentRequestToolHTTPTool = {
458
- id?: string | undefined;
431
+ export type AgentToolInputRunHTTPToolRun = {
432
+ type:
433
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
459
434
  /**
460
435
  * Unique key of the tool as it will be displayed in the UI
461
436
  */
462
437
  key: string;
463
- /**
464
- * 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.
465
- */
466
- displayName: string;
438
+ id?: string | undefined;
439
+ displayName?: string | undefined;
467
440
  /**
468
441
  * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
469
442
  */
470
443
  description: string;
471
- type:
472
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
473
- http: RunAgentRequestToolHttp;
444
+ http: AgentToolInputRunHttp;
474
445
  requiresApproval?: boolean | undefined;
475
446
  };
476
447
 
477
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
448
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
478
449
  {
479
450
  CurrentDate: "current_date",
480
451
  } as const;
481
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
452
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
482
453
  ClosedEnum<
483
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
454
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
484
455
  >;
485
456
 
486
457
  /**
487
- * Provides the current date and time
458
+ * Returns the current date and time
488
459
  */
489
- export type RunAgentRequestToolCurrentDateTool = {
460
+ export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
490
461
  type:
491
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type;
462
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
463
+ /**
464
+ * Whether this tool requires approval before execution
465
+ */
492
466
  requiresApproval?: boolean | undefined;
493
467
  };
494
468
 
495
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
469
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
496
470
  {
497
471
  QueryKnowledgeBase: "query_knowledge_base",
498
472
  } as const;
499
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
473
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
500
474
  ClosedEnum<
501
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
475
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
502
476
  >;
503
477
 
504
478
  /**
505
479
  * Queries knowledge bases for information
506
480
  */
507
- export type RunAgentRequestToolQueryKnowledgeBaseTool = {
481
+ export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool = {
508
482
  type:
509
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type;
483
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
484
+ /**
485
+ * Whether this tool requires approval before execution
486
+ */
510
487
  requiresApproval?: boolean | undefined;
511
488
  };
512
489
 
513
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
490
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
514
491
  {
515
492
  RetrieveKnowledgeBases: "retrieve_knowledge_bases",
516
493
  } as const;
517
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
494
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
518
495
  ClosedEnum<
519
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
496
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
520
497
  >;
521
498
 
522
499
  /**
523
500
  * Lists available knowledge bases
524
501
  */
525
- export type RunAgentRequestToolRetrieveKnowledgeBasesTool = {
502
+ export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool = {
526
503
  type:
527
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type;
504
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
505
+ /**
506
+ * Whether this tool requires approval before execution
507
+ */
528
508
  requiresApproval?: boolean | undefined;
529
509
  };
530
510
 
531
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
511
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
532
512
  {
533
513
  DeleteMemoryDocument: "delete_memory_document",
534
514
  } as const;
535
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
515
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
536
516
  ClosedEnum<
537
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
517
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
538
518
  >;
539
519
 
540
520
  /**
541
- * Deletes a memory store
521
+ * Deletes documents from memory stores
542
522
  */
543
- export type RunAgentRequestToolDeleteMemoryStoreTool = {
523
+ export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool = {
544
524
  type:
545
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type;
525
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
526
+ /**
527
+ * Whether this tool requires approval before execution
528
+ */
546
529
  requiresApproval?: boolean | undefined;
547
530
  };
548
531
 
549
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type =
532
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
550
533
  {
551
534
  RetrieveMemoryStores: "retrieve_memory_stores",
552
535
  } as const;
553
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type =
536
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type =
554
537
  ClosedEnum<
555
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type
538
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
556
539
  >;
557
540
 
558
541
  /**
559
542
  * Lists available memory stores
560
543
  */
561
- export type RunAgentRequestToolRetrieveMemoryStoresTool = {
544
+ export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool = {
562
545
  type:
563
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type;
546
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type;
547
+ /**
548
+ * Whether this tool requires approval before execution
549
+ */
564
550
  requiresApproval?: boolean | undefined;
565
551
  };
566
552
 
567
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
553
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
568
554
  {
569
555
  WriteMemoryStore: "write_memory_store",
570
556
  } as const;
571
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
557
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
572
558
  ClosedEnum<
573
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
559
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
574
560
  >;
575
561
 
576
562
  /**
577
563
  * Writes information to agent memory stores
578
564
  */
579
- export type RunAgentRequestToolWriteMemoryStoreTool = {
565
+ export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool = {
580
566
  type:
581
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType;
567
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
568
+ /**
569
+ * Whether this tool requires approval before execution
570
+ */
582
571
  requiresApproval?: boolean | undefined;
583
572
  };
584
573
 
585
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType =
574
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
586
575
  {
587
576
  QueryMemoryStore: "query_memory_store",
588
577
  } as const;
589
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType =
578
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
590
579
  ClosedEnum<
591
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
580
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
592
581
  >;
593
582
 
594
583
  /**
595
584
  * Queries agent memory stores for context
596
585
  */
597
- export type RunAgentRequestToolQueryMemoryStoreTool = {
598
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType;
586
+ export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
587
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
588
+ /**
589
+ * Whether this tool requires approval before execution
590
+ */
599
591
  requiresApproval?: boolean | undefined;
600
592
  };
601
593
 
602
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType = {
594
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
603
595
  RetrieveAgents: "retrieve_agents",
604
596
  } as const;
605
- export type StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType =
597
+ export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType =
606
598
  ClosedEnum<
607
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType
599
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
608
600
  >;
609
601
 
610
602
  /**
611
603
  * Retrieves available agents in the system
612
604
  */
613
- export type RunAgentRequestToolRetrieveAgentsTool = {
614
- type: StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType;
605
+ export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool = {
606
+ type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType;
607
+ /**
608
+ * Whether this tool requires approval before execution
609
+ */
615
610
  requiresApproval?: boolean | undefined;
616
611
  };
617
612
 
618
- export const StreamRunAgentRunAgentRequestToolAgentsRequestType = {
613
+ export const StreamRunAgentAgentToolInputRunAgentsRequestType = {
619
614
  CallSubAgent: "call_sub_agent",
620
615
  } as const;
621
- export type StreamRunAgentRunAgentRequestToolAgentsRequestType = ClosedEnum<
622
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestType
616
+ export type StreamRunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
617
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestType
623
618
  >;
624
619
 
625
620
  /**
626
621
  * Delegates tasks to specialized sub-agents
627
622
  */
628
- export type RunAgentRequestToolCallSubAgentTool = {
629
- type: StreamRunAgentRunAgentRequestToolAgentsRequestType;
623
+ export type StreamRunAgentAgentToolInputRunCallSubAgentTool = {
624
+ type: StreamRunAgentAgentToolInputRunAgentsRequestType;
625
+ /**
626
+ * Whether this tool requires approval before execution
627
+ */
630
628
  requiresApproval?: boolean | undefined;
631
629
  };
632
630
 
633
- export const StreamRunAgentRunAgentRequestToolAgentsType = {
631
+ export const StreamRunAgentAgentToolInputRunAgentsType = {
634
632
  WebScraper: "web_scraper",
635
633
  } as const;
636
- export type StreamRunAgentRunAgentRequestToolAgentsType = ClosedEnum<
637
- typeof StreamRunAgentRunAgentRequestToolAgentsType
634
+ export type StreamRunAgentAgentToolInputRunAgentsType = ClosedEnum<
635
+ typeof StreamRunAgentAgentToolInputRunAgentsType
638
636
  >;
639
637
 
640
638
  /**
641
639
  * Scrapes and extracts content from web pages
642
640
  */
643
- export type RunAgentRequestToolWebScraperTool = {
644
- type: StreamRunAgentRunAgentRequestToolAgentsType;
641
+ export type StreamRunAgentAgentToolInputRunWebScraperTool = {
642
+ type: StreamRunAgentAgentToolInputRunAgentsType;
643
+ /**
644
+ * Whether this tool requires approval before execution
645
+ */
645
646
  requiresApproval?: boolean | undefined;
646
647
  };
647
648
 
648
- export const StreamRunAgentRunAgentRequestToolType = {
649
+ export const StreamRunAgentAgentToolInputRunType = {
649
650
  GoogleSearch: "google_search",
650
651
  } as const;
651
- export type StreamRunAgentRunAgentRequestToolType = ClosedEnum<
652
- typeof StreamRunAgentRunAgentRequestToolType
652
+ export type StreamRunAgentAgentToolInputRunType = ClosedEnum<
653
+ typeof StreamRunAgentAgentToolInputRunType
653
654
  >;
654
655
 
655
656
  /**
656
657
  * Performs Google searches to retrieve web content
657
658
  */
658
- export type RunAgentRequestToolGoogleSearchTool = {
659
- type: StreamRunAgentRunAgentRequestToolType;
659
+ export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
660
+ type: StreamRunAgentAgentToolInputRunType;
661
+ /**
662
+ * Whether this tool requires approval before execution
663
+ */
660
664
  requiresApproval?: boolean | undefined;
661
665
  };
662
666
 
663
667
  /**
664
- * Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
668
+ * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (http, code, function) support full inline definitions for on-the-fly creation.
665
669
  */
666
- export type StreamRunAgentRunAgentRequestTool =
667
- | RunAgentRequestToolHTTPTool
668
- | RunAgentRequestToolCodeExecutionTool
669
- | RunAgentRequestToolFunctionTool
670
- | RunAgentRequestToolGoogleSearchTool
671
- | RunAgentRequestToolWebScraperTool
672
- | RunAgentRequestToolCallSubAgentTool
673
- | RunAgentRequestToolRetrieveAgentsTool
674
- | RunAgentRequestToolQueryMemoryStoreTool
675
- | RunAgentRequestToolWriteMemoryStoreTool
676
- | RunAgentRequestToolRetrieveMemoryStoresTool
677
- | RunAgentRequestToolDeleteMemoryStoreTool
678
- | RunAgentRequestToolRetrieveKnowledgeBasesTool
679
- | RunAgentRequestToolQueryKnowledgeBaseTool
680
- | RunAgentRequestToolCurrentDateTool;
670
+ export type StreamRunAgentAgentToolInputRun =
671
+ | AgentToolInputRunHTTPToolRun
672
+ | AgentToolInputRunCodeToolRun
673
+ | AgentToolInputRunFunctionToolRun
674
+ | StreamRunAgentAgentToolInputRunGoogleSearchTool
675
+ | StreamRunAgentAgentToolInputRunWebScraperTool
676
+ | StreamRunAgentAgentToolInputRunCallSubAgentTool
677
+ | StreamRunAgentAgentToolInputRunRetrieveAgentsTool
678
+ | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
679
+ | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
680
+ | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
681
+ | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
682
+ | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
683
+ | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
684
+ | StreamRunAgentAgentToolInputRunCurrentDateTool;
681
685
 
682
686
  /**
683
687
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
@@ -699,20 +703,20 @@ export type StreamRunAgentSettings = {
699
703
  * Tools available to the agent
700
704
  */
701
705
  tools: Array<
702
- | RunAgentRequestToolHTTPTool
703
- | RunAgentRequestToolCodeExecutionTool
704
- | RunAgentRequestToolFunctionTool
705
- | RunAgentRequestToolGoogleSearchTool
706
- | RunAgentRequestToolWebScraperTool
707
- | RunAgentRequestToolCallSubAgentTool
708
- | RunAgentRequestToolRetrieveAgentsTool
709
- | RunAgentRequestToolQueryMemoryStoreTool
710
- | RunAgentRequestToolWriteMemoryStoreTool
711
- | RunAgentRequestToolRetrieveMemoryStoresTool
712
- | RunAgentRequestToolDeleteMemoryStoreTool
713
- | RunAgentRequestToolRetrieveKnowledgeBasesTool
714
- | RunAgentRequestToolQueryKnowledgeBaseTool
715
- | RunAgentRequestToolCurrentDateTool
706
+ | AgentToolInputRunHTTPToolRun
707
+ | AgentToolInputRunCodeToolRun
708
+ | AgentToolInputRunFunctionToolRun
709
+ | StreamRunAgentAgentToolInputRunGoogleSearchTool
710
+ | StreamRunAgentAgentToolInputRunWebScraperTool
711
+ | StreamRunAgentAgentToolInputRunCallSubAgentTool
712
+ | StreamRunAgentAgentToolInputRunRetrieveAgentsTool
713
+ | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
714
+ | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
715
+ | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
716
+ | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
717
+ | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
718
+ | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
719
+ | StreamRunAgentAgentToolInputRunCurrentDateTool
716
720
  >;
717
721
  /**
718
722
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
@@ -789,6 +793,9 @@ export type StreamRunAgentRequestBody = {
789
793
  * The list of keys of the memory stores that are accessible to the agent.
790
794
  */
791
795
  memoryStores?: Array<string> | undefined;
796
+ /**
797
+ * Knowledge base configurations for the agent to access
798
+ */
792
799
  knowledgeBases?: Array<StreamRunAgentKnowledgeBases> | undefined;
793
800
  /**
794
801
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
@@ -935,23 +942,24 @@ export namespace StreamRunAgentPublicMessagePartAgentsRequestKind$ {
935
942
  }
936
943
 
937
944
  /** @internal */
938
- export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
939
- PublicMessagePartToolResultPart,
940
- z.ZodTypeDef,
941
- unknown
942
- > = z.object({
943
- kind: StreamRunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
944
- tool_call_id: z.string(),
945
- result: z.any().optional(),
946
- metadata: z.record(z.any()).optional(),
947
- }).transform((v) => {
948
- return remap$(v, {
949
- "tool_call_id": "toolCallId",
945
+ export const StreamRunAgentPublicMessagePartToolResultPart$inboundSchema:
946
+ z.ZodType<
947
+ StreamRunAgentPublicMessagePartToolResultPart,
948
+ z.ZodTypeDef,
949
+ unknown
950
+ > = z.object({
951
+ kind: StreamRunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
952
+ tool_call_id: z.string(),
953
+ result: z.any().optional(),
954
+ metadata: z.record(z.any()).optional(),
955
+ }).transform((v) => {
956
+ return remap$(v, {
957
+ "tool_call_id": "toolCallId",
958
+ });
950
959
  });
951
- });
952
960
 
953
961
  /** @internal */
954
- export type PublicMessagePartToolResultPart$Outbound = {
962
+ export type StreamRunAgentPublicMessagePartToolResultPart$Outbound = {
955
963
  kind: string;
956
964
  tool_call_id: string;
957
965
  result?: any | undefined;
@@ -959,51 +967,61 @@ export type PublicMessagePartToolResultPart$Outbound = {
959
967
  };
960
968
 
961
969
  /** @internal */
962
- export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
963
- PublicMessagePartToolResultPart$Outbound,
964
- z.ZodTypeDef,
965
- PublicMessagePartToolResultPart
966
- > = z.object({
967
- kind: StreamRunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
968
- toolCallId: z.string(),
969
- result: z.any().optional(),
970
- metadata: z.record(z.any()).optional(),
971
- }).transform((v) => {
972
- return remap$(v, {
973
- toolCallId: "tool_call_id",
970
+ export const StreamRunAgentPublicMessagePartToolResultPart$outboundSchema:
971
+ z.ZodType<
972
+ StreamRunAgentPublicMessagePartToolResultPart$Outbound,
973
+ z.ZodTypeDef,
974
+ StreamRunAgentPublicMessagePartToolResultPart
975
+ > = z.object({
976
+ kind: StreamRunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
977
+ toolCallId: z.string(),
978
+ result: z.any().optional(),
979
+ metadata: z.record(z.any()).optional(),
980
+ }).transform((v) => {
981
+ return remap$(v, {
982
+ toolCallId: "tool_call_id",
983
+ });
974
984
  });
975
- });
976
985
 
977
986
  /**
978
987
  * @internal
979
988
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
980
989
  */
981
- export namespace PublicMessagePartToolResultPart$ {
982
- /** @deprecated use `PublicMessagePartToolResultPart$inboundSchema` instead. */
983
- export const inboundSchema = PublicMessagePartToolResultPart$inboundSchema;
984
- /** @deprecated use `PublicMessagePartToolResultPart$outboundSchema` instead. */
985
- export const outboundSchema = PublicMessagePartToolResultPart$outboundSchema;
986
- /** @deprecated use `PublicMessagePartToolResultPart$Outbound` instead. */
987
- export type Outbound = PublicMessagePartToolResultPart$Outbound;
990
+ export namespace StreamRunAgentPublicMessagePartToolResultPart$ {
991
+ /** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$inboundSchema` instead. */
992
+ export const inboundSchema =
993
+ StreamRunAgentPublicMessagePartToolResultPart$inboundSchema;
994
+ /** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$outboundSchema` instead. */
995
+ export const outboundSchema =
996
+ StreamRunAgentPublicMessagePartToolResultPart$outboundSchema;
997
+ /** @deprecated use `StreamRunAgentPublicMessagePartToolResultPart$Outbound` instead. */
998
+ export type Outbound = StreamRunAgentPublicMessagePartToolResultPart$Outbound;
988
999
  }
989
1000
 
990
- export function publicMessagePartToolResultPartToJSON(
991
- publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
1001
+ export function streamRunAgentPublicMessagePartToolResultPartToJSON(
1002
+ streamRunAgentPublicMessagePartToolResultPart:
1003
+ StreamRunAgentPublicMessagePartToolResultPart,
992
1004
  ): string {
993
1005
  return JSON.stringify(
994
- PublicMessagePartToolResultPart$outboundSchema.parse(
995
- publicMessagePartToolResultPart,
1006
+ StreamRunAgentPublicMessagePartToolResultPart$outboundSchema.parse(
1007
+ streamRunAgentPublicMessagePartToolResultPart,
996
1008
  ),
997
1009
  );
998
1010
  }
999
1011
 
1000
- export function publicMessagePartToolResultPartFromJSON(
1012
+ export function streamRunAgentPublicMessagePartToolResultPartFromJSON(
1001
1013
  jsonString: string,
1002
- ): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
1014
+ ): SafeParseResult<
1015
+ StreamRunAgentPublicMessagePartToolResultPart,
1016
+ SDKValidationError
1017
+ > {
1003
1018
  return safeParse(
1004
1019
  jsonString,
1005
- (x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
1006
- `Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
1020
+ (x) =>
1021
+ StreamRunAgentPublicMessagePartToolResultPart$inboundSchema.parse(
1022
+ JSON.parse(x),
1023
+ ),
1024
+ `Failed to parse 'StreamRunAgentPublicMessagePartToolResultPart' from JSON`,
1007
1025
  );
1008
1026
  }
1009
1027
 
@@ -1031,8 +1049,8 @@ export namespace StreamRunAgentPublicMessagePartAgentsKind$ {
1031
1049
  }
1032
1050
 
1033
1051
  /** @internal */
1034
- export const FileFileInURIFormat$inboundSchema: z.ZodType<
1035
- FileFileInURIFormat,
1052
+ export const StreamRunAgentFileFileInURIFormat$inboundSchema: z.ZodType<
1053
+ StreamRunAgentFileFileInURIFormat,
1036
1054
  z.ZodTypeDef,
1037
1055
  unknown
1038
1056
  > = z.object({
@@ -1042,17 +1060,17 @@ export const FileFileInURIFormat$inboundSchema: z.ZodType<
1042
1060
  });
1043
1061
 
1044
1062
  /** @internal */
1045
- export type FileFileInURIFormat$Outbound = {
1063
+ export type StreamRunAgentFileFileInURIFormat$Outbound = {
1046
1064
  uri: string;
1047
1065
  mimeType?: string | undefined;
1048
1066
  name?: string | undefined;
1049
1067
  };
1050
1068
 
1051
1069
  /** @internal */
1052
- export const FileFileInURIFormat$outboundSchema: z.ZodType<
1053
- FileFileInURIFormat$Outbound,
1070
+ export const StreamRunAgentFileFileInURIFormat$outboundSchema: z.ZodType<
1071
+ StreamRunAgentFileFileInURIFormat$Outbound,
1054
1072
  z.ZodTypeDef,
1055
- FileFileInURIFormat
1073
+ StreamRunAgentFileFileInURIFormat
1056
1074
  > = z.object({
1057
1075
  uri: z.string(),
1058
1076
  mimeType: z.string().optional(),
@@ -1063,36 +1081,39 @@ export const FileFileInURIFormat$outboundSchema: z.ZodType<
1063
1081
  * @internal
1064
1082
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1065
1083
  */
1066
- export namespace FileFileInURIFormat$ {
1067
- /** @deprecated use `FileFileInURIFormat$inboundSchema` instead. */
1068
- export const inboundSchema = FileFileInURIFormat$inboundSchema;
1069
- /** @deprecated use `FileFileInURIFormat$outboundSchema` instead. */
1070
- export const outboundSchema = FileFileInURIFormat$outboundSchema;
1071
- /** @deprecated use `FileFileInURIFormat$Outbound` instead. */
1072
- export type Outbound = FileFileInURIFormat$Outbound;
1084
+ export namespace StreamRunAgentFileFileInURIFormat$ {
1085
+ /** @deprecated use `StreamRunAgentFileFileInURIFormat$inboundSchema` instead. */
1086
+ export const inboundSchema = StreamRunAgentFileFileInURIFormat$inboundSchema;
1087
+ /** @deprecated use `StreamRunAgentFileFileInURIFormat$outboundSchema` instead. */
1088
+ export const outboundSchema =
1089
+ StreamRunAgentFileFileInURIFormat$outboundSchema;
1090
+ /** @deprecated use `StreamRunAgentFileFileInURIFormat$Outbound` instead. */
1091
+ export type Outbound = StreamRunAgentFileFileInURIFormat$Outbound;
1073
1092
  }
1074
1093
 
1075
- export function fileFileInURIFormatToJSON(
1076
- fileFileInURIFormat: FileFileInURIFormat,
1094
+ export function streamRunAgentFileFileInURIFormatToJSON(
1095
+ streamRunAgentFileFileInURIFormat: StreamRunAgentFileFileInURIFormat,
1077
1096
  ): string {
1078
1097
  return JSON.stringify(
1079
- FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
1098
+ StreamRunAgentFileFileInURIFormat$outboundSchema.parse(
1099
+ streamRunAgentFileFileInURIFormat,
1100
+ ),
1080
1101
  );
1081
1102
  }
1082
1103
 
1083
- export function fileFileInURIFormatFromJSON(
1104
+ export function streamRunAgentFileFileInURIFormatFromJSON(
1084
1105
  jsonString: string,
1085
- ): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
1106
+ ): SafeParseResult<StreamRunAgentFileFileInURIFormat, SDKValidationError> {
1086
1107
  return safeParse(
1087
1108
  jsonString,
1088
- (x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
1089
- `Failed to parse 'FileFileInURIFormat' from JSON`,
1109
+ (x) => StreamRunAgentFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
1110
+ `Failed to parse 'StreamRunAgentFileFileInURIFormat' from JSON`,
1090
1111
  );
1091
1112
  }
1092
1113
 
1093
1114
  /** @internal */
1094
- export const FileBinaryFormat$inboundSchema: z.ZodType<
1095
- FileBinaryFormat,
1115
+ export const StreamRunAgentFileBinaryFormat$inboundSchema: z.ZodType<
1116
+ StreamRunAgentFileBinaryFormat,
1096
1117
  z.ZodTypeDef,
1097
1118
  unknown
1098
1119
  > = z.object({
@@ -1102,17 +1123,17 @@ export const FileBinaryFormat$inboundSchema: z.ZodType<
1102
1123
  });
1103
1124
 
1104
1125
  /** @internal */
1105
- export type FileBinaryFormat$Outbound = {
1126
+ export type StreamRunAgentFileBinaryFormat$Outbound = {
1106
1127
  bytes: string;
1107
1128
  mimeType?: string | undefined;
1108
1129
  name?: string | undefined;
1109
1130
  };
1110
1131
 
1111
1132
  /** @internal */
1112
- export const FileBinaryFormat$outboundSchema: z.ZodType<
1113
- FileBinaryFormat$Outbound,
1133
+ export const StreamRunAgentFileBinaryFormat$outboundSchema: z.ZodType<
1134
+ StreamRunAgentFileBinaryFormat$Outbound,
1114
1135
  z.ZodTypeDef,
1115
- FileBinaryFormat
1136
+ StreamRunAgentFileBinaryFormat
1116
1137
  > = z.object({
1117
1138
  bytes: z.string(),
1118
1139
  mimeType: z.string().optional(),
@@ -1123,30 +1144,32 @@ export const FileBinaryFormat$outboundSchema: z.ZodType<
1123
1144
  * @internal
1124
1145
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1125
1146
  */
1126
- export namespace FileBinaryFormat$ {
1127
- /** @deprecated use `FileBinaryFormat$inboundSchema` instead. */
1128
- export const inboundSchema = FileBinaryFormat$inboundSchema;
1129
- /** @deprecated use `FileBinaryFormat$outboundSchema` instead. */
1130
- export const outboundSchema = FileBinaryFormat$outboundSchema;
1131
- /** @deprecated use `FileBinaryFormat$Outbound` instead. */
1132
- export type Outbound = FileBinaryFormat$Outbound;
1147
+ export namespace StreamRunAgentFileBinaryFormat$ {
1148
+ /** @deprecated use `StreamRunAgentFileBinaryFormat$inboundSchema` instead. */
1149
+ export const inboundSchema = StreamRunAgentFileBinaryFormat$inboundSchema;
1150
+ /** @deprecated use `StreamRunAgentFileBinaryFormat$outboundSchema` instead. */
1151
+ export const outboundSchema = StreamRunAgentFileBinaryFormat$outboundSchema;
1152
+ /** @deprecated use `StreamRunAgentFileBinaryFormat$Outbound` instead. */
1153
+ export type Outbound = StreamRunAgentFileBinaryFormat$Outbound;
1133
1154
  }
1134
1155
 
1135
- export function fileBinaryFormatToJSON(
1136
- fileBinaryFormat: FileBinaryFormat,
1156
+ export function streamRunAgentFileBinaryFormatToJSON(
1157
+ streamRunAgentFileBinaryFormat: StreamRunAgentFileBinaryFormat,
1137
1158
  ): string {
1138
1159
  return JSON.stringify(
1139
- FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
1160
+ StreamRunAgentFileBinaryFormat$outboundSchema.parse(
1161
+ streamRunAgentFileBinaryFormat,
1162
+ ),
1140
1163
  );
1141
1164
  }
1142
1165
 
1143
- export function fileBinaryFormatFromJSON(
1166
+ export function streamRunAgentFileBinaryFormatFromJSON(
1144
1167
  jsonString: string,
1145
- ): SafeParseResult<FileBinaryFormat, SDKValidationError> {
1168
+ ): SafeParseResult<StreamRunAgentFileBinaryFormat, SDKValidationError> {
1146
1169
  return safeParse(
1147
1170
  jsonString,
1148
- (x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
1149
- `Failed to parse 'FileBinaryFormat' from JSON`,
1171
+ (x) => StreamRunAgentFileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
1172
+ `Failed to parse 'StreamRunAgentFileBinaryFormat' from JSON`,
1150
1173
  );
1151
1174
  }
1152
1175
 
@@ -1156,14 +1179,14 @@ export const StreamRunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
1156
1179
  z.ZodTypeDef,
1157
1180
  unknown
1158
1181
  > = z.union([
1159
- z.lazy(() => FileBinaryFormat$inboundSchema),
1160
- z.lazy(() => FileFileInURIFormat$inboundSchema),
1182
+ z.lazy(() => StreamRunAgentFileBinaryFormat$inboundSchema),
1183
+ z.lazy(() => StreamRunAgentFileFileInURIFormat$inboundSchema),
1161
1184
  ]);
1162
1185
 
1163
1186
  /** @internal */
1164
1187
  export type StreamRunAgentPublicMessagePartFile$Outbound =
1165
- | FileBinaryFormat$Outbound
1166
- | FileFileInURIFormat$Outbound;
1188
+ | StreamRunAgentFileBinaryFormat$Outbound
1189
+ | StreamRunAgentFileFileInURIFormat$Outbound;
1167
1190
 
1168
1191
  /** @internal */
1169
1192
  export const StreamRunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
@@ -1171,8 +1194,8 @@ export const StreamRunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
1171
1194
  z.ZodTypeDef,
1172
1195
  StreamRunAgentPublicMessagePartFile
1173
1196
  > = z.union([
1174
- z.lazy(() => FileBinaryFormat$outboundSchema),
1175
- z.lazy(() => FileFileInURIFormat$outboundSchema),
1197
+ z.lazy(() => StreamRunAgentFileBinaryFormat$outboundSchema),
1198
+ z.lazy(() => StreamRunAgentFileFileInURIFormat$outboundSchema),
1176
1199
  ]);
1177
1200
 
1178
1201
  /**
@@ -1212,36 +1235,38 @@ export function streamRunAgentPublicMessagePartFileFromJSON(
1212
1235
  }
1213
1236
 
1214
1237
  /** @internal */
1215
- export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
1216
- PublicMessagePartFilePart,
1238
+ export const StreamRunAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<
1239
+ StreamRunAgentPublicMessagePartFilePart,
1217
1240
  z.ZodTypeDef,
1218
1241
  unknown
1219
1242
  > = z.object({
1220
1243
  kind: StreamRunAgentPublicMessagePartAgentsKind$inboundSchema,
1221
1244
  file: z.union([
1222
- z.lazy(() => FileBinaryFormat$inboundSchema),
1223
- z.lazy(() => FileFileInURIFormat$inboundSchema),
1245
+ z.lazy(() => StreamRunAgentFileBinaryFormat$inboundSchema),
1246
+ z.lazy(() => StreamRunAgentFileFileInURIFormat$inboundSchema),
1224
1247
  ]),
1225
1248
  metadata: z.record(z.any()).optional(),
1226
1249
  });
1227
1250
 
1228
1251
  /** @internal */
1229
- export type PublicMessagePartFilePart$Outbound = {
1252
+ export type StreamRunAgentPublicMessagePartFilePart$Outbound = {
1230
1253
  kind: string;
1231
- file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
1254
+ file:
1255
+ | StreamRunAgentFileBinaryFormat$Outbound
1256
+ | StreamRunAgentFileFileInURIFormat$Outbound;
1232
1257
  metadata?: { [k: string]: any } | undefined;
1233
1258
  };
1234
1259
 
1235
1260
  /** @internal */
1236
- export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
1237
- PublicMessagePartFilePart$Outbound,
1261
+ export const StreamRunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<
1262
+ StreamRunAgentPublicMessagePartFilePart$Outbound,
1238
1263
  z.ZodTypeDef,
1239
- PublicMessagePartFilePart
1264
+ StreamRunAgentPublicMessagePartFilePart
1240
1265
  > = z.object({
1241
1266
  kind: StreamRunAgentPublicMessagePartAgentsKind$outboundSchema,
1242
1267
  file: z.union([
1243
- z.lazy(() => FileBinaryFormat$outboundSchema),
1244
- z.lazy(() => FileFileInURIFormat$outboundSchema),
1268
+ z.lazy(() => StreamRunAgentFileBinaryFormat$outboundSchema),
1269
+ z.lazy(() => StreamRunAgentFileFileInURIFormat$outboundSchema),
1245
1270
  ]),
1246
1271
  metadata: z.record(z.any()).optional(),
1247
1272
  });
@@ -1250,30 +1275,41 @@ export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
1250
1275
  * @internal
1251
1276
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1252
1277
  */
1253
- export namespace PublicMessagePartFilePart$ {
1254
- /** @deprecated use `PublicMessagePartFilePart$inboundSchema` instead. */
1255
- export const inboundSchema = PublicMessagePartFilePart$inboundSchema;
1256
- /** @deprecated use `PublicMessagePartFilePart$outboundSchema` instead. */
1257
- export const outboundSchema = PublicMessagePartFilePart$outboundSchema;
1258
- /** @deprecated use `PublicMessagePartFilePart$Outbound` instead. */
1259
- export type Outbound = PublicMessagePartFilePart$Outbound;
1278
+ export namespace StreamRunAgentPublicMessagePartFilePart$ {
1279
+ /** @deprecated use `StreamRunAgentPublicMessagePartFilePart$inboundSchema` instead. */
1280
+ export const inboundSchema =
1281
+ StreamRunAgentPublicMessagePartFilePart$inboundSchema;
1282
+ /** @deprecated use `StreamRunAgentPublicMessagePartFilePart$outboundSchema` instead. */
1283
+ export const outboundSchema =
1284
+ StreamRunAgentPublicMessagePartFilePart$outboundSchema;
1285
+ /** @deprecated use `StreamRunAgentPublicMessagePartFilePart$Outbound` instead. */
1286
+ export type Outbound = StreamRunAgentPublicMessagePartFilePart$Outbound;
1260
1287
  }
1261
1288
 
1262
- export function publicMessagePartFilePartToJSON(
1263
- publicMessagePartFilePart: PublicMessagePartFilePart,
1289
+ export function streamRunAgentPublicMessagePartFilePartToJSON(
1290
+ streamRunAgentPublicMessagePartFilePart:
1291
+ StreamRunAgentPublicMessagePartFilePart,
1264
1292
  ): string {
1265
1293
  return JSON.stringify(
1266
- PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
1294
+ StreamRunAgentPublicMessagePartFilePart$outboundSchema.parse(
1295
+ streamRunAgentPublicMessagePartFilePart,
1296
+ ),
1267
1297
  );
1268
1298
  }
1269
1299
 
1270
- export function publicMessagePartFilePartFromJSON(
1300
+ export function streamRunAgentPublicMessagePartFilePartFromJSON(
1271
1301
  jsonString: string,
1272
- ): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
1302
+ ): SafeParseResult<
1303
+ StreamRunAgentPublicMessagePartFilePart,
1304
+ SDKValidationError
1305
+ > {
1273
1306
  return safeParse(
1274
1307
  jsonString,
1275
- (x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
1276
- `Failed to parse 'PublicMessagePartFilePart' from JSON`,
1308
+ (x) =>
1309
+ StreamRunAgentPublicMessagePartFilePart$inboundSchema.parse(
1310
+ JSON.parse(x),
1311
+ ),
1312
+ `Failed to parse 'StreamRunAgentPublicMessagePartFilePart' from JSON`,
1277
1313
  );
1278
1314
  }
1279
1315
 
@@ -1301,8 +1337,8 @@ export namespace StreamRunAgentPublicMessagePartKind$ {
1301
1337
  }
1302
1338
 
1303
1339
  /** @internal */
1304
- export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
1305
- PublicMessagePartTextPart,
1340
+ export const StreamRunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<
1341
+ StreamRunAgentPublicMessagePartTextPart,
1306
1342
  z.ZodTypeDef,
1307
1343
  unknown
1308
1344
  > = z.object({
@@ -1311,16 +1347,16 @@ export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
1311
1347
  });
1312
1348
 
1313
1349
  /** @internal */
1314
- export type PublicMessagePartTextPart$Outbound = {
1350
+ export type StreamRunAgentPublicMessagePartTextPart$Outbound = {
1315
1351
  kind: string;
1316
1352
  text: string;
1317
1353
  };
1318
1354
 
1319
1355
  /** @internal */
1320
- export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
1321
- PublicMessagePartTextPart$Outbound,
1356
+ export const StreamRunAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<
1357
+ StreamRunAgentPublicMessagePartTextPart$Outbound,
1322
1358
  z.ZodTypeDef,
1323
- PublicMessagePartTextPart
1359
+ StreamRunAgentPublicMessagePartTextPart
1324
1360
  > = z.object({
1325
1361
  kind: StreamRunAgentPublicMessagePartKind$outboundSchema,
1326
1362
  text: z.string(),
@@ -1330,30 +1366,41 @@ export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
1330
1366
  * @internal
1331
1367
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1332
1368
  */
1333
- export namespace PublicMessagePartTextPart$ {
1334
- /** @deprecated use `PublicMessagePartTextPart$inboundSchema` instead. */
1335
- export const inboundSchema = PublicMessagePartTextPart$inboundSchema;
1336
- /** @deprecated use `PublicMessagePartTextPart$outboundSchema` instead. */
1337
- export const outboundSchema = PublicMessagePartTextPart$outboundSchema;
1338
- /** @deprecated use `PublicMessagePartTextPart$Outbound` instead. */
1339
- export type Outbound = PublicMessagePartTextPart$Outbound;
1369
+ export namespace StreamRunAgentPublicMessagePartTextPart$ {
1370
+ /** @deprecated use `StreamRunAgentPublicMessagePartTextPart$inboundSchema` instead. */
1371
+ export const inboundSchema =
1372
+ StreamRunAgentPublicMessagePartTextPart$inboundSchema;
1373
+ /** @deprecated use `StreamRunAgentPublicMessagePartTextPart$outboundSchema` instead. */
1374
+ export const outboundSchema =
1375
+ StreamRunAgentPublicMessagePartTextPart$outboundSchema;
1376
+ /** @deprecated use `StreamRunAgentPublicMessagePartTextPart$Outbound` instead. */
1377
+ export type Outbound = StreamRunAgentPublicMessagePartTextPart$Outbound;
1340
1378
  }
1341
1379
 
1342
- export function publicMessagePartTextPartToJSON(
1343
- publicMessagePartTextPart: PublicMessagePartTextPart,
1380
+ export function streamRunAgentPublicMessagePartTextPartToJSON(
1381
+ streamRunAgentPublicMessagePartTextPart:
1382
+ StreamRunAgentPublicMessagePartTextPart,
1344
1383
  ): string {
1345
1384
  return JSON.stringify(
1346
- PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart),
1385
+ StreamRunAgentPublicMessagePartTextPart$outboundSchema.parse(
1386
+ streamRunAgentPublicMessagePartTextPart,
1387
+ ),
1347
1388
  );
1348
1389
  }
1349
1390
 
1350
- export function publicMessagePartTextPartFromJSON(
1391
+ export function streamRunAgentPublicMessagePartTextPartFromJSON(
1351
1392
  jsonString: string,
1352
- ): SafeParseResult<PublicMessagePartTextPart, SDKValidationError> {
1393
+ ): SafeParseResult<
1394
+ StreamRunAgentPublicMessagePartTextPart,
1395
+ SDKValidationError
1396
+ > {
1353
1397
  return safeParse(
1354
1398
  jsonString,
1355
- (x) => PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
1356
- `Failed to parse 'PublicMessagePartTextPart' from JSON`,
1399
+ (x) =>
1400
+ StreamRunAgentPublicMessagePartTextPart$inboundSchema.parse(
1401
+ JSON.parse(x),
1402
+ ),
1403
+ `Failed to parse 'StreamRunAgentPublicMessagePartTextPart' from JSON`,
1357
1404
  );
1358
1405
  }
1359
1406
 
@@ -1363,16 +1410,16 @@ export const StreamRunAgentPublicMessagePart$inboundSchema: z.ZodType<
1363
1410
  z.ZodTypeDef,
1364
1411
  unknown
1365
1412
  > = z.union([
1366
- z.lazy(() => PublicMessagePartTextPart$inboundSchema),
1367
- z.lazy(() => PublicMessagePartFilePart$inboundSchema),
1368
- z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
1413
+ z.lazy(() => StreamRunAgentPublicMessagePartTextPart$inboundSchema),
1414
+ z.lazy(() => StreamRunAgentPublicMessagePartFilePart$inboundSchema),
1415
+ z.lazy(() => StreamRunAgentPublicMessagePartToolResultPart$inboundSchema),
1369
1416
  ]);
1370
1417
 
1371
1418
  /** @internal */
1372
1419
  export type StreamRunAgentPublicMessagePart$Outbound =
1373
- | PublicMessagePartTextPart$Outbound
1374
- | PublicMessagePartFilePart$Outbound
1375
- | PublicMessagePartToolResultPart$Outbound;
1420
+ | StreamRunAgentPublicMessagePartTextPart$Outbound
1421
+ | StreamRunAgentPublicMessagePartFilePart$Outbound
1422
+ | StreamRunAgentPublicMessagePartToolResultPart$Outbound;
1376
1423
 
1377
1424
  /** @internal */
1378
1425
  export const StreamRunAgentPublicMessagePart$outboundSchema: z.ZodType<
@@ -1380,9 +1427,9 @@ export const StreamRunAgentPublicMessagePart$outboundSchema: z.ZodType<
1380
1427
  z.ZodTypeDef,
1381
1428
  StreamRunAgentPublicMessagePart
1382
1429
  > = z.union([
1383
- z.lazy(() => PublicMessagePartTextPart$outboundSchema),
1384
- z.lazy(() => PublicMessagePartFilePart$outboundSchema),
1385
- z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
1430
+ z.lazy(() => StreamRunAgentPublicMessagePartTextPart$outboundSchema),
1431
+ z.lazy(() => StreamRunAgentPublicMessagePartFilePart$outboundSchema),
1432
+ z.lazy(() => StreamRunAgentPublicMessagePartToolResultPart$outboundSchema),
1386
1433
  ]);
1387
1434
 
1388
1435
  /**
@@ -1431,9 +1478,9 @@ export const StreamRunAgentMessage$inboundSchema: z.ZodType<
1431
1478
  ]),
1432
1479
  parts: z.array(
1433
1480
  z.union([
1434
- z.lazy(() => PublicMessagePartTextPart$inboundSchema),
1435
- z.lazy(() => PublicMessagePartFilePart$inboundSchema),
1436
- z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
1481
+ z.lazy(() => StreamRunAgentPublicMessagePartTextPart$inboundSchema),
1482
+ z.lazy(() => StreamRunAgentPublicMessagePartFilePart$inboundSchema),
1483
+ z.lazy(() => StreamRunAgentPublicMessagePartToolResultPart$inboundSchema),
1437
1484
  ]),
1438
1485
  ),
1439
1486
  });
@@ -1443,9 +1490,9 @@ export type StreamRunAgentMessage$Outbound = {
1443
1490
  messageId?: string | undefined;
1444
1491
  role: string | string;
1445
1492
  parts: Array<
1446
- | PublicMessagePartTextPart$Outbound
1447
- | PublicMessagePartFilePart$Outbound
1448
- | PublicMessagePartToolResultPart$Outbound
1493
+ | StreamRunAgentPublicMessagePartTextPart$Outbound
1494
+ | StreamRunAgentPublicMessagePartFilePart$Outbound
1495
+ | StreamRunAgentPublicMessagePartToolResultPart$Outbound
1449
1496
  >;
1450
1497
  };
1451
1498
 
@@ -1462,9 +1509,11 @@ export const StreamRunAgentMessage$outboundSchema: z.ZodType<
1462
1509
  ]),
1463
1510
  parts: z.array(
1464
1511
  z.union([
1465
- z.lazy(() => PublicMessagePartTextPart$outboundSchema),
1466
- z.lazy(() => PublicMessagePartFilePart$outboundSchema),
1467
- z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
1512
+ z.lazy(() => StreamRunAgentPublicMessagePartTextPart$outboundSchema),
1513
+ z.lazy(() => StreamRunAgentPublicMessagePartFilePart$outboundSchema),
1514
+ z.lazy(() =>
1515
+ StreamRunAgentPublicMessagePartToolResultPart$outboundSchema
1516
+ ),
1468
1517
  ]),
1469
1518
  ),
1470
1519
  });
@@ -1699,424 +1748,157 @@ export function streamRunAgentMemoryFromJSON(
1699
1748
  }
1700
1749
 
1701
1750
  /** @internal */
1702
- export const StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema:
1703
- z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType> = z
1704
- .nativeEnum(StreamRunAgentKnowledgeBaseConfigurationAgentsType);
1705
-
1706
- /** @internal */
1707
- export const StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema:
1708
- z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationAgentsType> =
1709
- StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
1710
-
1711
- /**
1712
- * @internal
1713
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1714
- */
1715
- export namespace StreamRunAgentKnowledgeBaseConfigurationAgentsType$ {
1716
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema` instead. */
1717
- export const inboundSchema =
1718
- StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema;
1719
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema` instead. */
1720
- export const outboundSchema =
1721
- StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema;
1722
- }
1723
-
1724
- /** @internal */
1725
- export const KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema:
1726
- z.ZodType<
1727
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
1728
- z.ZodTypeDef,
1729
- unknown
1730
- > = z.object({
1731
- type: StreamRunAgentKnowledgeBaseConfigurationAgentsType$inboundSchema,
1732
- query: z.string(),
1751
+ export const StreamRunAgentKnowledgeBases$inboundSchema: z.ZodType<
1752
+ StreamRunAgentKnowledgeBases,
1753
+ z.ZodTypeDef,
1754
+ unknown
1755
+ > = z.object({
1756
+ knowledge_id: z.string(),
1757
+ }).transform((v) => {
1758
+ return remap$(v, {
1759
+ "knowledge_id": "knowledgeId",
1733
1760
  });
1761
+ });
1734
1762
 
1735
1763
  /** @internal */
1736
- export type KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound = {
1737
- type: string;
1738
- query: string;
1764
+ export type StreamRunAgentKnowledgeBases$Outbound = {
1765
+ knowledge_id: string;
1739
1766
  };
1740
1767
 
1741
1768
  /** @internal */
1742
- export const KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema:
1743
- z.ZodType<
1744
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound,
1745
- z.ZodTypeDef,
1746
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery
1747
- > = z.object({
1748
- type: StreamRunAgentKnowledgeBaseConfigurationAgentsType$outboundSchema,
1749
- query: z.string(),
1769
+ export const StreamRunAgentKnowledgeBases$outboundSchema: z.ZodType<
1770
+ StreamRunAgentKnowledgeBases$Outbound,
1771
+ z.ZodTypeDef,
1772
+ StreamRunAgentKnowledgeBases
1773
+ > = z.object({
1774
+ knowledgeId: z.string(),
1775
+ }).transform((v) => {
1776
+ return remap$(v, {
1777
+ knowledgeId: "knowledge_id",
1750
1778
  });
1779
+ });
1751
1780
 
1752
1781
  /**
1753
1782
  * @internal
1754
1783
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1755
1784
  */
1756
- export namespace KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$ {
1757
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema` instead. */
1758
- export const inboundSchema =
1759
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema;
1760
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema` instead. */
1761
- export const outboundSchema =
1762
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema;
1763
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound` instead. */
1764
- export type Outbound =
1765
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound;
1785
+ export namespace StreamRunAgentKnowledgeBases$ {
1786
+ /** @deprecated use `StreamRunAgentKnowledgeBases$inboundSchema` instead. */
1787
+ export const inboundSchema = StreamRunAgentKnowledgeBases$inboundSchema;
1788
+ /** @deprecated use `StreamRunAgentKnowledgeBases$outboundSchema` instead. */
1789
+ export const outboundSchema = StreamRunAgentKnowledgeBases$outboundSchema;
1790
+ /** @deprecated use `StreamRunAgentKnowledgeBases$Outbound` instead. */
1791
+ export type Outbound = StreamRunAgentKnowledgeBases$Outbound;
1766
1792
  }
1767
1793
 
1768
- export function knowledgeBaseConfigurationKnowledgeBaseStaticQueryToJSON(
1769
- knowledgeBaseConfigurationKnowledgeBaseStaticQuery:
1770
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
1794
+ export function streamRunAgentKnowledgeBasesToJSON(
1795
+ streamRunAgentKnowledgeBases: StreamRunAgentKnowledgeBases,
1771
1796
  ): string {
1772
1797
  return JSON.stringify(
1773
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema.parse(
1774
- knowledgeBaseConfigurationKnowledgeBaseStaticQuery,
1798
+ StreamRunAgentKnowledgeBases$outboundSchema.parse(
1799
+ streamRunAgentKnowledgeBases,
1775
1800
  ),
1776
1801
  );
1777
1802
  }
1778
1803
 
1779
- export function knowledgeBaseConfigurationKnowledgeBaseStaticQueryFromJSON(
1804
+ export function streamRunAgentKnowledgeBasesFromJSON(
1780
1805
  jsonString: string,
1781
- ): SafeParseResult<
1782
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery,
1783
- SDKValidationError
1784
- > {
1806
+ ): SafeParseResult<StreamRunAgentKnowledgeBases, SDKValidationError> {
1785
1807
  return safeParse(
1786
1808
  jsonString,
1787
- (x) =>
1788
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema.parse(
1789
- JSON.parse(x),
1790
- ),
1791
- `Failed to parse 'KnowledgeBaseConfigurationKnowledgeBaseStaticQuery' from JSON`,
1809
+ (x) => StreamRunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1810
+ `Failed to parse 'StreamRunAgentKnowledgeBases' from JSON`,
1792
1811
  );
1793
1812
  }
1794
1813
 
1795
1814
  /** @internal */
1796
- export const StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema:
1797
- z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationType> = z
1798
- .nativeEnum(StreamRunAgentKnowledgeBaseConfigurationType);
1799
-
1800
- /** @internal */
1801
- export const StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema:
1802
- z.ZodNativeEnum<typeof StreamRunAgentKnowledgeBaseConfigurationType> =
1803
- StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema;
1804
-
1805
- /**
1806
- * @internal
1807
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1808
- */
1809
- export namespace StreamRunAgentKnowledgeBaseConfigurationType$ {
1810
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
1811
- export const inboundSchema =
1812
- StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema;
1813
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
1814
- export const outboundSchema =
1815
- StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema;
1816
- }
1817
-
1818
- /** @internal */
1819
- export const KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema:
1820
- z.ZodType<
1821
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
1822
- z.ZodTypeDef,
1823
- unknown
1824
- > = z.object({
1825
- type: StreamRunAgentKnowledgeBaseConfigurationType$inboundSchema,
1826
- });
1815
+ export const StreamRunAgentTeamOfAgents$inboundSchema: z.ZodType<
1816
+ StreamRunAgentTeamOfAgents,
1817
+ z.ZodTypeDef,
1818
+ unknown
1819
+ > = z.object({
1820
+ key: z.string(),
1821
+ role: z.string().optional(),
1822
+ });
1827
1823
 
1828
1824
  /** @internal */
1829
- export type KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound = {
1830
- type: string;
1825
+ export type StreamRunAgentTeamOfAgents$Outbound = {
1826
+ key: string;
1827
+ role?: string | undefined;
1831
1828
  };
1832
1829
 
1833
1830
  /** @internal */
1834
- export const KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema:
1835
- z.ZodType<
1836
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound,
1837
- z.ZodTypeDef,
1838
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage
1839
- > = z.object({
1840
- type: StreamRunAgentKnowledgeBaseConfigurationType$outboundSchema,
1841
- });
1831
+ export const StreamRunAgentTeamOfAgents$outboundSchema: z.ZodType<
1832
+ StreamRunAgentTeamOfAgents$Outbound,
1833
+ z.ZodTypeDef,
1834
+ StreamRunAgentTeamOfAgents
1835
+ > = z.object({
1836
+ key: z.string(),
1837
+ role: z.string().optional(),
1838
+ });
1842
1839
 
1843
1840
  /**
1844
1841
  * @internal
1845
1842
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1846
1843
  */
1847
- export namespace KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$ {
1848
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema` instead. */
1849
- export const inboundSchema =
1850
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema;
1851
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema` instead. */
1852
- export const outboundSchema =
1853
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema;
1854
- /** @deprecated use `KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound` instead. */
1855
- export type Outbound =
1856
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
1844
+ export namespace StreamRunAgentTeamOfAgents$ {
1845
+ /** @deprecated use `StreamRunAgentTeamOfAgents$inboundSchema` instead. */
1846
+ export const inboundSchema = StreamRunAgentTeamOfAgents$inboundSchema;
1847
+ /** @deprecated use `StreamRunAgentTeamOfAgents$outboundSchema` instead. */
1848
+ export const outboundSchema = StreamRunAgentTeamOfAgents$outboundSchema;
1849
+ /** @deprecated use `StreamRunAgentTeamOfAgents$Outbound` instead. */
1850
+ export type Outbound = StreamRunAgentTeamOfAgents$Outbound;
1857
1851
  }
1858
1852
 
1859
- export function knowledgeBaseConfigurationKnowledgeBaseLastUserMessageToJSON(
1860
- knowledgeBaseConfigurationKnowledgeBaseLastUserMessage:
1861
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
1853
+ export function streamRunAgentTeamOfAgentsToJSON(
1854
+ streamRunAgentTeamOfAgents: StreamRunAgentTeamOfAgents,
1862
1855
  ): string {
1863
1856
  return JSON.stringify(
1864
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema.parse(
1865
- knowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
1866
- ),
1857
+ StreamRunAgentTeamOfAgents$outboundSchema.parse(streamRunAgentTeamOfAgents),
1867
1858
  );
1868
1859
  }
1869
1860
 
1870
- export function knowledgeBaseConfigurationKnowledgeBaseLastUserMessageFromJSON(
1861
+ export function streamRunAgentTeamOfAgentsFromJSON(
1871
1862
  jsonString: string,
1872
- ): SafeParseResult<
1873
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage,
1874
- SDKValidationError
1875
- > {
1863
+ ): SafeParseResult<StreamRunAgentTeamOfAgents, SDKValidationError> {
1876
1864
  return safeParse(
1877
1865
  jsonString,
1878
- (x) =>
1879
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
1880
- .parse(JSON.parse(x)),
1881
- `Failed to parse 'KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage' from JSON`,
1866
+ (x) => StreamRunAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1867
+ `Failed to parse 'StreamRunAgentTeamOfAgents' from JSON`,
1882
1868
  );
1883
1869
  }
1884
1870
 
1885
1871
  /** @internal */
1886
- export const StreamRunAgentKnowledgeBaseConfiguration$inboundSchema: z.ZodType<
1887
- StreamRunAgentKnowledgeBaseConfiguration,
1888
- z.ZodTypeDef,
1889
- unknown
1890
- > = z.union([
1891
- z.lazy(() =>
1892
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
1893
- ),
1894
- z.lazy(() =>
1895
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
1896
- ),
1897
- ]);
1898
-
1899
- /** @internal */
1900
- export type StreamRunAgentKnowledgeBaseConfiguration$Outbound =
1901
- | KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
1902
- | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
1903
-
1904
- /** @internal */
1905
- export const StreamRunAgentKnowledgeBaseConfiguration$outboundSchema: z.ZodType<
1906
- StreamRunAgentKnowledgeBaseConfiguration$Outbound,
1907
- z.ZodTypeDef,
1908
- StreamRunAgentKnowledgeBaseConfiguration
1909
- > = z.union([
1910
- z.lazy(() =>
1911
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
1912
- ),
1913
- z.lazy(() =>
1914
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
1915
- ),
1916
- ]);
1917
-
1918
- /**
1919
- * @internal
1920
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1921
- */
1922
- export namespace StreamRunAgentKnowledgeBaseConfiguration$ {
1923
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$inboundSchema` instead. */
1924
- export const inboundSchema =
1925
- StreamRunAgentKnowledgeBaseConfiguration$inboundSchema;
1926
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$outboundSchema` instead. */
1927
- export const outboundSchema =
1928
- StreamRunAgentKnowledgeBaseConfiguration$outboundSchema;
1929
- /** @deprecated use `StreamRunAgentKnowledgeBaseConfiguration$Outbound` instead. */
1930
- export type Outbound = StreamRunAgentKnowledgeBaseConfiguration$Outbound;
1931
- }
1932
-
1933
- export function streamRunAgentKnowledgeBaseConfigurationToJSON(
1934
- streamRunAgentKnowledgeBaseConfiguration:
1935
- StreamRunAgentKnowledgeBaseConfiguration,
1936
- ): string {
1937
- return JSON.stringify(
1938
- StreamRunAgentKnowledgeBaseConfiguration$outboundSchema.parse(
1939
- streamRunAgentKnowledgeBaseConfiguration,
1940
- ),
1941
- );
1942
- }
1943
-
1944
- export function streamRunAgentKnowledgeBaseConfigurationFromJSON(
1945
- jsonString: string,
1946
- ): SafeParseResult<
1947
- StreamRunAgentKnowledgeBaseConfiguration,
1948
- SDKValidationError
1949
- > {
1950
- return safeParse(
1951
- jsonString,
1952
- (x) =>
1953
- StreamRunAgentKnowledgeBaseConfiguration$inboundSchema.parse(
1954
- JSON.parse(x),
1955
- ),
1956
- `Failed to parse 'StreamRunAgentKnowledgeBaseConfiguration' from JSON`,
1957
- );
1958
- }
1959
-
1960
- /** @internal */
1961
- export const StreamRunAgentKnowledgeBases$inboundSchema: z.ZodType<
1962
- StreamRunAgentKnowledgeBases,
1963
- z.ZodTypeDef,
1964
- unknown
1965
- > = z.object({
1966
- configuration: z.union([
1967
- z.lazy(() =>
1968
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$inboundSchema
1969
- ),
1970
- z.lazy(() =>
1971
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$inboundSchema
1972
- ),
1973
- ]),
1974
- });
1975
-
1976
- /** @internal */
1977
- export type StreamRunAgentKnowledgeBases$Outbound = {
1978
- configuration:
1979
- | KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$Outbound
1980
- | KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$Outbound;
1981
- };
1982
-
1983
- /** @internal */
1984
- export const StreamRunAgentKnowledgeBases$outboundSchema: z.ZodType<
1985
- StreamRunAgentKnowledgeBases$Outbound,
1986
- z.ZodTypeDef,
1987
- StreamRunAgentKnowledgeBases
1988
- > = z.object({
1989
- configuration: z.union([
1990
- z.lazy(() =>
1991
- KnowledgeBaseConfigurationKnowledgeBaseStaticQuery$outboundSchema
1992
- ),
1993
- z.lazy(() =>
1994
- KnowledgeBaseConfigurationKnowledgeBaseLastUserMessage$outboundSchema
1995
- ),
1996
- ]),
1997
- });
1998
-
1999
- /**
2000
- * @internal
2001
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2002
- */
2003
- export namespace StreamRunAgentKnowledgeBases$ {
2004
- /** @deprecated use `StreamRunAgentKnowledgeBases$inboundSchema` instead. */
2005
- export const inboundSchema = StreamRunAgentKnowledgeBases$inboundSchema;
2006
- /** @deprecated use `StreamRunAgentKnowledgeBases$outboundSchema` instead. */
2007
- export const outboundSchema = StreamRunAgentKnowledgeBases$outboundSchema;
2008
- /** @deprecated use `StreamRunAgentKnowledgeBases$Outbound` instead. */
2009
- export type Outbound = StreamRunAgentKnowledgeBases$Outbound;
2010
- }
2011
-
2012
- export function streamRunAgentKnowledgeBasesToJSON(
2013
- streamRunAgentKnowledgeBases: StreamRunAgentKnowledgeBases,
2014
- ): string {
2015
- return JSON.stringify(
2016
- StreamRunAgentKnowledgeBases$outboundSchema.parse(
2017
- streamRunAgentKnowledgeBases,
2018
- ),
2019
- );
2020
- }
2021
-
2022
- export function streamRunAgentKnowledgeBasesFromJSON(
2023
- jsonString: string,
2024
- ): SafeParseResult<StreamRunAgentKnowledgeBases, SDKValidationError> {
2025
- return safeParse(
2026
- jsonString,
2027
- (x) => StreamRunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
2028
- `Failed to parse 'StreamRunAgentKnowledgeBases' from JSON`,
2029
- );
2030
- }
2031
-
2032
- /** @internal */
2033
- export const StreamRunAgentTeamOfAgents$inboundSchema: z.ZodType<
2034
- StreamRunAgentTeamOfAgents,
2035
- z.ZodTypeDef,
2036
- unknown
2037
- > = z.object({
2038
- key: z.string(),
2039
- role: z.string().optional(),
2040
- });
2041
-
2042
- /** @internal */
2043
- export type StreamRunAgentTeamOfAgents$Outbound = {
2044
- key: string;
2045
- role?: string | undefined;
2046
- };
2047
-
2048
- /** @internal */
2049
- export const StreamRunAgentTeamOfAgents$outboundSchema: z.ZodType<
2050
- StreamRunAgentTeamOfAgents$Outbound,
2051
- z.ZodTypeDef,
2052
- StreamRunAgentTeamOfAgents
2053
- > = z.object({
2054
- key: z.string(),
2055
- role: z.string().optional(),
2056
- });
2057
-
2058
- /**
2059
- * @internal
2060
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2061
- */
2062
- export namespace StreamRunAgentTeamOfAgents$ {
2063
- /** @deprecated use `StreamRunAgentTeamOfAgents$inboundSchema` instead. */
2064
- export const inboundSchema = StreamRunAgentTeamOfAgents$inboundSchema;
2065
- /** @deprecated use `StreamRunAgentTeamOfAgents$outboundSchema` instead. */
2066
- export const outboundSchema = StreamRunAgentTeamOfAgents$outboundSchema;
2067
- /** @deprecated use `StreamRunAgentTeamOfAgents$Outbound` instead. */
2068
- export type Outbound = StreamRunAgentTeamOfAgents$Outbound;
2069
- }
2070
-
2071
- export function streamRunAgentTeamOfAgentsToJSON(
2072
- streamRunAgentTeamOfAgents: StreamRunAgentTeamOfAgents,
2073
- ): string {
2074
- return JSON.stringify(
2075
- StreamRunAgentTeamOfAgents$outboundSchema.parse(streamRunAgentTeamOfAgents),
2076
- );
2077
- }
2078
-
2079
- export function streamRunAgentTeamOfAgentsFromJSON(
2080
- jsonString: string,
2081
- ): SafeParseResult<StreamRunAgentTeamOfAgents, SDKValidationError> {
2082
- return safeParse(
2083
- jsonString,
2084
- (x) => StreamRunAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
2085
- `Failed to parse 'StreamRunAgentTeamOfAgents' from JSON`,
2086
- );
2087
- }
2088
-
2089
- /** @internal */
2090
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
1872
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
2091
1873
  z.ZodNativeEnum<
2092
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
1874
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
2093
1875
  > = z.nativeEnum(
2094
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type,
1876
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
2095
1877
  );
2096
1878
 
2097
1879
  /** @internal */
2098
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
1880
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
2099
1881
  z.ZodNativeEnum<
2100
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
1882
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
2101
1883
  > =
2102
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1884
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
2103
1885
 
2104
1886
  /**
2105
1887
  * @internal
2106
1888
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2107
1889
  */
2108
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$ {
2109
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
1890
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
1891
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
2110
1892
  export const inboundSchema =
2111
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
2112
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
1893
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1894
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
2113
1895
  export const outboundSchema =
2114
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
1896
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
2115
1897
  }
2116
1898
 
2117
1899
  /** @internal */
2118
- export const StreamRunAgentRunAgentRequestToolFunction$inboundSchema: z.ZodType<
2119
- StreamRunAgentRunAgentRequestToolFunction,
1900
+ export const StreamRunAgentAgentToolInputRunFunction$inboundSchema: z.ZodType<
1901
+ StreamRunAgentAgentToolInputRunFunction,
2120
1902
  z.ZodTypeDef,
2121
1903
  unknown
2122
1904
  > = z.object({
@@ -2127,7 +1909,7 @@ export const StreamRunAgentRunAgentRequestToolFunction$inboundSchema: z.ZodType<
2127
1909
  });
2128
1910
 
2129
1911
  /** @internal */
2130
- export type StreamRunAgentRunAgentRequestToolFunction$Outbound = {
1912
+ export type StreamRunAgentAgentToolInputRunFunction$Outbound = {
2131
1913
  name: string;
2132
1914
  description?: string | undefined;
2133
1915
  strict?: boolean | undefined;
@@ -2135,76 +1917,73 @@ export type StreamRunAgentRunAgentRequestToolFunction$Outbound = {
2135
1917
  };
2136
1918
 
2137
1919
  /** @internal */
2138
- export const StreamRunAgentRunAgentRequestToolFunction$outboundSchema:
2139
- z.ZodType<
2140
- StreamRunAgentRunAgentRequestToolFunction$Outbound,
2141
- z.ZodTypeDef,
2142
- StreamRunAgentRunAgentRequestToolFunction
2143
- > = z.object({
2144
- name: z.string(),
2145
- description: z.string().optional(),
2146
- strict: z.boolean().optional(),
2147
- parameters: z.record(z.any()).optional(),
2148
- });
1920
+ export const StreamRunAgentAgentToolInputRunFunction$outboundSchema: z.ZodType<
1921
+ StreamRunAgentAgentToolInputRunFunction$Outbound,
1922
+ z.ZodTypeDef,
1923
+ StreamRunAgentAgentToolInputRunFunction
1924
+ > = z.object({
1925
+ name: z.string(),
1926
+ description: z.string().optional(),
1927
+ strict: z.boolean().optional(),
1928
+ parameters: z.record(z.any()).optional(),
1929
+ });
2149
1930
 
2150
1931
  /**
2151
1932
  * @internal
2152
1933
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2153
1934
  */
2154
- export namespace StreamRunAgentRunAgentRequestToolFunction$ {
2155
- /** @deprecated use `StreamRunAgentRunAgentRequestToolFunction$inboundSchema` instead. */
1935
+ export namespace StreamRunAgentAgentToolInputRunFunction$ {
1936
+ /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$inboundSchema` instead. */
2156
1937
  export const inboundSchema =
2157
- StreamRunAgentRunAgentRequestToolFunction$inboundSchema;
2158
- /** @deprecated use `StreamRunAgentRunAgentRequestToolFunction$outboundSchema` instead. */
1938
+ StreamRunAgentAgentToolInputRunFunction$inboundSchema;
1939
+ /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$outboundSchema` instead. */
2159
1940
  export const outboundSchema =
2160
- StreamRunAgentRunAgentRequestToolFunction$outboundSchema;
2161
- /** @deprecated use `StreamRunAgentRunAgentRequestToolFunction$Outbound` instead. */
2162
- export type Outbound = StreamRunAgentRunAgentRequestToolFunction$Outbound;
1941
+ StreamRunAgentAgentToolInputRunFunction$outboundSchema;
1942
+ /** @deprecated use `StreamRunAgentAgentToolInputRunFunction$Outbound` instead. */
1943
+ export type Outbound = StreamRunAgentAgentToolInputRunFunction$Outbound;
2163
1944
  }
2164
1945
 
2165
- export function streamRunAgentRunAgentRequestToolFunctionToJSON(
2166
- streamRunAgentRunAgentRequestToolFunction:
2167
- StreamRunAgentRunAgentRequestToolFunction,
1946
+ export function streamRunAgentAgentToolInputRunFunctionToJSON(
1947
+ streamRunAgentAgentToolInputRunFunction:
1948
+ StreamRunAgentAgentToolInputRunFunction,
2168
1949
  ): string {
2169
1950
  return JSON.stringify(
2170
- StreamRunAgentRunAgentRequestToolFunction$outboundSchema.parse(
2171
- streamRunAgentRunAgentRequestToolFunction,
1951
+ StreamRunAgentAgentToolInputRunFunction$outboundSchema.parse(
1952
+ streamRunAgentAgentToolInputRunFunction,
2172
1953
  ),
2173
1954
  );
2174
1955
  }
2175
1956
 
2176
- export function streamRunAgentRunAgentRequestToolFunctionFromJSON(
1957
+ export function streamRunAgentAgentToolInputRunFunctionFromJSON(
2177
1958
  jsonString: string,
2178
1959
  ): SafeParseResult<
2179
- StreamRunAgentRunAgentRequestToolFunction,
1960
+ StreamRunAgentAgentToolInputRunFunction,
2180
1961
  SDKValidationError
2181
1962
  > {
2182
1963
  return safeParse(
2183
1964
  jsonString,
2184
1965
  (x) =>
2185
- StreamRunAgentRunAgentRequestToolFunction$inboundSchema.parse(
1966
+ StreamRunAgentAgentToolInputRunFunction$inboundSchema.parse(
2186
1967
  JSON.parse(x),
2187
1968
  ),
2188
- `Failed to parse 'StreamRunAgentRunAgentRequestToolFunction' from JSON`,
1969
+ `Failed to parse 'StreamRunAgentAgentToolInputRunFunction' from JSON`,
2189
1970
  );
2190
1971
  }
2191
1972
 
2192
1973
  /** @internal */
2193
- export const RunAgentRequestToolFunctionTool$inboundSchema: z.ZodType<
2194
- RunAgentRequestToolFunctionTool,
1974
+ export const AgentToolInputRunFunctionToolRun$inboundSchema: z.ZodType<
1975
+ AgentToolInputRunFunctionToolRun,
2195
1976
  z.ZodTypeDef,
2196
1977
  unknown
2197
1978
  > = z.object({
2198
1979
  type:
2199
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
2200
- _id: z.string().optional(),
1980
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
2201
1981
  key: z.string(),
1982
+ _id: z.string().optional(),
2202
1983
  display_name: z.string().optional(),
2203
1984
  description: z.string().optional(),
1985
+ function: z.lazy(() => StreamRunAgentAgentToolInputRunFunction$inboundSchema),
2204
1986
  requires_approval: z.boolean().default(false),
2205
- function: z.lazy(() =>
2206
- StreamRunAgentRunAgentRequestToolFunction$inboundSchema
2207
- ),
2208
1987
  }).transform((v) => {
2209
1988
  return remap$(v, {
2210
1989
  "_id": "id",
@@ -2214,32 +1993,32 @@ export const RunAgentRequestToolFunctionTool$inboundSchema: z.ZodType<
2214
1993
  });
2215
1994
 
2216
1995
  /** @internal */
2217
- export type RunAgentRequestToolFunctionTool$Outbound = {
1996
+ export type AgentToolInputRunFunctionToolRun$Outbound = {
2218
1997
  type: string;
2219
- _id?: string | undefined;
2220
1998
  key: string;
1999
+ _id?: string | undefined;
2221
2000
  display_name?: string | undefined;
2222
2001
  description?: string | undefined;
2002
+ function: StreamRunAgentAgentToolInputRunFunction$Outbound;
2223
2003
  requires_approval: boolean;
2224
- function: StreamRunAgentRunAgentRequestToolFunction$Outbound;
2225
2004
  };
2226
2005
 
2227
2006
  /** @internal */
2228
- export const RunAgentRequestToolFunctionTool$outboundSchema: z.ZodType<
2229
- RunAgentRequestToolFunctionTool$Outbound,
2007
+ export const AgentToolInputRunFunctionToolRun$outboundSchema: z.ZodType<
2008
+ AgentToolInputRunFunctionToolRun$Outbound,
2230
2009
  z.ZodTypeDef,
2231
- RunAgentRequestToolFunctionTool
2010
+ AgentToolInputRunFunctionToolRun
2232
2011
  > = z.object({
2233
2012
  type:
2234
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
2235
- id: z.string().optional(),
2013
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
2236
2014
  key: z.string(),
2015
+ id: z.string().optional(),
2237
2016
  displayName: z.string().optional(),
2238
2017
  description: z.string().optional(),
2239
- requiresApproval: z.boolean().default(false),
2240
2018
  function: z.lazy(() =>
2241
- StreamRunAgentRunAgentRequestToolFunction$outboundSchema
2019
+ StreamRunAgentAgentToolInputRunFunction$outboundSchema
2242
2020
  ),
2021
+ requiresApproval: z.boolean().default(false),
2243
2022
  }).transform((v) => {
2244
2023
  return remap$(v, {
2245
2024
  id: "_id",
@@ -2252,110 +2031,110 @@ export const RunAgentRequestToolFunctionTool$outboundSchema: z.ZodType<
2252
2031
  * @internal
2253
2032
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2254
2033
  */
2255
- export namespace RunAgentRequestToolFunctionTool$ {
2256
- /** @deprecated use `RunAgentRequestToolFunctionTool$inboundSchema` instead. */
2257
- export const inboundSchema = RunAgentRequestToolFunctionTool$inboundSchema;
2258
- /** @deprecated use `RunAgentRequestToolFunctionTool$outboundSchema` instead. */
2259
- export const outboundSchema = RunAgentRequestToolFunctionTool$outboundSchema;
2260
- /** @deprecated use `RunAgentRequestToolFunctionTool$Outbound` instead. */
2261
- export type Outbound = RunAgentRequestToolFunctionTool$Outbound;
2034
+ export namespace AgentToolInputRunFunctionToolRun$ {
2035
+ /** @deprecated use `AgentToolInputRunFunctionToolRun$inboundSchema` instead. */
2036
+ export const inboundSchema = AgentToolInputRunFunctionToolRun$inboundSchema;
2037
+ /** @deprecated use `AgentToolInputRunFunctionToolRun$outboundSchema` instead. */
2038
+ export const outboundSchema = AgentToolInputRunFunctionToolRun$outboundSchema;
2039
+ /** @deprecated use `AgentToolInputRunFunctionToolRun$Outbound` instead. */
2040
+ export type Outbound = AgentToolInputRunFunctionToolRun$Outbound;
2262
2041
  }
2263
2042
 
2264
- export function runAgentRequestToolFunctionToolToJSON(
2265
- runAgentRequestToolFunctionTool: RunAgentRequestToolFunctionTool,
2043
+ export function agentToolInputRunFunctionToolRunToJSON(
2044
+ agentToolInputRunFunctionToolRun: AgentToolInputRunFunctionToolRun,
2266
2045
  ): string {
2267
2046
  return JSON.stringify(
2268
- RunAgentRequestToolFunctionTool$outboundSchema.parse(
2269
- runAgentRequestToolFunctionTool,
2047
+ AgentToolInputRunFunctionToolRun$outboundSchema.parse(
2048
+ agentToolInputRunFunctionToolRun,
2270
2049
  ),
2271
2050
  );
2272
2051
  }
2273
2052
 
2274
- export function runAgentRequestToolFunctionToolFromJSON(
2053
+ export function agentToolInputRunFunctionToolRunFromJSON(
2275
2054
  jsonString: string,
2276
- ): SafeParseResult<RunAgentRequestToolFunctionTool, SDKValidationError> {
2055
+ ): SafeParseResult<AgentToolInputRunFunctionToolRun, SDKValidationError> {
2277
2056
  return safeParse(
2278
2057
  jsonString,
2279
- (x) => RunAgentRequestToolFunctionTool$inboundSchema.parse(JSON.parse(x)),
2280
- `Failed to parse 'RunAgentRequestToolFunctionTool' from JSON`,
2058
+ (x) => AgentToolInputRunFunctionToolRun$inboundSchema.parse(JSON.parse(x)),
2059
+ `Failed to parse 'AgentToolInputRunFunctionToolRun' from JSON`,
2281
2060
  );
2282
2061
  }
2283
2062
 
2284
2063
  /** @internal */
2285
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
2064
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
2286
2065
  z.ZodNativeEnum<
2287
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
2066
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2288
2067
  > = z.nativeEnum(
2289
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type,
2068
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
2290
2069
  );
2291
2070
 
2292
2071
  /** @internal */
2293
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
2072
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
2294
2073
  z.ZodNativeEnum<
2295
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
2074
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2296
2075
  > =
2297
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2076
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2298
2077
 
2299
2078
  /**
2300
2079
  * @internal
2301
2080
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2302
2081
  */
2303
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$ {
2304
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
2082
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
2083
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
2305
2084
  export const inboundSchema =
2306
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2307
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
2085
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2086
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
2308
2087
  export const outboundSchema =
2309
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
2088
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
2310
2089
  }
2311
2090
 
2312
2091
  /** @internal */
2313
- export const RunAgentRequestToolLanguage$inboundSchema: z.ZodNativeEnum<
2314
- typeof RunAgentRequestToolLanguage
2315
- > = z.nativeEnum(RunAgentRequestToolLanguage);
2092
+ export const AgentToolInputRunLanguage$inboundSchema: z.ZodNativeEnum<
2093
+ typeof AgentToolInputRunLanguage
2094
+ > = z.nativeEnum(AgentToolInputRunLanguage);
2316
2095
 
2317
2096
  /** @internal */
2318
- export const RunAgentRequestToolLanguage$outboundSchema: z.ZodNativeEnum<
2319
- typeof RunAgentRequestToolLanguage
2320
- > = RunAgentRequestToolLanguage$inboundSchema;
2097
+ export const AgentToolInputRunLanguage$outboundSchema: z.ZodNativeEnum<
2098
+ typeof AgentToolInputRunLanguage
2099
+ > = AgentToolInputRunLanguage$inboundSchema;
2321
2100
 
2322
2101
  /**
2323
2102
  * @internal
2324
2103
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2325
2104
  */
2326
- export namespace RunAgentRequestToolLanguage$ {
2327
- /** @deprecated use `RunAgentRequestToolLanguage$inboundSchema` instead. */
2328
- export const inboundSchema = RunAgentRequestToolLanguage$inboundSchema;
2329
- /** @deprecated use `RunAgentRequestToolLanguage$outboundSchema` instead. */
2330
- export const outboundSchema = RunAgentRequestToolLanguage$outboundSchema;
2105
+ export namespace AgentToolInputRunLanguage$ {
2106
+ /** @deprecated use `AgentToolInputRunLanguage$inboundSchema` instead. */
2107
+ export const inboundSchema = AgentToolInputRunLanguage$inboundSchema;
2108
+ /** @deprecated use `AgentToolInputRunLanguage$outboundSchema` instead. */
2109
+ export const outboundSchema = AgentToolInputRunLanguage$outboundSchema;
2331
2110
  }
2332
2111
 
2333
2112
  /** @internal */
2334
- export const RunAgentRequestToolCodeTool$inboundSchema: z.ZodType<
2335
- RunAgentRequestToolCodeTool,
2113
+ export const AgentToolInputRunCodeTool$inboundSchema: z.ZodType<
2114
+ AgentToolInputRunCodeTool,
2336
2115
  z.ZodTypeDef,
2337
2116
  unknown
2338
2117
  > = z.object({
2339
2118
  parameters: z.record(z.any()).optional(),
2340
- language: RunAgentRequestToolLanguage$inboundSchema,
2119
+ language: AgentToolInputRunLanguage$inboundSchema,
2341
2120
  code: z.string(),
2342
2121
  });
2343
2122
 
2344
2123
  /** @internal */
2345
- export type RunAgentRequestToolCodeTool$Outbound = {
2124
+ export type AgentToolInputRunCodeTool$Outbound = {
2346
2125
  parameters?: { [k: string]: any } | undefined;
2347
2126
  language: string;
2348
2127
  code: string;
2349
2128
  };
2350
2129
 
2351
2130
  /** @internal */
2352
- export const RunAgentRequestToolCodeTool$outboundSchema: z.ZodType<
2353
- RunAgentRequestToolCodeTool$Outbound,
2131
+ export const AgentToolInputRunCodeTool$outboundSchema: z.ZodType<
2132
+ AgentToolInputRunCodeTool$Outbound,
2354
2133
  z.ZodTypeDef,
2355
- RunAgentRequestToolCodeTool
2134
+ AgentToolInputRunCodeTool
2356
2135
  > = z.object({
2357
2136
  parameters: z.record(z.any()).optional(),
2358
- language: RunAgentRequestToolLanguage$outboundSchema,
2137
+ language: AgentToolInputRunLanguage$outboundSchema,
2359
2138
  code: z.string(),
2360
2139
  });
2361
2140
 
@@ -2363,88 +2142,86 @@ export const RunAgentRequestToolCodeTool$outboundSchema: z.ZodType<
2363
2142
  * @internal
2364
2143
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2365
2144
  */
2366
- export namespace RunAgentRequestToolCodeTool$ {
2367
- /** @deprecated use `RunAgentRequestToolCodeTool$inboundSchema` instead. */
2368
- export const inboundSchema = RunAgentRequestToolCodeTool$inboundSchema;
2369
- /** @deprecated use `RunAgentRequestToolCodeTool$outboundSchema` instead. */
2370
- export const outboundSchema = RunAgentRequestToolCodeTool$outboundSchema;
2371
- /** @deprecated use `RunAgentRequestToolCodeTool$Outbound` instead. */
2372
- export type Outbound = RunAgentRequestToolCodeTool$Outbound;
2145
+ export namespace AgentToolInputRunCodeTool$ {
2146
+ /** @deprecated use `AgentToolInputRunCodeTool$inboundSchema` instead. */
2147
+ export const inboundSchema = AgentToolInputRunCodeTool$inboundSchema;
2148
+ /** @deprecated use `AgentToolInputRunCodeTool$outboundSchema` instead. */
2149
+ export const outboundSchema = AgentToolInputRunCodeTool$outboundSchema;
2150
+ /** @deprecated use `AgentToolInputRunCodeTool$Outbound` instead. */
2151
+ export type Outbound = AgentToolInputRunCodeTool$Outbound;
2373
2152
  }
2374
2153
 
2375
- export function runAgentRequestToolCodeToolToJSON(
2376
- runAgentRequestToolCodeTool: RunAgentRequestToolCodeTool,
2154
+ export function agentToolInputRunCodeToolToJSON(
2155
+ agentToolInputRunCodeTool: AgentToolInputRunCodeTool,
2377
2156
  ): string {
2378
2157
  return JSON.stringify(
2379
- RunAgentRequestToolCodeTool$outboundSchema.parse(
2380
- runAgentRequestToolCodeTool,
2381
- ),
2158
+ AgentToolInputRunCodeTool$outboundSchema.parse(agentToolInputRunCodeTool),
2382
2159
  );
2383
2160
  }
2384
2161
 
2385
- export function runAgentRequestToolCodeToolFromJSON(
2162
+ export function agentToolInputRunCodeToolFromJSON(
2386
2163
  jsonString: string,
2387
- ): SafeParseResult<RunAgentRequestToolCodeTool, SDKValidationError> {
2164
+ ): SafeParseResult<AgentToolInputRunCodeTool, SDKValidationError> {
2388
2165
  return safeParse(
2389
2166
  jsonString,
2390
- (x) => RunAgentRequestToolCodeTool$inboundSchema.parse(JSON.parse(x)),
2391
- `Failed to parse 'RunAgentRequestToolCodeTool' from JSON`,
2167
+ (x) => AgentToolInputRunCodeTool$inboundSchema.parse(JSON.parse(x)),
2168
+ `Failed to parse 'AgentToolInputRunCodeTool' from JSON`,
2392
2169
  );
2393
2170
  }
2394
2171
 
2395
2172
  /** @internal */
2396
- export const RunAgentRequestToolCodeExecutionTool$inboundSchema: z.ZodType<
2397
- RunAgentRequestToolCodeExecutionTool,
2173
+ export const AgentToolInputRunCodeToolRun$inboundSchema: z.ZodType<
2174
+ AgentToolInputRunCodeToolRun,
2398
2175
  z.ZodTypeDef,
2399
2176
  unknown
2400
2177
  > = z.object({
2401
- key: z.string(),
2402
- display_name: z.string(),
2403
- description: z.string(),
2404
2178
  type:
2405
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
2406
- code_tool: z.lazy(() => RunAgentRequestToolCodeTool$inboundSchema),
2179
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
2180
+ key: z.string(),
2407
2181
  _id: z.string().optional(),
2182
+ display_name: z.string().optional(),
2183
+ description: z.string(),
2184
+ code_tool: z.lazy(() => AgentToolInputRunCodeTool$inboundSchema),
2408
2185
  requires_approval: z.boolean().default(false),
2409
2186
  }).transform((v) => {
2410
2187
  return remap$(v, {
2188
+ "_id": "id",
2411
2189
  "display_name": "displayName",
2412
2190
  "code_tool": "codeTool",
2413
- "_id": "id",
2414
2191
  "requires_approval": "requiresApproval",
2415
2192
  });
2416
2193
  });
2417
2194
 
2418
2195
  /** @internal */
2419
- export type RunAgentRequestToolCodeExecutionTool$Outbound = {
2420
- key: string;
2421
- display_name: string;
2422
- description: string;
2196
+ export type AgentToolInputRunCodeToolRun$Outbound = {
2423
2197
  type: string;
2424
- code_tool: RunAgentRequestToolCodeTool$Outbound;
2198
+ key: string;
2425
2199
  _id?: string | undefined;
2200
+ display_name?: string | undefined;
2201
+ description: string;
2202
+ code_tool: AgentToolInputRunCodeTool$Outbound;
2426
2203
  requires_approval: boolean;
2427
2204
  };
2428
2205
 
2429
2206
  /** @internal */
2430
- export const RunAgentRequestToolCodeExecutionTool$outboundSchema: z.ZodType<
2431
- RunAgentRequestToolCodeExecutionTool$Outbound,
2207
+ export const AgentToolInputRunCodeToolRun$outboundSchema: z.ZodType<
2208
+ AgentToolInputRunCodeToolRun$Outbound,
2432
2209
  z.ZodTypeDef,
2433
- RunAgentRequestToolCodeExecutionTool
2210
+ AgentToolInputRunCodeToolRun
2434
2211
  > = z.object({
2435
- key: z.string(),
2436
- displayName: z.string(),
2437
- description: z.string(),
2438
2212
  type:
2439
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
2440
- codeTool: z.lazy(() => RunAgentRequestToolCodeTool$outboundSchema),
2213
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
2214
+ key: z.string(),
2441
2215
  id: z.string().optional(),
2216
+ displayName: z.string().optional(),
2217
+ description: z.string(),
2218
+ codeTool: z.lazy(() => AgentToolInputRunCodeTool$outboundSchema),
2442
2219
  requiresApproval: z.boolean().default(false),
2443
2220
  }).transform((v) => {
2444
2221
  return remap$(v, {
2222
+ id: "_id",
2445
2223
  displayName: "display_name",
2446
2224
  codeTool: "code_tool",
2447
- id: "_id",
2448
2225
  requiresApproval: "requires_approval",
2449
2226
  });
2450
2227
  });
@@ -2453,101 +2230,98 @@ export const RunAgentRequestToolCodeExecutionTool$outboundSchema: z.ZodType<
2453
2230
  * @internal
2454
2231
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2455
2232
  */
2456
- export namespace RunAgentRequestToolCodeExecutionTool$ {
2457
- /** @deprecated use `RunAgentRequestToolCodeExecutionTool$inboundSchema` instead. */
2458
- export const inboundSchema =
2459
- RunAgentRequestToolCodeExecutionTool$inboundSchema;
2460
- /** @deprecated use `RunAgentRequestToolCodeExecutionTool$outboundSchema` instead. */
2461
- export const outboundSchema =
2462
- RunAgentRequestToolCodeExecutionTool$outboundSchema;
2463
- /** @deprecated use `RunAgentRequestToolCodeExecutionTool$Outbound` instead. */
2464
- export type Outbound = RunAgentRequestToolCodeExecutionTool$Outbound;
2233
+ export namespace AgentToolInputRunCodeToolRun$ {
2234
+ /** @deprecated use `AgentToolInputRunCodeToolRun$inboundSchema` instead. */
2235
+ export const inboundSchema = AgentToolInputRunCodeToolRun$inboundSchema;
2236
+ /** @deprecated use `AgentToolInputRunCodeToolRun$outboundSchema` instead. */
2237
+ export const outboundSchema = AgentToolInputRunCodeToolRun$outboundSchema;
2238
+ /** @deprecated use `AgentToolInputRunCodeToolRun$Outbound` instead. */
2239
+ export type Outbound = AgentToolInputRunCodeToolRun$Outbound;
2465
2240
  }
2466
2241
 
2467
- export function runAgentRequestToolCodeExecutionToolToJSON(
2468
- runAgentRequestToolCodeExecutionTool: RunAgentRequestToolCodeExecutionTool,
2242
+ export function agentToolInputRunCodeToolRunToJSON(
2243
+ agentToolInputRunCodeToolRun: AgentToolInputRunCodeToolRun,
2469
2244
  ): string {
2470
2245
  return JSON.stringify(
2471
- RunAgentRequestToolCodeExecutionTool$outboundSchema.parse(
2472
- runAgentRequestToolCodeExecutionTool,
2246
+ AgentToolInputRunCodeToolRun$outboundSchema.parse(
2247
+ agentToolInputRunCodeToolRun,
2473
2248
  ),
2474
2249
  );
2475
2250
  }
2476
2251
 
2477
- export function runAgentRequestToolCodeExecutionToolFromJSON(
2252
+ export function agentToolInputRunCodeToolRunFromJSON(
2478
2253
  jsonString: string,
2479
- ): SafeParseResult<RunAgentRequestToolCodeExecutionTool, SDKValidationError> {
2254
+ ): SafeParseResult<AgentToolInputRunCodeToolRun, SDKValidationError> {
2480
2255
  return safeParse(
2481
2256
  jsonString,
2482
- (x) =>
2483
- RunAgentRequestToolCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
2484
- `Failed to parse 'RunAgentRequestToolCodeExecutionTool' from JSON`,
2257
+ (x) => AgentToolInputRunCodeToolRun$inboundSchema.parse(JSON.parse(x)),
2258
+ `Failed to parse 'AgentToolInputRunCodeToolRun' from JSON`,
2485
2259
  );
2486
2260
  }
2487
2261
 
2488
2262
  /** @internal */
2489
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
2263
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
2490
2264
  z.ZodNativeEnum<
2491
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
2265
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2492
2266
  > = z.nativeEnum(
2493
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type,
2267
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
2494
2268
  );
2495
2269
 
2496
2270
  /** @internal */
2497
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
2271
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
2498
2272
  z.ZodNativeEnum<
2499
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
2273
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2500
2274
  > =
2501
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2275
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2502
2276
 
2503
2277
  /**
2504
2278
  * @internal
2505
2279
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2506
2280
  */
2507
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$ {
2508
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
2281
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
2282
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
2509
2283
  export const inboundSchema =
2510
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2511
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
2284
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2285
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
2512
2286
  export const outboundSchema =
2513
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
2287
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
2514
2288
  }
2515
2289
 
2516
2290
  /** @internal */
2517
- export const RunAgentRequestToolMethod$inboundSchema: z.ZodNativeEnum<
2518
- typeof RunAgentRequestToolMethod
2519
- > = z.nativeEnum(RunAgentRequestToolMethod);
2291
+ export const AgentToolInputRunMethod$inboundSchema: z.ZodNativeEnum<
2292
+ typeof AgentToolInputRunMethod
2293
+ > = z.nativeEnum(AgentToolInputRunMethod);
2520
2294
 
2521
2295
  /** @internal */
2522
- export const RunAgentRequestToolMethod$outboundSchema: z.ZodNativeEnum<
2523
- typeof RunAgentRequestToolMethod
2524
- > = RunAgentRequestToolMethod$inboundSchema;
2296
+ export const AgentToolInputRunMethod$outboundSchema: z.ZodNativeEnum<
2297
+ typeof AgentToolInputRunMethod
2298
+ > = AgentToolInputRunMethod$inboundSchema;
2525
2299
 
2526
2300
  /**
2527
2301
  * @internal
2528
2302
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2529
2303
  */
2530
- export namespace RunAgentRequestToolMethod$ {
2531
- /** @deprecated use `RunAgentRequestToolMethod$inboundSchema` instead. */
2532
- export const inboundSchema = RunAgentRequestToolMethod$inboundSchema;
2533
- /** @deprecated use `RunAgentRequestToolMethod$outboundSchema` instead. */
2534
- export const outboundSchema = RunAgentRequestToolMethod$outboundSchema;
2304
+ export namespace AgentToolInputRunMethod$ {
2305
+ /** @deprecated use `AgentToolInputRunMethod$inboundSchema` instead. */
2306
+ export const inboundSchema = AgentToolInputRunMethod$inboundSchema;
2307
+ /** @deprecated use `AgentToolInputRunMethod$outboundSchema` instead. */
2308
+ export const outboundSchema = AgentToolInputRunMethod$outboundSchema;
2535
2309
  }
2536
2310
 
2537
2311
  /** @internal */
2538
- export const RunAgentRequestToolBlueprint$inboundSchema: z.ZodType<
2539
- RunAgentRequestToolBlueprint,
2312
+ export const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<
2313
+ AgentToolInputRunBlueprint,
2540
2314
  z.ZodTypeDef,
2541
2315
  unknown
2542
2316
  > = z.object({
2543
2317
  url: z.string(),
2544
- method: RunAgentRequestToolMethod$inboundSchema,
2318
+ method: AgentToolInputRunMethod$inboundSchema,
2545
2319
  headers: z.record(z.string()).optional(),
2546
2320
  body: z.record(z.any()).optional(),
2547
2321
  });
2548
2322
 
2549
2323
  /** @internal */
2550
- export type RunAgentRequestToolBlueprint$Outbound = {
2324
+ export type AgentToolInputRunBlueprint$Outbound = {
2551
2325
  url: string;
2552
2326
  method: string;
2553
2327
  headers?: { [k: string]: string } | undefined;
@@ -2555,13 +2329,13 @@ export type RunAgentRequestToolBlueprint$Outbound = {
2555
2329
  };
2556
2330
 
2557
2331
  /** @internal */
2558
- export const RunAgentRequestToolBlueprint$outboundSchema: z.ZodType<
2559
- RunAgentRequestToolBlueprint$Outbound,
2332
+ export const AgentToolInputRunBlueprint$outboundSchema: z.ZodType<
2333
+ AgentToolInputRunBlueprint$Outbound,
2560
2334
  z.ZodTypeDef,
2561
- RunAgentRequestToolBlueprint
2335
+ AgentToolInputRunBlueprint
2562
2336
  > = z.object({
2563
2337
  url: z.string(),
2564
- method: RunAgentRequestToolMethod$outboundSchema,
2338
+ method: AgentToolInputRunMethod$outboundSchema,
2565
2339
  headers: z.record(z.string()).optional(),
2566
2340
  body: z.record(z.any()).optional(),
2567
2341
  });
@@ -2570,124 +2344,119 @@ export const RunAgentRequestToolBlueprint$outboundSchema: z.ZodType<
2570
2344
  * @internal
2571
2345
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2572
2346
  */
2573
- export namespace RunAgentRequestToolBlueprint$ {
2574
- /** @deprecated use `RunAgentRequestToolBlueprint$inboundSchema` instead. */
2575
- export const inboundSchema = RunAgentRequestToolBlueprint$inboundSchema;
2576
- /** @deprecated use `RunAgentRequestToolBlueprint$outboundSchema` instead. */
2577
- export const outboundSchema = RunAgentRequestToolBlueprint$outboundSchema;
2578
- /** @deprecated use `RunAgentRequestToolBlueprint$Outbound` instead. */
2579
- export type Outbound = RunAgentRequestToolBlueprint$Outbound;
2347
+ export namespace AgentToolInputRunBlueprint$ {
2348
+ /** @deprecated use `AgentToolInputRunBlueprint$inboundSchema` instead. */
2349
+ export const inboundSchema = AgentToolInputRunBlueprint$inboundSchema;
2350
+ /** @deprecated use `AgentToolInputRunBlueprint$outboundSchema` instead. */
2351
+ export const outboundSchema = AgentToolInputRunBlueprint$outboundSchema;
2352
+ /** @deprecated use `AgentToolInputRunBlueprint$Outbound` instead. */
2353
+ export type Outbound = AgentToolInputRunBlueprint$Outbound;
2580
2354
  }
2581
2355
 
2582
- export function runAgentRequestToolBlueprintToJSON(
2583
- runAgentRequestToolBlueprint: RunAgentRequestToolBlueprint,
2356
+ export function agentToolInputRunBlueprintToJSON(
2357
+ agentToolInputRunBlueprint: AgentToolInputRunBlueprint,
2584
2358
  ): string {
2585
2359
  return JSON.stringify(
2586
- RunAgentRequestToolBlueprint$outboundSchema.parse(
2587
- runAgentRequestToolBlueprint,
2588
- ),
2360
+ AgentToolInputRunBlueprint$outboundSchema.parse(agentToolInputRunBlueprint),
2589
2361
  );
2590
2362
  }
2591
2363
 
2592
- export function runAgentRequestToolBlueprintFromJSON(
2364
+ export function agentToolInputRunBlueprintFromJSON(
2593
2365
  jsonString: string,
2594
- ): SafeParseResult<RunAgentRequestToolBlueprint, SDKValidationError> {
2366
+ ): SafeParseResult<AgentToolInputRunBlueprint, SDKValidationError> {
2595
2367
  return safeParse(
2596
2368
  jsonString,
2597
- (x) => RunAgentRequestToolBlueprint$inboundSchema.parse(JSON.parse(x)),
2598
- `Failed to parse 'RunAgentRequestToolBlueprint' from JSON`,
2369
+ (x) => AgentToolInputRunBlueprint$inboundSchema.parse(JSON.parse(x)),
2370
+ `Failed to parse 'AgentToolInputRunBlueprint' from JSON`,
2599
2371
  );
2600
2372
  }
2601
2373
 
2602
2374
  /** @internal */
2603
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
2375
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
2604
2376
  z.ZodNativeEnum<
2605
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
2377
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2606
2378
  > = z.nativeEnum(
2607
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType,
2379
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
2608
2380
  );
2609
2381
 
2610
2382
  /** @internal */
2611
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
2383
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
2612
2384
  z.ZodNativeEnum<
2613
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
2385
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2614
2386
  > =
2615
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2387
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2616
2388
 
2617
2389
  /**
2618
2390
  * @internal
2619
2391
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2620
2392
  */
2621
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$ {
2622
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
2393
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
2394
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
2623
2395
  export const inboundSchema =
2624
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2625
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
2396
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2397
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
2626
2398
  export const outboundSchema =
2627
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
2399
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
2628
2400
  }
2629
2401
 
2630
2402
  /** @internal */
2631
- export const RunAgentRequestToolDefaultValue$inboundSchema: z.ZodType<
2632
- RunAgentRequestToolDefaultValue,
2403
+ export const AgentToolInputRunDefaultValue$inboundSchema: z.ZodType<
2404
+ AgentToolInputRunDefaultValue,
2633
2405
  z.ZodTypeDef,
2634
2406
  unknown
2635
2407
  > = z.union([z.string(), z.number(), z.boolean()]);
2636
2408
 
2637
2409
  /** @internal */
2638
- export type RunAgentRequestToolDefaultValue$Outbound =
2639
- | string
2640
- | number
2641
- | boolean;
2410
+ export type AgentToolInputRunDefaultValue$Outbound = string | number | boolean;
2642
2411
 
2643
2412
  /** @internal */
2644
- export const RunAgentRequestToolDefaultValue$outboundSchema: z.ZodType<
2645
- RunAgentRequestToolDefaultValue$Outbound,
2413
+ export const AgentToolInputRunDefaultValue$outboundSchema: z.ZodType<
2414
+ AgentToolInputRunDefaultValue$Outbound,
2646
2415
  z.ZodTypeDef,
2647
- RunAgentRequestToolDefaultValue
2416
+ AgentToolInputRunDefaultValue
2648
2417
  > = z.union([z.string(), z.number(), z.boolean()]);
2649
2418
 
2650
2419
  /**
2651
2420
  * @internal
2652
2421
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2653
2422
  */
2654
- export namespace RunAgentRequestToolDefaultValue$ {
2655
- /** @deprecated use `RunAgentRequestToolDefaultValue$inboundSchema` instead. */
2656
- export const inboundSchema = RunAgentRequestToolDefaultValue$inboundSchema;
2657
- /** @deprecated use `RunAgentRequestToolDefaultValue$outboundSchema` instead. */
2658
- export const outboundSchema = RunAgentRequestToolDefaultValue$outboundSchema;
2659
- /** @deprecated use `RunAgentRequestToolDefaultValue$Outbound` instead. */
2660
- export type Outbound = RunAgentRequestToolDefaultValue$Outbound;
2423
+ export namespace AgentToolInputRunDefaultValue$ {
2424
+ /** @deprecated use `AgentToolInputRunDefaultValue$inboundSchema` instead. */
2425
+ export const inboundSchema = AgentToolInputRunDefaultValue$inboundSchema;
2426
+ /** @deprecated use `AgentToolInputRunDefaultValue$outboundSchema` instead. */
2427
+ export const outboundSchema = AgentToolInputRunDefaultValue$outboundSchema;
2428
+ /** @deprecated use `AgentToolInputRunDefaultValue$Outbound` instead. */
2429
+ export type Outbound = AgentToolInputRunDefaultValue$Outbound;
2661
2430
  }
2662
2431
 
2663
- export function runAgentRequestToolDefaultValueToJSON(
2664
- runAgentRequestToolDefaultValue: RunAgentRequestToolDefaultValue,
2432
+ export function agentToolInputRunDefaultValueToJSON(
2433
+ agentToolInputRunDefaultValue: AgentToolInputRunDefaultValue,
2665
2434
  ): string {
2666
2435
  return JSON.stringify(
2667
- RunAgentRequestToolDefaultValue$outboundSchema.parse(
2668
- runAgentRequestToolDefaultValue,
2436
+ AgentToolInputRunDefaultValue$outboundSchema.parse(
2437
+ agentToolInputRunDefaultValue,
2669
2438
  ),
2670
2439
  );
2671
2440
  }
2672
2441
 
2673
- export function runAgentRequestToolDefaultValueFromJSON(
2442
+ export function agentToolInputRunDefaultValueFromJSON(
2674
2443
  jsonString: string,
2675
- ): SafeParseResult<RunAgentRequestToolDefaultValue, SDKValidationError> {
2444
+ ): SafeParseResult<AgentToolInputRunDefaultValue, SDKValidationError> {
2676
2445
  return safeParse(
2677
2446
  jsonString,
2678
- (x) => RunAgentRequestToolDefaultValue$inboundSchema.parse(JSON.parse(x)),
2679
- `Failed to parse 'RunAgentRequestToolDefaultValue' from JSON`,
2447
+ (x) => AgentToolInputRunDefaultValue$inboundSchema.parse(JSON.parse(x)),
2448
+ `Failed to parse 'AgentToolInputRunDefaultValue' from JSON`,
2680
2449
  );
2681
2450
  }
2682
2451
 
2683
2452
  /** @internal */
2684
- export const RunAgentRequestToolArguments$inboundSchema: z.ZodType<
2685
- RunAgentRequestToolArguments,
2453
+ export const AgentToolInputRunArguments$inboundSchema: z.ZodType<
2454
+ AgentToolInputRunArguments,
2686
2455
  z.ZodTypeDef,
2687
2456
  unknown
2688
2457
  > = z.object({
2689
2458
  type:
2690
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
2459
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
2691
2460
  description: z.string(),
2692
2461
  send_to_model: z.boolean().default(true),
2693
2462
  default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2699,7 +2468,7 @@ export const RunAgentRequestToolArguments$inboundSchema: z.ZodType<
2699
2468
  });
2700
2469
 
2701
2470
  /** @internal */
2702
- export type RunAgentRequestToolArguments$Outbound = {
2471
+ export type AgentToolInputRunArguments$Outbound = {
2703
2472
  type: string;
2704
2473
  description: string;
2705
2474
  send_to_model: boolean;
@@ -2707,13 +2476,13 @@ export type RunAgentRequestToolArguments$Outbound = {
2707
2476
  };
2708
2477
 
2709
2478
  /** @internal */
2710
- export const RunAgentRequestToolArguments$outboundSchema: z.ZodType<
2711
- RunAgentRequestToolArguments$Outbound,
2479
+ export const AgentToolInputRunArguments$outboundSchema: z.ZodType<
2480
+ AgentToolInputRunArguments$Outbound,
2712
2481
  z.ZodTypeDef,
2713
- RunAgentRequestToolArguments
2482
+ AgentToolInputRunArguments
2714
2483
  > = z.object({
2715
2484
  type:
2716
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
2485
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
2717
2486
  description: z.string(),
2718
2487
  sendToModel: z.boolean().default(true),
2719
2488
  defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2728,62 +2497,58 @@ export const RunAgentRequestToolArguments$outboundSchema: z.ZodType<
2728
2497
  * @internal
2729
2498
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2730
2499
  */
2731
- export namespace RunAgentRequestToolArguments$ {
2732
- /** @deprecated use `RunAgentRequestToolArguments$inboundSchema` instead. */
2733
- export const inboundSchema = RunAgentRequestToolArguments$inboundSchema;
2734
- /** @deprecated use `RunAgentRequestToolArguments$outboundSchema` instead. */
2735
- export const outboundSchema = RunAgentRequestToolArguments$outboundSchema;
2736
- /** @deprecated use `RunAgentRequestToolArguments$Outbound` instead. */
2737
- export type Outbound = RunAgentRequestToolArguments$Outbound;
2500
+ export namespace AgentToolInputRunArguments$ {
2501
+ /** @deprecated use `AgentToolInputRunArguments$inboundSchema` instead. */
2502
+ export const inboundSchema = AgentToolInputRunArguments$inboundSchema;
2503
+ /** @deprecated use `AgentToolInputRunArguments$outboundSchema` instead. */
2504
+ export const outboundSchema = AgentToolInputRunArguments$outboundSchema;
2505
+ /** @deprecated use `AgentToolInputRunArguments$Outbound` instead. */
2506
+ export type Outbound = AgentToolInputRunArguments$Outbound;
2738
2507
  }
2739
2508
 
2740
- export function runAgentRequestToolArgumentsToJSON(
2741
- runAgentRequestToolArguments: RunAgentRequestToolArguments,
2509
+ export function agentToolInputRunArgumentsToJSON(
2510
+ agentToolInputRunArguments: AgentToolInputRunArguments,
2742
2511
  ): string {
2743
2512
  return JSON.stringify(
2744
- RunAgentRequestToolArguments$outboundSchema.parse(
2745
- runAgentRequestToolArguments,
2746
- ),
2513
+ AgentToolInputRunArguments$outboundSchema.parse(agentToolInputRunArguments),
2747
2514
  );
2748
2515
  }
2749
2516
 
2750
- export function runAgentRequestToolArgumentsFromJSON(
2517
+ export function agentToolInputRunArgumentsFromJSON(
2751
2518
  jsonString: string,
2752
- ): SafeParseResult<RunAgentRequestToolArguments, SDKValidationError> {
2519
+ ): SafeParseResult<AgentToolInputRunArguments, SDKValidationError> {
2753
2520
  return safeParse(
2754
2521
  jsonString,
2755
- (x) => RunAgentRequestToolArguments$inboundSchema.parse(JSON.parse(x)),
2756
- `Failed to parse 'RunAgentRequestToolArguments' from JSON`,
2522
+ (x) => AgentToolInputRunArguments$inboundSchema.parse(JSON.parse(x)),
2523
+ `Failed to parse 'AgentToolInputRunArguments' from JSON`,
2757
2524
  );
2758
2525
  }
2759
2526
 
2760
2527
  /** @internal */
2761
- export const RunAgentRequestToolHttp$inboundSchema: z.ZodType<
2762
- RunAgentRequestToolHttp,
2528
+ export const AgentToolInputRunHttp$inboundSchema: z.ZodType<
2529
+ AgentToolInputRunHttp,
2763
2530
  z.ZodTypeDef,
2764
2531
  unknown
2765
2532
  > = z.object({
2766
- blueprint: z.lazy(() => RunAgentRequestToolBlueprint$inboundSchema),
2767
- arguments: z.record(z.lazy(() => RunAgentRequestToolArguments$inboundSchema))
2533
+ blueprint: z.lazy(() => AgentToolInputRunBlueprint$inboundSchema),
2534
+ arguments: z.record(z.lazy(() => AgentToolInputRunArguments$inboundSchema))
2768
2535
  .optional(),
2769
2536
  });
2770
2537
 
2771
2538
  /** @internal */
2772
- export type RunAgentRequestToolHttp$Outbound = {
2773
- blueprint: RunAgentRequestToolBlueprint$Outbound;
2774
- arguments?:
2775
- | { [k: string]: RunAgentRequestToolArguments$Outbound }
2776
- | undefined;
2539
+ export type AgentToolInputRunHttp$Outbound = {
2540
+ blueprint: AgentToolInputRunBlueprint$Outbound;
2541
+ arguments?: { [k: string]: AgentToolInputRunArguments$Outbound } | undefined;
2777
2542
  };
2778
2543
 
2779
2544
  /** @internal */
2780
- export const RunAgentRequestToolHttp$outboundSchema: z.ZodType<
2781
- RunAgentRequestToolHttp$Outbound,
2545
+ export const AgentToolInputRunHttp$outboundSchema: z.ZodType<
2546
+ AgentToolInputRunHttp$Outbound,
2782
2547
  z.ZodTypeDef,
2783
- RunAgentRequestToolHttp
2548
+ AgentToolInputRunHttp
2784
2549
  > = z.object({
2785
- blueprint: z.lazy(() => RunAgentRequestToolBlueprint$outboundSchema),
2786
- arguments: z.record(z.lazy(() => RunAgentRequestToolArguments$outboundSchema))
2550
+ blueprint: z.lazy(() => AgentToolInputRunBlueprint$outboundSchema),
2551
+ arguments: z.record(z.lazy(() => AgentToolInputRunArguments$outboundSchema))
2787
2552
  .optional(),
2788
2553
  });
2789
2554
 
@@ -2791,46 +2556,46 @@ export const RunAgentRequestToolHttp$outboundSchema: z.ZodType<
2791
2556
  * @internal
2792
2557
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2793
2558
  */
2794
- export namespace RunAgentRequestToolHttp$ {
2795
- /** @deprecated use `RunAgentRequestToolHttp$inboundSchema` instead. */
2796
- export const inboundSchema = RunAgentRequestToolHttp$inboundSchema;
2797
- /** @deprecated use `RunAgentRequestToolHttp$outboundSchema` instead. */
2798
- export const outboundSchema = RunAgentRequestToolHttp$outboundSchema;
2799
- /** @deprecated use `RunAgentRequestToolHttp$Outbound` instead. */
2800
- export type Outbound = RunAgentRequestToolHttp$Outbound;
2559
+ export namespace AgentToolInputRunHttp$ {
2560
+ /** @deprecated use `AgentToolInputRunHttp$inboundSchema` instead. */
2561
+ export const inboundSchema = AgentToolInputRunHttp$inboundSchema;
2562
+ /** @deprecated use `AgentToolInputRunHttp$outboundSchema` instead. */
2563
+ export const outboundSchema = AgentToolInputRunHttp$outboundSchema;
2564
+ /** @deprecated use `AgentToolInputRunHttp$Outbound` instead. */
2565
+ export type Outbound = AgentToolInputRunHttp$Outbound;
2801
2566
  }
2802
2567
 
2803
- export function runAgentRequestToolHttpToJSON(
2804
- runAgentRequestToolHttp: RunAgentRequestToolHttp,
2568
+ export function agentToolInputRunHttpToJSON(
2569
+ agentToolInputRunHttp: AgentToolInputRunHttp,
2805
2570
  ): string {
2806
2571
  return JSON.stringify(
2807
- RunAgentRequestToolHttp$outboundSchema.parse(runAgentRequestToolHttp),
2572
+ AgentToolInputRunHttp$outboundSchema.parse(agentToolInputRunHttp),
2808
2573
  );
2809
2574
  }
2810
2575
 
2811
- export function runAgentRequestToolHttpFromJSON(
2576
+ export function agentToolInputRunHttpFromJSON(
2812
2577
  jsonString: string,
2813
- ): SafeParseResult<RunAgentRequestToolHttp, SDKValidationError> {
2578
+ ): SafeParseResult<AgentToolInputRunHttp, SDKValidationError> {
2814
2579
  return safeParse(
2815
2580
  jsonString,
2816
- (x) => RunAgentRequestToolHttp$inboundSchema.parse(JSON.parse(x)),
2817
- `Failed to parse 'RunAgentRequestToolHttp' from JSON`,
2581
+ (x) => AgentToolInputRunHttp$inboundSchema.parse(JSON.parse(x)),
2582
+ `Failed to parse 'AgentToolInputRunHttp' from JSON`,
2818
2583
  );
2819
2584
  }
2820
2585
 
2821
2586
  /** @internal */
2822
- export const RunAgentRequestToolHTTPTool$inboundSchema: z.ZodType<
2823
- RunAgentRequestToolHTTPTool,
2587
+ export const AgentToolInputRunHTTPToolRun$inboundSchema: z.ZodType<
2588
+ AgentToolInputRunHTTPToolRun,
2824
2589
  z.ZodTypeDef,
2825
2590
  unknown
2826
2591
  > = z.object({
2827
- _id: z.string().default("01K7KDRXHAAE9R0B9ENB74Q4S6"),
2592
+ type:
2593
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
2828
2594
  key: z.string(),
2829
- display_name: z.string(),
2595
+ _id: z.string().optional(),
2596
+ display_name: z.string().optional(),
2830
2597
  description: z.string(),
2831
- type:
2832
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
2833
- http: z.lazy(() => RunAgentRequestToolHttp$inboundSchema),
2598
+ http: z.lazy(() => AgentToolInputRunHttp$inboundSchema),
2834
2599
  requires_approval: z.boolean().default(false),
2835
2600
  }).transform((v) => {
2836
2601
  return remap$(v, {
@@ -2841,29 +2606,29 @@ export const RunAgentRequestToolHTTPTool$inboundSchema: z.ZodType<
2841
2606
  });
2842
2607
 
2843
2608
  /** @internal */
2844
- export type RunAgentRequestToolHTTPTool$Outbound = {
2845
- _id: string;
2609
+ export type AgentToolInputRunHTTPToolRun$Outbound = {
2610
+ type: string;
2846
2611
  key: string;
2847
- display_name: string;
2612
+ _id?: string | undefined;
2613
+ display_name?: string | undefined;
2848
2614
  description: string;
2849
- type: string;
2850
- http: RunAgentRequestToolHttp$Outbound;
2615
+ http: AgentToolInputRunHttp$Outbound;
2851
2616
  requires_approval: boolean;
2852
2617
  };
2853
2618
 
2854
2619
  /** @internal */
2855
- export const RunAgentRequestToolHTTPTool$outboundSchema: z.ZodType<
2856
- RunAgentRequestToolHTTPTool$Outbound,
2620
+ export const AgentToolInputRunHTTPToolRun$outboundSchema: z.ZodType<
2621
+ AgentToolInputRunHTTPToolRun$Outbound,
2857
2622
  z.ZodTypeDef,
2858
- RunAgentRequestToolHTTPTool
2623
+ AgentToolInputRunHTTPToolRun
2859
2624
  > = z.object({
2860
- id: z.string().default("01K7KDRXHAAE9R0B9ENB74Q4S6"),
2625
+ type:
2626
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
2861
2627
  key: z.string(),
2862
- displayName: z.string(),
2628
+ id: z.string().optional(),
2629
+ displayName: z.string().optional(),
2863
2630
  description: z.string(),
2864
- type:
2865
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
2866
- http: z.lazy(() => RunAgentRequestToolHttp$outboundSchema),
2631
+ http: z.lazy(() => AgentToolInputRunHttp$outboundSchema),
2867
2632
  requiresApproval: z.boolean().default(false),
2868
2633
  }).transform((v) => {
2869
2634
  return remap$(v, {
@@ -2877,192 +2642,203 @@ export const RunAgentRequestToolHTTPTool$outboundSchema: z.ZodType<
2877
2642
  * @internal
2878
2643
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2879
2644
  */
2880
- export namespace RunAgentRequestToolHTTPTool$ {
2881
- /** @deprecated use `RunAgentRequestToolHTTPTool$inboundSchema` instead. */
2882
- export const inboundSchema = RunAgentRequestToolHTTPTool$inboundSchema;
2883
- /** @deprecated use `RunAgentRequestToolHTTPTool$outboundSchema` instead. */
2884
- export const outboundSchema = RunAgentRequestToolHTTPTool$outboundSchema;
2885
- /** @deprecated use `RunAgentRequestToolHTTPTool$Outbound` instead. */
2886
- export type Outbound = RunAgentRequestToolHTTPTool$Outbound;
2645
+ export namespace AgentToolInputRunHTTPToolRun$ {
2646
+ /** @deprecated use `AgentToolInputRunHTTPToolRun$inboundSchema` instead. */
2647
+ export const inboundSchema = AgentToolInputRunHTTPToolRun$inboundSchema;
2648
+ /** @deprecated use `AgentToolInputRunHTTPToolRun$outboundSchema` instead. */
2649
+ export const outboundSchema = AgentToolInputRunHTTPToolRun$outboundSchema;
2650
+ /** @deprecated use `AgentToolInputRunHTTPToolRun$Outbound` instead. */
2651
+ export type Outbound = AgentToolInputRunHTTPToolRun$Outbound;
2887
2652
  }
2888
2653
 
2889
- export function runAgentRequestToolHTTPToolToJSON(
2890
- runAgentRequestToolHTTPTool: RunAgentRequestToolHTTPTool,
2654
+ export function agentToolInputRunHTTPToolRunToJSON(
2655
+ agentToolInputRunHTTPToolRun: AgentToolInputRunHTTPToolRun,
2891
2656
  ): string {
2892
2657
  return JSON.stringify(
2893
- RunAgentRequestToolHTTPTool$outboundSchema.parse(
2894
- runAgentRequestToolHTTPTool,
2658
+ AgentToolInputRunHTTPToolRun$outboundSchema.parse(
2659
+ agentToolInputRunHTTPToolRun,
2895
2660
  ),
2896
2661
  );
2897
2662
  }
2898
2663
 
2899
- export function runAgentRequestToolHTTPToolFromJSON(
2664
+ export function agentToolInputRunHTTPToolRunFromJSON(
2900
2665
  jsonString: string,
2901
- ): SafeParseResult<RunAgentRequestToolHTTPTool, SDKValidationError> {
2666
+ ): SafeParseResult<AgentToolInputRunHTTPToolRun, SDKValidationError> {
2902
2667
  return safeParse(
2903
2668
  jsonString,
2904
- (x) => RunAgentRequestToolHTTPTool$inboundSchema.parse(JSON.parse(x)),
2905
- `Failed to parse 'RunAgentRequestToolHTTPTool' from JSON`,
2669
+ (x) => AgentToolInputRunHTTPToolRun$inboundSchema.parse(JSON.parse(x)),
2670
+ `Failed to parse 'AgentToolInputRunHTTPToolRun' from JSON`,
2906
2671
  );
2907
2672
  }
2908
2673
 
2909
2674
  /** @internal */
2910
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
2675
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
2911
2676
  z.ZodNativeEnum<
2912
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
2677
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2913
2678
  > = z.nativeEnum(
2914
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type,
2679
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
2915
2680
  );
2916
2681
 
2917
2682
  /** @internal */
2918
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
2683
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
2919
2684
  z.ZodNativeEnum<
2920
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
2685
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2921
2686
  > =
2922
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2687
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2923
2688
 
2924
2689
  /**
2925
2690
  * @internal
2926
2691
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2927
2692
  */
2928
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$ {
2929
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
2693
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
2694
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
2930
2695
  export const inboundSchema =
2931
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2932
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
2696
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2697
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
2933
2698
  export const outboundSchema =
2934
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
2699
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
2935
2700
  }
2936
2701
 
2937
2702
  /** @internal */
2938
- export const RunAgentRequestToolCurrentDateTool$inboundSchema: z.ZodType<
2939
- RunAgentRequestToolCurrentDateTool,
2940
- z.ZodTypeDef,
2941
- unknown
2942
- > = z.object({
2943
- type:
2944
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
2945
- requires_approval: z.boolean().default(false),
2946
- }).transform((v) => {
2947
- return remap$(v, {
2948
- "requires_approval": "requiresApproval",
2703
+ export const StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema:
2704
+ z.ZodType<
2705
+ StreamRunAgentAgentToolInputRunCurrentDateTool,
2706
+ z.ZodTypeDef,
2707
+ unknown
2708
+ > = z.object({
2709
+ type:
2710
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
2711
+ requires_approval: z.boolean().default(false),
2712
+ }).transform((v) => {
2713
+ return remap$(v, {
2714
+ "requires_approval": "requiresApproval",
2715
+ });
2949
2716
  });
2950
- });
2951
2717
 
2952
2718
  /** @internal */
2953
- export type RunAgentRequestToolCurrentDateTool$Outbound = {
2719
+ export type StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound = {
2954
2720
  type: string;
2955
2721
  requires_approval: boolean;
2956
2722
  };
2957
2723
 
2958
2724
  /** @internal */
2959
- export const RunAgentRequestToolCurrentDateTool$outboundSchema: z.ZodType<
2960
- RunAgentRequestToolCurrentDateTool$Outbound,
2961
- z.ZodTypeDef,
2962
- RunAgentRequestToolCurrentDateTool
2963
- > = z.object({
2964
- type:
2965
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
2966
- requiresApproval: z.boolean().default(false),
2967
- }).transform((v) => {
2968
- return remap$(v, {
2969
- requiresApproval: "requires_approval",
2725
+ export const StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema:
2726
+ z.ZodType<
2727
+ StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound,
2728
+ z.ZodTypeDef,
2729
+ StreamRunAgentAgentToolInputRunCurrentDateTool
2730
+ > = z.object({
2731
+ type:
2732
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
2733
+ requiresApproval: z.boolean().default(false),
2734
+ }).transform((v) => {
2735
+ return remap$(v, {
2736
+ requiresApproval: "requires_approval",
2737
+ });
2970
2738
  });
2971
- });
2972
2739
 
2973
2740
  /**
2974
2741
  * @internal
2975
2742
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2976
2743
  */
2977
- export namespace RunAgentRequestToolCurrentDateTool$ {
2978
- /** @deprecated use `RunAgentRequestToolCurrentDateTool$inboundSchema` instead. */
2979
- export const inboundSchema = RunAgentRequestToolCurrentDateTool$inboundSchema;
2980
- /** @deprecated use `RunAgentRequestToolCurrentDateTool$outboundSchema` instead. */
2744
+ export namespace StreamRunAgentAgentToolInputRunCurrentDateTool$ {
2745
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema` instead. */
2746
+ export const inboundSchema =
2747
+ StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema;
2748
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema` instead. */
2981
2749
  export const outboundSchema =
2982
- RunAgentRequestToolCurrentDateTool$outboundSchema;
2983
- /** @deprecated use `RunAgentRequestToolCurrentDateTool$Outbound` instead. */
2984
- export type Outbound = RunAgentRequestToolCurrentDateTool$Outbound;
2750
+ StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema;
2751
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound` instead. */
2752
+ export type Outbound =
2753
+ StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
2985
2754
  }
2986
2755
 
2987
- export function runAgentRequestToolCurrentDateToolToJSON(
2988
- runAgentRequestToolCurrentDateTool: RunAgentRequestToolCurrentDateTool,
2756
+ export function streamRunAgentAgentToolInputRunCurrentDateToolToJSON(
2757
+ streamRunAgentAgentToolInputRunCurrentDateTool:
2758
+ StreamRunAgentAgentToolInputRunCurrentDateTool,
2989
2759
  ): string {
2990
2760
  return JSON.stringify(
2991
- RunAgentRequestToolCurrentDateTool$outboundSchema.parse(
2992
- runAgentRequestToolCurrentDateTool,
2761
+ StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema.parse(
2762
+ streamRunAgentAgentToolInputRunCurrentDateTool,
2993
2763
  ),
2994
2764
  );
2995
2765
  }
2996
2766
 
2997
- export function runAgentRequestToolCurrentDateToolFromJSON(
2767
+ export function streamRunAgentAgentToolInputRunCurrentDateToolFromJSON(
2998
2768
  jsonString: string,
2999
- ): SafeParseResult<RunAgentRequestToolCurrentDateTool, SDKValidationError> {
3000
- return safeParse(
3001
- jsonString,
2769
+ ): SafeParseResult<
2770
+ StreamRunAgentAgentToolInputRunCurrentDateTool,
2771
+ SDKValidationError
2772
+ > {
2773
+ return safeParse(
2774
+ jsonString,
3002
2775
  (x) =>
3003
- RunAgentRequestToolCurrentDateTool$inboundSchema.parse(JSON.parse(x)),
3004
- `Failed to parse 'RunAgentRequestToolCurrentDateTool' from JSON`,
2776
+ StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema.parse(
2777
+ JSON.parse(x),
2778
+ ),
2779
+ `Failed to parse 'StreamRunAgentAgentToolInputRunCurrentDateTool' from JSON`,
3005
2780
  );
3006
2781
  }
3007
2782
 
3008
2783
  /** @internal */
3009
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
2784
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
3010
2785
  z.ZodNativeEnum<
3011
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
2786
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
3012
2787
  > = z.nativeEnum(
3013
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type,
2788
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
3014
2789
  );
3015
2790
 
3016
2791
  /** @internal */
3017
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
2792
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
3018
2793
  z.ZodNativeEnum<
3019
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
2794
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
3020
2795
  > =
3021
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2796
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
3022
2797
 
3023
2798
  /**
3024
2799
  * @internal
3025
2800
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3026
2801
  */
3027
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$ {
3028
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
2802
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
2803
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
3029
2804
  export const inboundSchema =
3030
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
3031
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
2805
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2806
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
3032
2807
  export const outboundSchema =
3033
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
2808
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
3034
2809
  }
3035
2810
 
3036
2811
  /** @internal */
3037
- export const RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
3038
- RunAgentRequestToolQueryKnowledgeBaseTool,
3039
- z.ZodTypeDef,
3040
- unknown
3041
- > = z.object({
3042
- type:
3043
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
3044
- requires_approval: z.boolean().default(false),
3045
- }).transform((v) => {
3046
- return remap$(v, {
3047
- "requires_approval": "requiresApproval",
2812
+ export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema:
2813
+ z.ZodType<
2814
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
2815
+ z.ZodTypeDef,
2816
+ unknown
2817
+ > = z.object({
2818
+ type:
2819
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
2820
+ requires_approval: z.boolean().default(false),
2821
+ }).transform((v) => {
2822
+ return remap$(v, {
2823
+ "requires_approval": "requiresApproval",
2824
+ });
3048
2825
  });
3049
- });
3050
2826
 
3051
2827
  /** @internal */
3052
- export type RunAgentRequestToolQueryKnowledgeBaseTool$Outbound = {
2828
+ export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
3053
2829
  type: string;
3054
2830
  requires_approval: boolean;
3055
2831
  };
3056
2832
 
3057
2833
  /** @internal */
3058
- export const RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema:
2834
+ export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema:
3059
2835
  z.ZodType<
3060
- RunAgentRequestToolQueryKnowledgeBaseTool$Outbound,
2836
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound,
3061
2837
  z.ZodTypeDef,
3062
- RunAgentRequestToolQueryKnowledgeBaseTool
2838
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool
3063
2839
  > = z.object({
3064
2840
  type:
3065
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
2841
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
3066
2842
  requiresApproval: z.boolean().default(false),
3067
2843
  }).transform((v) => {
3068
2844
  return remap$(v, {
@@ -3074,81 +2850,82 @@ export const RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema:
3074
2850
  * @internal
3075
2851
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3076
2852
  */
3077
- export namespace RunAgentRequestToolQueryKnowledgeBaseTool$ {
3078
- /** @deprecated use `RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema` instead. */
2853
+ export namespace StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$ {
2854
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
3079
2855
  export const inboundSchema =
3080
- RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema;
3081
- /** @deprecated use `RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema` instead. */
2856
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
2857
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
3082
2858
  export const outboundSchema =
3083
- RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema;
3084
- /** @deprecated use `RunAgentRequestToolQueryKnowledgeBaseTool$Outbound` instead. */
3085
- export type Outbound = RunAgentRequestToolQueryKnowledgeBaseTool$Outbound;
2859
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
2860
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
2861
+ export type Outbound =
2862
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound;
3086
2863
  }
3087
2864
 
3088
- export function runAgentRequestToolQueryKnowledgeBaseToolToJSON(
3089
- runAgentRequestToolQueryKnowledgeBaseTool:
3090
- RunAgentRequestToolQueryKnowledgeBaseTool,
2865
+ export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolToJSON(
2866
+ streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool:
2867
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
3091
2868
  ): string {
3092
2869
  return JSON.stringify(
3093
- RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema.parse(
3094
- runAgentRequestToolQueryKnowledgeBaseTool,
2870
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
2871
+ streamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
3095
2872
  ),
3096
2873
  );
3097
2874
  }
3098
2875
 
3099
- export function runAgentRequestToolQueryKnowledgeBaseToolFromJSON(
2876
+ export function streamRunAgentAgentToolInputRunQueryKnowledgeBaseToolFromJSON(
3100
2877
  jsonString: string,
3101
2878
  ): SafeParseResult<
3102
- RunAgentRequestToolQueryKnowledgeBaseTool,
2879
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool,
3103
2880
  SDKValidationError
3104
2881
  > {
3105
2882
  return safeParse(
3106
2883
  jsonString,
3107
2884
  (x) =>
3108
- RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema.parse(
2885
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
3109
2886
  JSON.parse(x),
3110
2887
  ),
3111
- `Failed to parse 'RunAgentRequestToolQueryKnowledgeBaseTool' from JSON`,
2888
+ `Failed to parse 'StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
3112
2889
  );
3113
2890
  }
3114
2891
 
3115
2892
  /** @internal */
3116
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
2893
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
3117
2894
  z.ZodNativeEnum<
3118
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
2895
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
3119
2896
  > = z.nativeEnum(
3120
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type,
2897
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
3121
2898
  );
3122
2899
 
3123
2900
  /** @internal */
3124
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
2901
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
3125
2902
  z.ZodNativeEnum<
3126
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
2903
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
3127
2904
  > =
3128
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2905
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
3129
2906
 
3130
2907
  /**
3131
2908
  * @internal
3132
2909
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3133
2910
  */
3134
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$ {
3135
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
2911
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
2912
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
3136
2913
  export const inboundSchema =
3137
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
3138
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
2914
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2915
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
3139
2916
  export const outboundSchema =
3140
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
2917
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
3141
2918
  }
3142
2919
 
3143
2920
  /** @internal */
3144
- export const RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema:
2921
+ export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
3145
2922
  z.ZodType<
3146
- RunAgentRequestToolRetrieveKnowledgeBasesTool,
2923
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
3147
2924
  z.ZodTypeDef,
3148
2925
  unknown
3149
2926
  > = z.object({
3150
2927
  type:
3151
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
2928
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
3152
2929
  requires_approval: z.boolean().default(false),
3153
2930
  }).transform((v) => {
3154
2931
  return remap$(v, {
@@ -3157,20 +2934,21 @@ export const RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema:
3157
2934
  });
3158
2935
 
3159
2936
  /** @internal */
3160
- export type RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound = {
3161
- type: string;
3162
- requires_approval: boolean;
3163
- };
2937
+ export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound =
2938
+ {
2939
+ type: string;
2940
+ requires_approval: boolean;
2941
+ };
3164
2942
 
3165
2943
  /** @internal */
3166
- export const RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema:
2944
+ export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
3167
2945
  z.ZodType<
3168
- RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound,
2946
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
3169
2947
  z.ZodTypeDef,
3170
- RunAgentRequestToolRetrieveKnowledgeBasesTool
2948
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool
3171
2949
  > = z.object({
3172
2950
  type:
3173
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
2951
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
3174
2952
  requiresApproval: z.boolean().default(false),
3175
2953
  }).transform((v) => {
3176
2954
  return remap$(v, {
@@ -3182,187 +2960,187 @@ export const RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema:
3182
2960
  * @internal
3183
2961
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3184
2962
  */
3185
- export namespace RunAgentRequestToolRetrieveKnowledgeBasesTool$ {
3186
- /** @deprecated use `RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema` instead. */
2963
+ export namespace StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$ {
2964
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
3187
2965
  export const inboundSchema =
3188
- RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema;
3189
- /** @deprecated use `RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema` instead. */
2966
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
2967
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
3190
2968
  export const outboundSchema =
3191
- RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema;
3192
- /** @deprecated use `RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound` instead. */
3193
- export type Outbound = RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound;
2969
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
2970
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
2971
+ export type Outbound =
2972
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
3194
2973
  }
3195
2974
 
3196
- export function runAgentRequestToolRetrieveKnowledgeBasesToolToJSON(
3197
- runAgentRequestToolRetrieveKnowledgeBasesTool:
3198
- RunAgentRequestToolRetrieveKnowledgeBasesTool,
2975
+ export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolToJSON(
2976
+ streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool:
2977
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
3199
2978
  ): string {
3200
2979
  return JSON.stringify(
3201
- RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema.parse(
3202
- runAgentRequestToolRetrieveKnowledgeBasesTool,
3203
- ),
2980
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
2981
+ .parse(streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool),
3204
2982
  );
3205
2983
  }
3206
2984
 
3207
- export function runAgentRequestToolRetrieveKnowledgeBasesToolFromJSON(
2985
+ export function streamRunAgentAgentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
3208
2986
  jsonString: string,
3209
2987
  ): SafeParseResult<
3210
- RunAgentRequestToolRetrieveKnowledgeBasesTool,
2988
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool,
3211
2989
  SDKValidationError
3212
2990
  > {
3213
2991
  return safeParse(
3214
2992
  jsonString,
3215
2993
  (x) =>
3216
- RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema.parse(
3217
- JSON.parse(x),
3218
- ),
3219
- `Failed to parse 'RunAgentRequestToolRetrieveKnowledgeBasesTool' from JSON`,
2994
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
2995
+ .parse(JSON.parse(x)),
2996
+ `Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
3220
2997
  );
3221
2998
  }
3222
2999
 
3223
3000
  /** @internal */
3224
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
3001
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
3225
3002
  z.ZodNativeEnum<
3226
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
3003
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3227
3004
  > = z.nativeEnum(
3228
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type,
3005
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
3229
3006
  );
3230
3007
 
3231
3008
  /** @internal */
3232
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
3009
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
3233
3010
  z.ZodNativeEnum<
3234
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
3011
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3235
3012
  > =
3236
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3013
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3237
3014
 
3238
3015
  /**
3239
3016
  * @internal
3240
3017
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3241
3018
  */
3242
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$ {
3243
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
3019
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
3020
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
3244
3021
  export const inboundSchema =
3245
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3246
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
3022
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3023
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
3247
3024
  export const outboundSchema =
3248
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
3025
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
3249
3026
  }
3250
3027
 
3251
3028
  /** @internal */
3252
- export const RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema: z.ZodType<
3253
- RunAgentRequestToolDeleteMemoryStoreTool,
3254
- z.ZodTypeDef,
3255
- unknown
3256
- > = z.object({
3257
- type:
3258
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
3259
- requires_approval: z.boolean().default(false),
3260
- }).transform((v) => {
3261
- return remap$(v, {
3262
- "requires_approval": "requiresApproval",
3029
+ export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema:
3030
+ z.ZodType<
3031
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
3032
+ z.ZodTypeDef,
3033
+ unknown
3034
+ > = z.object({
3035
+ type:
3036
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
3037
+ requires_approval: z.boolean().default(false),
3038
+ }).transform((v) => {
3039
+ return remap$(v, {
3040
+ "requires_approval": "requiresApproval",
3041
+ });
3263
3042
  });
3264
- });
3265
3043
 
3266
3044
  /** @internal */
3267
- export type RunAgentRequestToolDeleteMemoryStoreTool$Outbound = {
3045
+ export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
3268
3046
  type: string;
3269
3047
  requires_approval: boolean;
3270
3048
  };
3271
3049
 
3272
3050
  /** @internal */
3273
- export const RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema: z.ZodType<
3274
- RunAgentRequestToolDeleteMemoryStoreTool$Outbound,
3275
- z.ZodTypeDef,
3276
- RunAgentRequestToolDeleteMemoryStoreTool
3277
- > = z.object({
3278
- type:
3279
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
3280
- requiresApproval: z.boolean().default(false),
3281
- }).transform((v) => {
3282
- return remap$(v, {
3283
- requiresApproval: "requires_approval",
3051
+ export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
3052
+ z.ZodType<
3053
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound,
3054
+ z.ZodTypeDef,
3055
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool
3056
+ > = z.object({
3057
+ type:
3058
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
3059
+ requiresApproval: z.boolean().default(false),
3060
+ }).transform((v) => {
3061
+ return remap$(v, {
3062
+ requiresApproval: "requires_approval",
3063
+ });
3284
3064
  });
3285
- });
3286
3065
 
3287
3066
  /**
3288
3067
  * @internal
3289
3068
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3290
3069
  */
3291
- export namespace RunAgentRequestToolDeleteMemoryStoreTool$ {
3292
- /** @deprecated use `RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema` instead. */
3070
+ export namespace StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$ {
3071
+ /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
3293
3072
  export const inboundSchema =
3294
- RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema;
3295
- /** @deprecated use `RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema` instead. */
3073
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
3074
+ /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
3296
3075
  export const outboundSchema =
3297
- RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema;
3298
- /** @deprecated use `RunAgentRequestToolDeleteMemoryStoreTool$Outbound` instead. */
3299
- export type Outbound = RunAgentRequestToolDeleteMemoryStoreTool$Outbound;
3076
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
3077
+ /** @deprecated use `StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
3078
+ export type Outbound =
3079
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound;
3300
3080
  }
3301
3081
 
3302
- export function runAgentRequestToolDeleteMemoryStoreToolToJSON(
3303
- runAgentRequestToolDeleteMemoryStoreTool:
3304
- RunAgentRequestToolDeleteMemoryStoreTool,
3082
+ export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolToJSON(
3083
+ streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool:
3084
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
3305
3085
  ): string {
3306
3086
  return JSON.stringify(
3307
- RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema.parse(
3308
- runAgentRequestToolDeleteMemoryStoreTool,
3309
- ),
3087
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
3088
+ .parse(streamRunAgentAgentToolInputRunDeleteMemoryDocumentTool),
3310
3089
  );
3311
3090
  }
3312
3091
 
3313
- export function runAgentRequestToolDeleteMemoryStoreToolFromJSON(
3092
+ export function streamRunAgentAgentToolInputRunDeleteMemoryDocumentToolFromJSON(
3314
3093
  jsonString: string,
3315
3094
  ): SafeParseResult<
3316
- RunAgentRequestToolDeleteMemoryStoreTool,
3095
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool,
3317
3096
  SDKValidationError
3318
3097
  > {
3319
3098
  return safeParse(
3320
3099
  jsonString,
3321
3100
  (x) =>
3322
- RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema.parse(
3323
- JSON.parse(x),
3324
- ),
3325
- `Failed to parse 'RunAgentRequestToolDeleteMemoryStoreTool' from JSON`,
3101
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
3102
+ .parse(JSON.parse(x)),
3103
+ `Failed to parse 'StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
3326
3104
  );
3327
3105
  }
3328
3106
 
3329
3107
  /** @internal */
3330
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
3108
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema:
3331
3109
  z.ZodNativeEnum<
3332
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type
3110
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
3333
3111
  > = z.nativeEnum(
3334
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type,
3112
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type,
3335
3113
  );
3336
3114
 
3337
3115
  /** @internal */
3338
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
3116
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema:
3339
3117
  z.ZodNativeEnum<
3340
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type
3118
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type
3341
3119
  > =
3342
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3120
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3343
3121
 
3344
3122
  /**
3345
3123
  * @internal
3346
3124
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3347
3125
  */
3348
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$ {
3349
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
3126
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$ {
3127
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema` instead. */
3350
3128
  export const inboundSchema =
3351
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3352
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
3129
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema;
3130
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema` instead. */
3353
3131
  export const outboundSchema =
3354
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema;
3132
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema;
3355
3133
  }
3356
3134
 
3357
3135
  /** @internal */
3358
- export const RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema:
3136
+ export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema:
3359
3137
  z.ZodType<
3360
- RunAgentRequestToolRetrieveMemoryStoresTool,
3138
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
3361
3139
  z.ZodTypeDef,
3362
3140
  unknown
3363
3141
  > = z.object({
3364
3142
  type:
3365
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
3143
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
3366
3144
  requires_approval: z.boolean().default(false),
3367
3145
  }).transform((v) => {
3368
3146
  return remap$(v, {
@@ -3371,20 +3149,20 @@ export const RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema:
3371
3149
  });
3372
3150
 
3373
3151
  /** @internal */
3374
- export type RunAgentRequestToolRetrieveMemoryStoresTool$Outbound = {
3152
+ export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
3375
3153
  type: string;
3376
3154
  requires_approval: boolean;
3377
3155
  };
3378
3156
 
3379
3157
  /** @internal */
3380
- export const RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema:
3158
+ export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
3381
3159
  z.ZodType<
3382
- RunAgentRequestToolRetrieveMemoryStoresTool$Outbound,
3160
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound,
3383
3161
  z.ZodTypeDef,
3384
- RunAgentRequestToolRetrieveMemoryStoresTool
3162
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool
3385
3163
  > = z.object({
3386
3164
  type:
3387
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
3165
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
3388
3166
  requiresApproval: z.boolean().default(false),
3389
3167
  }).transform((v) => {
3390
3168
  return remap$(v, {
@@ -3396,726 +3174,789 @@ export const RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema:
3396
3174
  * @internal
3397
3175
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3398
3176
  */
3399
- export namespace RunAgentRequestToolRetrieveMemoryStoresTool$ {
3400
- /** @deprecated use `RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema` instead. */
3177
+ export namespace StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$ {
3178
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
3401
3179
  export const inboundSchema =
3402
- RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema;
3403
- /** @deprecated use `RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema` instead. */
3180
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
3181
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
3404
3182
  export const outboundSchema =
3405
- RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema;
3406
- /** @deprecated use `RunAgentRequestToolRetrieveMemoryStoresTool$Outbound` instead. */
3407
- export type Outbound = RunAgentRequestToolRetrieveMemoryStoresTool$Outbound;
3183
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
3184
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
3185
+ export type Outbound =
3186
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound;
3408
3187
  }
3409
3188
 
3410
- export function runAgentRequestToolRetrieveMemoryStoresToolToJSON(
3411
- runAgentRequestToolRetrieveMemoryStoresTool:
3412
- RunAgentRequestToolRetrieveMemoryStoresTool,
3189
+ export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolToJSON(
3190
+ streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool:
3191
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
3413
3192
  ): string {
3414
3193
  return JSON.stringify(
3415
- RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema.parse(
3416
- runAgentRequestToolRetrieveMemoryStoresTool,
3417
- ),
3194
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
3195
+ .parse(streamRunAgentAgentToolInputRunRetrieveMemoryStoresTool),
3418
3196
  );
3419
3197
  }
3420
3198
 
3421
- export function runAgentRequestToolRetrieveMemoryStoresToolFromJSON(
3199
+ export function streamRunAgentAgentToolInputRunRetrieveMemoryStoresToolFromJSON(
3422
3200
  jsonString: string,
3423
3201
  ): SafeParseResult<
3424
- RunAgentRequestToolRetrieveMemoryStoresTool,
3202
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool,
3425
3203
  SDKValidationError
3426
3204
  > {
3427
3205
  return safeParse(
3428
3206
  jsonString,
3429
3207
  (x) =>
3430
- RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema.parse(
3431
- JSON.parse(x),
3432
- ),
3433
- `Failed to parse 'RunAgentRequestToolRetrieveMemoryStoresTool' from JSON`,
3208
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
3209
+ .parse(JSON.parse(x)),
3210
+ `Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
3434
3211
  );
3435
3212
  }
3436
3213
 
3437
3214
  /** @internal */
3438
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema:
3215
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
3439
3216
  z.ZodNativeEnum<
3440
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
3217
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3441
3218
  > = z.nativeEnum(
3442
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType,
3219
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
3443
3220
  );
3444
3221
 
3445
3222
  /** @internal */
3446
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema:
3223
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
3447
3224
  z.ZodNativeEnum<
3448
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
3225
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3449
3226
  > =
3450
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3227
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3451
3228
 
3452
3229
  /**
3453
3230
  * @internal
3454
3231
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3455
3232
  */
3456
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$ {
3457
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
3233
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
3234
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
3458
3235
  export const inboundSchema =
3459
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3460
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
3236
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3237
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
3461
3238
  export const outboundSchema =
3462
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema;
3239
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
3463
3240
  }
3464
3241
 
3465
3242
  /** @internal */
3466
- export const RunAgentRequestToolWriteMemoryStoreTool$inboundSchema: z.ZodType<
3467
- RunAgentRequestToolWriteMemoryStoreTool,
3468
- z.ZodTypeDef,
3469
- unknown
3470
- > = z.object({
3471
- type:
3472
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema,
3473
- requires_approval: z.boolean().default(false),
3474
- }).transform((v) => {
3475
- return remap$(v, {
3476
- "requires_approval": "requiresApproval",
3243
+ export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema:
3244
+ z.ZodType<
3245
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3246
+ z.ZodTypeDef,
3247
+ unknown
3248
+ > = z.object({
3249
+ type:
3250
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
3251
+ requires_approval: z.boolean().default(false),
3252
+ }).transform((v) => {
3253
+ return remap$(v, {
3254
+ "requires_approval": "requiresApproval",
3255
+ });
3477
3256
  });
3478
- });
3479
3257
 
3480
3258
  /** @internal */
3481
- export type RunAgentRequestToolWriteMemoryStoreTool$Outbound = {
3259
+ export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound = {
3482
3260
  type: string;
3483
3261
  requires_approval: boolean;
3484
3262
  };
3485
3263
 
3486
3264
  /** @internal */
3487
- export const RunAgentRequestToolWriteMemoryStoreTool$outboundSchema: z.ZodType<
3488
- RunAgentRequestToolWriteMemoryStoreTool$Outbound,
3489
- z.ZodTypeDef,
3490
- RunAgentRequestToolWriteMemoryStoreTool
3491
- > = z.object({
3492
- type:
3493
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema,
3494
- requiresApproval: z.boolean().default(false),
3495
- }).transform((v) => {
3496
- return remap$(v, {
3497
- requiresApproval: "requires_approval",
3265
+ export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema:
3266
+ z.ZodType<
3267
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound,
3268
+ z.ZodTypeDef,
3269
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool
3270
+ > = z.object({
3271
+ type:
3272
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
3273
+ requiresApproval: z.boolean().default(false),
3274
+ }).transform((v) => {
3275
+ return remap$(v, {
3276
+ requiresApproval: "requires_approval",
3277
+ });
3498
3278
  });
3499
- });
3500
3279
 
3501
3280
  /**
3502
3281
  * @internal
3503
3282
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3504
3283
  */
3505
- export namespace RunAgentRequestToolWriteMemoryStoreTool$ {
3506
- /** @deprecated use `RunAgentRequestToolWriteMemoryStoreTool$inboundSchema` instead. */
3284
+ export namespace StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$ {
3285
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
3507
3286
  export const inboundSchema =
3508
- RunAgentRequestToolWriteMemoryStoreTool$inboundSchema;
3509
- /** @deprecated use `RunAgentRequestToolWriteMemoryStoreTool$outboundSchema` instead. */
3287
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema;
3288
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
3510
3289
  export const outboundSchema =
3511
- RunAgentRequestToolWriteMemoryStoreTool$outboundSchema;
3512
- /** @deprecated use `RunAgentRequestToolWriteMemoryStoreTool$Outbound` instead. */
3513
- export type Outbound = RunAgentRequestToolWriteMemoryStoreTool$Outbound;
3290
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema;
3291
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
3292
+ export type Outbound =
3293
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound;
3514
3294
  }
3515
3295
 
3516
- export function runAgentRequestToolWriteMemoryStoreToolToJSON(
3517
- runAgentRequestToolWriteMemoryStoreTool:
3518
- RunAgentRequestToolWriteMemoryStoreTool,
3296
+ export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolToJSON(
3297
+ streamRunAgentAgentToolInputRunWriteMemoryStoreTool:
3298
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3519
3299
  ): string {
3520
3300
  return JSON.stringify(
3521
- RunAgentRequestToolWriteMemoryStoreTool$outboundSchema.parse(
3522
- runAgentRequestToolWriteMemoryStoreTool,
3301
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
3302
+ streamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3523
3303
  ),
3524
3304
  );
3525
3305
  }
3526
3306
 
3527
- export function runAgentRequestToolWriteMemoryStoreToolFromJSON(
3307
+ export function streamRunAgentAgentToolInputRunWriteMemoryStoreToolFromJSON(
3528
3308
  jsonString: string,
3529
3309
  ): SafeParseResult<
3530
- RunAgentRequestToolWriteMemoryStoreTool,
3310
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool,
3531
3311
  SDKValidationError
3532
3312
  > {
3533
3313
  return safeParse(
3534
3314
  jsonString,
3535
3315
  (x) =>
3536
- RunAgentRequestToolWriteMemoryStoreTool$inboundSchema.parse(
3316
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(
3537
3317
  JSON.parse(x),
3538
3318
  ),
3539
- `Failed to parse 'RunAgentRequestToolWriteMemoryStoreTool' from JSON`,
3319
+ `Failed to parse 'StreamRunAgentAgentToolInputRunWriteMemoryStoreTool' from JSON`,
3540
3320
  );
3541
3321
  }
3542
3322
 
3543
3323
  /** @internal */
3544
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema:
3324
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
3545
3325
  z.ZodNativeEnum<
3546
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
3326
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3547
3327
  > = z.nativeEnum(
3548
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType,
3328
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
3549
3329
  );
3550
3330
 
3551
3331
  /** @internal */
3552
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema:
3332
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
3553
3333
  z.ZodNativeEnum<
3554
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
3334
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3555
3335
  > =
3556
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
3336
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3557
3337
 
3558
3338
  /**
3559
3339
  * @internal
3560
3340
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3561
3341
  */
3562
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$ {
3563
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3342
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
3343
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3564
3344
  export const inboundSchema =
3565
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
3566
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3345
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3346
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3567
3347
  export const outboundSchema =
3568
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema;
3348
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
3569
3349
  }
3570
3350
 
3571
3351
  /** @internal */
3572
- export const RunAgentRequestToolQueryMemoryStoreTool$inboundSchema: z.ZodType<
3573
- RunAgentRequestToolQueryMemoryStoreTool,
3574
- z.ZodTypeDef,
3575
- unknown
3576
- > = z.object({
3577
- type:
3578
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema,
3579
- requires_approval: z.boolean().default(false),
3580
- }).transform((v) => {
3581
- return remap$(v, {
3582
- "requires_approval": "requiresApproval",
3352
+ export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema:
3353
+ z.ZodType<
3354
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3355
+ z.ZodTypeDef,
3356
+ unknown
3357
+ > = z.object({
3358
+ type:
3359
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
3360
+ requires_approval: z.boolean().default(false),
3361
+ }).transform((v) => {
3362
+ return remap$(v, {
3363
+ "requires_approval": "requiresApproval",
3364
+ });
3583
3365
  });
3584
- });
3585
3366
 
3586
3367
  /** @internal */
3587
- export type RunAgentRequestToolQueryMemoryStoreTool$Outbound = {
3368
+ export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound = {
3588
3369
  type: string;
3589
3370
  requires_approval: boolean;
3590
3371
  };
3591
3372
 
3592
3373
  /** @internal */
3593
- export const RunAgentRequestToolQueryMemoryStoreTool$outboundSchema: z.ZodType<
3594
- RunAgentRequestToolQueryMemoryStoreTool$Outbound,
3595
- z.ZodTypeDef,
3596
- RunAgentRequestToolQueryMemoryStoreTool
3597
- > = z.object({
3598
- type:
3599
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema,
3600
- requiresApproval: z.boolean().default(false),
3601
- }).transform((v) => {
3602
- return remap$(v, {
3603
- requiresApproval: "requires_approval",
3374
+ export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema:
3375
+ z.ZodType<
3376
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound,
3377
+ z.ZodTypeDef,
3378
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool
3379
+ > = z.object({
3380
+ type:
3381
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
3382
+ requiresApproval: z.boolean().default(false),
3383
+ }).transform((v) => {
3384
+ return remap$(v, {
3385
+ requiresApproval: "requires_approval",
3386
+ });
3604
3387
  });
3605
- });
3606
3388
 
3607
3389
  /**
3608
3390
  * @internal
3609
3391
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3610
3392
  */
3611
- export namespace RunAgentRequestToolQueryMemoryStoreTool$ {
3612
- /** @deprecated use `RunAgentRequestToolQueryMemoryStoreTool$inboundSchema` instead. */
3393
+ export namespace StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$ {
3394
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
3613
3395
  export const inboundSchema =
3614
- RunAgentRequestToolQueryMemoryStoreTool$inboundSchema;
3615
- /** @deprecated use `RunAgentRequestToolQueryMemoryStoreTool$outboundSchema` instead. */
3396
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema;
3397
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
3616
3398
  export const outboundSchema =
3617
- RunAgentRequestToolQueryMemoryStoreTool$outboundSchema;
3618
- /** @deprecated use `RunAgentRequestToolQueryMemoryStoreTool$Outbound` instead. */
3619
- export type Outbound = RunAgentRequestToolQueryMemoryStoreTool$Outbound;
3399
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema;
3400
+ /** @deprecated use `StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
3401
+ export type Outbound =
3402
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound;
3620
3403
  }
3621
3404
 
3622
- export function runAgentRequestToolQueryMemoryStoreToolToJSON(
3623
- runAgentRequestToolQueryMemoryStoreTool:
3624
- RunAgentRequestToolQueryMemoryStoreTool,
3405
+ export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolToJSON(
3406
+ streamRunAgentAgentToolInputRunQueryMemoryStoreTool:
3407
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3625
3408
  ): string {
3626
3409
  return JSON.stringify(
3627
- RunAgentRequestToolQueryMemoryStoreTool$outboundSchema.parse(
3628
- runAgentRequestToolQueryMemoryStoreTool,
3410
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
3411
+ streamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3629
3412
  ),
3630
3413
  );
3631
3414
  }
3632
3415
 
3633
- export function runAgentRequestToolQueryMemoryStoreToolFromJSON(
3416
+ export function streamRunAgentAgentToolInputRunQueryMemoryStoreToolFromJSON(
3634
3417
  jsonString: string,
3635
3418
  ): SafeParseResult<
3636
- RunAgentRequestToolQueryMemoryStoreTool,
3419
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool,
3637
3420
  SDKValidationError
3638
3421
  > {
3639
3422
  return safeParse(
3640
3423
  jsonString,
3641
3424
  (x) =>
3642
- RunAgentRequestToolQueryMemoryStoreTool$inboundSchema.parse(
3425
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(
3643
3426
  JSON.parse(x),
3644
3427
  ),
3645
- `Failed to parse 'RunAgentRequestToolQueryMemoryStoreTool' from JSON`,
3428
+ `Failed to parse 'StreamRunAgentAgentToolInputRunQueryMemoryStoreTool' from JSON`,
3646
3429
  );
3647
3430
  }
3648
3431
 
3649
3432
  /** @internal */
3650
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema:
3433
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
3651
3434
  z.ZodNativeEnum<
3652
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType
3653
- > = z.nativeEnum(
3654
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType,
3655
- );
3435
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
3436
+ > = z.nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType);
3656
3437
 
3657
3438
  /** @internal */
3658
- export const StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema:
3439
+ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
3659
3440
  z.ZodNativeEnum<
3660
- typeof StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType
3661
- > =
3662
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
3441
+ typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType
3442
+ > = StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3663
3443
 
3664
3444
  /**
3665
3445
  * @internal
3666
3446
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3667
3447
  */
3668
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$ {
3669
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema` instead. */
3448
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
3449
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
3670
3450
  export const inboundSchema =
3671
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
3672
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema` instead. */
3451
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3452
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
3673
3453
  export const outboundSchema =
3674
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema;
3454
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
3675
3455
  }
3676
3456
 
3677
3457
  /** @internal */
3678
- export const RunAgentRequestToolRetrieveAgentsTool$inboundSchema: z.ZodType<
3679
- RunAgentRequestToolRetrieveAgentsTool,
3680
- z.ZodTypeDef,
3681
- unknown
3682
- > = z.object({
3683
- type:
3684
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema,
3685
- requires_approval: z.boolean().default(false),
3686
- }).transform((v) => {
3687
- return remap$(v, {
3688
- "requires_approval": "requiresApproval",
3458
+ export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema:
3459
+ z.ZodType<
3460
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
3461
+ z.ZodTypeDef,
3462
+ unknown
3463
+ > = z.object({
3464
+ type:
3465
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
3466
+ requires_approval: z.boolean().default(false),
3467
+ }).transform((v) => {
3468
+ return remap$(v, {
3469
+ "requires_approval": "requiresApproval",
3470
+ });
3689
3471
  });
3690
- });
3691
3472
 
3692
3473
  /** @internal */
3693
- export type RunAgentRequestToolRetrieveAgentsTool$Outbound = {
3474
+ export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound = {
3694
3475
  type: string;
3695
3476
  requires_approval: boolean;
3696
3477
  };
3697
3478
 
3698
3479
  /** @internal */
3699
- export const RunAgentRequestToolRetrieveAgentsTool$outboundSchema: z.ZodType<
3700
- RunAgentRequestToolRetrieveAgentsTool$Outbound,
3701
- z.ZodTypeDef,
3702
- RunAgentRequestToolRetrieveAgentsTool
3703
- > = z.object({
3704
- type:
3705
- StreamRunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema,
3706
- requiresApproval: z.boolean().default(false),
3707
- }).transform((v) => {
3708
- return remap$(v, {
3709
- requiresApproval: "requires_approval",
3480
+ export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema:
3481
+ z.ZodType<
3482
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound,
3483
+ z.ZodTypeDef,
3484
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool
3485
+ > = z.object({
3486
+ type:
3487
+ StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
3488
+ requiresApproval: z.boolean().default(false),
3489
+ }).transform((v) => {
3490
+ return remap$(v, {
3491
+ requiresApproval: "requires_approval",
3492
+ });
3710
3493
  });
3711
- });
3712
3494
 
3713
3495
  /**
3714
3496
  * @internal
3715
3497
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3716
3498
  */
3717
- export namespace RunAgentRequestToolRetrieveAgentsTool$ {
3718
- /** @deprecated use `RunAgentRequestToolRetrieveAgentsTool$inboundSchema` instead. */
3499
+ export namespace StreamRunAgentAgentToolInputRunRetrieveAgentsTool$ {
3500
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
3719
3501
  export const inboundSchema =
3720
- RunAgentRequestToolRetrieveAgentsTool$inboundSchema;
3721
- /** @deprecated use `RunAgentRequestToolRetrieveAgentsTool$outboundSchema` instead. */
3502
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema;
3503
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
3722
3504
  export const outboundSchema =
3723
- RunAgentRequestToolRetrieveAgentsTool$outboundSchema;
3724
- /** @deprecated use `RunAgentRequestToolRetrieveAgentsTool$Outbound` instead. */
3725
- export type Outbound = RunAgentRequestToolRetrieveAgentsTool$Outbound;
3505
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema;
3506
+ /** @deprecated use `StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
3507
+ export type Outbound =
3508
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound;
3726
3509
  }
3727
3510
 
3728
- export function runAgentRequestToolRetrieveAgentsToolToJSON(
3729
- runAgentRequestToolRetrieveAgentsTool: RunAgentRequestToolRetrieveAgentsTool,
3511
+ export function streamRunAgentAgentToolInputRunRetrieveAgentsToolToJSON(
3512
+ streamRunAgentAgentToolInputRunRetrieveAgentsTool:
3513
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
3730
3514
  ): string {
3731
3515
  return JSON.stringify(
3732
- RunAgentRequestToolRetrieveAgentsTool$outboundSchema.parse(
3733
- runAgentRequestToolRetrieveAgentsTool,
3516
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
3517
+ streamRunAgentAgentToolInputRunRetrieveAgentsTool,
3734
3518
  ),
3735
3519
  );
3736
3520
  }
3737
3521
 
3738
- export function runAgentRequestToolRetrieveAgentsToolFromJSON(
3522
+ export function streamRunAgentAgentToolInputRunRetrieveAgentsToolFromJSON(
3739
3523
  jsonString: string,
3740
- ): SafeParseResult<RunAgentRequestToolRetrieveAgentsTool, SDKValidationError> {
3524
+ ): SafeParseResult<
3525
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool,
3526
+ SDKValidationError
3527
+ > {
3741
3528
  return safeParse(
3742
3529
  jsonString,
3743
3530
  (x) =>
3744
- RunAgentRequestToolRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
3745
- `Failed to parse 'RunAgentRequestToolRetrieveAgentsTool' from JSON`,
3531
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(
3532
+ JSON.parse(x),
3533
+ ),
3534
+ `Failed to parse 'StreamRunAgentAgentToolInputRunRetrieveAgentsTool' from JSON`,
3746
3535
  );
3747
3536
  }
3748
3537
 
3749
3538
  /** @internal */
3750
- export const StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema:
3751
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestType> = z
3752
- .nativeEnum(StreamRunAgentRunAgentRequestToolAgentsRequestType);
3539
+ export const StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
3540
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> = z
3541
+ .nativeEnum(StreamRunAgentAgentToolInputRunAgentsRequestType);
3753
3542
 
3754
3543
  /** @internal */
3755
- export const StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema:
3756
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsRequestType> =
3757
- StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
3544
+ export const StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
3545
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType> =
3546
+ StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3758
3547
 
3759
3548
  /**
3760
3549
  * @internal
3761
3550
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3762
3551
  */
3763
- export namespace StreamRunAgentRunAgentRequestToolAgentsRequestType$ {
3764
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema` instead. */
3552
+ export namespace StreamRunAgentAgentToolInputRunAgentsRequestType$ {
3553
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
3765
3554
  export const inboundSchema =
3766
- StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
3767
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema` instead. */
3555
+ StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3556
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
3768
3557
  export const outboundSchema =
3769
- StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema;
3558
+ StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
3770
3559
  }
3771
3560
 
3772
3561
  /** @internal */
3773
- export const RunAgentRequestToolCallSubAgentTool$inboundSchema: z.ZodType<
3774
- RunAgentRequestToolCallSubAgentTool,
3775
- z.ZodTypeDef,
3776
- unknown
3777
- > = z.object({
3778
- type: StreamRunAgentRunAgentRequestToolAgentsRequestType$inboundSchema,
3779
- requires_approval: z.boolean().default(false),
3780
- }).transform((v) => {
3781
- return remap$(v, {
3782
- "requires_approval": "requiresApproval",
3562
+ export const StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema:
3563
+ z.ZodType<
3564
+ StreamRunAgentAgentToolInputRunCallSubAgentTool,
3565
+ z.ZodTypeDef,
3566
+ unknown
3567
+ > = z.object({
3568
+ type: StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
3569
+ requires_approval: z.boolean().default(false),
3570
+ }).transform((v) => {
3571
+ return remap$(v, {
3572
+ "requires_approval": "requiresApproval",
3573
+ });
3783
3574
  });
3784
- });
3785
3575
 
3786
3576
  /** @internal */
3787
- export type RunAgentRequestToolCallSubAgentTool$Outbound = {
3577
+ export type StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound = {
3788
3578
  type: string;
3789
3579
  requires_approval: boolean;
3790
3580
  };
3791
3581
 
3792
3582
  /** @internal */
3793
- export const RunAgentRequestToolCallSubAgentTool$outboundSchema: z.ZodType<
3794
- RunAgentRequestToolCallSubAgentTool$Outbound,
3795
- z.ZodTypeDef,
3796
- RunAgentRequestToolCallSubAgentTool
3797
- > = z.object({
3798
- type: StreamRunAgentRunAgentRequestToolAgentsRequestType$outboundSchema,
3799
- requiresApproval: z.boolean().default(false),
3800
- }).transform((v) => {
3801
- return remap$(v, {
3802
- requiresApproval: "requires_approval",
3583
+ export const StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema:
3584
+ z.ZodType<
3585
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound,
3586
+ z.ZodTypeDef,
3587
+ StreamRunAgentAgentToolInputRunCallSubAgentTool
3588
+ > = z.object({
3589
+ type: StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
3590
+ requiresApproval: z.boolean().default(false),
3591
+ }).transform((v) => {
3592
+ return remap$(v, {
3593
+ requiresApproval: "requires_approval",
3594
+ });
3803
3595
  });
3804
- });
3805
3596
 
3806
3597
  /**
3807
3598
  * @internal
3808
3599
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3809
3600
  */
3810
- export namespace RunAgentRequestToolCallSubAgentTool$ {
3811
- /** @deprecated use `RunAgentRequestToolCallSubAgentTool$inboundSchema` instead. */
3601
+ export namespace StreamRunAgentAgentToolInputRunCallSubAgentTool$ {
3602
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
3812
3603
  export const inboundSchema =
3813
- RunAgentRequestToolCallSubAgentTool$inboundSchema;
3814
- /** @deprecated use `RunAgentRequestToolCallSubAgentTool$outboundSchema` instead. */
3604
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema;
3605
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
3815
3606
  export const outboundSchema =
3816
- RunAgentRequestToolCallSubAgentTool$outboundSchema;
3817
- /** @deprecated use `RunAgentRequestToolCallSubAgentTool$Outbound` instead. */
3818
- export type Outbound = RunAgentRequestToolCallSubAgentTool$Outbound;
3607
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema;
3608
+ /** @deprecated use `StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound` instead. */
3609
+ export type Outbound =
3610
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound;
3819
3611
  }
3820
3612
 
3821
- export function runAgentRequestToolCallSubAgentToolToJSON(
3822
- runAgentRequestToolCallSubAgentTool: RunAgentRequestToolCallSubAgentTool,
3613
+ export function streamRunAgentAgentToolInputRunCallSubAgentToolToJSON(
3614
+ streamRunAgentAgentToolInputRunCallSubAgentTool:
3615
+ StreamRunAgentAgentToolInputRunCallSubAgentTool,
3823
3616
  ): string {
3824
3617
  return JSON.stringify(
3825
- RunAgentRequestToolCallSubAgentTool$outboundSchema.parse(
3826
- runAgentRequestToolCallSubAgentTool,
3618
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema.parse(
3619
+ streamRunAgentAgentToolInputRunCallSubAgentTool,
3827
3620
  ),
3828
3621
  );
3829
3622
  }
3830
3623
 
3831
- export function runAgentRequestToolCallSubAgentToolFromJSON(
3624
+ export function streamRunAgentAgentToolInputRunCallSubAgentToolFromJSON(
3832
3625
  jsonString: string,
3833
- ): SafeParseResult<RunAgentRequestToolCallSubAgentTool, SDKValidationError> {
3626
+ ): SafeParseResult<
3627
+ StreamRunAgentAgentToolInputRunCallSubAgentTool,
3628
+ SDKValidationError
3629
+ > {
3834
3630
  return safeParse(
3835
3631
  jsonString,
3836
3632
  (x) =>
3837
- RunAgentRequestToolCallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
3838
- `Failed to parse 'RunAgentRequestToolCallSubAgentTool' from JSON`,
3633
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema.parse(
3634
+ JSON.parse(x),
3635
+ ),
3636
+ `Failed to parse 'StreamRunAgentAgentToolInputRunCallSubAgentTool' from JSON`,
3839
3637
  );
3840
3638
  }
3841
3639
 
3842
3640
  /** @internal */
3843
- export const StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema:
3844
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsType> = z
3845
- .nativeEnum(StreamRunAgentRunAgentRequestToolAgentsType);
3641
+ export const StreamRunAgentAgentToolInputRunAgentsType$inboundSchema:
3642
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> = z
3643
+ .nativeEnum(StreamRunAgentAgentToolInputRunAgentsType);
3846
3644
 
3847
3645
  /** @internal */
3848
- export const StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema:
3849
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolAgentsType> =
3850
- StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema;
3646
+ export const StreamRunAgentAgentToolInputRunAgentsType$outboundSchema:
3647
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunAgentsType> =
3648
+ StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
3851
3649
 
3852
3650
  /**
3853
3651
  * @internal
3854
3652
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3855
3653
  */
3856
- export namespace StreamRunAgentRunAgentRequestToolAgentsType$ {
3857
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema` instead. */
3654
+ export namespace StreamRunAgentAgentToolInputRunAgentsType$ {
3655
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
3858
3656
  export const inboundSchema =
3859
- StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema;
3860
- /** @deprecated use `StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema` instead. */
3657
+ StreamRunAgentAgentToolInputRunAgentsType$inboundSchema;
3658
+ /** @deprecated use `StreamRunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
3861
3659
  export const outboundSchema =
3862
- StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema;
3660
+ StreamRunAgentAgentToolInputRunAgentsType$outboundSchema;
3863
3661
  }
3864
3662
 
3865
3663
  /** @internal */
3866
- export const RunAgentRequestToolWebScraperTool$inboundSchema: z.ZodType<
3867
- RunAgentRequestToolWebScraperTool,
3868
- z.ZodTypeDef,
3869
- unknown
3870
- > = z.object({
3871
- type: StreamRunAgentRunAgentRequestToolAgentsType$inboundSchema,
3872
- requires_approval: z.boolean().default(false),
3873
- }).transform((v) => {
3874
- return remap$(v, {
3875
- "requires_approval": "requiresApproval",
3664
+ export const StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema:
3665
+ z.ZodType<
3666
+ StreamRunAgentAgentToolInputRunWebScraperTool,
3667
+ z.ZodTypeDef,
3668
+ unknown
3669
+ > = z.object({
3670
+ type: StreamRunAgentAgentToolInputRunAgentsType$inboundSchema,
3671
+ requires_approval: z.boolean().default(false),
3672
+ }).transform((v) => {
3673
+ return remap$(v, {
3674
+ "requires_approval": "requiresApproval",
3675
+ });
3876
3676
  });
3877
- });
3878
3677
 
3879
3678
  /** @internal */
3880
- export type RunAgentRequestToolWebScraperTool$Outbound = {
3679
+ export type StreamRunAgentAgentToolInputRunWebScraperTool$Outbound = {
3881
3680
  type: string;
3882
3681
  requires_approval: boolean;
3883
3682
  };
3884
3683
 
3885
3684
  /** @internal */
3886
- export const RunAgentRequestToolWebScraperTool$outboundSchema: z.ZodType<
3887
- RunAgentRequestToolWebScraperTool$Outbound,
3888
- z.ZodTypeDef,
3889
- RunAgentRequestToolWebScraperTool
3890
- > = z.object({
3891
- type: StreamRunAgentRunAgentRequestToolAgentsType$outboundSchema,
3892
- requiresApproval: z.boolean().default(false),
3893
- }).transform((v) => {
3894
- return remap$(v, {
3895
- requiresApproval: "requires_approval",
3685
+ export const StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema:
3686
+ z.ZodType<
3687
+ StreamRunAgentAgentToolInputRunWebScraperTool$Outbound,
3688
+ z.ZodTypeDef,
3689
+ StreamRunAgentAgentToolInputRunWebScraperTool
3690
+ > = z.object({
3691
+ type: StreamRunAgentAgentToolInputRunAgentsType$outboundSchema,
3692
+ requiresApproval: z.boolean().default(false),
3693
+ }).transform((v) => {
3694
+ return remap$(v, {
3695
+ requiresApproval: "requires_approval",
3696
+ });
3896
3697
  });
3897
- });
3898
3698
 
3899
3699
  /**
3900
3700
  * @internal
3901
3701
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3902
3702
  */
3903
- export namespace RunAgentRequestToolWebScraperTool$ {
3904
- /** @deprecated use `RunAgentRequestToolWebScraperTool$inboundSchema` instead. */
3905
- export const inboundSchema = RunAgentRequestToolWebScraperTool$inboundSchema;
3906
- /** @deprecated use `RunAgentRequestToolWebScraperTool$outboundSchema` instead. */
3703
+ export namespace StreamRunAgentAgentToolInputRunWebScraperTool$ {
3704
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema` instead. */
3705
+ export const inboundSchema =
3706
+ StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema;
3707
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema` instead. */
3907
3708
  export const outboundSchema =
3908
- RunAgentRequestToolWebScraperTool$outboundSchema;
3909
- /** @deprecated use `RunAgentRequestToolWebScraperTool$Outbound` instead. */
3910
- export type Outbound = RunAgentRequestToolWebScraperTool$Outbound;
3709
+ StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema;
3710
+ /** @deprecated use `StreamRunAgentAgentToolInputRunWebScraperTool$Outbound` instead. */
3711
+ export type Outbound = StreamRunAgentAgentToolInputRunWebScraperTool$Outbound;
3911
3712
  }
3912
3713
 
3913
- export function runAgentRequestToolWebScraperToolToJSON(
3914
- runAgentRequestToolWebScraperTool: RunAgentRequestToolWebScraperTool,
3714
+ export function streamRunAgentAgentToolInputRunWebScraperToolToJSON(
3715
+ streamRunAgentAgentToolInputRunWebScraperTool:
3716
+ StreamRunAgentAgentToolInputRunWebScraperTool,
3915
3717
  ): string {
3916
3718
  return JSON.stringify(
3917
- RunAgentRequestToolWebScraperTool$outboundSchema.parse(
3918
- runAgentRequestToolWebScraperTool,
3719
+ StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema.parse(
3720
+ streamRunAgentAgentToolInputRunWebScraperTool,
3919
3721
  ),
3920
3722
  );
3921
3723
  }
3922
3724
 
3923
- export function runAgentRequestToolWebScraperToolFromJSON(
3725
+ export function streamRunAgentAgentToolInputRunWebScraperToolFromJSON(
3924
3726
  jsonString: string,
3925
- ): SafeParseResult<RunAgentRequestToolWebScraperTool, SDKValidationError> {
3727
+ ): SafeParseResult<
3728
+ StreamRunAgentAgentToolInputRunWebScraperTool,
3729
+ SDKValidationError
3730
+ > {
3926
3731
  return safeParse(
3927
3732
  jsonString,
3928
- (x) => RunAgentRequestToolWebScraperTool$inboundSchema.parse(JSON.parse(x)),
3929
- `Failed to parse 'RunAgentRequestToolWebScraperTool' from JSON`,
3733
+ (x) =>
3734
+ StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema.parse(
3735
+ JSON.parse(x),
3736
+ ),
3737
+ `Failed to parse 'StreamRunAgentAgentToolInputRunWebScraperTool' from JSON`,
3930
3738
  );
3931
3739
  }
3932
3740
 
3933
3741
  /** @internal */
3934
- export const StreamRunAgentRunAgentRequestToolType$inboundSchema:
3935
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolType> = z.nativeEnum(
3936
- StreamRunAgentRunAgentRequestToolType,
3937
- );
3742
+ export const StreamRunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
3743
+ typeof StreamRunAgentAgentToolInputRunType
3744
+ > = z.nativeEnum(StreamRunAgentAgentToolInputRunType);
3938
3745
 
3939
3746
  /** @internal */
3940
- export const StreamRunAgentRunAgentRequestToolType$outboundSchema:
3941
- z.ZodNativeEnum<typeof StreamRunAgentRunAgentRequestToolType> =
3942
- StreamRunAgentRunAgentRequestToolType$inboundSchema;
3747
+ export const StreamRunAgentAgentToolInputRunType$outboundSchema:
3748
+ z.ZodNativeEnum<typeof StreamRunAgentAgentToolInputRunType> =
3749
+ StreamRunAgentAgentToolInputRunType$inboundSchema;
3943
3750
 
3944
3751
  /**
3945
3752
  * @internal
3946
3753
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3947
3754
  */
3948
- export namespace StreamRunAgentRunAgentRequestToolType$ {
3949
- /** @deprecated use `StreamRunAgentRunAgentRequestToolType$inboundSchema` instead. */
3755
+ export namespace StreamRunAgentAgentToolInputRunType$ {
3756
+ /** @deprecated use `StreamRunAgentAgentToolInputRunType$inboundSchema` instead. */
3950
3757
  export const inboundSchema =
3951
- StreamRunAgentRunAgentRequestToolType$inboundSchema;
3952
- /** @deprecated use `StreamRunAgentRunAgentRequestToolType$outboundSchema` instead. */
3758
+ StreamRunAgentAgentToolInputRunType$inboundSchema;
3759
+ /** @deprecated use `StreamRunAgentAgentToolInputRunType$outboundSchema` instead. */
3953
3760
  export const outboundSchema =
3954
- StreamRunAgentRunAgentRequestToolType$outboundSchema;
3761
+ StreamRunAgentAgentToolInputRunType$outboundSchema;
3955
3762
  }
3956
3763
 
3957
3764
  /** @internal */
3958
- export const RunAgentRequestToolGoogleSearchTool$inboundSchema: z.ZodType<
3959
- RunAgentRequestToolGoogleSearchTool,
3960
- z.ZodTypeDef,
3961
- unknown
3962
- > = z.object({
3963
- type: StreamRunAgentRunAgentRequestToolType$inboundSchema,
3964
- requires_approval: z.boolean().default(false),
3965
- }).transform((v) => {
3966
- return remap$(v, {
3967
- "requires_approval": "requiresApproval",
3765
+ export const StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema:
3766
+ z.ZodType<
3767
+ StreamRunAgentAgentToolInputRunGoogleSearchTool,
3768
+ z.ZodTypeDef,
3769
+ unknown
3770
+ > = z.object({
3771
+ type: StreamRunAgentAgentToolInputRunType$inboundSchema,
3772
+ requires_approval: z.boolean().default(false),
3773
+ }).transform((v) => {
3774
+ return remap$(v, {
3775
+ "requires_approval": "requiresApproval",
3776
+ });
3968
3777
  });
3969
- });
3970
3778
 
3971
3779
  /** @internal */
3972
- export type RunAgentRequestToolGoogleSearchTool$Outbound = {
3780
+ export type StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound = {
3973
3781
  type: string;
3974
3782
  requires_approval: boolean;
3975
3783
  };
3976
3784
 
3977
3785
  /** @internal */
3978
- export const RunAgentRequestToolGoogleSearchTool$outboundSchema: z.ZodType<
3979
- RunAgentRequestToolGoogleSearchTool$Outbound,
3980
- z.ZodTypeDef,
3981
- RunAgentRequestToolGoogleSearchTool
3982
- > = z.object({
3983
- type: StreamRunAgentRunAgentRequestToolType$outboundSchema,
3984
- requiresApproval: z.boolean().default(false),
3985
- }).transform((v) => {
3986
- return remap$(v, {
3987
- requiresApproval: "requires_approval",
3786
+ export const StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema:
3787
+ z.ZodType<
3788
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound,
3789
+ z.ZodTypeDef,
3790
+ StreamRunAgentAgentToolInputRunGoogleSearchTool
3791
+ > = z.object({
3792
+ type: StreamRunAgentAgentToolInputRunType$outboundSchema,
3793
+ requiresApproval: z.boolean().default(false),
3794
+ }).transform((v) => {
3795
+ return remap$(v, {
3796
+ requiresApproval: "requires_approval",
3797
+ });
3988
3798
  });
3989
- });
3990
3799
 
3991
3800
  /**
3992
3801
  * @internal
3993
3802
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3994
3803
  */
3995
- export namespace RunAgentRequestToolGoogleSearchTool$ {
3996
- /** @deprecated use `RunAgentRequestToolGoogleSearchTool$inboundSchema` instead. */
3804
+ export namespace StreamRunAgentAgentToolInputRunGoogleSearchTool$ {
3805
+ /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
3997
3806
  export const inboundSchema =
3998
- RunAgentRequestToolGoogleSearchTool$inboundSchema;
3999
- /** @deprecated use `RunAgentRequestToolGoogleSearchTool$outboundSchema` instead. */
3807
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema;
3808
+ /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
4000
3809
  export const outboundSchema =
4001
- RunAgentRequestToolGoogleSearchTool$outboundSchema;
4002
- /** @deprecated use `RunAgentRequestToolGoogleSearchTool$Outbound` instead. */
4003
- export type Outbound = RunAgentRequestToolGoogleSearchTool$Outbound;
3810
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema;
3811
+ /** @deprecated use `StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound` instead. */
3812
+ export type Outbound =
3813
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound;
4004
3814
  }
4005
3815
 
4006
- export function runAgentRequestToolGoogleSearchToolToJSON(
4007
- runAgentRequestToolGoogleSearchTool: RunAgentRequestToolGoogleSearchTool,
3816
+ export function streamRunAgentAgentToolInputRunGoogleSearchToolToJSON(
3817
+ streamRunAgentAgentToolInputRunGoogleSearchTool:
3818
+ StreamRunAgentAgentToolInputRunGoogleSearchTool,
4008
3819
  ): string {
4009
3820
  return JSON.stringify(
4010
- RunAgentRequestToolGoogleSearchTool$outboundSchema.parse(
4011
- runAgentRequestToolGoogleSearchTool,
3821
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema.parse(
3822
+ streamRunAgentAgentToolInputRunGoogleSearchTool,
4012
3823
  ),
4013
3824
  );
4014
3825
  }
4015
3826
 
4016
- export function runAgentRequestToolGoogleSearchToolFromJSON(
3827
+ export function streamRunAgentAgentToolInputRunGoogleSearchToolFromJSON(
4017
3828
  jsonString: string,
4018
- ): SafeParseResult<RunAgentRequestToolGoogleSearchTool, SDKValidationError> {
3829
+ ): SafeParseResult<
3830
+ StreamRunAgentAgentToolInputRunGoogleSearchTool,
3831
+ SDKValidationError
3832
+ > {
4019
3833
  return safeParse(
4020
3834
  jsonString,
4021
3835
  (x) =>
4022
- RunAgentRequestToolGoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
4023
- `Failed to parse 'RunAgentRequestToolGoogleSearchTool' from JSON`,
3836
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema.parse(
3837
+ JSON.parse(x),
3838
+ ),
3839
+ `Failed to parse 'StreamRunAgentAgentToolInputRunGoogleSearchTool' from JSON`,
4024
3840
  );
4025
3841
  }
4026
3842
 
4027
3843
  /** @internal */
4028
- export const StreamRunAgentRunAgentRequestTool$inboundSchema: z.ZodType<
4029
- StreamRunAgentRunAgentRequestTool,
3844
+ export const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<
3845
+ StreamRunAgentAgentToolInputRun,
4030
3846
  z.ZodTypeDef,
4031
3847
  unknown
4032
3848
  > = z.union([
4033
- z.lazy(() => RunAgentRequestToolHTTPTool$inboundSchema),
4034
- z.lazy(() => RunAgentRequestToolCodeExecutionTool$inboundSchema),
4035
- z.lazy(() => RunAgentRequestToolFunctionTool$inboundSchema),
4036
- z.lazy(() => RunAgentRequestToolGoogleSearchTool$inboundSchema),
4037
- z.lazy(() => RunAgentRequestToolWebScraperTool$inboundSchema),
4038
- z.lazy(() => RunAgentRequestToolCallSubAgentTool$inboundSchema),
4039
- z.lazy(() => RunAgentRequestToolRetrieveAgentsTool$inboundSchema),
4040
- z.lazy(() => RunAgentRequestToolQueryMemoryStoreTool$inboundSchema),
4041
- z.lazy(() => RunAgentRequestToolWriteMemoryStoreTool$inboundSchema),
4042
- z.lazy(() => RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema),
4043
- z.lazy(() => RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema),
4044
- z.lazy(() => RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema),
4045
- z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema),
4046
- z.lazy(() => RunAgentRequestToolCurrentDateTool$inboundSchema),
3849
+ z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
3850
+ z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
3851
+ z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
3852
+ z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema),
3853
+ z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema),
3854
+ z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema),
3855
+ z.lazy(() => StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema),
3856
+ z.lazy(() =>
3857
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
3858
+ ),
3859
+ z.lazy(() =>
3860
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
3861
+ ),
3862
+ z.lazy(() =>
3863
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
3864
+ ),
3865
+ z.lazy(() =>
3866
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
3867
+ ),
3868
+ z.lazy(() =>
3869
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
3870
+ ),
3871
+ z.lazy(() =>
3872
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
3873
+ ),
3874
+ z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema),
4047
3875
  ]);
4048
3876
 
4049
3877
  /** @internal */
4050
- export type StreamRunAgentRunAgentRequestTool$Outbound =
4051
- | RunAgentRequestToolHTTPTool$Outbound
4052
- | RunAgentRequestToolCodeExecutionTool$Outbound
4053
- | RunAgentRequestToolFunctionTool$Outbound
4054
- | RunAgentRequestToolGoogleSearchTool$Outbound
4055
- | RunAgentRequestToolWebScraperTool$Outbound
4056
- | RunAgentRequestToolCallSubAgentTool$Outbound
4057
- | RunAgentRequestToolRetrieveAgentsTool$Outbound
4058
- | RunAgentRequestToolQueryMemoryStoreTool$Outbound
4059
- | RunAgentRequestToolWriteMemoryStoreTool$Outbound
4060
- | RunAgentRequestToolRetrieveMemoryStoresTool$Outbound
4061
- | RunAgentRequestToolDeleteMemoryStoreTool$Outbound
4062
- | RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound
4063
- | RunAgentRequestToolQueryKnowledgeBaseTool$Outbound
4064
- | RunAgentRequestToolCurrentDateTool$Outbound;
4065
-
4066
- /** @internal */
4067
- export const StreamRunAgentRunAgentRequestTool$outboundSchema: z.ZodType<
4068
- StreamRunAgentRunAgentRequestTool$Outbound,
3878
+ export type StreamRunAgentAgentToolInputRun$Outbound =
3879
+ | AgentToolInputRunHTTPToolRun$Outbound
3880
+ | AgentToolInputRunCodeToolRun$Outbound
3881
+ | AgentToolInputRunFunctionToolRun$Outbound
3882
+ | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
3883
+ | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
3884
+ | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
3885
+ | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
3886
+ | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
3887
+ | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
3888
+ | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
3889
+ | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
3890
+ | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
3891
+ | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
3892
+ | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound;
3893
+
3894
+ /** @internal */
3895
+ export const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<
3896
+ StreamRunAgentAgentToolInputRun$Outbound,
4069
3897
  z.ZodTypeDef,
4070
- StreamRunAgentRunAgentRequestTool
3898
+ StreamRunAgentAgentToolInputRun
4071
3899
  > = z.union([
4072
- z.lazy(() => RunAgentRequestToolHTTPTool$outboundSchema),
4073
- z.lazy(() => RunAgentRequestToolCodeExecutionTool$outboundSchema),
4074
- z.lazy(() => RunAgentRequestToolFunctionTool$outboundSchema),
4075
- z.lazy(() => RunAgentRequestToolGoogleSearchTool$outboundSchema),
4076
- z.lazy(() => RunAgentRequestToolWebScraperTool$outboundSchema),
4077
- z.lazy(() => RunAgentRequestToolCallSubAgentTool$outboundSchema),
4078
- z.lazy(() => RunAgentRequestToolRetrieveAgentsTool$outboundSchema),
4079
- z.lazy(() => RunAgentRequestToolQueryMemoryStoreTool$outboundSchema),
4080
- z.lazy(() => RunAgentRequestToolWriteMemoryStoreTool$outboundSchema),
4081
- z.lazy(() => RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema),
4082
- z.lazy(() => RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema),
4083
- z.lazy(() => RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema),
4084
- z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema),
4085
- z.lazy(() => RunAgentRequestToolCurrentDateTool$outboundSchema),
3900
+ z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
3901
+ z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
3902
+ z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
3903
+ z.lazy(() => StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema),
3904
+ z.lazy(() => StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema),
3905
+ z.lazy(() => StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema),
3906
+ z.lazy(() =>
3907
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
3908
+ ),
3909
+ z.lazy(() =>
3910
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
3911
+ ),
3912
+ z.lazy(() =>
3913
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
3914
+ ),
3915
+ z.lazy(() =>
3916
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
3917
+ ),
3918
+ z.lazy(() =>
3919
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
3920
+ ),
3921
+ z.lazy(() =>
3922
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
3923
+ ),
3924
+ z.lazy(() =>
3925
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
3926
+ ),
3927
+ z.lazy(() => StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema),
4086
3928
  ]);
4087
3929
 
4088
3930
  /**
4089
3931
  * @internal
4090
3932
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4091
3933
  */
4092
- export namespace StreamRunAgentRunAgentRequestTool$ {
4093
- /** @deprecated use `StreamRunAgentRunAgentRequestTool$inboundSchema` instead. */
4094
- export const inboundSchema = StreamRunAgentRunAgentRequestTool$inboundSchema;
4095
- /** @deprecated use `StreamRunAgentRunAgentRequestTool$outboundSchema` instead. */
4096
- export const outboundSchema =
4097
- StreamRunAgentRunAgentRequestTool$outboundSchema;
4098
- /** @deprecated use `StreamRunAgentRunAgentRequestTool$Outbound` instead. */
4099
- export type Outbound = StreamRunAgentRunAgentRequestTool$Outbound;
3934
+ export namespace StreamRunAgentAgentToolInputRun$ {
3935
+ /** @deprecated use `StreamRunAgentAgentToolInputRun$inboundSchema` instead. */
3936
+ export const inboundSchema = StreamRunAgentAgentToolInputRun$inboundSchema;
3937
+ /** @deprecated use `StreamRunAgentAgentToolInputRun$outboundSchema` instead. */
3938
+ export const outboundSchema = StreamRunAgentAgentToolInputRun$outboundSchema;
3939
+ /** @deprecated use `StreamRunAgentAgentToolInputRun$Outbound` instead. */
3940
+ export type Outbound = StreamRunAgentAgentToolInputRun$Outbound;
4100
3941
  }
4101
3942
 
4102
- export function streamRunAgentRunAgentRequestToolToJSON(
4103
- streamRunAgentRunAgentRequestTool: StreamRunAgentRunAgentRequestTool,
3943
+ export function streamRunAgentAgentToolInputRunToJSON(
3944
+ streamRunAgentAgentToolInputRun: StreamRunAgentAgentToolInputRun,
4104
3945
  ): string {
4105
3946
  return JSON.stringify(
4106
- StreamRunAgentRunAgentRequestTool$outboundSchema.parse(
4107
- streamRunAgentRunAgentRequestTool,
3947
+ StreamRunAgentAgentToolInputRun$outboundSchema.parse(
3948
+ streamRunAgentAgentToolInputRun,
4108
3949
  ),
4109
3950
  );
4110
3951
  }
4111
3952
 
4112
- export function streamRunAgentRunAgentRequestToolFromJSON(
3953
+ export function streamRunAgentAgentToolInputRunFromJSON(
4113
3954
  jsonString: string,
4114
- ): SafeParseResult<StreamRunAgentRunAgentRequestTool, SDKValidationError> {
3955
+ ): SafeParseResult<StreamRunAgentAgentToolInputRun, SDKValidationError> {
4115
3956
  return safeParse(
4116
3957
  jsonString,
4117
- (x) => StreamRunAgentRunAgentRequestTool$inboundSchema.parse(JSON.parse(x)),
4118
- `Failed to parse 'StreamRunAgentRunAgentRequestTool' from JSON`,
3958
+ (x) => StreamRunAgentAgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
3959
+ `Failed to parse 'StreamRunAgentAgentToolInputRun' from JSON`,
4119
3960
  );
4120
3961
  }
4121
3962
 
@@ -4149,20 +3990,42 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
4149
3990
  > = z.object({
4150
3991
  tools: z.array(
4151
3992
  z.union([
4152
- z.lazy(() => RunAgentRequestToolHTTPTool$inboundSchema),
4153
- z.lazy(() => RunAgentRequestToolCodeExecutionTool$inboundSchema),
4154
- z.lazy(() => RunAgentRequestToolFunctionTool$inboundSchema),
4155
- z.lazy(() => RunAgentRequestToolGoogleSearchTool$inboundSchema),
4156
- z.lazy(() => RunAgentRequestToolWebScraperTool$inboundSchema),
4157
- z.lazy(() => RunAgentRequestToolCallSubAgentTool$inboundSchema),
4158
- z.lazy(() => RunAgentRequestToolRetrieveAgentsTool$inboundSchema),
4159
- z.lazy(() => RunAgentRequestToolQueryMemoryStoreTool$inboundSchema),
4160
- z.lazy(() => RunAgentRequestToolWriteMemoryStoreTool$inboundSchema),
4161
- z.lazy(() => RunAgentRequestToolRetrieveMemoryStoresTool$inboundSchema),
4162
- z.lazy(() => RunAgentRequestToolDeleteMemoryStoreTool$inboundSchema),
4163
- z.lazy(() => RunAgentRequestToolRetrieveKnowledgeBasesTool$inboundSchema),
4164
- z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$inboundSchema),
4165
- z.lazy(() => RunAgentRequestToolCurrentDateTool$inboundSchema),
3993
+ z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
3994
+ z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
3995
+ z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
3996
+ z.lazy(() =>
3997
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema
3998
+ ),
3999
+ z.lazy(() =>
4000
+ StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema
4001
+ ),
4002
+ z.lazy(() =>
4003
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema
4004
+ ),
4005
+ z.lazy(() =>
4006
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema
4007
+ ),
4008
+ z.lazy(() =>
4009
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema
4010
+ ),
4011
+ z.lazy(() =>
4012
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema
4013
+ ),
4014
+ z.lazy(() =>
4015
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSchema
4016
+ ),
4017
+ z.lazy(() =>
4018
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSchema
4019
+ ),
4020
+ z.lazy(() =>
4021
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema
4022
+ ),
4023
+ z.lazy(() =>
4024
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
4025
+ ),
4026
+ z.lazy(() =>
4027
+ StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema
4028
+ ),
4166
4029
  ]),
4167
4030
  ),
4168
4031
  tool_approval_required: StreamRunAgentToolApprovalRequired$inboundSchema
@@ -4180,20 +4043,20 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
4180
4043
  /** @internal */
4181
4044
  export type StreamRunAgentSettings$Outbound = {
4182
4045
  tools: Array<
4183
- | RunAgentRequestToolHTTPTool$Outbound
4184
- | RunAgentRequestToolCodeExecutionTool$Outbound
4185
- | RunAgentRequestToolFunctionTool$Outbound
4186
- | RunAgentRequestToolGoogleSearchTool$Outbound
4187
- | RunAgentRequestToolWebScraperTool$Outbound
4188
- | RunAgentRequestToolCallSubAgentTool$Outbound
4189
- | RunAgentRequestToolRetrieveAgentsTool$Outbound
4190
- | RunAgentRequestToolQueryMemoryStoreTool$Outbound
4191
- | RunAgentRequestToolWriteMemoryStoreTool$Outbound
4192
- | RunAgentRequestToolRetrieveMemoryStoresTool$Outbound
4193
- | RunAgentRequestToolDeleteMemoryStoreTool$Outbound
4194
- | RunAgentRequestToolRetrieveKnowledgeBasesTool$Outbound
4195
- | RunAgentRequestToolQueryKnowledgeBaseTool$Outbound
4196
- | RunAgentRequestToolCurrentDateTool$Outbound
4046
+ | AgentToolInputRunHTTPToolRun$Outbound
4047
+ | AgentToolInputRunCodeToolRun$Outbound
4048
+ | AgentToolInputRunFunctionToolRun$Outbound
4049
+ | StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound
4050
+ | StreamRunAgentAgentToolInputRunWebScraperTool$Outbound
4051
+ | StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound
4052
+ | StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound
4053
+ | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound
4054
+ | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound
4055
+ | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound
4056
+ | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound
4057
+ | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
4058
+ | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound
4059
+ | StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound
4197
4060
  >;
4198
4061
  tool_approval_required: string;
4199
4062
  max_iterations: number;
@@ -4208,22 +4071,42 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
4208
4071
  > = z.object({
4209
4072
  tools: z.array(
4210
4073
  z.union([
4211
- z.lazy(() => RunAgentRequestToolHTTPTool$outboundSchema),
4212
- z.lazy(() => RunAgentRequestToolCodeExecutionTool$outboundSchema),
4213
- z.lazy(() => RunAgentRequestToolFunctionTool$outboundSchema),
4214
- z.lazy(() => RunAgentRequestToolGoogleSearchTool$outboundSchema),
4215
- z.lazy(() => RunAgentRequestToolWebScraperTool$outboundSchema),
4216
- z.lazy(() => RunAgentRequestToolCallSubAgentTool$outboundSchema),
4217
- z.lazy(() => RunAgentRequestToolRetrieveAgentsTool$outboundSchema),
4218
- z.lazy(() => RunAgentRequestToolQueryMemoryStoreTool$outboundSchema),
4219
- z.lazy(() => RunAgentRequestToolWriteMemoryStoreTool$outboundSchema),
4220
- z.lazy(() => RunAgentRequestToolRetrieveMemoryStoresTool$outboundSchema),
4221
- z.lazy(() => RunAgentRequestToolDeleteMemoryStoreTool$outboundSchema),
4074
+ z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
4075
+ z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
4076
+ z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
4077
+ z.lazy(() =>
4078
+ StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema
4079
+ ),
4080
+ z.lazy(() =>
4081
+ StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema
4082
+ ),
4083
+ z.lazy(() =>
4084
+ StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema
4085
+ ),
4086
+ z.lazy(() =>
4087
+ StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema
4088
+ ),
4089
+ z.lazy(() =>
4090
+ StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema
4091
+ ),
4222
4092
  z.lazy(() =>
4223
- RunAgentRequestToolRetrieveKnowledgeBasesTool$outboundSchema
4093
+ StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema
4094
+ ),
4095
+ z.lazy(() =>
4096
+ StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSchema
4097
+ ),
4098
+ z.lazy(() =>
4099
+ StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSchema
4100
+ ),
4101
+ z.lazy(() =>
4102
+ StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema
4103
+ ),
4104
+ z.lazy(() =>
4105
+ StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchema
4106
+ ),
4107
+ z.lazy(() =>
4108
+ StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema
4224
4109
  ),
4225
- z.lazy(() => RunAgentRequestToolQueryKnowledgeBaseTool$outboundSchema),
4226
- z.lazy(() => RunAgentRequestToolCurrentDateTool$outboundSchema),
4227
4110
  ]),
4228
4111
  ),
4229
4112
  toolApprovalRequired: StreamRunAgentToolApprovalRequired$outboundSchema
@@ -4276,7 +4159,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
4276
4159
  unknown
4277
4160
  > = z.object({
4278
4161
  key: z.string(),
4279
- taskId: z.string().optional(),
4162
+ task_id: z.string().optional(),
4280
4163
  model: z.string(),
4281
4164
  fallback_models: z.array(z.string()).optional(),
4282
4165
  role: z.string(),
@@ -4301,6 +4184,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
4301
4184
  stream_timeout_seconds: z.number().optional(),
4302
4185
  }).transform((v) => {
4303
4186
  return remap$(v, {
4187
+ "task_id": "taskId",
4304
4188
  "fallback_models": "fallbackModels",
4305
4189
  "system_prompt": "systemPrompt",
4306
4190
  "memory_stores": "memoryStores",
@@ -4313,7 +4197,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
4313
4197
  /** @internal */
4314
4198
  export type StreamRunAgentRequestBody$Outbound = {
4315
4199
  key: string;
4316
- taskId?: string | undefined;
4200
+ task_id?: string | undefined;
4317
4201
  model: string;
4318
4202
  fallback_models?: Array<string> | undefined;
4319
4203
  role: string;
@@ -4365,6 +4249,7 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
4365
4249
  streamTimeoutSeconds: z.number().optional(),
4366
4250
  }).transform((v) => {
4367
4251
  return remap$(v, {
4252
+ taskId: "task_id",
4368
4253
  fallbackModels: "fallback_models",
4369
4254
  systemPrompt: "system_prompt",
4370
4255
  memoryStores: "memory_stores",