@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
@@ -12,56 +12,62 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * Tool message
14
14
  */
15
- export const RoleToolMessage = {
15
+ export const RunAgentRoleToolMessage = {
16
16
  Tool: "tool",
17
17
  } as const;
18
18
  /**
19
19
  * Tool message
20
20
  */
21
- export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
21
+ export type RunAgentRoleToolMessage = ClosedEnum<
22
+ typeof RunAgentRoleToolMessage
23
+ >;
22
24
 
23
25
  /**
24
26
  * User message
25
27
  */
26
- export const RoleUserMessage = {
28
+ export const RunAgentRoleUserMessage = {
27
29
  User: "user",
28
30
  } as const;
29
31
  /**
30
32
  * User message
31
33
  */
32
- export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
34
+ export type RunAgentRoleUserMessage = ClosedEnum<
35
+ typeof RunAgentRoleUserMessage
36
+ >;
33
37
 
34
38
  /**
35
39
  * Message role (user or tool for continuing executions)
36
40
  */
37
- export type RunAgentRole = RoleUserMessage | RoleToolMessage;
41
+ export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
38
42
 
39
- export const RunAgentPublicMessagePartKind = {
43
+ export const RunAgentPublicMessagePartAgentsRequestKind = {
40
44
  ToolResult: "tool_result",
41
45
  } as const;
42
- export type RunAgentPublicMessagePartKind = ClosedEnum<
43
- typeof RunAgentPublicMessagePartKind
46
+ export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
47
+ typeof RunAgentPublicMessagePartAgentsRequestKind
44
48
  >;
45
49
 
46
50
  /**
47
51
  * 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.
48
52
  */
49
- export type ToolResultPart = {
50
- kind: RunAgentPublicMessagePartKind;
53
+ export type PublicMessagePartToolResultPart = {
54
+ kind: RunAgentPublicMessagePartAgentsRequestKind;
51
55
  toolCallId: string;
52
56
  result?: any | undefined;
53
57
  metadata?: { [k: string]: any } | undefined;
54
58
  };
55
59
 
56
- export const PublicMessagePartKind = {
60
+ export const RunAgentPublicMessagePartAgentsKind = {
57
61
  File: "file",
58
62
  } as const;
59
- export type PublicMessagePartKind = ClosedEnum<typeof PublicMessagePartKind>;
63
+ export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<
64
+ typeof RunAgentPublicMessagePartAgentsKind
65
+ >;
60
66
 
61
67
  /**
62
68
  * File in URI format. Check in the model's documentation for the supported mime types for the URI format
63
69
  */
64
- export type FileInURIFormat = {
70
+ export type FileFileInURIFormat = {
65
71
  /**
66
72
  * URL for the File content
67
73
  */
@@ -79,7 +85,7 @@ export type FileInURIFormat = {
79
85
  /**
80
86
  * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
81
87
  */
82
- export type BinaryFormat = {
88
+ export type FileBinaryFormat = {
83
89
  /**
84
90
  * base64 encoded content of the file
85
91
  */
@@ -94,39 +100,46 @@ export type BinaryFormat = {
94
100
  name?: string | undefined;
95
101
  };
96
102
 
97
- export type PublicMessagePartFile = BinaryFormat | FileInURIFormat;
103
+ export type RunAgentPublicMessagePartFile =
104
+ | FileBinaryFormat
105
+ | FileFileInURIFormat;
98
106
 
99
107
  /**
100
108
  * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
101
109
  */
102
- export type FilePart = {
103
- kind: PublicMessagePartKind;
104
- file: BinaryFormat | FileInURIFormat;
110
+ export type PublicMessagePartFilePart = {
111
+ kind: RunAgentPublicMessagePartAgentsKind;
112
+ file: FileBinaryFormat | FileFileInURIFormat;
105
113
  metadata?: { [k: string]: any } | undefined;
106
114
  };
107
115
 
108
- export const Kind = {
116
+ export const RunAgentPublicMessagePartKind = {
109
117
  Text: "text",
110
118
  } as const;
111
- export type Kind = ClosedEnum<typeof Kind>;
119
+ export type RunAgentPublicMessagePartKind = ClosedEnum<
120
+ typeof RunAgentPublicMessagePartKind
121
+ >;
112
122
 
113
123
  /**
114
124
  * Text content part. Use this to send text messages to the agent.
115
125
  */
116
- export type TextPart = {
117
- kind: Kind;
126
+ export type PublicMessagePartTextPart = {
127
+ kind: RunAgentPublicMessagePartKind;
118
128
  text: string;
119
129
  };
120
130
 
121
131
  /**
122
132
  * 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.
123
133
  */
124
- export type PublicMessagePart = TextPart | FilePart | ToolResultPart;
134
+ export type RunAgentPublicMessagePart =
135
+ | PublicMessagePartTextPart
136
+ | PublicMessagePartFilePart
137
+ | PublicMessagePartToolResultPart;
125
138
 
126
139
  /**
127
140
  * The A2A format message containing the task for the agent to perform.
128
141
  */
129
- export type Message = {
142
+ export type RunAgentMessage = {
130
143
  /**
131
144
  * Optional A2A message ID in ULID format
132
145
  */
@@ -134,17 +147,21 @@ export type Message = {
134
147
  /**
135
148
  * Message role (user or tool for continuing executions)
136
149
  */
137
- role: RoleUserMessage | RoleToolMessage;
150
+ role: RunAgentRoleUserMessage | RunAgentRoleToolMessage;
138
151
  /**
139
152
  * A2A message parts (text, file, or tool_result only)
140
153
  */
141
- parts: Array<TextPart | FilePart | ToolResultPart>;
154
+ parts: Array<
155
+ | PublicMessagePartTextPart
156
+ | PublicMessagePartFilePart
157
+ | PublicMessagePartToolResultPart
158
+ >;
142
159
  };
143
160
 
144
161
  /**
145
162
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
146
163
  */
147
- export type Contact = {
164
+ export type RunAgentContact = {
148
165
  /**
149
166
  * Unique identifier for the contact
150
167
  */
@@ -188,54 +205,18 @@ export type RunAgentThread = {
188
205
  /**
189
206
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
190
207
  */
191
- export type Memory = {
208
+ export type RunAgentMemory = {
192
209
  /**
193
210
  * An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
194
211
  */
195
212
  entityId: string;
196
213
  };
197
214
 
198
- export const RunAgentKnowledgeBaseConfigurationType = {
199
- Query: "query",
200
- } as const;
201
- export type RunAgentKnowledgeBaseConfigurationType = ClosedEnum<
202
- typeof RunAgentKnowledgeBaseConfigurationType
203
- >;
204
-
205
- /**
206
- * Defines the configuration settings for a static query.
207
- */
208
- export type KnowledgeBaseStaticQuery = {
209
- type: RunAgentKnowledgeBaseConfigurationType;
210
- query: string;
211
- };
212
-
213
- export const KnowledgeBaseConfigurationType = {
214
- LastUserMessage: "last_user_message",
215
- } as const;
216
- export type KnowledgeBaseConfigurationType = ClosedEnum<
217
- typeof KnowledgeBaseConfigurationType
218
- >;
219
-
220
- /**
221
- * Defines the configuration settings for a last user message type retrieval.
222
- */
223
- export type KnowledgeBaseLastUserMessage = {
224
- type: KnowledgeBaseConfigurationType;
225
- };
226
-
227
- /**
228
- * Defines the configuration settings which can either be for a user message or a text entry.
229
- */
230
- export type KnowledgeBaseConfiguration =
231
- | KnowledgeBaseStaticQuery
232
- | KnowledgeBaseLastUserMessage;
233
-
234
- export type KnowledgeBases = {
215
+ export type RunAgentKnowledgeBases = {
235
216
  /**
236
- * Defines the configuration settings which can either be for a user message or a text entry.
217
+ * Unique identifier of the knowledge base to search
237
218
  */
238
- configuration: KnowledgeBaseStaticQuery | KnowledgeBaseLastUserMessage;
219
+ knowledgeId: string;
239
220
  };
240
221
 
241
222
  export type TeamOfAgents = {
@@ -249,42 +230,57 @@ export type TeamOfAgents = {
249
230
  role?: string | undefined;
250
231
  };
251
232
 
252
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type =
233
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
253
234
  {
254
235
  Function: "function",
255
236
  } as const;
256
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type =
237
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type =
257
238
  ClosedEnum<
258
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
239
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
259
240
  >;
260
241
 
261
- export type RunAgentRequestToolFunction = {
242
+ export type AgentToolInputRunFunction = {
243
+ /**
244
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
245
+ */
262
246
  name: string;
247
+ /**
248
+ * A description of what the function does, used by the model to choose when and how to call the function.
249
+ */
263
250
  description?: string | undefined;
251
+ /**
252
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
253
+ */
264
254
  strict?: boolean | undefined;
255
+ /**
256
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
257
+ */
265
258
  parameters?: { [k: string]: any } | undefined;
266
259
  };
267
260
 
268
261
  /**
269
- * Custom function tool with configurable parameters
262
+ * Function tool with inline definition for on-the-fly creation in run endpoint
270
263
  */
271
- export type FunctionTool = {
272
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type;
273
- id?: string | undefined;
264
+ export type FunctionToolRun = {
265
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
266
+ /**
267
+ * Unique key of the tool as it will be displayed in the UI
268
+ */
274
269
  key: string;
270
+ id?: string | undefined;
275
271
  displayName?: string | undefined;
276
272
  description?: string | undefined;
273
+ function: AgentToolInputRunFunction;
277
274
  requiresApproval?: boolean | undefined;
278
- function: RunAgentRequestToolFunction;
279
275
  };
280
276
 
281
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
277
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
282
278
  {
283
279
  Code: "code",
284
280
  } as const;
285
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type =
281
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type =
286
282
  ClosedEnum<
287
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
283
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
288
284
  >;
289
285
 
290
286
  export const Language = {
@@ -305,34 +301,31 @@ export type CodeTool = {
305
301
  };
306
302
 
307
303
  /**
308
- * Executes code in a secure sandbox environment
304
+ * Code execution tool with inline definition for on-the-fly creation in run endpoint
309
305
  */
310
- export type CodeExecutionTool = {
306
+ export type CodeToolRun = {
307
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
311
308
  /**
312
309
  * Unique key of the tool as it will be displayed in the UI
313
310
  */
314
311
  key: string;
315
- /**
316
- * 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.
317
- */
318
- displayName: string;
312
+ id?: string | undefined;
313
+ displayName?: string | undefined;
319
314
  /**
320
315
  * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
321
316
  */
322
317
  description: string;
323
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
324
318
  codeTool: CodeTool;
325
- id?: string | undefined;
326
319
  requiresApproval?: boolean | undefined;
327
320
  };
328
321
 
329
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
322
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
330
323
  {
331
324
  Http: "http",
332
325
  } as const;
333
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type =
326
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type =
334
327
  ClosedEnum<
335
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
328
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
336
329
  >;
337
330
 
338
331
  /**
@@ -374,7 +367,7 @@ export type Blueprint = {
374
367
  /**
375
368
  * The type of the argument.
376
369
  */
377
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType =
370
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
378
371
  {
379
372
  String: "string",
380
373
  Number: "number",
@@ -383,9 +376,9 @@ export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12H
383
376
  /**
384
377
  * The type of the argument.
385
378
  */
386
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType =
379
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType =
387
380
  ClosedEnum<
388
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
381
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
389
382
  >;
390
383
 
391
384
  /**
@@ -398,7 +391,7 @@ export type Arguments = {
398
391
  * The type of the argument.
399
392
  */
400
393
  type:
401
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType;
394
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
402
395
  /**
403
396
  * A description of the argument.
404
397
  */
@@ -425,225 +418,254 @@ export type Http = {
425
418
  };
426
419
 
427
420
  /**
428
- * Makes HTTP requests to external APIs
421
+ * HTTP tool with inline definition for on-the-fly creation in run endpoint
429
422
  */
430
- export type HTTPTool = {
431
- id?: string | undefined;
423
+ export type HTTPToolRun = {
424
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
432
425
  /**
433
426
  * Unique key of the tool as it will be displayed in the UI
434
427
  */
435
428
  key: string;
436
- /**
437
- * 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.
438
- */
439
- displayName: string;
429
+ id?: string | undefined;
430
+ displayName?: string | undefined;
440
431
  /**
441
432
  * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
442
433
  */
443
434
  description: string;
444
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
445
435
  http: Http;
446
436
  requiresApproval?: boolean | undefined;
447
437
  };
448
438
 
449
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
439
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
450
440
  {
451
441
  CurrentDate: "current_date",
452
442
  } as const;
453
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type =
443
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type =
454
444
  ClosedEnum<
455
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
445
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
456
446
  >;
457
447
 
458
448
  /**
459
- * Provides the current date and time
449
+ * Returns the current date and time
460
450
  */
461
- export type CurrentDateTool = {
462
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type;
451
+ export type AgentToolInputRunCurrentDateTool = {
452
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
453
+ /**
454
+ * Whether this tool requires approval before execution
455
+ */
463
456
  requiresApproval?: boolean | undefined;
464
457
  };
465
458
 
466
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
459
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
467
460
  {
468
461
  QueryKnowledgeBase: "query_knowledge_base",
469
462
  } as const;
470
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type =
463
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type =
471
464
  ClosedEnum<
472
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
465
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
473
466
  >;
474
467
 
475
468
  /**
476
469
  * Queries knowledge bases for information
477
470
  */
478
- export type QueryKnowledgeBaseTool = {
479
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type;
471
+ export type AgentToolInputRunQueryKnowledgeBaseTool = {
472
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
473
+ /**
474
+ * Whether this tool requires approval before execution
475
+ */
480
476
  requiresApproval?: boolean | undefined;
481
477
  };
482
478
 
483
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
479
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
484
480
  {
485
481
  RetrieveKnowledgeBases: "retrieve_knowledge_bases",
486
482
  } as const;
487
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type =
483
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type =
488
484
  ClosedEnum<
489
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
485
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
490
486
  >;
491
487
 
492
488
  /**
493
489
  * Lists available knowledge bases
494
490
  */
495
- export type RetrieveKnowledgeBasesTool = {
496
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type;
491
+ export type AgentToolInputRunRetrieveKnowledgeBasesTool = {
492
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
493
+ /**
494
+ * Whether this tool requires approval before execution
495
+ */
497
496
  requiresApproval?: boolean | undefined;
498
497
  };
499
498
 
500
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
499
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
501
500
  {
502
501
  DeleteMemoryDocument: "delete_memory_document",
503
502
  } as const;
504
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type =
503
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type =
505
504
  ClosedEnum<
506
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
505
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
507
506
  >;
508
507
 
509
508
  /**
510
- * Deletes a memory store
509
+ * Deletes documents from memory stores
511
510
  */
512
- export type DeleteMemoryStoreTool = {
513
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type;
511
+ export type AgentToolInputRunDeleteMemoryDocumentTool = {
512
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
513
+ /**
514
+ * Whether this tool requires approval before execution
515
+ */
514
516
  requiresApproval?: boolean | undefined;
515
517
  };
516
518
 
517
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
519
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
518
520
  {
519
521
  RetrieveMemoryStores: "retrieve_memory_stores",
520
522
  } as const;
521
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType =
523
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType =
522
524
  ClosedEnum<
523
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
525
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
524
526
  >;
525
527
 
526
528
  /**
527
529
  * Lists available memory stores
528
530
  */
529
- export type RetrieveMemoryStoresTool = {
530
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType;
531
+ export type AgentToolInputRunRetrieveMemoryStoresTool = {
532
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
533
+ /**
534
+ * Whether this tool requires approval before execution
535
+ */
531
536
  requiresApproval?: boolean | undefined;
532
537
  };
533
538
 
534
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType = {
539
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = {
535
540
  WriteMemoryStore: "write_memory_store",
536
541
  } as const;
537
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType =
542
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType =
538
543
  ClosedEnum<
539
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
544
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
540
545
  >;
541
546
 
542
547
  /**
543
548
  * Writes information to agent memory stores
544
549
  */
545
- export type WriteMemoryStoreTool = {
546
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType;
550
+ export type AgentToolInputRunWriteMemoryStoreTool = {
551
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
552
+ /**
553
+ * Whether this tool requires approval before execution
554
+ */
547
555
  requiresApproval?: boolean | undefined;
548
556
  };
549
557
 
550
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType = {
558
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType = {
551
559
  QueryMemoryStore: "query_memory_store",
552
560
  } as const;
553
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodyType =
554
- ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType>;
561
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodyType = ClosedEnum<
562
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
563
+ >;
555
564
 
556
565
  /**
557
566
  * Queries agent memory stores for context
558
567
  */
559
- export type QueryMemoryStoreTool = {
560
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType;
568
+ export type AgentToolInputRunQueryMemoryStoreTool = {
569
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType;
570
+ /**
571
+ * Whether this tool requires approval before execution
572
+ */
561
573
  requiresApproval?: boolean | undefined;
562
574
  };
563
575
 
564
- export const RunAgentRunAgentRequestToolAgentsRequestType = {
576
+ export const RunAgentAgentToolInputRunAgentsRequestType = {
565
577
  RetrieveAgents: "retrieve_agents",
566
578
  } as const;
567
- export type RunAgentRunAgentRequestToolAgentsRequestType = ClosedEnum<
568
- typeof RunAgentRunAgentRequestToolAgentsRequestType
579
+ export type RunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<
580
+ typeof RunAgentAgentToolInputRunAgentsRequestType
569
581
  >;
570
582
 
571
583
  /**
572
584
  * Retrieves available agents in the system
573
585
  */
574
- export type RetrieveAgentsTool = {
575
- type: RunAgentRunAgentRequestToolAgentsRequestType;
586
+ export type AgentToolInputRunRetrieveAgentsTool = {
587
+ type: RunAgentAgentToolInputRunAgentsRequestType;
588
+ /**
589
+ * Whether this tool requires approval before execution
590
+ */
576
591
  requiresApproval?: boolean | undefined;
577
592
  };
578
593
 
579
- export const RunAgentRunAgentRequestToolAgentsType = {
594
+ export const RunAgentAgentToolInputRunAgentsType = {
580
595
  CallSubAgent: "call_sub_agent",
581
596
  } as const;
582
- export type RunAgentRunAgentRequestToolAgentsType = ClosedEnum<
583
- typeof RunAgentRunAgentRequestToolAgentsType
597
+ export type RunAgentAgentToolInputRunAgentsType = ClosedEnum<
598
+ typeof RunAgentAgentToolInputRunAgentsType
584
599
  >;
585
600
 
586
601
  /**
587
602
  * Delegates tasks to specialized sub-agents
588
603
  */
589
- export type CallSubAgentTool = {
590
- type: RunAgentRunAgentRequestToolAgentsType;
604
+ export type AgentToolInputRunCallSubAgentTool = {
605
+ type: RunAgentAgentToolInputRunAgentsType;
606
+ /**
607
+ * Whether this tool requires approval before execution
608
+ */
591
609
  requiresApproval?: boolean | undefined;
592
610
  };
593
611
 
594
- export const RunAgentRunAgentRequestToolType = {
612
+ export const RunAgentAgentToolInputRunType = {
595
613
  WebScraper: "web_scraper",
596
614
  } as const;
597
- export type RunAgentRunAgentRequestToolType = ClosedEnum<
598
- typeof RunAgentRunAgentRequestToolType
615
+ export type RunAgentAgentToolInputRunType = ClosedEnum<
616
+ typeof RunAgentAgentToolInputRunType
599
617
  >;
600
618
 
601
619
  /**
602
620
  * Scrapes and extracts content from web pages
603
621
  */
604
- export type WebScraperTool = {
605
- type: RunAgentRunAgentRequestToolType;
622
+ export type AgentToolInputRunWebScraperTool = {
623
+ type: RunAgentAgentToolInputRunType;
624
+ /**
625
+ * Whether this tool requires approval before execution
626
+ */
606
627
  requiresApproval?: boolean | undefined;
607
628
  };
608
629
 
609
- export const RunAgentRequestToolType = {
630
+ export const AgentToolInputRunType = {
610
631
  GoogleSearch: "google_search",
611
632
  } as const;
612
- export type RunAgentRequestToolType = ClosedEnum<
613
- typeof RunAgentRequestToolType
614
- >;
633
+ export type AgentToolInputRunType = ClosedEnum<typeof AgentToolInputRunType>;
615
634
 
616
635
  /**
617
636
  * Performs Google searches to retrieve web content
618
637
  */
619
- export type GoogleSearchTool = {
620
- type: RunAgentRequestToolType;
638
+ export type AgentToolInputRunGoogleSearchTool = {
639
+ type: AgentToolInputRunType;
640
+ /**
641
+ * Whether this tool requires approval before execution
642
+ */
621
643
  requiresApproval?: boolean | undefined;
622
644
  };
623
645
 
624
646
  /**
625
- * Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
647
+ * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (http, code, function) support full inline definitions for on-the-fly creation.
626
648
  */
627
- export type RunAgentRequestTool =
628
- | HTTPTool
629
- | CodeExecutionTool
630
- | FunctionTool
631
- | GoogleSearchTool
632
- | WebScraperTool
633
- | CallSubAgentTool
634
- | RetrieveAgentsTool
635
- | QueryMemoryStoreTool
636
- | WriteMemoryStoreTool
637
- | RetrieveMemoryStoresTool
638
- | DeleteMemoryStoreTool
639
- | RetrieveKnowledgeBasesTool
640
- | QueryKnowledgeBaseTool
641
- | CurrentDateTool;
649
+ export type AgentToolInputRun =
650
+ | HTTPToolRun
651
+ | CodeToolRun
652
+ | FunctionToolRun
653
+ | AgentToolInputRunGoogleSearchTool
654
+ | AgentToolInputRunWebScraperTool
655
+ | AgentToolInputRunCallSubAgentTool
656
+ | AgentToolInputRunRetrieveAgentsTool
657
+ | AgentToolInputRunQueryMemoryStoreTool
658
+ | AgentToolInputRunWriteMemoryStoreTool
659
+ | AgentToolInputRunRetrieveMemoryStoresTool
660
+ | AgentToolInputRunDeleteMemoryDocumentTool
661
+ | AgentToolInputRunRetrieveKnowledgeBasesTool
662
+ | AgentToolInputRunQueryKnowledgeBaseTool
663
+ | AgentToolInputRunCurrentDateTool;
642
664
 
643
665
  /**
644
666
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
645
667
  */
646
- export const ToolApprovalRequired = {
668
+ export const RunAgentToolApprovalRequired = {
647
669
  All: "all",
648
670
  RespectTool: "respect_tool",
649
671
  None: "none",
@@ -651,32 +673,34 @@ export const ToolApprovalRequired = {
651
673
  /**
652
674
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
653
675
  */
654
- export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
676
+ export type RunAgentToolApprovalRequired = ClosedEnum<
677
+ typeof RunAgentToolApprovalRequired
678
+ >;
655
679
 
656
- export type Settings = {
680
+ export type RunAgentSettings = {
657
681
  /**
658
682
  * Tools available to the agent
659
683
  */
660
684
  tools: Array<
661
- | HTTPTool
662
- | CodeExecutionTool
663
- | FunctionTool
664
- | GoogleSearchTool
665
- | WebScraperTool
666
- | CallSubAgentTool
667
- | RetrieveAgentsTool
668
- | QueryMemoryStoreTool
669
- | WriteMemoryStoreTool
670
- | RetrieveMemoryStoresTool
671
- | DeleteMemoryStoreTool
672
- | RetrieveKnowledgeBasesTool
673
- | QueryKnowledgeBaseTool
674
- | CurrentDateTool
685
+ | HTTPToolRun
686
+ | CodeToolRun
687
+ | FunctionToolRun
688
+ | AgentToolInputRunGoogleSearchTool
689
+ | AgentToolInputRunWebScraperTool
690
+ | AgentToolInputRunCallSubAgentTool
691
+ | AgentToolInputRunRetrieveAgentsTool
692
+ | AgentToolInputRunQueryMemoryStoreTool
693
+ | AgentToolInputRunWriteMemoryStoreTool
694
+ | AgentToolInputRunRetrieveMemoryStoresTool
695
+ | AgentToolInputRunDeleteMemoryDocumentTool
696
+ | AgentToolInputRunRetrieveKnowledgeBasesTool
697
+ | AgentToolInputRunQueryKnowledgeBaseTool
698
+ | AgentToolInputRunCurrentDateTool
675
699
  >;
676
700
  /**
677
701
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
678
702
  */
679
- toolApprovalRequired?: ToolApprovalRequired | undefined;
703
+ toolApprovalRequired?: RunAgentToolApprovalRequired | undefined;
680
704
  /**
681
705
  * Maximum iterations(llm calls) before the agent will stop executing.
682
706
  */
@@ -715,7 +739,7 @@ export type RunAgentRequestBody = {
715
739
  /**
716
740
  * The A2A format message containing the task for the agent to perform.
717
741
  */
718
- message: Message;
742
+ message: RunAgentMessage;
719
743
  /**
720
744
  * Optional variables for template replacement in system prompt, instructions, and messages
721
745
  */
@@ -723,7 +747,7 @@ export type RunAgentRequestBody = {
723
747
  /**
724
748
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
725
749
  */
726
- contact?: Contact | undefined;
750
+ contact?: RunAgentContact | undefined;
727
751
  /**
728
752
  * Thread information to group related requests
729
753
  */
@@ -731,7 +755,7 @@ export type RunAgentRequestBody = {
731
755
  /**
732
756
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
733
757
  */
734
- memory?: Memory | undefined;
758
+ memory?: RunAgentMemory | undefined;
735
759
  /**
736
760
  * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
737
761
  */
@@ -748,12 +772,15 @@ export type RunAgentRequestBody = {
748
772
  * The list of keys of the memory stores that are accessible to the agent.
749
773
  */
750
774
  memoryStores?: Array<string> | undefined;
751
- knowledgeBases?: Array<KnowledgeBases> | undefined;
775
+ /**
776
+ * Knowledge base configurations for the agent to access
777
+ */
778
+ knowledgeBases?: Array<RunAgentKnowledgeBases> | undefined;
752
779
  /**
753
780
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
754
781
  */
755
782
  teamOfAgents?: Array<TeamOfAgents> | undefined;
756
- settings: Settings;
783
+ settings: RunAgentSettings;
757
784
  /**
758
785
  * Optional metadata for the agent run as key-value pairs that will be included in traces
759
786
  */
@@ -812,7 +839,7 @@ export type RunAgentAgentsRole = ClosedEnum<typeof RunAgentAgentsRole>;
812
839
  /**
813
840
  * Optional status message
814
841
  */
815
- export type RunAgentMessage = {
842
+ export type RunAgentAgentsMessage = {
816
843
  kind: RunAgentAgentsKind;
817
844
  messageId: string;
818
845
  /**
@@ -837,7 +864,7 @@ export type RunAgentStatus = {
837
864
  /**
838
865
  * Optional status message
839
866
  */
840
- message?: RunAgentMessage | undefined;
867
+ message?: RunAgentAgentsMessage | undefined;
841
868
  };
842
869
 
843
870
  /**
@@ -849,7 +876,7 @@ export type RunAgentResponseBody = {
849
876
  */
850
877
  id: string;
851
878
  /**
852
- * The context ID (workspace ID)
879
+ * The correlation ID for this execution
853
880
  */
854
881
  contextId: string;
855
882
  /**
@@ -861,51 +888,51 @@ export type RunAgentResponseBody = {
861
888
  */
862
889
  status: RunAgentStatus;
863
890
  /**
864
- * Task metadata
891
+ * Task metadata containing workspace_id and trace_id for feedback
865
892
  */
866
893
  metadata?: { [k: string]: any } | undefined;
867
894
  };
868
895
 
869
896
  /** @internal */
870
- export const RoleToolMessage$inboundSchema: z.ZodNativeEnum<
871
- typeof RoleToolMessage
872
- > = z.nativeEnum(RoleToolMessage);
897
+ export const RunAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
898
+ typeof RunAgentRoleToolMessage
899
+ > = z.nativeEnum(RunAgentRoleToolMessage);
873
900
 
874
901
  /** @internal */
875
- export const RoleToolMessage$outboundSchema: z.ZodNativeEnum<
876
- typeof RoleToolMessage
877
- > = RoleToolMessage$inboundSchema;
902
+ export const RunAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
903
+ typeof RunAgentRoleToolMessage
904
+ > = RunAgentRoleToolMessage$inboundSchema;
878
905
 
879
906
  /**
880
907
  * @internal
881
908
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
882
909
  */
883
- export namespace RoleToolMessage$ {
884
- /** @deprecated use `RoleToolMessage$inboundSchema` instead. */
885
- export const inboundSchema = RoleToolMessage$inboundSchema;
886
- /** @deprecated use `RoleToolMessage$outboundSchema` instead. */
887
- export const outboundSchema = RoleToolMessage$outboundSchema;
910
+ export namespace RunAgentRoleToolMessage$ {
911
+ /** @deprecated use `RunAgentRoleToolMessage$inboundSchema` instead. */
912
+ export const inboundSchema = RunAgentRoleToolMessage$inboundSchema;
913
+ /** @deprecated use `RunAgentRoleToolMessage$outboundSchema` instead. */
914
+ export const outboundSchema = RunAgentRoleToolMessage$outboundSchema;
888
915
  }
889
916
 
890
917
  /** @internal */
891
- export const RoleUserMessage$inboundSchema: z.ZodNativeEnum<
892
- typeof RoleUserMessage
893
- > = z.nativeEnum(RoleUserMessage);
918
+ export const RunAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
919
+ typeof RunAgentRoleUserMessage
920
+ > = z.nativeEnum(RunAgentRoleUserMessage);
894
921
 
895
922
  /** @internal */
896
- export const RoleUserMessage$outboundSchema: z.ZodNativeEnum<
897
- typeof RoleUserMessage
898
- > = RoleUserMessage$inboundSchema;
923
+ export const RunAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
924
+ typeof RunAgentRoleUserMessage
925
+ > = RunAgentRoleUserMessage$inboundSchema;
899
926
 
900
927
  /**
901
928
  * @internal
902
929
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
903
930
  */
904
- export namespace RoleUserMessage$ {
905
- /** @deprecated use `RoleUserMessage$inboundSchema` instead. */
906
- export const inboundSchema = RoleUserMessage$inboundSchema;
907
- /** @deprecated use `RoleUserMessage$outboundSchema` instead. */
908
- export const outboundSchema = RoleUserMessage$outboundSchema;
931
+ export namespace RunAgentRoleUserMessage$ {
932
+ /** @deprecated use `RunAgentRoleUserMessage$inboundSchema` instead. */
933
+ export const inboundSchema = RunAgentRoleUserMessage$inboundSchema;
934
+ /** @deprecated use `RunAgentRoleUserMessage$outboundSchema` instead. */
935
+ export const outboundSchema = RunAgentRoleUserMessage$outboundSchema;
909
936
  }
910
937
 
911
938
  /** @internal */
@@ -913,7 +940,10 @@ export const RunAgentRole$inboundSchema: z.ZodType<
913
940
  RunAgentRole,
914
941
  z.ZodTypeDef,
915
942
  unknown
916
- > = z.union([RoleUserMessage$inboundSchema, RoleToolMessage$inboundSchema]);
943
+ > = z.union([
944
+ RunAgentRoleUserMessage$inboundSchema,
945
+ RunAgentRoleToolMessage$inboundSchema,
946
+ ]);
917
947
 
918
948
  /** @internal */
919
949
  export type RunAgentRole$Outbound = string | string;
@@ -923,7 +953,10 @@ export const RunAgentRole$outboundSchema: z.ZodType<
923
953
  RunAgentRole$Outbound,
924
954
  z.ZodTypeDef,
925
955
  RunAgentRole
926
- > = z.union([RoleUserMessage$outboundSchema, RoleToolMessage$outboundSchema]);
956
+ > = z.union([
957
+ RunAgentRoleUserMessage$outboundSchema,
958
+ RunAgentRoleToolMessage$outboundSchema,
959
+ ]);
927
960
 
928
961
  /**
929
962
  * @internal
@@ -953,33 +986,35 @@ export function runAgentRoleFromJSON(
953
986
  }
954
987
 
955
988
  /** @internal */
956
- export const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
957
- typeof RunAgentPublicMessagePartKind
958
- > = z.nativeEnum(RunAgentPublicMessagePartKind);
989
+ export const RunAgentPublicMessagePartAgentsRequestKind$inboundSchema:
990
+ z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> = z
991
+ .nativeEnum(RunAgentPublicMessagePartAgentsRequestKind);
959
992
 
960
993
  /** @internal */
961
- export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
962
- typeof RunAgentPublicMessagePartKind
963
- > = RunAgentPublicMessagePartKind$inboundSchema;
994
+ export const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema:
995
+ z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind> =
996
+ RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
964
997
 
965
998
  /**
966
999
  * @internal
967
1000
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
968
1001
  */
969
- export namespace RunAgentPublicMessagePartKind$ {
970
- /** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
971
- export const inboundSchema = RunAgentPublicMessagePartKind$inboundSchema;
972
- /** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
973
- export const outboundSchema = RunAgentPublicMessagePartKind$outboundSchema;
1002
+ export namespace RunAgentPublicMessagePartAgentsRequestKind$ {
1003
+ /** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
1004
+ export const inboundSchema =
1005
+ RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
1006
+ /** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
1007
+ export const outboundSchema =
1008
+ RunAgentPublicMessagePartAgentsRequestKind$outboundSchema;
974
1009
  }
975
1010
 
976
1011
  /** @internal */
977
- export const ToolResultPart$inboundSchema: z.ZodType<
978
- ToolResultPart,
1012
+ export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
1013
+ PublicMessagePartToolResultPart,
979
1014
  z.ZodTypeDef,
980
1015
  unknown
981
1016
  > = z.object({
982
- kind: RunAgentPublicMessagePartKind$inboundSchema,
1017
+ kind: RunAgentPublicMessagePartAgentsRequestKind$inboundSchema,
983
1018
  tool_call_id: z.string(),
984
1019
  result: z.any().optional(),
985
1020
  metadata: z.record(z.any()).optional(),
@@ -990,7 +1025,7 @@ export const ToolResultPart$inboundSchema: z.ZodType<
990
1025
  });
991
1026
 
992
1027
  /** @internal */
993
- export type ToolResultPart$Outbound = {
1028
+ export type PublicMessagePartToolResultPart$Outbound = {
994
1029
  kind: string;
995
1030
  tool_call_id: string;
996
1031
  result?: any | undefined;
@@ -998,12 +1033,12 @@ export type ToolResultPart$Outbound = {
998
1033
  };
999
1034
 
1000
1035
  /** @internal */
1001
- export const ToolResultPart$outboundSchema: z.ZodType<
1002
- ToolResultPart$Outbound,
1036
+ export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
1037
+ PublicMessagePartToolResultPart$Outbound,
1003
1038
  z.ZodTypeDef,
1004
- ToolResultPart
1039
+ PublicMessagePartToolResultPart
1005
1040
  > = z.object({
1006
- kind: RunAgentPublicMessagePartKind$outboundSchema,
1041
+ kind: RunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
1007
1042
  toolCallId: z.string(),
1008
1043
  result: z.any().optional(),
1009
1044
  metadata: z.record(z.any()).optional(),
@@ -1017,53 +1052,61 @@ export const ToolResultPart$outboundSchema: z.ZodType<
1017
1052
  * @internal
1018
1053
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1019
1054
  */
1020
- export namespace ToolResultPart$ {
1021
- /** @deprecated use `ToolResultPart$inboundSchema` instead. */
1022
- export const inboundSchema = ToolResultPart$inboundSchema;
1023
- /** @deprecated use `ToolResultPart$outboundSchema` instead. */
1024
- export const outboundSchema = ToolResultPart$outboundSchema;
1025
- /** @deprecated use `ToolResultPart$Outbound` instead. */
1026
- export type Outbound = ToolResultPart$Outbound;
1055
+ export namespace PublicMessagePartToolResultPart$ {
1056
+ /** @deprecated use `PublicMessagePartToolResultPart$inboundSchema` instead. */
1057
+ export const inboundSchema = PublicMessagePartToolResultPart$inboundSchema;
1058
+ /** @deprecated use `PublicMessagePartToolResultPart$outboundSchema` instead. */
1059
+ export const outboundSchema = PublicMessagePartToolResultPart$outboundSchema;
1060
+ /** @deprecated use `PublicMessagePartToolResultPart$Outbound` instead. */
1061
+ export type Outbound = PublicMessagePartToolResultPart$Outbound;
1027
1062
  }
1028
1063
 
1029
- export function toolResultPartToJSON(toolResultPart: ToolResultPart): string {
1030
- return JSON.stringify(ToolResultPart$outboundSchema.parse(toolResultPart));
1064
+ export function publicMessagePartToolResultPartToJSON(
1065
+ publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
1066
+ ): string {
1067
+ return JSON.stringify(
1068
+ PublicMessagePartToolResultPart$outboundSchema.parse(
1069
+ publicMessagePartToolResultPart,
1070
+ ),
1071
+ );
1031
1072
  }
1032
1073
 
1033
- export function toolResultPartFromJSON(
1074
+ export function publicMessagePartToolResultPartFromJSON(
1034
1075
  jsonString: string,
1035
- ): SafeParseResult<ToolResultPart, SDKValidationError> {
1076
+ ): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
1036
1077
  return safeParse(
1037
1078
  jsonString,
1038
- (x) => ToolResultPart$inboundSchema.parse(JSON.parse(x)),
1039
- `Failed to parse 'ToolResultPart' from JSON`,
1079
+ (x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
1080
+ `Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
1040
1081
  );
1041
1082
  }
1042
1083
 
1043
1084
  /** @internal */
1044
- export const PublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
1045
- typeof PublicMessagePartKind
1046
- > = z.nativeEnum(PublicMessagePartKind);
1085
+ export const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<
1086
+ typeof RunAgentPublicMessagePartAgentsKind
1087
+ > = z.nativeEnum(RunAgentPublicMessagePartAgentsKind);
1047
1088
 
1048
1089
  /** @internal */
1049
- export const PublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
1050
- typeof PublicMessagePartKind
1051
- > = PublicMessagePartKind$inboundSchema;
1090
+ export const RunAgentPublicMessagePartAgentsKind$outboundSchema:
1091
+ z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind> =
1092
+ RunAgentPublicMessagePartAgentsKind$inboundSchema;
1052
1093
 
1053
1094
  /**
1054
1095
  * @internal
1055
1096
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1056
1097
  */
1057
- export namespace PublicMessagePartKind$ {
1058
- /** @deprecated use `PublicMessagePartKind$inboundSchema` instead. */
1059
- export const inboundSchema = PublicMessagePartKind$inboundSchema;
1060
- /** @deprecated use `PublicMessagePartKind$outboundSchema` instead. */
1061
- export const outboundSchema = PublicMessagePartKind$outboundSchema;
1098
+ export namespace RunAgentPublicMessagePartAgentsKind$ {
1099
+ /** @deprecated use `RunAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
1100
+ export const inboundSchema =
1101
+ RunAgentPublicMessagePartAgentsKind$inboundSchema;
1102
+ /** @deprecated use `RunAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
1103
+ export const outboundSchema =
1104
+ RunAgentPublicMessagePartAgentsKind$outboundSchema;
1062
1105
  }
1063
1106
 
1064
1107
  /** @internal */
1065
- export const FileInURIFormat$inboundSchema: z.ZodType<
1066
- FileInURIFormat,
1108
+ export const FileFileInURIFormat$inboundSchema: z.ZodType<
1109
+ FileFileInURIFormat,
1067
1110
  z.ZodTypeDef,
1068
1111
  unknown
1069
1112
  > = z.object({
@@ -1073,17 +1116,17 @@ export const FileInURIFormat$inboundSchema: z.ZodType<
1073
1116
  });
1074
1117
 
1075
1118
  /** @internal */
1076
- export type FileInURIFormat$Outbound = {
1119
+ export type FileFileInURIFormat$Outbound = {
1077
1120
  uri: string;
1078
1121
  mimeType?: string | undefined;
1079
1122
  name?: string | undefined;
1080
1123
  };
1081
1124
 
1082
1125
  /** @internal */
1083
- export const FileInURIFormat$outboundSchema: z.ZodType<
1084
- FileInURIFormat$Outbound,
1126
+ export const FileFileInURIFormat$outboundSchema: z.ZodType<
1127
+ FileFileInURIFormat$Outbound,
1085
1128
  z.ZodTypeDef,
1086
- FileInURIFormat
1129
+ FileFileInURIFormat
1087
1130
  > = z.object({
1088
1131
  uri: z.string(),
1089
1132
  mimeType: z.string().optional(),
@@ -1094,34 +1137,36 @@ export const FileInURIFormat$outboundSchema: z.ZodType<
1094
1137
  * @internal
1095
1138
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1096
1139
  */
1097
- export namespace FileInURIFormat$ {
1098
- /** @deprecated use `FileInURIFormat$inboundSchema` instead. */
1099
- export const inboundSchema = FileInURIFormat$inboundSchema;
1100
- /** @deprecated use `FileInURIFormat$outboundSchema` instead. */
1101
- export const outboundSchema = FileInURIFormat$outboundSchema;
1102
- /** @deprecated use `FileInURIFormat$Outbound` instead. */
1103
- export type Outbound = FileInURIFormat$Outbound;
1140
+ export namespace FileFileInURIFormat$ {
1141
+ /** @deprecated use `FileFileInURIFormat$inboundSchema` instead. */
1142
+ export const inboundSchema = FileFileInURIFormat$inboundSchema;
1143
+ /** @deprecated use `FileFileInURIFormat$outboundSchema` instead. */
1144
+ export const outboundSchema = FileFileInURIFormat$outboundSchema;
1145
+ /** @deprecated use `FileFileInURIFormat$Outbound` instead. */
1146
+ export type Outbound = FileFileInURIFormat$Outbound;
1104
1147
  }
1105
1148
 
1106
- export function fileInURIFormatToJSON(
1107
- fileInURIFormat: FileInURIFormat,
1149
+ export function fileFileInURIFormatToJSON(
1150
+ fileFileInURIFormat: FileFileInURIFormat,
1108
1151
  ): string {
1109
- return JSON.stringify(FileInURIFormat$outboundSchema.parse(fileInURIFormat));
1152
+ return JSON.stringify(
1153
+ FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
1154
+ );
1110
1155
  }
1111
1156
 
1112
- export function fileInURIFormatFromJSON(
1157
+ export function fileFileInURIFormatFromJSON(
1113
1158
  jsonString: string,
1114
- ): SafeParseResult<FileInURIFormat, SDKValidationError> {
1159
+ ): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
1115
1160
  return safeParse(
1116
1161
  jsonString,
1117
- (x) => FileInURIFormat$inboundSchema.parse(JSON.parse(x)),
1118
- `Failed to parse 'FileInURIFormat' from JSON`,
1162
+ (x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
1163
+ `Failed to parse 'FileFileInURIFormat' from JSON`,
1119
1164
  );
1120
1165
  }
1121
1166
 
1122
1167
  /** @internal */
1123
- export const BinaryFormat$inboundSchema: z.ZodType<
1124
- BinaryFormat,
1168
+ export const FileBinaryFormat$inboundSchema: z.ZodType<
1169
+ FileBinaryFormat,
1125
1170
  z.ZodTypeDef,
1126
1171
  unknown
1127
1172
  > = z.object({
@@ -1131,17 +1176,17 @@ export const BinaryFormat$inboundSchema: z.ZodType<
1131
1176
  });
1132
1177
 
1133
1178
  /** @internal */
1134
- export type BinaryFormat$Outbound = {
1179
+ export type FileBinaryFormat$Outbound = {
1135
1180
  bytes: string;
1136
1181
  mimeType?: string | undefined;
1137
1182
  name?: string | undefined;
1138
1183
  };
1139
1184
 
1140
1185
  /** @internal */
1141
- export const BinaryFormat$outboundSchema: z.ZodType<
1142
- BinaryFormat$Outbound,
1186
+ export const FileBinaryFormat$outboundSchema: z.ZodType<
1187
+ FileBinaryFormat$Outbound,
1143
1188
  z.ZodTypeDef,
1144
- BinaryFormat
1189
+ FileBinaryFormat
1145
1190
  > = z.object({
1146
1191
  bytes: z.string(),
1147
1192
  mimeType: z.string().optional(),
@@ -1152,116 +1197,122 @@ export const BinaryFormat$outboundSchema: z.ZodType<
1152
1197
  * @internal
1153
1198
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1154
1199
  */
1155
- export namespace BinaryFormat$ {
1156
- /** @deprecated use `BinaryFormat$inboundSchema` instead. */
1157
- export const inboundSchema = BinaryFormat$inboundSchema;
1158
- /** @deprecated use `BinaryFormat$outboundSchema` instead. */
1159
- export const outboundSchema = BinaryFormat$outboundSchema;
1160
- /** @deprecated use `BinaryFormat$Outbound` instead. */
1161
- export type Outbound = BinaryFormat$Outbound;
1200
+ export namespace FileBinaryFormat$ {
1201
+ /** @deprecated use `FileBinaryFormat$inboundSchema` instead. */
1202
+ export const inboundSchema = FileBinaryFormat$inboundSchema;
1203
+ /** @deprecated use `FileBinaryFormat$outboundSchema` instead. */
1204
+ export const outboundSchema = FileBinaryFormat$outboundSchema;
1205
+ /** @deprecated use `FileBinaryFormat$Outbound` instead. */
1206
+ export type Outbound = FileBinaryFormat$Outbound;
1162
1207
  }
1163
1208
 
1164
- export function binaryFormatToJSON(binaryFormat: BinaryFormat): string {
1165
- return JSON.stringify(BinaryFormat$outboundSchema.parse(binaryFormat));
1209
+ export function fileBinaryFormatToJSON(
1210
+ fileBinaryFormat: FileBinaryFormat,
1211
+ ): string {
1212
+ return JSON.stringify(
1213
+ FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
1214
+ );
1166
1215
  }
1167
1216
 
1168
- export function binaryFormatFromJSON(
1217
+ export function fileBinaryFormatFromJSON(
1169
1218
  jsonString: string,
1170
- ): SafeParseResult<BinaryFormat, SDKValidationError> {
1219
+ ): SafeParseResult<FileBinaryFormat, SDKValidationError> {
1171
1220
  return safeParse(
1172
1221
  jsonString,
1173
- (x) => BinaryFormat$inboundSchema.parse(JSON.parse(x)),
1174
- `Failed to parse 'BinaryFormat' from JSON`,
1222
+ (x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
1223
+ `Failed to parse 'FileBinaryFormat' from JSON`,
1175
1224
  );
1176
1225
  }
1177
1226
 
1178
1227
  /** @internal */
1179
- export const PublicMessagePartFile$inboundSchema: z.ZodType<
1180
- PublicMessagePartFile,
1228
+ export const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
1229
+ RunAgentPublicMessagePartFile,
1181
1230
  z.ZodTypeDef,
1182
1231
  unknown
1183
1232
  > = z.union([
1184
- z.lazy(() => BinaryFormat$inboundSchema),
1185
- z.lazy(() => FileInURIFormat$inboundSchema),
1233
+ z.lazy(() => FileBinaryFormat$inboundSchema),
1234
+ z.lazy(() => FileFileInURIFormat$inboundSchema),
1186
1235
  ]);
1187
1236
 
1188
1237
  /** @internal */
1189
- export type PublicMessagePartFile$Outbound =
1190
- | BinaryFormat$Outbound
1191
- | FileInURIFormat$Outbound;
1238
+ export type RunAgentPublicMessagePartFile$Outbound =
1239
+ | FileBinaryFormat$Outbound
1240
+ | FileFileInURIFormat$Outbound;
1192
1241
 
1193
1242
  /** @internal */
1194
- export const PublicMessagePartFile$outboundSchema: z.ZodType<
1195
- PublicMessagePartFile$Outbound,
1243
+ export const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
1244
+ RunAgentPublicMessagePartFile$Outbound,
1196
1245
  z.ZodTypeDef,
1197
- PublicMessagePartFile
1246
+ RunAgentPublicMessagePartFile
1198
1247
  > = z.union([
1199
- z.lazy(() => BinaryFormat$outboundSchema),
1200
- z.lazy(() => FileInURIFormat$outboundSchema),
1248
+ z.lazy(() => FileBinaryFormat$outboundSchema),
1249
+ z.lazy(() => FileFileInURIFormat$outboundSchema),
1201
1250
  ]);
1202
1251
 
1203
1252
  /**
1204
1253
  * @internal
1205
1254
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1206
1255
  */
1207
- export namespace PublicMessagePartFile$ {
1208
- /** @deprecated use `PublicMessagePartFile$inboundSchema` instead. */
1209
- export const inboundSchema = PublicMessagePartFile$inboundSchema;
1210
- /** @deprecated use `PublicMessagePartFile$outboundSchema` instead. */
1211
- export const outboundSchema = PublicMessagePartFile$outboundSchema;
1212
- /** @deprecated use `PublicMessagePartFile$Outbound` instead. */
1213
- export type Outbound = PublicMessagePartFile$Outbound;
1256
+ export namespace RunAgentPublicMessagePartFile$ {
1257
+ /** @deprecated use `RunAgentPublicMessagePartFile$inboundSchema` instead. */
1258
+ export const inboundSchema = RunAgentPublicMessagePartFile$inboundSchema;
1259
+ /** @deprecated use `RunAgentPublicMessagePartFile$outboundSchema` instead. */
1260
+ export const outboundSchema = RunAgentPublicMessagePartFile$outboundSchema;
1261
+ /** @deprecated use `RunAgentPublicMessagePartFile$Outbound` instead. */
1262
+ export type Outbound = RunAgentPublicMessagePartFile$Outbound;
1214
1263
  }
1215
1264
 
1216
- export function publicMessagePartFileToJSON(
1217
- publicMessagePartFile: PublicMessagePartFile,
1265
+ export function runAgentPublicMessagePartFileToJSON(
1266
+ runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile,
1218
1267
  ): string {
1219
1268
  return JSON.stringify(
1220
- PublicMessagePartFile$outboundSchema.parse(publicMessagePartFile),
1269
+ RunAgentPublicMessagePartFile$outboundSchema.parse(
1270
+ runAgentPublicMessagePartFile,
1271
+ ),
1221
1272
  );
1222
1273
  }
1223
1274
 
1224
- export function publicMessagePartFileFromJSON(
1275
+ export function runAgentPublicMessagePartFileFromJSON(
1225
1276
  jsonString: string,
1226
- ): SafeParseResult<PublicMessagePartFile, SDKValidationError> {
1277
+ ): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError> {
1227
1278
  return safeParse(
1228
1279
  jsonString,
1229
- (x) => PublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
1230
- `Failed to parse 'PublicMessagePartFile' from JSON`,
1280
+ (x) => RunAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
1281
+ `Failed to parse 'RunAgentPublicMessagePartFile' from JSON`,
1231
1282
  );
1232
1283
  }
1233
1284
 
1234
1285
  /** @internal */
1235
- export const FilePart$inboundSchema: z.ZodType<
1236
- FilePart,
1286
+ export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
1287
+ PublicMessagePartFilePart,
1237
1288
  z.ZodTypeDef,
1238
1289
  unknown
1239
1290
  > = z.object({
1240
- kind: PublicMessagePartKind$inboundSchema,
1291
+ kind: RunAgentPublicMessagePartAgentsKind$inboundSchema,
1241
1292
  file: z.union([
1242
- z.lazy(() => BinaryFormat$inboundSchema),
1243
- z.lazy(() => FileInURIFormat$inboundSchema),
1293
+ z.lazy(() => FileBinaryFormat$inboundSchema),
1294
+ z.lazy(() => FileFileInURIFormat$inboundSchema),
1244
1295
  ]),
1245
1296
  metadata: z.record(z.any()).optional(),
1246
1297
  });
1247
1298
 
1248
1299
  /** @internal */
1249
- export type FilePart$Outbound = {
1300
+ export type PublicMessagePartFilePart$Outbound = {
1250
1301
  kind: string;
1251
- file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
1302
+ file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
1252
1303
  metadata?: { [k: string]: any } | undefined;
1253
1304
  };
1254
1305
 
1255
1306
  /** @internal */
1256
- export const FilePart$outboundSchema: z.ZodType<
1257
- FilePart$Outbound,
1307
+ export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
1308
+ PublicMessagePartFilePart$Outbound,
1258
1309
  z.ZodTypeDef,
1259
- FilePart
1310
+ PublicMessagePartFilePart
1260
1311
  > = z.object({
1261
- kind: PublicMessagePartKind$outboundSchema,
1312
+ kind: RunAgentPublicMessagePartAgentsKind$outboundSchema,
1262
1313
  file: z.union([
1263
- z.lazy(() => BinaryFormat$outboundSchema),
1264
- z.lazy(() => FileInURIFormat$outboundSchema),
1314
+ z.lazy(() => FileBinaryFormat$outboundSchema),
1315
+ z.lazy(() => FileFileInURIFormat$outboundSchema),
1265
1316
  ]),
1266
1317
  metadata: z.record(z.any()).optional(),
1267
1318
  });
@@ -1270,72 +1321,77 @@ export const FilePart$outboundSchema: z.ZodType<
1270
1321
  * @internal
1271
1322
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1272
1323
  */
1273
- export namespace FilePart$ {
1274
- /** @deprecated use `FilePart$inboundSchema` instead. */
1275
- export const inboundSchema = FilePart$inboundSchema;
1276
- /** @deprecated use `FilePart$outboundSchema` instead. */
1277
- export const outboundSchema = FilePart$outboundSchema;
1278
- /** @deprecated use `FilePart$Outbound` instead. */
1279
- export type Outbound = FilePart$Outbound;
1324
+ export namespace PublicMessagePartFilePart$ {
1325
+ /** @deprecated use `PublicMessagePartFilePart$inboundSchema` instead. */
1326
+ export const inboundSchema = PublicMessagePartFilePart$inboundSchema;
1327
+ /** @deprecated use `PublicMessagePartFilePart$outboundSchema` instead. */
1328
+ export const outboundSchema = PublicMessagePartFilePart$outboundSchema;
1329
+ /** @deprecated use `PublicMessagePartFilePart$Outbound` instead. */
1330
+ export type Outbound = PublicMessagePartFilePart$Outbound;
1280
1331
  }
1281
1332
 
1282
- export function filePartToJSON(filePart: FilePart): string {
1283
- return JSON.stringify(FilePart$outboundSchema.parse(filePart));
1333
+ export function publicMessagePartFilePartToJSON(
1334
+ publicMessagePartFilePart: PublicMessagePartFilePart,
1335
+ ): string {
1336
+ return JSON.stringify(
1337
+ PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
1338
+ );
1284
1339
  }
1285
1340
 
1286
- export function filePartFromJSON(
1341
+ export function publicMessagePartFilePartFromJSON(
1287
1342
  jsonString: string,
1288
- ): SafeParseResult<FilePart, SDKValidationError> {
1343
+ ): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
1289
1344
  return safeParse(
1290
1345
  jsonString,
1291
- (x) => FilePart$inboundSchema.parse(JSON.parse(x)),
1292
- `Failed to parse 'FilePart' from JSON`,
1346
+ (x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
1347
+ `Failed to parse 'PublicMessagePartFilePart' from JSON`,
1293
1348
  );
1294
1349
  }
1295
1350
 
1296
1351
  /** @internal */
1297
- export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
1298
- Kind,
1299
- );
1352
+ export const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
1353
+ typeof RunAgentPublicMessagePartKind
1354
+ > = z.nativeEnum(RunAgentPublicMessagePartKind);
1300
1355
 
1301
1356
  /** @internal */
1302
- export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
1303
- Kind$inboundSchema;
1357
+ export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
1358
+ typeof RunAgentPublicMessagePartKind
1359
+ > = RunAgentPublicMessagePartKind$inboundSchema;
1304
1360
 
1305
1361
  /**
1306
1362
  * @internal
1307
1363
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1308
1364
  */
1309
- export namespace Kind$ {
1310
- /** @deprecated use `Kind$inboundSchema` instead. */
1311
- export const inboundSchema = Kind$inboundSchema;
1312
- /** @deprecated use `Kind$outboundSchema` instead. */
1313
- export const outboundSchema = Kind$outboundSchema;
1365
+ export namespace RunAgentPublicMessagePartKind$ {
1366
+ /** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
1367
+ export const inboundSchema = RunAgentPublicMessagePartKind$inboundSchema;
1368
+ /** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
1369
+ export const outboundSchema = RunAgentPublicMessagePartKind$outboundSchema;
1314
1370
  }
1315
1371
 
1316
1372
  /** @internal */
1317
- export const TextPart$inboundSchema: z.ZodType<
1318
- TextPart,
1373
+ export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
1374
+ PublicMessagePartTextPart,
1319
1375
  z.ZodTypeDef,
1320
1376
  unknown
1321
1377
  > = z.object({
1322
- kind: Kind$inboundSchema,
1378
+ kind: RunAgentPublicMessagePartKind$inboundSchema,
1323
1379
  text: z.string(),
1324
1380
  });
1325
1381
 
1326
1382
  /** @internal */
1327
- export type TextPart$Outbound = {
1383
+ export type PublicMessagePartTextPart$Outbound = {
1328
1384
  kind: string;
1329
1385
  text: string;
1330
1386
  };
1331
1387
 
1332
1388
  /** @internal */
1333
- export const TextPart$outboundSchema: z.ZodType<
1334
- TextPart$Outbound,
1389
+ export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
1390
+ PublicMessagePartTextPart$Outbound,
1335
1391
  z.ZodTypeDef,
1336
- TextPart
1392
+ PublicMessagePartTextPart
1337
1393
  > = z.object({
1338
- kind: Kind$outboundSchema,
1394
+ kind: RunAgentPublicMessagePartKind$outboundSchema,
1339
1395
  text: z.string(),
1340
1396
  });
1341
1397
 
@@ -1343,128 +1399,139 @@ export const TextPart$outboundSchema: z.ZodType<
1343
1399
  * @internal
1344
1400
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1345
1401
  */
1346
- export namespace TextPart$ {
1347
- /** @deprecated use `TextPart$inboundSchema` instead. */
1348
- export const inboundSchema = TextPart$inboundSchema;
1349
- /** @deprecated use `TextPart$outboundSchema` instead. */
1350
- export const outboundSchema = TextPart$outboundSchema;
1351
- /** @deprecated use `TextPart$Outbound` instead. */
1352
- export type Outbound = TextPart$Outbound;
1402
+ export namespace PublicMessagePartTextPart$ {
1403
+ /** @deprecated use `PublicMessagePartTextPart$inboundSchema` instead. */
1404
+ export const inboundSchema = PublicMessagePartTextPart$inboundSchema;
1405
+ /** @deprecated use `PublicMessagePartTextPart$outboundSchema` instead. */
1406
+ export const outboundSchema = PublicMessagePartTextPart$outboundSchema;
1407
+ /** @deprecated use `PublicMessagePartTextPart$Outbound` instead. */
1408
+ export type Outbound = PublicMessagePartTextPart$Outbound;
1353
1409
  }
1354
1410
 
1355
- export function textPartToJSON(textPart: TextPart): string {
1356
- return JSON.stringify(TextPart$outboundSchema.parse(textPart));
1411
+ export function publicMessagePartTextPartToJSON(
1412
+ publicMessagePartTextPart: PublicMessagePartTextPart,
1413
+ ): string {
1414
+ return JSON.stringify(
1415
+ PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart),
1416
+ );
1357
1417
  }
1358
1418
 
1359
- export function textPartFromJSON(
1419
+ export function publicMessagePartTextPartFromJSON(
1360
1420
  jsonString: string,
1361
- ): SafeParseResult<TextPart, SDKValidationError> {
1421
+ ): SafeParseResult<PublicMessagePartTextPart, SDKValidationError> {
1362
1422
  return safeParse(
1363
1423
  jsonString,
1364
- (x) => TextPart$inboundSchema.parse(JSON.parse(x)),
1365
- `Failed to parse 'TextPart' from JSON`,
1424
+ (x) => PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
1425
+ `Failed to parse 'PublicMessagePartTextPart' from JSON`,
1366
1426
  );
1367
1427
  }
1368
1428
 
1369
1429
  /** @internal */
1370
- export const PublicMessagePart$inboundSchema: z.ZodType<
1371
- PublicMessagePart,
1430
+ export const RunAgentPublicMessagePart$inboundSchema: z.ZodType<
1431
+ RunAgentPublicMessagePart,
1372
1432
  z.ZodTypeDef,
1373
1433
  unknown
1374
1434
  > = z.union([
1375
- z.lazy(() => TextPart$inboundSchema),
1376
- z.lazy(() => FilePart$inboundSchema),
1377
- z.lazy(() => ToolResultPart$inboundSchema),
1435
+ z.lazy(() => PublicMessagePartTextPart$inboundSchema),
1436
+ z.lazy(() => PublicMessagePartFilePart$inboundSchema),
1437
+ z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
1378
1438
  ]);
1379
1439
 
1380
1440
  /** @internal */
1381
- export type PublicMessagePart$Outbound =
1382
- | TextPart$Outbound
1383
- | FilePart$Outbound
1384
- | ToolResultPart$Outbound;
1441
+ export type RunAgentPublicMessagePart$Outbound =
1442
+ | PublicMessagePartTextPart$Outbound
1443
+ | PublicMessagePartFilePart$Outbound
1444
+ | PublicMessagePartToolResultPart$Outbound;
1385
1445
 
1386
1446
  /** @internal */
1387
- export const PublicMessagePart$outboundSchema: z.ZodType<
1388
- PublicMessagePart$Outbound,
1447
+ export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
1448
+ RunAgentPublicMessagePart$Outbound,
1389
1449
  z.ZodTypeDef,
1390
- PublicMessagePart
1450
+ RunAgentPublicMessagePart
1391
1451
  > = z.union([
1392
- z.lazy(() => TextPart$outboundSchema),
1393
- z.lazy(() => FilePart$outboundSchema),
1394
- z.lazy(() => ToolResultPart$outboundSchema),
1452
+ z.lazy(() => PublicMessagePartTextPart$outboundSchema),
1453
+ z.lazy(() => PublicMessagePartFilePart$outboundSchema),
1454
+ z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
1395
1455
  ]);
1396
1456
 
1397
1457
  /**
1398
1458
  * @internal
1399
1459
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1400
1460
  */
1401
- export namespace PublicMessagePart$ {
1402
- /** @deprecated use `PublicMessagePart$inboundSchema` instead. */
1403
- export const inboundSchema = PublicMessagePart$inboundSchema;
1404
- /** @deprecated use `PublicMessagePart$outboundSchema` instead. */
1405
- export const outboundSchema = PublicMessagePart$outboundSchema;
1406
- /** @deprecated use `PublicMessagePart$Outbound` instead. */
1407
- export type Outbound = PublicMessagePart$Outbound;
1461
+ export namespace RunAgentPublicMessagePart$ {
1462
+ /** @deprecated use `RunAgentPublicMessagePart$inboundSchema` instead. */
1463
+ export const inboundSchema = RunAgentPublicMessagePart$inboundSchema;
1464
+ /** @deprecated use `RunAgentPublicMessagePart$outboundSchema` instead. */
1465
+ export const outboundSchema = RunAgentPublicMessagePart$outboundSchema;
1466
+ /** @deprecated use `RunAgentPublicMessagePart$Outbound` instead. */
1467
+ export type Outbound = RunAgentPublicMessagePart$Outbound;
1408
1468
  }
1409
1469
 
1410
- export function publicMessagePartToJSON(
1411
- publicMessagePart: PublicMessagePart,
1470
+ export function runAgentPublicMessagePartToJSON(
1471
+ runAgentPublicMessagePart: RunAgentPublicMessagePart,
1412
1472
  ): string {
1413
1473
  return JSON.stringify(
1414
- PublicMessagePart$outboundSchema.parse(publicMessagePart),
1474
+ RunAgentPublicMessagePart$outboundSchema.parse(runAgentPublicMessagePart),
1415
1475
  );
1416
1476
  }
1417
1477
 
1418
- export function publicMessagePartFromJSON(
1478
+ export function runAgentPublicMessagePartFromJSON(
1419
1479
  jsonString: string,
1420
- ): SafeParseResult<PublicMessagePart, SDKValidationError> {
1480
+ ): SafeParseResult<RunAgentPublicMessagePart, SDKValidationError> {
1421
1481
  return safeParse(
1422
1482
  jsonString,
1423
- (x) => PublicMessagePart$inboundSchema.parse(JSON.parse(x)),
1424
- `Failed to parse 'PublicMessagePart' from JSON`,
1483
+ (x) => RunAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
1484
+ `Failed to parse 'RunAgentPublicMessagePart' from JSON`,
1425
1485
  );
1426
1486
  }
1427
1487
 
1428
1488
  /** @internal */
1429
- export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
1430
- z.object({
1431
- messageId: z.string().optional(),
1432
- role: z.union([
1433
- RoleUserMessage$inboundSchema,
1434
- RoleToolMessage$inboundSchema,
1489
+ export const RunAgentMessage$inboundSchema: z.ZodType<
1490
+ RunAgentMessage,
1491
+ z.ZodTypeDef,
1492
+ unknown
1493
+ > = z.object({
1494
+ messageId: z.string().optional(),
1495
+ role: z.union([
1496
+ RunAgentRoleUserMessage$inboundSchema,
1497
+ RunAgentRoleToolMessage$inboundSchema,
1498
+ ]),
1499
+ parts: z.array(
1500
+ z.union([
1501
+ z.lazy(() => PublicMessagePartTextPart$inboundSchema),
1502
+ z.lazy(() => PublicMessagePartFilePart$inboundSchema),
1503
+ z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
1435
1504
  ]),
1436
- parts: z.array(
1437
- z.union([
1438
- z.lazy(() => TextPart$inboundSchema),
1439
- z.lazy(() => FilePart$inboundSchema),
1440
- z.lazy(() => ToolResultPart$inboundSchema),
1441
- ]),
1442
- ),
1443
- });
1505
+ ),
1506
+ });
1444
1507
 
1445
1508
  /** @internal */
1446
- export type Message$Outbound = {
1509
+ export type RunAgentMessage$Outbound = {
1447
1510
  messageId?: string | undefined;
1448
1511
  role: string | string;
1449
- parts: Array<TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound>;
1512
+ parts: Array<
1513
+ | PublicMessagePartTextPart$Outbound
1514
+ | PublicMessagePartFilePart$Outbound
1515
+ | PublicMessagePartToolResultPart$Outbound
1516
+ >;
1450
1517
  };
1451
1518
 
1452
1519
  /** @internal */
1453
- export const Message$outboundSchema: z.ZodType<
1454
- Message$Outbound,
1520
+ export const RunAgentMessage$outboundSchema: z.ZodType<
1521
+ RunAgentMessage$Outbound,
1455
1522
  z.ZodTypeDef,
1456
- Message
1523
+ RunAgentMessage
1457
1524
  > = z.object({
1458
1525
  messageId: z.string().optional(),
1459
1526
  role: z.union([
1460
- RoleUserMessage$outboundSchema,
1461
- RoleToolMessage$outboundSchema,
1527
+ RunAgentRoleUserMessage$outboundSchema,
1528
+ RunAgentRoleToolMessage$outboundSchema,
1462
1529
  ]),
1463
1530
  parts: z.array(
1464
1531
  z.union([
1465
- z.lazy(() => TextPart$outboundSchema),
1466
- z.lazy(() => FilePart$outboundSchema),
1467
- z.lazy(() => ToolResultPart$outboundSchema),
1532
+ z.lazy(() => PublicMessagePartTextPart$outboundSchema),
1533
+ z.lazy(() => PublicMessagePartFilePart$outboundSchema),
1534
+ z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
1468
1535
  ]),
1469
1536
  ),
1470
1537
  });
@@ -1473,47 +1540,52 @@ export const Message$outboundSchema: z.ZodType<
1473
1540
  * @internal
1474
1541
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1475
1542
  */
1476
- export namespace Message$ {
1477
- /** @deprecated use `Message$inboundSchema` instead. */
1478
- export const inboundSchema = Message$inboundSchema;
1479
- /** @deprecated use `Message$outboundSchema` instead. */
1480
- export const outboundSchema = Message$outboundSchema;
1481
- /** @deprecated use `Message$Outbound` instead. */
1482
- export type Outbound = Message$Outbound;
1543
+ export namespace RunAgentMessage$ {
1544
+ /** @deprecated use `RunAgentMessage$inboundSchema` instead. */
1545
+ export const inboundSchema = RunAgentMessage$inboundSchema;
1546
+ /** @deprecated use `RunAgentMessage$outboundSchema` instead. */
1547
+ export const outboundSchema = RunAgentMessage$outboundSchema;
1548
+ /** @deprecated use `RunAgentMessage$Outbound` instead. */
1549
+ export type Outbound = RunAgentMessage$Outbound;
1483
1550
  }
1484
1551
 
1485
- export function messageToJSON(message: Message): string {
1486
- return JSON.stringify(Message$outboundSchema.parse(message));
1552
+ export function runAgentMessageToJSON(
1553
+ runAgentMessage: RunAgentMessage,
1554
+ ): string {
1555
+ return JSON.stringify(RunAgentMessage$outboundSchema.parse(runAgentMessage));
1487
1556
  }
1488
1557
 
1489
- export function messageFromJSON(
1558
+ export function runAgentMessageFromJSON(
1490
1559
  jsonString: string,
1491
- ): SafeParseResult<Message, SDKValidationError> {
1560
+ ): SafeParseResult<RunAgentMessage, SDKValidationError> {
1492
1561
  return safeParse(
1493
1562
  jsonString,
1494
- (x) => Message$inboundSchema.parse(JSON.parse(x)),
1495
- `Failed to parse 'Message' from JSON`,
1563
+ (x) => RunAgentMessage$inboundSchema.parse(JSON.parse(x)),
1564
+ `Failed to parse 'RunAgentMessage' from JSON`,
1496
1565
  );
1497
1566
  }
1498
1567
 
1499
1568
  /** @internal */
1500
- export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
1501
- z.object({
1502
- id: z.string(),
1503
- display_name: z.string().optional(),
1504
- email: z.string().optional(),
1505
- metadata: z.array(z.record(z.any())).optional(),
1506
- logo_url: z.string().optional(),
1507
- tags: z.array(z.string()).optional(),
1508
- }).transform((v) => {
1509
- return remap$(v, {
1510
- "display_name": "displayName",
1511
- "logo_url": "logoUrl",
1512
- });
1569
+ export const RunAgentContact$inboundSchema: z.ZodType<
1570
+ RunAgentContact,
1571
+ z.ZodTypeDef,
1572
+ unknown
1573
+ > = z.object({
1574
+ id: z.string(),
1575
+ display_name: z.string().optional(),
1576
+ email: z.string().optional(),
1577
+ metadata: z.array(z.record(z.any())).optional(),
1578
+ logo_url: z.string().optional(),
1579
+ tags: z.array(z.string()).optional(),
1580
+ }).transform((v) => {
1581
+ return remap$(v, {
1582
+ "display_name": "displayName",
1583
+ "logo_url": "logoUrl",
1513
1584
  });
1585
+ });
1514
1586
 
1515
1587
  /** @internal */
1516
- export type Contact$Outbound = {
1588
+ export type RunAgentContact$Outbound = {
1517
1589
  id: string;
1518
1590
  display_name?: string | undefined;
1519
1591
  email?: string | undefined;
@@ -1523,10 +1595,10 @@ export type Contact$Outbound = {
1523
1595
  };
1524
1596
 
1525
1597
  /** @internal */
1526
- export const Contact$outboundSchema: z.ZodType<
1527
- Contact$Outbound,
1598
+ export const RunAgentContact$outboundSchema: z.ZodType<
1599
+ RunAgentContact$Outbound,
1528
1600
  z.ZodTypeDef,
1529
- Contact
1601
+ RunAgentContact
1530
1602
  > = z.object({
1531
1603
  id: z.string(),
1532
1604
  displayName: z.string().optional(),
@@ -1545,26 +1617,28 @@ export const Contact$outboundSchema: z.ZodType<
1545
1617
  * @internal
1546
1618
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1547
1619
  */
1548
- export namespace Contact$ {
1549
- /** @deprecated use `Contact$inboundSchema` instead. */
1550
- export const inboundSchema = Contact$inboundSchema;
1551
- /** @deprecated use `Contact$outboundSchema` instead. */
1552
- export const outboundSchema = Contact$outboundSchema;
1553
- /** @deprecated use `Contact$Outbound` instead. */
1554
- export type Outbound = Contact$Outbound;
1620
+ export namespace RunAgentContact$ {
1621
+ /** @deprecated use `RunAgentContact$inboundSchema` instead. */
1622
+ export const inboundSchema = RunAgentContact$inboundSchema;
1623
+ /** @deprecated use `RunAgentContact$outboundSchema` instead. */
1624
+ export const outboundSchema = RunAgentContact$outboundSchema;
1625
+ /** @deprecated use `RunAgentContact$Outbound` instead. */
1626
+ export type Outbound = RunAgentContact$Outbound;
1555
1627
  }
1556
1628
 
1557
- export function contactToJSON(contact: Contact): string {
1558
- return JSON.stringify(Contact$outboundSchema.parse(contact));
1629
+ export function runAgentContactToJSON(
1630
+ runAgentContact: RunAgentContact,
1631
+ ): string {
1632
+ return JSON.stringify(RunAgentContact$outboundSchema.parse(runAgentContact));
1559
1633
  }
1560
1634
 
1561
- export function contactFromJSON(
1635
+ export function runAgentContactFromJSON(
1562
1636
  jsonString: string,
1563
- ): SafeParseResult<Contact, SDKValidationError> {
1637
+ ): SafeParseResult<RunAgentContact, SDKValidationError> {
1564
1638
  return safeParse(
1565
1639
  jsonString,
1566
- (x) => Contact$inboundSchema.parse(JSON.parse(x)),
1567
- `Failed to parse 'Contact' from JSON`,
1640
+ (x) => RunAgentContact$inboundSchema.parse(JSON.parse(x)),
1641
+ `Failed to parse 'RunAgentContact' from JSON`,
1568
1642
  );
1569
1643
  }
1570
1644
 
@@ -1622,25 +1696,28 @@ export function runAgentThreadFromJSON(
1622
1696
  }
1623
1697
 
1624
1698
  /** @internal */
1625
- export const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown> = z
1626
- .object({
1627
- entity_id: z.string(),
1628
- }).transform((v) => {
1629
- return remap$(v, {
1630
- "entity_id": "entityId",
1631
- });
1699
+ export const RunAgentMemory$inboundSchema: z.ZodType<
1700
+ RunAgentMemory,
1701
+ z.ZodTypeDef,
1702
+ unknown
1703
+ > = z.object({
1704
+ entity_id: z.string(),
1705
+ }).transform((v) => {
1706
+ return remap$(v, {
1707
+ "entity_id": "entityId",
1632
1708
  });
1709
+ });
1633
1710
 
1634
1711
  /** @internal */
1635
- export type Memory$Outbound = {
1712
+ export type RunAgentMemory$Outbound = {
1636
1713
  entity_id: string;
1637
1714
  };
1638
1715
 
1639
1716
  /** @internal */
1640
- export const Memory$outboundSchema: z.ZodType<
1641
- Memory$Outbound,
1717
+ export const RunAgentMemory$outboundSchema: z.ZodType<
1718
+ RunAgentMemory$Outbound,
1642
1719
  z.ZodTypeDef,
1643
- Memory
1720
+ RunAgentMemory
1644
1721
  > = z.object({
1645
1722
  entityId: z.string(),
1646
1723
  }).transform((v) => {
@@ -1653,298 +1730,88 @@ export const Memory$outboundSchema: z.ZodType<
1653
1730
  * @internal
1654
1731
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1655
1732
  */
1656
- export namespace Memory$ {
1657
- /** @deprecated use `Memory$inboundSchema` instead. */
1658
- export const inboundSchema = Memory$inboundSchema;
1659
- /** @deprecated use `Memory$outboundSchema` instead. */
1660
- export const outboundSchema = Memory$outboundSchema;
1661
- /** @deprecated use `Memory$Outbound` instead. */
1662
- export type Outbound = Memory$Outbound;
1733
+ export namespace RunAgentMemory$ {
1734
+ /** @deprecated use `RunAgentMemory$inboundSchema` instead. */
1735
+ export const inboundSchema = RunAgentMemory$inboundSchema;
1736
+ /** @deprecated use `RunAgentMemory$outboundSchema` instead. */
1737
+ export const outboundSchema = RunAgentMemory$outboundSchema;
1738
+ /** @deprecated use `RunAgentMemory$Outbound` instead. */
1739
+ export type Outbound = RunAgentMemory$Outbound;
1663
1740
  }
1664
1741
 
1665
- export function memoryToJSON(memory: Memory): string {
1666
- return JSON.stringify(Memory$outboundSchema.parse(memory));
1742
+ export function runAgentMemoryToJSON(runAgentMemory: RunAgentMemory): string {
1743
+ return JSON.stringify(RunAgentMemory$outboundSchema.parse(runAgentMemory));
1667
1744
  }
1668
1745
 
1669
- export function memoryFromJSON(
1746
+ export function runAgentMemoryFromJSON(
1670
1747
  jsonString: string,
1671
- ): SafeParseResult<Memory, SDKValidationError> {
1748
+ ): SafeParseResult<RunAgentMemory, SDKValidationError> {
1672
1749
  return safeParse(
1673
1750
  jsonString,
1674
- (x) => Memory$inboundSchema.parse(JSON.parse(x)),
1675
- `Failed to parse 'Memory' from JSON`,
1676
- );
1677
- }
1678
-
1679
- /** @internal */
1680
- export const RunAgentKnowledgeBaseConfigurationType$inboundSchema:
1681
- z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType> = z.nativeEnum(
1682
- RunAgentKnowledgeBaseConfigurationType,
1751
+ (x) => RunAgentMemory$inboundSchema.parse(JSON.parse(x)),
1752
+ `Failed to parse 'RunAgentMemory' from JSON`,
1683
1753
  );
1684
-
1685
- /** @internal */
1686
- export const RunAgentKnowledgeBaseConfigurationType$outboundSchema:
1687
- z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType> =
1688
- RunAgentKnowledgeBaseConfigurationType$inboundSchema;
1689
-
1690
- /**
1691
- * @internal
1692
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1693
- */
1694
- export namespace RunAgentKnowledgeBaseConfigurationType$ {
1695
- /** @deprecated use `RunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
1696
- export const inboundSchema =
1697
- RunAgentKnowledgeBaseConfigurationType$inboundSchema;
1698
- /** @deprecated use `RunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
1699
- export const outboundSchema =
1700
- RunAgentKnowledgeBaseConfigurationType$outboundSchema;
1701
1754
  }
1702
1755
 
1703
1756
  /** @internal */
1704
- export const KnowledgeBaseStaticQuery$inboundSchema: z.ZodType<
1705
- KnowledgeBaseStaticQuery,
1757
+ export const RunAgentKnowledgeBases$inboundSchema: z.ZodType<
1758
+ RunAgentKnowledgeBases,
1706
1759
  z.ZodTypeDef,
1707
1760
  unknown
1708
1761
  > = z.object({
1709
- type: RunAgentKnowledgeBaseConfigurationType$inboundSchema,
1710
- query: z.string(),
1711
- });
1712
-
1713
- /** @internal */
1714
- export type KnowledgeBaseStaticQuery$Outbound = {
1715
- type: string;
1716
- query: string;
1717
- };
1718
-
1719
- /** @internal */
1720
- export const KnowledgeBaseStaticQuery$outboundSchema: z.ZodType<
1721
- KnowledgeBaseStaticQuery$Outbound,
1722
- z.ZodTypeDef,
1723
- KnowledgeBaseStaticQuery
1724
- > = z.object({
1725
- type: RunAgentKnowledgeBaseConfigurationType$outboundSchema,
1726
- query: z.string(),
1727
- });
1728
-
1729
- /**
1730
- * @internal
1731
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1732
- */
1733
- export namespace KnowledgeBaseStaticQuery$ {
1734
- /** @deprecated use `KnowledgeBaseStaticQuery$inboundSchema` instead. */
1735
- export const inboundSchema = KnowledgeBaseStaticQuery$inboundSchema;
1736
- /** @deprecated use `KnowledgeBaseStaticQuery$outboundSchema` instead. */
1737
- export const outboundSchema = KnowledgeBaseStaticQuery$outboundSchema;
1738
- /** @deprecated use `KnowledgeBaseStaticQuery$Outbound` instead. */
1739
- export type Outbound = KnowledgeBaseStaticQuery$Outbound;
1740
- }
1741
-
1742
- export function knowledgeBaseStaticQueryToJSON(
1743
- knowledgeBaseStaticQuery: KnowledgeBaseStaticQuery,
1744
- ): string {
1745
- return JSON.stringify(
1746
- KnowledgeBaseStaticQuery$outboundSchema.parse(knowledgeBaseStaticQuery),
1747
- );
1748
- }
1749
-
1750
- export function knowledgeBaseStaticQueryFromJSON(
1751
- jsonString: string,
1752
- ): SafeParseResult<KnowledgeBaseStaticQuery, SDKValidationError> {
1753
- return safeParse(
1754
- jsonString,
1755
- (x) => KnowledgeBaseStaticQuery$inboundSchema.parse(JSON.parse(x)),
1756
- `Failed to parse 'KnowledgeBaseStaticQuery' from JSON`,
1757
- );
1758
- }
1759
-
1760
- /** @internal */
1761
- export const KnowledgeBaseConfigurationType$inboundSchema: z.ZodNativeEnum<
1762
- typeof KnowledgeBaseConfigurationType
1763
- > = z.nativeEnum(KnowledgeBaseConfigurationType);
1764
-
1765
- /** @internal */
1766
- export const KnowledgeBaseConfigurationType$outboundSchema: z.ZodNativeEnum<
1767
- typeof KnowledgeBaseConfigurationType
1768
- > = KnowledgeBaseConfigurationType$inboundSchema;
1769
-
1770
- /**
1771
- * @internal
1772
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1773
- */
1774
- export namespace KnowledgeBaseConfigurationType$ {
1775
- /** @deprecated use `KnowledgeBaseConfigurationType$inboundSchema` instead. */
1776
- export const inboundSchema = KnowledgeBaseConfigurationType$inboundSchema;
1777
- /** @deprecated use `KnowledgeBaseConfigurationType$outboundSchema` instead. */
1778
- export const outboundSchema = KnowledgeBaseConfigurationType$outboundSchema;
1779
- }
1780
-
1781
- /** @internal */
1782
- export const KnowledgeBaseLastUserMessage$inboundSchema: z.ZodType<
1783
- KnowledgeBaseLastUserMessage,
1784
- z.ZodTypeDef,
1785
- unknown
1786
- > = z.object({
1787
- type: KnowledgeBaseConfigurationType$inboundSchema,
1762
+ knowledge_id: z.string(),
1763
+ }).transform((v) => {
1764
+ return remap$(v, {
1765
+ "knowledge_id": "knowledgeId",
1766
+ });
1788
1767
  });
1789
1768
 
1790
1769
  /** @internal */
1791
- export type KnowledgeBaseLastUserMessage$Outbound = {
1792
- type: string;
1770
+ export type RunAgentKnowledgeBases$Outbound = {
1771
+ knowledge_id: string;
1793
1772
  };
1794
1773
 
1795
1774
  /** @internal */
1796
- export const KnowledgeBaseLastUserMessage$outboundSchema: z.ZodType<
1797
- KnowledgeBaseLastUserMessage$Outbound,
1775
+ export const RunAgentKnowledgeBases$outboundSchema: z.ZodType<
1776
+ RunAgentKnowledgeBases$Outbound,
1798
1777
  z.ZodTypeDef,
1799
- KnowledgeBaseLastUserMessage
1778
+ RunAgentKnowledgeBases
1800
1779
  > = z.object({
1801
- type: KnowledgeBaseConfigurationType$outboundSchema,
1780
+ knowledgeId: z.string(),
1781
+ }).transform((v) => {
1782
+ return remap$(v, {
1783
+ knowledgeId: "knowledge_id",
1784
+ });
1802
1785
  });
1803
1786
 
1804
1787
  /**
1805
1788
  * @internal
1806
1789
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1807
1790
  */
1808
- export namespace KnowledgeBaseLastUserMessage$ {
1809
- /** @deprecated use `KnowledgeBaseLastUserMessage$inboundSchema` instead. */
1810
- export const inboundSchema = KnowledgeBaseLastUserMessage$inboundSchema;
1811
- /** @deprecated use `KnowledgeBaseLastUserMessage$outboundSchema` instead. */
1812
- export const outboundSchema = KnowledgeBaseLastUserMessage$outboundSchema;
1813
- /** @deprecated use `KnowledgeBaseLastUserMessage$Outbound` instead. */
1814
- export type Outbound = KnowledgeBaseLastUserMessage$Outbound;
1791
+ export namespace RunAgentKnowledgeBases$ {
1792
+ /** @deprecated use `RunAgentKnowledgeBases$inboundSchema` instead. */
1793
+ export const inboundSchema = RunAgentKnowledgeBases$inboundSchema;
1794
+ /** @deprecated use `RunAgentKnowledgeBases$outboundSchema` instead. */
1795
+ export const outboundSchema = RunAgentKnowledgeBases$outboundSchema;
1796
+ /** @deprecated use `RunAgentKnowledgeBases$Outbound` instead. */
1797
+ export type Outbound = RunAgentKnowledgeBases$Outbound;
1815
1798
  }
1816
1799
 
1817
- export function knowledgeBaseLastUserMessageToJSON(
1818
- knowledgeBaseLastUserMessage: KnowledgeBaseLastUserMessage,
1800
+ export function runAgentKnowledgeBasesToJSON(
1801
+ runAgentKnowledgeBases: RunAgentKnowledgeBases,
1819
1802
  ): string {
1820
1803
  return JSON.stringify(
1821
- KnowledgeBaseLastUserMessage$outboundSchema.parse(
1822
- knowledgeBaseLastUserMessage,
1823
- ),
1804
+ RunAgentKnowledgeBases$outboundSchema.parse(runAgentKnowledgeBases),
1824
1805
  );
1825
1806
  }
1826
1807
 
1827
- export function knowledgeBaseLastUserMessageFromJSON(
1808
+ export function runAgentKnowledgeBasesFromJSON(
1828
1809
  jsonString: string,
1829
- ): SafeParseResult<KnowledgeBaseLastUserMessage, SDKValidationError> {
1810
+ ): SafeParseResult<RunAgentKnowledgeBases, SDKValidationError> {
1830
1811
  return safeParse(
1831
1812
  jsonString,
1832
- (x) => KnowledgeBaseLastUserMessage$inboundSchema.parse(JSON.parse(x)),
1833
- `Failed to parse 'KnowledgeBaseLastUserMessage' from JSON`,
1834
- );
1835
- }
1836
-
1837
- /** @internal */
1838
- export const KnowledgeBaseConfiguration$inboundSchema: z.ZodType<
1839
- KnowledgeBaseConfiguration,
1840
- z.ZodTypeDef,
1841
- unknown
1842
- > = z.union([
1843
- z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
1844
- z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
1845
- ]);
1846
-
1847
- /** @internal */
1848
- export type KnowledgeBaseConfiguration$Outbound =
1849
- | KnowledgeBaseStaticQuery$Outbound
1850
- | KnowledgeBaseLastUserMessage$Outbound;
1851
-
1852
- /** @internal */
1853
- export const KnowledgeBaseConfiguration$outboundSchema: z.ZodType<
1854
- KnowledgeBaseConfiguration$Outbound,
1855
- z.ZodTypeDef,
1856
- KnowledgeBaseConfiguration
1857
- > = z.union([
1858
- z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
1859
- z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
1860
- ]);
1861
-
1862
- /**
1863
- * @internal
1864
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1865
- */
1866
- export namespace KnowledgeBaseConfiguration$ {
1867
- /** @deprecated use `KnowledgeBaseConfiguration$inboundSchema` instead. */
1868
- export const inboundSchema = KnowledgeBaseConfiguration$inboundSchema;
1869
- /** @deprecated use `KnowledgeBaseConfiguration$outboundSchema` instead. */
1870
- export const outboundSchema = KnowledgeBaseConfiguration$outboundSchema;
1871
- /** @deprecated use `KnowledgeBaseConfiguration$Outbound` instead. */
1872
- export type Outbound = KnowledgeBaseConfiguration$Outbound;
1873
- }
1874
-
1875
- export function knowledgeBaseConfigurationToJSON(
1876
- knowledgeBaseConfiguration: KnowledgeBaseConfiguration,
1877
- ): string {
1878
- return JSON.stringify(
1879
- KnowledgeBaseConfiguration$outboundSchema.parse(knowledgeBaseConfiguration),
1880
- );
1881
- }
1882
-
1883
- export function knowledgeBaseConfigurationFromJSON(
1884
- jsonString: string,
1885
- ): SafeParseResult<KnowledgeBaseConfiguration, SDKValidationError> {
1886
- return safeParse(
1887
- jsonString,
1888
- (x) => KnowledgeBaseConfiguration$inboundSchema.parse(JSON.parse(x)),
1889
- `Failed to parse 'KnowledgeBaseConfiguration' from JSON`,
1890
- );
1891
- }
1892
-
1893
- /** @internal */
1894
- export const KnowledgeBases$inboundSchema: z.ZodType<
1895
- KnowledgeBases,
1896
- z.ZodTypeDef,
1897
- unknown
1898
- > = z.object({
1899
- configuration: z.union([
1900
- z.lazy(() => KnowledgeBaseStaticQuery$inboundSchema),
1901
- z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
1902
- ]),
1903
- });
1904
-
1905
- /** @internal */
1906
- export type KnowledgeBases$Outbound = {
1907
- configuration:
1908
- | KnowledgeBaseStaticQuery$Outbound
1909
- | KnowledgeBaseLastUserMessage$Outbound;
1910
- };
1911
-
1912
- /** @internal */
1913
- export const KnowledgeBases$outboundSchema: z.ZodType<
1914
- KnowledgeBases$Outbound,
1915
- z.ZodTypeDef,
1916
- KnowledgeBases
1917
- > = z.object({
1918
- configuration: z.union([
1919
- z.lazy(() => KnowledgeBaseStaticQuery$outboundSchema),
1920
- z.lazy(() => KnowledgeBaseLastUserMessage$outboundSchema),
1921
- ]),
1922
- });
1923
-
1924
- /**
1925
- * @internal
1926
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1927
- */
1928
- export namespace KnowledgeBases$ {
1929
- /** @deprecated use `KnowledgeBases$inboundSchema` instead. */
1930
- export const inboundSchema = KnowledgeBases$inboundSchema;
1931
- /** @deprecated use `KnowledgeBases$outboundSchema` instead. */
1932
- export const outboundSchema = KnowledgeBases$outboundSchema;
1933
- /** @deprecated use `KnowledgeBases$Outbound` instead. */
1934
- export type Outbound = KnowledgeBases$Outbound;
1935
- }
1936
-
1937
- export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
1938
- return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
1939
- }
1940
-
1941
- export function knowledgeBasesFromJSON(
1942
- jsonString: string,
1943
- ): SafeParseResult<KnowledgeBases, SDKValidationError> {
1944
- return safeParse(
1945
- jsonString,
1946
- (x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1947
- `Failed to parse 'KnowledgeBases' from JSON`,
1813
+ (x) => RunAgentKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
1814
+ `Failed to parse 'RunAgentKnowledgeBases' from JSON`,
1948
1815
  );
1949
1816
  }
1950
1817
 
@@ -2002,36 +1869,36 @@ export function teamOfAgentsFromJSON(
2002
1869
  }
2003
1870
 
2004
1871
  /** @internal */
2005
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
1872
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema:
2006
1873
  z.ZodNativeEnum<
2007
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
1874
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
2008
1875
  > = z.nativeEnum(
2009
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type,
1876
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type,
2010
1877
  );
2011
1878
 
2012
1879
  /** @internal */
2013
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
1880
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema:
2014
1881
  z.ZodNativeEnum<
2015
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type
1882
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type
2016
1883
  > =
2017
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1884
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
2018
1885
 
2019
1886
  /**
2020
1887
  * @internal
2021
1888
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2022
1889
  */
2023
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$ {
2024
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
1890
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
1891
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
2025
1892
  export const inboundSchema =
2026
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
2027
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
1893
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema;
1894
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
2028
1895
  export const outboundSchema =
2029
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
1896
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema;
2030
1897
  }
2031
1898
 
2032
1899
  /** @internal */
2033
- export const RunAgentRequestToolFunction$inboundSchema: z.ZodType<
2034
- RunAgentRequestToolFunction,
1900
+ export const AgentToolInputRunFunction$inboundSchema: z.ZodType<
1901
+ AgentToolInputRunFunction,
2035
1902
  z.ZodTypeDef,
2036
1903
  unknown
2037
1904
  > = z.object({
@@ -2042,7 +1909,7 @@ export const RunAgentRequestToolFunction$inboundSchema: z.ZodType<
2042
1909
  });
2043
1910
 
2044
1911
  /** @internal */
2045
- export type RunAgentRequestToolFunction$Outbound = {
1912
+ export type AgentToolInputRunFunction$Outbound = {
2046
1913
  name: string;
2047
1914
  description?: string | undefined;
2048
1915
  strict?: boolean | undefined;
@@ -2050,10 +1917,10 @@ export type RunAgentRequestToolFunction$Outbound = {
2050
1917
  };
2051
1918
 
2052
1919
  /** @internal */
2053
- export const RunAgentRequestToolFunction$outboundSchema: z.ZodType<
2054
- RunAgentRequestToolFunction$Outbound,
1920
+ export const AgentToolInputRunFunction$outboundSchema: z.ZodType<
1921
+ AgentToolInputRunFunction$Outbound,
2055
1922
  z.ZodTypeDef,
2056
- RunAgentRequestToolFunction
1923
+ AgentToolInputRunFunction
2057
1924
  > = z.object({
2058
1925
  name: z.string(),
2059
1926
  description: z.string().optional(),
@@ -2065,49 +1932,47 @@ export const RunAgentRequestToolFunction$outboundSchema: z.ZodType<
2065
1932
  * @internal
2066
1933
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2067
1934
  */
2068
- export namespace RunAgentRequestToolFunction$ {
2069
- /** @deprecated use `RunAgentRequestToolFunction$inboundSchema` instead. */
2070
- export const inboundSchema = RunAgentRequestToolFunction$inboundSchema;
2071
- /** @deprecated use `RunAgentRequestToolFunction$outboundSchema` instead. */
2072
- export const outboundSchema = RunAgentRequestToolFunction$outboundSchema;
2073
- /** @deprecated use `RunAgentRequestToolFunction$Outbound` instead. */
2074
- export type Outbound = RunAgentRequestToolFunction$Outbound;
1935
+ export namespace AgentToolInputRunFunction$ {
1936
+ /** @deprecated use `AgentToolInputRunFunction$inboundSchema` instead. */
1937
+ export const inboundSchema = AgentToolInputRunFunction$inboundSchema;
1938
+ /** @deprecated use `AgentToolInputRunFunction$outboundSchema` instead. */
1939
+ export const outboundSchema = AgentToolInputRunFunction$outboundSchema;
1940
+ /** @deprecated use `AgentToolInputRunFunction$Outbound` instead. */
1941
+ export type Outbound = AgentToolInputRunFunction$Outbound;
2075
1942
  }
2076
1943
 
2077
- export function runAgentRequestToolFunctionToJSON(
2078
- runAgentRequestToolFunction: RunAgentRequestToolFunction,
1944
+ export function agentToolInputRunFunctionToJSON(
1945
+ agentToolInputRunFunction: AgentToolInputRunFunction,
2079
1946
  ): string {
2080
1947
  return JSON.stringify(
2081
- RunAgentRequestToolFunction$outboundSchema.parse(
2082
- runAgentRequestToolFunction,
2083
- ),
1948
+ AgentToolInputRunFunction$outboundSchema.parse(agentToolInputRunFunction),
2084
1949
  );
2085
1950
  }
2086
1951
 
2087
- export function runAgentRequestToolFunctionFromJSON(
1952
+ export function agentToolInputRunFunctionFromJSON(
2088
1953
  jsonString: string,
2089
- ): SafeParseResult<RunAgentRequestToolFunction, SDKValidationError> {
1954
+ ): SafeParseResult<AgentToolInputRunFunction, SDKValidationError> {
2090
1955
  return safeParse(
2091
1956
  jsonString,
2092
- (x) => RunAgentRequestToolFunction$inboundSchema.parse(JSON.parse(x)),
2093
- `Failed to parse 'RunAgentRequestToolFunction' from JSON`,
1957
+ (x) => AgentToolInputRunFunction$inboundSchema.parse(JSON.parse(x)),
1958
+ `Failed to parse 'AgentToolInputRunFunction' from JSON`,
2094
1959
  );
2095
1960
  }
2096
1961
 
2097
1962
  /** @internal */
2098
- export const FunctionTool$inboundSchema: z.ZodType<
2099
- FunctionTool,
1963
+ export const FunctionToolRun$inboundSchema: z.ZodType<
1964
+ FunctionToolRun,
2100
1965
  z.ZodTypeDef,
2101
1966
  unknown
2102
1967
  > = z.object({
2103
1968
  type:
2104
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
2105
- _id: z.string().optional(),
1969
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema,
2106
1970
  key: z.string(),
1971
+ _id: z.string().optional(),
2107
1972
  display_name: z.string().optional(),
2108
1973
  description: z.string().optional(),
1974
+ function: z.lazy(() => AgentToolInputRunFunction$inboundSchema),
2109
1975
  requires_approval: z.boolean().default(false),
2110
- function: z.lazy(() => RunAgentRequestToolFunction$inboundSchema),
2111
1976
  }).transform((v) => {
2112
1977
  return remap$(v, {
2113
1978
  "_id": "id",
@@ -2117,30 +1982,30 @@ export const FunctionTool$inboundSchema: z.ZodType<
2117
1982
  });
2118
1983
 
2119
1984
  /** @internal */
2120
- export type FunctionTool$Outbound = {
1985
+ export type FunctionToolRun$Outbound = {
2121
1986
  type: string;
2122
- _id?: string | undefined;
2123
1987
  key: string;
1988
+ _id?: string | undefined;
2124
1989
  display_name?: string | undefined;
2125
1990
  description?: string | undefined;
1991
+ function: AgentToolInputRunFunction$Outbound;
2126
1992
  requires_approval: boolean;
2127
- function: RunAgentRequestToolFunction$Outbound;
2128
1993
  };
2129
1994
 
2130
1995
  /** @internal */
2131
- export const FunctionTool$outboundSchema: z.ZodType<
2132
- FunctionTool$Outbound,
1996
+ export const FunctionToolRun$outboundSchema: z.ZodType<
1997
+ FunctionToolRun$Outbound,
2133
1998
  z.ZodTypeDef,
2134
- FunctionTool
1999
+ FunctionToolRun
2135
2000
  > = z.object({
2136
2001
  type:
2137
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
2138
- id: z.string().optional(),
2002
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema,
2139
2003
  key: z.string(),
2004
+ id: z.string().optional(),
2140
2005
  displayName: z.string().optional(),
2141
2006
  description: z.string().optional(),
2007
+ function: z.lazy(() => AgentToolInputRunFunction$outboundSchema),
2142
2008
  requiresApproval: z.boolean().default(false),
2143
- function: z.lazy(() => RunAgentRequestToolFunction$outboundSchema),
2144
2009
  }).transform((v) => {
2145
2010
  return remap$(v, {
2146
2011
  id: "_id",
@@ -2153,55 +2018,57 @@ export const FunctionTool$outboundSchema: z.ZodType<
2153
2018
  * @internal
2154
2019
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2155
2020
  */
2156
- export namespace FunctionTool$ {
2157
- /** @deprecated use `FunctionTool$inboundSchema` instead. */
2158
- export const inboundSchema = FunctionTool$inboundSchema;
2159
- /** @deprecated use `FunctionTool$outboundSchema` instead. */
2160
- export const outboundSchema = FunctionTool$outboundSchema;
2161
- /** @deprecated use `FunctionTool$Outbound` instead. */
2162
- export type Outbound = FunctionTool$Outbound;
2021
+ export namespace FunctionToolRun$ {
2022
+ /** @deprecated use `FunctionToolRun$inboundSchema` instead. */
2023
+ export const inboundSchema = FunctionToolRun$inboundSchema;
2024
+ /** @deprecated use `FunctionToolRun$outboundSchema` instead. */
2025
+ export const outboundSchema = FunctionToolRun$outboundSchema;
2026
+ /** @deprecated use `FunctionToolRun$Outbound` instead. */
2027
+ export type Outbound = FunctionToolRun$Outbound;
2163
2028
  }
2164
2029
 
2165
- export function functionToolToJSON(functionTool: FunctionTool): string {
2166
- return JSON.stringify(FunctionTool$outboundSchema.parse(functionTool));
2030
+ export function functionToolRunToJSON(
2031
+ functionToolRun: FunctionToolRun,
2032
+ ): string {
2033
+ return JSON.stringify(FunctionToolRun$outboundSchema.parse(functionToolRun));
2167
2034
  }
2168
2035
 
2169
- export function functionToolFromJSON(
2036
+ export function functionToolRunFromJSON(
2170
2037
  jsonString: string,
2171
- ): SafeParseResult<FunctionTool, SDKValidationError> {
2038
+ ): SafeParseResult<FunctionToolRun, SDKValidationError> {
2172
2039
  return safeParse(
2173
2040
  jsonString,
2174
- (x) => FunctionTool$inboundSchema.parse(JSON.parse(x)),
2175
- `Failed to parse 'FunctionTool' from JSON`,
2041
+ (x) => FunctionToolRun$inboundSchema.parse(JSON.parse(x)),
2042
+ `Failed to parse 'FunctionToolRun' from JSON`,
2176
2043
  );
2177
2044
  }
2178
2045
 
2179
2046
  /** @internal */
2180
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
2047
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema:
2181
2048
  z.ZodNativeEnum<
2182
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
2049
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2183
2050
  > = z.nativeEnum(
2184
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type,
2051
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type,
2185
2052
  );
2186
2053
 
2187
2054
  /** @internal */
2188
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
2055
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema:
2189
2056
  z.ZodNativeEnum<
2190
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type
2057
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type
2191
2058
  > =
2192
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2059
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2193
2060
 
2194
2061
  /**
2195
2062
  * @internal
2196
2063
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2197
2064
  */
2198
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$ {
2199
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
2065
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
2066
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
2200
2067
  export const inboundSchema =
2201
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2202
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
2068
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema;
2069
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
2203
2070
  export const outboundSchema =
2204
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
2071
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema;
2205
2072
  }
2206
2073
 
2207
2074
  /** @internal */
@@ -2280,58 +2147,58 @@ export function codeToolFromJSON(
2280
2147
  }
2281
2148
 
2282
2149
  /** @internal */
2283
- export const CodeExecutionTool$inboundSchema: z.ZodType<
2284
- CodeExecutionTool,
2150
+ export const CodeToolRun$inboundSchema: z.ZodType<
2151
+ CodeToolRun,
2285
2152
  z.ZodTypeDef,
2286
2153
  unknown
2287
2154
  > = z.object({
2155
+ type:
2156
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
2288
2157
  key: z.string(),
2289
- display_name: z.string(),
2158
+ _id: z.string().optional(),
2159
+ display_name: z.string().optional(),
2290
2160
  description: z.string(),
2291
- type:
2292
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema,
2293
2161
  code_tool: z.lazy(() => CodeTool$inboundSchema),
2294
- _id: z.string().optional(),
2295
2162
  requires_approval: z.boolean().default(false),
2296
2163
  }).transform((v) => {
2297
2164
  return remap$(v, {
2165
+ "_id": "id",
2298
2166
  "display_name": "displayName",
2299
2167
  "code_tool": "codeTool",
2300
- "_id": "id",
2301
2168
  "requires_approval": "requiresApproval",
2302
2169
  });
2303
2170
  });
2304
2171
 
2305
2172
  /** @internal */
2306
- export type CodeExecutionTool$Outbound = {
2173
+ export type CodeToolRun$Outbound = {
2174
+ type: string;
2307
2175
  key: string;
2308
- display_name: string;
2176
+ _id?: string | undefined;
2177
+ display_name?: string | undefined;
2309
2178
  description: string;
2310
- type: string;
2311
2179
  code_tool: CodeTool$Outbound;
2312
- _id?: string | undefined;
2313
2180
  requires_approval: boolean;
2314
2181
  };
2315
2182
 
2316
2183
  /** @internal */
2317
- export const CodeExecutionTool$outboundSchema: z.ZodType<
2318
- CodeExecutionTool$Outbound,
2184
+ export const CodeToolRun$outboundSchema: z.ZodType<
2185
+ CodeToolRun$Outbound,
2319
2186
  z.ZodTypeDef,
2320
- CodeExecutionTool
2187
+ CodeToolRun
2321
2188
  > = z.object({
2189
+ type:
2190
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
2322
2191
  key: z.string(),
2323
- displayName: z.string(),
2192
+ id: z.string().optional(),
2193
+ displayName: z.string().optional(),
2324
2194
  description: z.string(),
2325
- type:
2326
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema,
2327
2195
  codeTool: z.lazy(() => CodeTool$outboundSchema),
2328
- id: z.string().optional(),
2329
2196
  requiresApproval: z.boolean().default(false),
2330
2197
  }).transform((v) => {
2331
2198
  return remap$(v, {
2199
+ id: "_id",
2332
2200
  displayName: "display_name",
2333
2201
  codeTool: "code_tool",
2334
- id: "_id",
2335
2202
  requiresApproval: "requires_approval",
2336
2203
  });
2337
2204
  });
@@ -2340,59 +2207,55 @@ export const CodeExecutionTool$outboundSchema: z.ZodType<
2340
2207
  * @internal
2341
2208
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2342
2209
  */
2343
- export namespace CodeExecutionTool$ {
2344
- /** @deprecated use `CodeExecutionTool$inboundSchema` instead. */
2345
- export const inboundSchema = CodeExecutionTool$inboundSchema;
2346
- /** @deprecated use `CodeExecutionTool$outboundSchema` instead. */
2347
- export const outboundSchema = CodeExecutionTool$outboundSchema;
2348
- /** @deprecated use `CodeExecutionTool$Outbound` instead. */
2349
- export type Outbound = CodeExecutionTool$Outbound;
2210
+ export namespace CodeToolRun$ {
2211
+ /** @deprecated use `CodeToolRun$inboundSchema` instead. */
2212
+ export const inboundSchema = CodeToolRun$inboundSchema;
2213
+ /** @deprecated use `CodeToolRun$outboundSchema` instead. */
2214
+ export const outboundSchema = CodeToolRun$outboundSchema;
2215
+ /** @deprecated use `CodeToolRun$Outbound` instead. */
2216
+ export type Outbound = CodeToolRun$Outbound;
2350
2217
  }
2351
2218
 
2352
- export function codeExecutionToolToJSON(
2353
- codeExecutionTool: CodeExecutionTool,
2354
- ): string {
2355
- return JSON.stringify(
2356
- CodeExecutionTool$outboundSchema.parse(codeExecutionTool),
2357
- );
2219
+ export function codeToolRunToJSON(codeToolRun: CodeToolRun): string {
2220
+ return JSON.stringify(CodeToolRun$outboundSchema.parse(codeToolRun));
2358
2221
  }
2359
2222
 
2360
- export function codeExecutionToolFromJSON(
2223
+ export function codeToolRunFromJSON(
2361
2224
  jsonString: string,
2362
- ): SafeParseResult<CodeExecutionTool, SDKValidationError> {
2225
+ ): SafeParseResult<CodeToolRun, SDKValidationError> {
2363
2226
  return safeParse(
2364
2227
  jsonString,
2365
- (x) => CodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
2366
- `Failed to parse 'CodeExecutionTool' from JSON`,
2228
+ (x) => CodeToolRun$inboundSchema.parse(JSON.parse(x)),
2229
+ `Failed to parse 'CodeToolRun' from JSON`,
2367
2230
  );
2368
2231
  }
2369
2232
 
2370
2233
  /** @internal */
2371
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
2234
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema:
2372
2235
  z.ZodNativeEnum<
2373
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
2236
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2374
2237
  > = z.nativeEnum(
2375
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type,
2238
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type,
2376
2239
  );
2377
2240
 
2378
2241
  /** @internal */
2379
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
2242
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema:
2380
2243
  z.ZodNativeEnum<
2381
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type
2244
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type
2382
2245
  > =
2383
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2246
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2384
2247
 
2385
2248
  /**
2386
2249
  * @internal
2387
2250
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2388
2251
  */
2389
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$ {
2390
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
2252
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
2253
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
2391
2254
  export const inboundSchema =
2392
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2393
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
2255
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema;
2256
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
2394
2257
  export const outboundSchema =
2395
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
2258
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema;
2396
2259
  }
2397
2260
 
2398
2261
  /** @internal */
@@ -2474,31 +2337,31 @@ export function blueprintFromJSON(
2474
2337
  }
2475
2338
 
2476
2339
  /** @internal */
2477
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
2340
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema:
2478
2341
  z.ZodNativeEnum<
2479
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
2342
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2480
2343
  > = z.nativeEnum(
2481
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType,
2344
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType,
2482
2345
  );
2483
2346
 
2484
2347
  /** @internal */
2485
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
2348
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema:
2486
2349
  z.ZodNativeEnum<
2487
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType
2350
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType
2488
2351
  > =
2489
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2352
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2490
2353
 
2491
2354
  /**
2492
2355
  * @internal
2493
2356
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2494
2357
  */
2495
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$ {
2496
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
2358
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
2359
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
2497
2360
  export const inboundSchema =
2498
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2499
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
2361
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema;
2362
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
2500
2363
  export const outboundSchema =
2501
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
2364
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema;
2502
2365
  }
2503
2366
 
2504
2367
  /** @internal */
@@ -2552,7 +2415,7 @@ export const Arguments$inboundSchema: z.ZodType<
2552
2415
  unknown
2553
2416
  > = z.object({
2554
2417
  type:
2555
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
2418
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema,
2556
2419
  description: z.string(),
2557
2420
  send_to_model: z.boolean().default(true),
2558
2421
  default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2578,7 +2441,7 @@ export const Arguments$outboundSchema: z.ZodType<
2578
2441
  Arguments
2579
2442
  > = z.object({
2580
2443
  type:
2581
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
2444
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema,
2582
2445
  description: z.string(),
2583
2446
  sendToModel: z.boolean().default(true),
2584
2447
  defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -2664,17 +2527,17 @@ export function httpFromJSON(
2664
2527
  }
2665
2528
 
2666
2529
  /** @internal */
2667
- export const HTTPTool$inboundSchema: z.ZodType<
2668
- HTTPTool,
2530
+ export const HTTPToolRun$inboundSchema: z.ZodType<
2531
+ HTTPToolRun,
2669
2532
  z.ZodTypeDef,
2670
2533
  unknown
2671
2534
  > = z.object({
2672
- _id: z.string().default("01K7KDRXH22K7ASXHT84H6RYX8"),
2535
+ type:
2536
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
2673
2537
  key: z.string(),
2674
- display_name: z.string(),
2538
+ _id: z.string().optional(),
2539
+ display_name: z.string().optional(),
2675
2540
  description: z.string(),
2676
- type:
2677
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema,
2678
2541
  http: z.lazy(() => Http$inboundSchema),
2679
2542
  requires_approval: z.boolean().default(false),
2680
2543
  }).transform((v) => {
@@ -2686,28 +2549,28 @@ export const HTTPTool$inboundSchema: z.ZodType<
2686
2549
  });
2687
2550
 
2688
2551
  /** @internal */
2689
- export type HTTPTool$Outbound = {
2690
- _id: string;
2552
+ export type HTTPToolRun$Outbound = {
2553
+ type: string;
2691
2554
  key: string;
2692
- display_name: string;
2555
+ _id?: string | undefined;
2556
+ display_name?: string | undefined;
2693
2557
  description: string;
2694
- type: string;
2695
2558
  http: Http$Outbound;
2696
2559
  requires_approval: boolean;
2697
2560
  };
2698
2561
 
2699
2562
  /** @internal */
2700
- export const HTTPTool$outboundSchema: z.ZodType<
2701
- HTTPTool$Outbound,
2563
+ export const HTTPToolRun$outboundSchema: z.ZodType<
2564
+ HTTPToolRun$Outbound,
2702
2565
  z.ZodTypeDef,
2703
- HTTPTool
2566
+ HTTPToolRun
2704
2567
  > = z.object({
2705
- id: z.string().default("01K7KDRXH22K7ASXHT84H6RYX8"),
2568
+ type:
2569
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
2706
2570
  key: z.string(),
2707
- displayName: z.string(),
2571
+ id: z.string().optional(),
2572
+ displayName: z.string().optional(),
2708
2573
  description: z.string(),
2709
- type:
2710
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema,
2711
2574
  http: z.lazy(() => Http$outboundSchema),
2712
2575
  requiresApproval: z.boolean().default(false),
2713
2576
  }).transform((v) => {
@@ -2722,65 +2585,65 @@ export const HTTPTool$outboundSchema: z.ZodType<
2722
2585
  * @internal
2723
2586
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2724
2587
  */
2725
- export namespace HTTPTool$ {
2726
- /** @deprecated use `HTTPTool$inboundSchema` instead. */
2727
- export const inboundSchema = HTTPTool$inboundSchema;
2728
- /** @deprecated use `HTTPTool$outboundSchema` instead. */
2729
- export const outboundSchema = HTTPTool$outboundSchema;
2730
- /** @deprecated use `HTTPTool$Outbound` instead. */
2731
- export type Outbound = HTTPTool$Outbound;
2588
+ export namespace HTTPToolRun$ {
2589
+ /** @deprecated use `HTTPToolRun$inboundSchema` instead. */
2590
+ export const inboundSchema = HTTPToolRun$inboundSchema;
2591
+ /** @deprecated use `HTTPToolRun$outboundSchema` instead. */
2592
+ export const outboundSchema = HTTPToolRun$outboundSchema;
2593
+ /** @deprecated use `HTTPToolRun$Outbound` instead. */
2594
+ export type Outbound = HTTPToolRun$Outbound;
2732
2595
  }
2733
2596
 
2734
- export function httpToolToJSON(httpTool: HTTPTool): string {
2735
- return JSON.stringify(HTTPTool$outboundSchema.parse(httpTool));
2597
+ export function httpToolRunToJSON(httpToolRun: HTTPToolRun): string {
2598
+ return JSON.stringify(HTTPToolRun$outboundSchema.parse(httpToolRun));
2736
2599
  }
2737
2600
 
2738
- export function httpToolFromJSON(
2601
+ export function httpToolRunFromJSON(
2739
2602
  jsonString: string,
2740
- ): SafeParseResult<HTTPTool, SDKValidationError> {
2603
+ ): SafeParseResult<HTTPToolRun, SDKValidationError> {
2741
2604
  return safeParse(
2742
2605
  jsonString,
2743
- (x) => HTTPTool$inboundSchema.parse(JSON.parse(x)),
2744
- `Failed to parse 'HTTPTool' from JSON`,
2606
+ (x) => HTTPToolRun$inboundSchema.parse(JSON.parse(x)),
2607
+ `Failed to parse 'HTTPToolRun' from JSON`,
2745
2608
  );
2746
2609
  }
2747
2610
 
2748
2611
  /** @internal */
2749
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
2612
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema:
2750
2613
  z.ZodNativeEnum<
2751
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
2614
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2752
2615
  > = z.nativeEnum(
2753
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type,
2616
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type,
2754
2617
  );
2755
2618
 
2756
2619
  /** @internal */
2757
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
2620
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema:
2758
2621
  z.ZodNativeEnum<
2759
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type
2622
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type
2760
2623
  > =
2761
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2624
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2762
2625
 
2763
2626
  /**
2764
2627
  * @internal
2765
2628
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2766
2629
  */
2767
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$ {
2768
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
2630
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
2631
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
2769
2632
  export const inboundSchema =
2770
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2771
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
2633
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema;
2634
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
2772
2635
  export const outboundSchema =
2773
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
2636
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema;
2774
2637
  }
2775
2638
 
2776
2639
  /** @internal */
2777
- export const CurrentDateTool$inboundSchema: z.ZodType<
2778
- CurrentDateTool,
2640
+ export const AgentToolInputRunCurrentDateTool$inboundSchema: z.ZodType<
2641
+ AgentToolInputRunCurrentDateTool,
2779
2642
  z.ZodTypeDef,
2780
2643
  unknown
2781
2644
  > = z.object({
2782
2645
  type:
2783
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
2646
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
2784
2647
  requires_approval: z.boolean().default(false),
2785
2648
  }).transform((v) => {
2786
2649
  return remap$(v, {
@@ -2789,19 +2652,19 @@ export const CurrentDateTool$inboundSchema: z.ZodType<
2789
2652
  });
2790
2653
 
2791
2654
  /** @internal */
2792
- export type CurrentDateTool$Outbound = {
2655
+ export type AgentToolInputRunCurrentDateTool$Outbound = {
2793
2656
  type: string;
2794
2657
  requires_approval: boolean;
2795
2658
  };
2796
2659
 
2797
2660
  /** @internal */
2798
- export const CurrentDateTool$outboundSchema: z.ZodType<
2799
- CurrentDateTool$Outbound,
2661
+ export const AgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<
2662
+ AgentToolInputRunCurrentDateTool$Outbound,
2800
2663
  z.ZodTypeDef,
2801
- CurrentDateTool
2664
+ AgentToolInputRunCurrentDateTool
2802
2665
  > = z.object({
2803
2666
  type:
2804
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
2667
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
2805
2668
  requiresApproval: z.boolean().default(false),
2806
2669
  }).transform((v) => {
2807
2670
  return remap$(v, {
@@ -2813,67 +2676,71 @@ export const CurrentDateTool$outboundSchema: z.ZodType<
2813
2676
  * @internal
2814
2677
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2815
2678
  */
2816
- export namespace CurrentDateTool$ {
2817
- /** @deprecated use `CurrentDateTool$inboundSchema` instead. */
2818
- export const inboundSchema = CurrentDateTool$inboundSchema;
2819
- /** @deprecated use `CurrentDateTool$outboundSchema` instead. */
2820
- export const outboundSchema = CurrentDateTool$outboundSchema;
2821
- /** @deprecated use `CurrentDateTool$Outbound` instead. */
2822
- export type Outbound = CurrentDateTool$Outbound;
2679
+ export namespace AgentToolInputRunCurrentDateTool$ {
2680
+ /** @deprecated use `AgentToolInputRunCurrentDateTool$inboundSchema` instead. */
2681
+ export const inboundSchema = AgentToolInputRunCurrentDateTool$inboundSchema;
2682
+ /** @deprecated use `AgentToolInputRunCurrentDateTool$outboundSchema` instead. */
2683
+ export const outboundSchema = AgentToolInputRunCurrentDateTool$outboundSchema;
2684
+ /** @deprecated use `AgentToolInputRunCurrentDateTool$Outbound` instead. */
2685
+ export type Outbound = AgentToolInputRunCurrentDateTool$Outbound;
2823
2686
  }
2824
2687
 
2825
- export function currentDateToolToJSON(
2826
- currentDateTool: CurrentDateTool,
2688
+ export function agentToolInputRunCurrentDateToolToJSON(
2689
+ agentToolInputRunCurrentDateTool: AgentToolInputRunCurrentDateTool,
2827
2690
  ): string {
2828
- return JSON.stringify(CurrentDateTool$outboundSchema.parse(currentDateTool));
2691
+ return JSON.stringify(
2692
+ AgentToolInputRunCurrentDateTool$outboundSchema.parse(
2693
+ agentToolInputRunCurrentDateTool,
2694
+ ),
2695
+ );
2829
2696
  }
2830
2697
 
2831
- export function currentDateToolFromJSON(
2698
+ export function agentToolInputRunCurrentDateToolFromJSON(
2832
2699
  jsonString: string,
2833
- ): SafeParseResult<CurrentDateTool, SDKValidationError> {
2700
+ ): SafeParseResult<AgentToolInputRunCurrentDateTool, SDKValidationError> {
2834
2701
  return safeParse(
2835
2702
  jsonString,
2836
- (x) => CurrentDateTool$inboundSchema.parse(JSON.parse(x)),
2837
- `Failed to parse 'CurrentDateTool' from JSON`,
2703
+ (x) => AgentToolInputRunCurrentDateTool$inboundSchema.parse(JSON.parse(x)),
2704
+ `Failed to parse 'AgentToolInputRunCurrentDateTool' from JSON`,
2838
2705
  );
2839
2706
  }
2840
2707
 
2841
2708
  /** @internal */
2842
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
2709
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema:
2843
2710
  z.ZodNativeEnum<
2844
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
2711
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
2845
2712
  > = z.nativeEnum(
2846
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type,
2713
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type,
2847
2714
  );
2848
2715
 
2849
2716
  /** @internal */
2850
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
2717
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema:
2851
2718
  z.ZodNativeEnum<
2852
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type
2719
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type
2853
2720
  > =
2854
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2721
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2855
2722
 
2856
2723
  /**
2857
2724
  * @internal
2858
2725
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2859
2726
  */
2860
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$ {
2861
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
2727
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
2728
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
2862
2729
  export const inboundSchema =
2863
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2864
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
2730
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema;
2731
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
2865
2732
  export const outboundSchema =
2866
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
2733
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema;
2867
2734
  }
2868
2735
 
2869
2736
  /** @internal */
2870
- export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
2871
- QueryKnowledgeBaseTool,
2737
+ export const AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
2738
+ AgentToolInputRunQueryKnowledgeBaseTool,
2872
2739
  z.ZodTypeDef,
2873
2740
  unknown
2874
2741
  > = z.object({
2875
2742
  type:
2876
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
2743
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
2877
2744
  requires_approval: z.boolean().default(false),
2878
2745
  }).transform((v) => {
2879
2746
  return remap$(v, {
@@ -2882,19 +2749,19 @@ export const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<
2882
2749
  });
2883
2750
 
2884
2751
  /** @internal */
2885
- export type QueryKnowledgeBaseTool$Outbound = {
2752
+ export type AgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
2886
2753
  type: string;
2887
2754
  requires_approval: boolean;
2888
2755
  };
2889
2756
 
2890
2757
  /** @internal */
2891
- export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
2892
- QueryKnowledgeBaseTool$Outbound,
2758
+ export const AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
2759
+ AgentToolInputRunQueryKnowledgeBaseTool$Outbound,
2893
2760
  z.ZodTypeDef,
2894
- QueryKnowledgeBaseTool
2761
+ AgentToolInputRunQueryKnowledgeBaseTool
2895
2762
  > = z.object({
2896
2763
  type:
2897
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
2764
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
2898
2765
  requiresApproval: z.boolean().default(false),
2899
2766
  }).transform((v) => {
2900
2767
  return remap$(v, {
@@ -2906,164 +2773,188 @@ export const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<
2906
2773
  * @internal
2907
2774
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2908
2775
  */
2909
- export namespace QueryKnowledgeBaseTool$ {
2910
- /** @deprecated use `QueryKnowledgeBaseTool$inboundSchema` instead. */
2911
- export const inboundSchema = QueryKnowledgeBaseTool$inboundSchema;
2912
- /** @deprecated use `QueryKnowledgeBaseTool$outboundSchema` instead. */
2913
- export const outboundSchema = QueryKnowledgeBaseTool$outboundSchema;
2914
- /** @deprecated use `QueryKnowledgeBaseTool$Outbound` instead. */
2915
- export type Outbound = QueryKnowledgeBaseTool$Outbound;
2776
+ export namespace AgentToolInputRunQueryKnowledgeBaseTool$ {
2777
+ /** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
2778
+ export const inboundSchema =
2779
+ AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema;
2780
+ /** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
2781
+ export const outboundSchema =
2782
+ AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema;
2783
+ /** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
2784
+ export type Outbound = AgentToolInputRunQueryKnowledgeBaseTool$Outbound;
2916
2785
  }
2917
2786
 
2918
- export function queryKnowledgeBaseToolToJSON(
2919
- queryKnowledgeBaseTool: QueryKnowledgeBaseTool,
2787
+ export function agentToolInputRunQueryKnowledgeBaseToolToJSON(
2788
+ agentToolInputRunQueryKnowledgeBaseTool:
2789
+ AgentToolInputRunQueryKnowledgeBaseTool,
2920
2790
  ): string {
2921
2791
  return JSON.stringify(
2922
- QueryKnowledgeBaseTool$outboundSchema.parse(queryKnowledgeBaseTool),
2792
+ AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema.parse(
2793
+ agentToolInputRunQueryKnowledgeBaseTool,
2794
+ ),
2923
2795
  );
2924
2796
  }
2925
2797
 
2926
- export function queryKnowledgeBaseToolFromJSON(
2798
+ export function agentToolInputRunQueryKnowledgeBaseToolFromJSON(
2927
2799
  jsonString: string,
2928
- ): SafeParseResult<QueryKnowledgeBaseTool, SDKValidationError> {
2800
+ ): SafeParseResult<
2801
+ AgentToolInputRunQueryKnowledgeBaseTool,
2802
+ SDKValidationError
2803
+ > {
2929
2804
  return safeParse(
2930
2805
  jsonString,
2931
- (x) => QueryKnowledgeBaseTool$inboundSchema.parse(JSON.parse(x)),
2932
- `Failed to parse 'QueryKnowledgeBaseTool' from JSON`,
2806
+ (x) =>
2807
+ AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema.parse(
2808
+ JSON.parse(x),
2809
+ ),
2810
+ `Failed to parse 'AgentToolInputRunQueryKnowledgeBaseTool' from JSON`,
2933
2811
  );
2934
2812
  }
2935
2813
 
2936
2814
  /** @internal */
2937
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
2815
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema:
2938
2816
  z.ZodNativeEnum<
2939
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
2817
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
2940
2818
  > = z.nativeEnum(
2941
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type,
2819
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type,
2942
2820
  );
2943
2821
 
2944
2822
  /** @internal */
2945
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
2823
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema:
2946
2824
  z.ZodNativeEnum<
2947
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type
2825
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type
2948
2826
  > =
2949
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2827
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2950
2828
 
2951
2829
  /**
2952
2830
  * @internal
2953
2831
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2954
2832
  */
2955
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$ {
2956
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
2833
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
2834
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
2957
2835
  export const inboundSchema =
2958
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2959
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
2836
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema;
2837
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
2960
2838
  export const outboundSchema =
2961
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
2839
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema;
2962
2840
  }
2963
2841
 
2964
2842
  /** @internal */
2965
- export const RetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<
2966
- RetrieveKnowledgeBasesTool,
2967
- z.ZodTypeDef,
2968
- unknown
2969
- > = z.object({
2970
- type:
2971
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
2972
- requires_approval: z.boolean().default(false),
2973
- }).transform((v) => {
2974
- return remap$(v, {
2975
- "requires_approval": "requiresApproval",
2843
+ export const AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
2844
+ z.ZodType<
2845
+ AgentToolInputRunRetrieveKnowledgeBasesTool,
2846
+ z.ZodTypeDef,
2847
+ unknown
2848
+ > = z.object({
2849
+ type:
2850
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
2851
+ requires_approval: z.boolean().default(false),
2852
+ }).transform((v) => {
2853
+ return remap$(v, {
2854
+ "requires_approval": "requiresApproval",
2855
+ });
2976
2856
  });
2977
- });
2978
2857
 
2979
2858
  /** @internal */
2980
- export type RetrieveKnowledgeBasesTool$Outbound = {
2859
+ export type AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
2981
2860
  type: string;
2982
2861
  requires_approval: boolean;
2983
2862
  };
2984
2863
 
2985
2864
  /** @internal */
2986
- export const RetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<
2987
- RetrieveKnowledgeBasesTool$Outbound,
2988
- z.ZodTypeDef,
2989
- RetrieveKnowledgeBasesTool
2990
- > = z.object({
2991
- type:
2992
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
2993
- requiresApproval: z.boolean().default(false),
2994
- }).transform((v) => {
2995
- return remap$(v, {
2996
- requiresApproval: "requires_approval",
2865
+ export const AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
2866
+ z.ZodType<
2867
+ AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound,
2868
+ z.ZodTypeDef,
2869
+ AgentToolInputRunRetrieveKnowledgeBasesTool
2870
+ > = z.object({
2871
+ type:
2872
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
2873
+ requiresApproval: z.boolean().default(false),
2874
+ }).transform((v) => {
2875
+ return remap$(v, {
2876
+ requiresApproval: "requires_approval",
2877
+ });
2997
2878
  });
2998
- });
2999
2879
 
3000
2880
  /**
3001
2881
  * @internal
3002
2882
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3003
2883
  */
3004
- export namespace RetrieveKnowledgeBasesTool$ {
3005
- /** @deprecated use `RetrieveKnowledgeBasesTool$inboundSchema` instead. */
3006
- export const inboundSchema = RetrieveKnowledgeBasesTool$inboundSchema;
3007
- /** @deprecated use `RetrieveKnowledgeBasesTool$outboundSchema` instead. */
3008
- export const outboundSchema = RetrieveKnowledgeBasesTool$outboundSchema;
3009
- /** @deprecated use `RetrieveKnowledgeBasesTool$Outbound` instead. */
3010
- export type Outbound = RetrieveKnowledgeBasesTool$Outbound;
2884
+ export namespace AgentToolInputRunRetrieveKnowledgeBasesTool$ {
2885
+ /** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
2886
+ export const inboundSchema =
2887
+ AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema;
2888
+ /** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
2889
+ export const outboundSchema =
2890
+ AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema;
2891
+ /** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
2892
+ export type Outbound = AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
3011
2893
  }
3012
2894
 
3013
- export function retrieveKnowledgeBasesToolToJSON(
3014
- retrieveKnowledgeBasesTool: RetrieveKnowledgeBasesTool,
2895
+ export function agentToolInputRunRetrieveKnowledgeBasesToolToJSON(
2896
+ agentToolInputRunRetrieveKnowledgeBasesTool:
2897
+ AgentToolInputRunRetrieveKnowledgeBasesTool,
3015
2898
  ): string {
3016
2899
  return JSON.stringify(
3017
- RetrieveKnowledgeBasesTool$outboundSchema.parse(retrieveKnowledgeBasesTool),
2900
+ AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema.parse(
2901
+ agentToolInputRunRetrieveKnowledgeBasesTool,
2902
+ ),
3018
2903
  );
3019
2904
  }
3020
2905
 
3021
- export function retrieveKnowledgeBasesToolFromJSON(
2906
+ export function agentToolInputRunRetrieveKnowledgeBasesToolFromJSON(
3022
2907
  jsonString: string,
3023
- ): SafeParseResult<RetrieveKnowledgeBasesTool, SDKValidationError> {
2908
+ ): SafeParseResult<
2909
+ AgentToolInputRunRetrieveKnowledgeBasesTool,
2910
+ SDKValidationError
2911
+ > {
3024
2912
  return safeParse(
3025
2913
  jsonString,
3026
- (x) => RetrieveKnowledgeBasesTool$inboundSchema.parse(JSON.parse(x)),
3027
- `Failed to parse 'RetrieveKnowledgeBasesTool' from JSON`,
2914
+ (x) =>
2915
+ AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema.parse(
2916
+ JSON.parse(x),
2917
+ ),
2918
+ `Failed to parse 'AgentToolInputRunRetrieveKnowledgeBasesTool' from JSON`,
3028
2919
  );
3029
2920
  }
3030
2921
 
3031
2922
  /** @internal */
3032
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
2923
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema:
3033
2924
  z.ZodNativeEnum<
3034
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
2925
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3035
2926
  > = z.nativeEnum(
3036
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type,
2927
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type,
3037
2928
  );
3038
2929
 
3039
2930
  /** @internal */
3040
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
2931
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema:
3041
2932
  z.ZodNativeEnum<
3042
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type
2933
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type
3043
2934
  > =
3044
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
2935
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3045
2936
 
3046
2937
  /**
3047
2938
  * @internal
3048
2939
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3049
2940
  */
3050
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$ {
3051
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
2941
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
2942
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
3052
2943
  export const inboundSchema =
3053
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
3054
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
2944
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema;
2945
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
3055
2946
  export const outboundSchema =
3056
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
2947
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema;
3057
2948
  }
3058
2949
 
3059
2950
  /** @internal */
3060
- export const DeleteMemoryStoreTool$inboundSchema: z.ZodType<
3061
- DeleteMemoryStoreTool,
2951
+ export const AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema: z.ZodType<
2952
+ AgentToolInputRunDeleteMemoryDocumentTool,
3062
2953
  z.ZodTypeDef,
3063
2954
  unknown
3064
2955
  > = z.object({
3065
2956
  type:
3066
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
2957
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
3067
2958
  requires_approval: z.boolean().default(false),
3068
2959
  }).transform((v) => {
3069
2960
  return remap$(v, {
@@ -3072,93 +2963,105 @@ export const DeleteMemoryStoreTool$inboundSchema: z.ZodType<
3072
2963
  });
3073
2964
 
3074
2965
  /** @internal */
3075
- export type DeleteMemoryStoreTool$Outbound = {
2966
+ export type AgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
3076
2967
  type: string;
3077
2968
  requires_approval: boolean;
3078
2969
  };
3079
2970
 
3080
2971
  /** @internal */
3081
- export const DeleteMemoryStoreTool$outboundSchema: z.ZodType<
3082
- DeleteMemoryStoreTool$Outbound,
3083
- z.ZodTypeDef,
3084
- DeleteMemoryStoreTool
3085
- > = z.object({
3086
- type:
3087
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
3088
- requiresApproval: z.boolean().default(false),
3089
- }).transform((v) => {
3090
- return remap$(v, {
3091
- requiresApproval: "requires_approval",
2972
+ export const AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
2973
+ z.ZodType<
2974
+ AgentToolInputRunDeleteMemoryDocumentTool$Outbound,
2975
+ z.ZodTypeDef,
2976
+ AgentToolInputRunDeleteMemoryDocumentTool
2977
+ > = z.object({
2978
+ type:
2979
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
2980
+ requiresApproval: z.boolean().default(false),
2981
+ }).transform((v) => {
2982
+ return remap$(v, {
2983
+ requiresApproval: "requires_approval",
2984
+ });
3092
2985
  });
3093
- });
3094
2986
 
3095
2987
  /**
3096
2988
  * @internal
3097
2989
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3098
2990
  */
3099
- export namespace DeleteMemoryStoreTool$ {
3100
- /** @deprecated use `DeleteMemoryStoreTool$inboundSchema` instead. */
3101
- export const inboundSchema = DeleteMemoryStoreTool$inboundSchema;
3102
- /** @deprecated use `DeleteMemoryStoreTool$outboundSchema` instead. */
3103
- export const outboundSchema = DeleteMemoryStoreTool$outboundSchema;
3104
- /** @deprecated use `DeleteMemoryStoreTool$Outbound` instead. */
3105
- export type Outbound = DeleteMemoryStoreTool$Outbound;
2991
+ export namespace AgentToolInputRunDeleteMemoryDocumentTool$ {
2992
+ /** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
2993
+ export const inboundSchema =
2994
+ AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema;
2995
+ /** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
2996
+ export const outboundSchema =
2997
+ AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema;
2998
+ /** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
2999
+ export type Outbound = AgentToolInputRunDeleteMemoryDocumentTool$Outbound;
3106
3000
  }
3107
3001
 
3108
- export function deleteMemoryStoreToolToJSON(
3109
- deleteMemoryStoreTool: DeleteMemoryStoreTool,
3002
+ export function agentToolInputRunDeleteMemoryDocumentToolToJSON(
3003
+ agentToolInputRunDeleteMemoryDocumentTool:
3004
+ AgentToolInputRunDeleteMemoryDocumentTool,
3110
3005
  ): string {
3111
3006
  return JSON.stringify(
3112
- DeleteMemoryStoreTool$outboundSchema.parse(deleteMemoryStoreTool),
3007
+ AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema.parse(
3008
+ agentToolInputRunDeleteMemoryDocumentTool,
3009
+ ),
3113
3010
  );
3114
3011
  }
3115
3012
 
3116
- export function deleteMemoryStoreToolFromJSON(
3013
+ export function agentToolInputRunDeleteMemoryDocumentToolFromJSON(
3117
3014
  jsonString: string,
3118
- ): SafeParseResult<DeleteMemoryStoreTool, SDKValidationError> {
3015
+ ): SafeParseResult<
3016
+ AgentToolInputRunDeleteMemoryDocumentTool,
3017
+ SDKValidationError
3018
+ > {
3119
3019
  return safeParse(
3120
3020
  jsonString,
3121
- (x) => DeleteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3122
- `Failed to parse 'DeleteMemoryStoreTool' from JSON`,
3021
+ (x) =>
3022
+ AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema.parse(
3023
+ JSON.parse(x),
3024
+ ),
3025
+ `Failed to parse 'AgentToolInputRunDeleteMemoryDocumentTool' from JSON`,
3123
3026
  );
3124
3027
  }
3125
3028
 
3126
3029
  /** @internal */
3127
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema:
3030
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema:
3128
3031
  z.ZodNativeEnum<
3129
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
3032
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3130
3033
  > = z.nativeEnum(
3131
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType,
3034
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType,
3132
3035
  );
3133
3036
 
3134
3037
  /** @internal */
3135
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema:
3038
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema:
3136
3039
  z.ZodNativeEnum<
3137
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType
3040
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType
3138
3041
  > =
3139
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3042
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3140
3043
 
3141
3044
  /**
3142
3045
  * @internal
3143
3046
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3144
3047
  */
3145
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$ {
3146
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
3048
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
3049
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
3147
3050
  export const inboundSchema =
3148
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3149
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
3051
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema;
3052
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
3150
3053
  export const outboundSchema =
3151
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema;
3054
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema;
3152
3055
  }
3153
3056
 
3154
3057
  /** @internal */
3155
- export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
3156
- RetrieveMemoryStoresTool,
3058
+ export const AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema: z.ZodType<
3059
+ AgentToolInputRunRetrieveMemoryStoresTool,
3157
3060
  z.ZodTypeDef,
3158
3061
  unknown
3159
3062
  > = z.object({
3160
3063
  type:
3161
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema,
3064
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
3162
3065
  requires_approval: z.boolean().default(false),
3163
3066
  }).transform((v) => {
3164
3067
  return remap$(v, {
@@ -3167,93 +3070,105 @@ export const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<
3167
3070
  });
3168
3071
 
3169
3072
  /** @internal */
3170
- export type RetrieveMemoryStoresTool$Outbound = {
3073
+ export type AgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
3171
3074
  type: string;
3172
3075
  requires_approval: boolean;
3173
3076
  };
3174
3077
 
3175
3078
  /** @internal */
3176
- export const RetrieveMemoryStoresTool$outboundSchema: z.ZodType<
3177
- RetrieveMemoryStoresTool$Outbound,
3178
- z.ZodTypeDef,
3179
- RetrieveMemoryStoresTool
3180
- > = z.object({
3181
- type:
3182
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema,
3183
- requiresApproval: z.boolean().default(false),
3184
- }).transform((v) => {
3185
- return remap$(v, {
3186
- requiresApproval: "requires_approval",
3079
+ export const AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
3080
+ z.ZodType<
3081
+ AgentToolInputRunRetrieveMemoryStoresTool$Outbound,
3082
+ z.ZodTypeDef,
3083
+ AgentToolInputRunRetrieveMemoryStoresTool
3084
+ > = z.object({
3085
+ type:
3086
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
3087
+ requiresApproval: z.boolean().default(false),
3088
+ }).transform((v) => {
3089
+ return remap$(v, {
3090
+ requiresApproval: "requires_approval",
3091
+ });
3187
3092
  });
3188
- });
3189
3093
 
3190
3094
  /**
3191
3095
  * @internal
3192
3096
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3193
3097
  */
3194
- export namespace RetrieveMemoryStoresTool$ {
3195
- /** @deprecated use `RetrieveMemoryStoresTool$inboundSchema` instead. */
3196
- export const inboundSchema = RetrieveMemoryStoresTool$inboundSchema;
3197
- /** @deprecated use `RetrieveMemoryStoresTool$outboundSchema` instead. */
3198
- export const outboundSchema = RetrieveMemoryStoresTool$outboundSchema;
3199
- /** @deprecated use `RetrieveMemoryStoresTool$Outbound` instead. */
3200
- export type Outbound = RetrieveMemoryStoresTool$Outbound;
3098
+ export namespace AgentToolInputRunRetrieveMemoryStoresTool$ {
3099
+ /** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
3100
+ export const inboundSchema =
3101
+ AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema;
3102
+ /** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
3103
+ export const outboundSchema =
3104
+ AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema;
3105
+ /** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
3106
+ export type Outbound = AgentToolInputRunRetrieveMemoryStoresTool$Outbound;
3201
3107
  }
3202
3108
 
3203
- export function retrieveMemoryStoresToolToJSON(
3204
- retrieveMemoryStoresTool: RetrieveMemoryStoresTool,
3109
+ export function agentToolInputRunRetrieveMemoryStoresToolToJSON(
3110
+ agentToolInputRunRetrieveMemoryStoresTool:
3111
+ AgentToolInputRunRetrieveMemoryStoresTool,
3205
3112
  ): string {
3206
3113
  return JSON.stringify(
3207
- RetrieveMemoryStoresTool$outboundSchema.parse(retrieveMemoryStoresTool),
3114
+ AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema.parse(
3115
+ agentToolInputRunRetrieveMemoryStoresTool,
3116
+ ),
3208
3117
  );
3209
3118
  }
3210
3119
 
3211
- export function retrieveMemoryStoresToolFromJSON(
3120
+ export function agentToolInputRunRetrieveMemoryStoresToolFromJSON(
3212
3121
  jsonString: string,
3213
- ): SafeParseResult<RetrieveMemoryStoresTool, SDKValidationError> {
3122
+ ): SafeParseResult<
3123
+ AgentToolInputRunRetrieveMemoryStoresTool,
3124
+ SDKValidationError
3125
+ > {
3214
3126
  return safeParse(
3215
3127
  jsonString,
3216
- (x) => RetrieveMemoryStoresTool$inboundSchema.parse(JSON.parse(x)),
3217
- `Failed to parse 'RetrieveMemoryStoresTool' from JSON`,
3128
+ (x) =>
3129
+ AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema.parse(
3130
+ JSON.parse(x),
3131
+ ),
3132
+ `Failed to parse 'AgentToolInputRunRetrieveMemoryStoresTool' from JSON`,
3218
3133
  );
3219
3134
  }
3220
3135
 
3221
3136
  /** @internal */
3222
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema:
3137
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema:
3223
3138
  z.ZodNativeEnum<
3224
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
3139
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3225
3140
  > = z.nativeEnum(
3226
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType,
3141
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType,
3227
3142
  );
3228
3143
 
3229
3144
  /** @internal */
3230
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema:
3145
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema:
3231
3146
  z.ZodNativeEnum<
3232
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType
3147
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType
3233
3148
  > =
3234
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
3149
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3235
3150
 
3236
3151
  /**
3237
3152
  * @internal
3238
3153
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3239
3154
  */
3240
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$ {
3241
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3155
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
3156
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
3242
3157
  export const inboundSchema =
3243
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema;
3244
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3158
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema;
3159
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
3245
3160
  export const outboundSchema =
3246
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema;
3161
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema;
3247
3162
  }
3248
3163
 
3249
3164
  /** @internal */
3250
- export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
3251
- WriteMemoryStoreTool,
3165
+ export const AgentToolInputRunWriteMemoryStoreTool$inboundSchema: z.ZodType<
3166
+ AgentToolInputRunWriteMemoryStoreTool,
3252
3167
  z.ZodTypeDef,
3253
3168
  unknown
3254
3169
  > = z.object({
3255
3170
  type:
3256
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema,
3171
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
3257
3172
  requires_approval: z.boolean().default(false),
3258
3173
  }).transform((v) => {
3259
3174
  return remap$(v, {
@@ -3262,19 +3177,19 @@ export const WriteMemoryStoreTool$inboundSchema: z.ZodType<
3262
3177
  });
3263
3178
 
3264
3179
  /** @internal */
3265
- export type WriteMemoryStoreTool$Outbound = {
3180
+ export type AgentToolInputRunWriteMemoryStoreTool$Outbound = {
3266
3181
  type: string;
3267
3182
  requires_approval: boolean;
3268
3183
  };
3269
3184
 
3270
3185
  /** @internal */
3271
- export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
3272
- WriteMemoryStoreTool$Outbound,
3186
+ export const AgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<
3187
+ AgentToolInputRunWriteMemoryStoreTool$Outbound,
3273
3188
  z.ZodTypeDef,
3274
- WriteMemoryStoreTool
3189
+ AgentToolInputRunWriteMemoryStoreTool
3275
3190
  > = z.object({
3276
3191
  type:
3277
- RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema,
3192
+ RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
3278
3193
  requiresApproval: z.boolean().default(false),
3279
3194
  }).transform((v) => {
3280
3195
  return remap$(v, {
@@ -3286,65 +3201,70 @@ export const WriteMemoryStoreTool$outboundSchema: z.ZodType<
3286
3201
  * @internal
3287
3202
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3288
3203
  */
3289
- export namespace WriteMemoryStoreTool$ {
3290
- /** @deprecated use `WriteMemoryStoreTool$inboundSchema` instead. */
3291
- export const inboundSchema = WriteMemoryStoreTool$inboundSchema;
3292
- /** @deprecated use `WriteMemoryStoreTool$outboundSchema` instead. */
3293
- export const outboundSchema = WriteMemoryStoreTool$outboundSchema;
3294
- /** @deprecated use `WriteMemoryStoreTool$Outbound` instead. */
3295
- export type Outbound = WriteMemoryStoreTool$Outbound;
3204
+ export namespace AgentToolInputRunWriteMemoryStoreTool$ {
3205
+ /** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
3206
+ export const inboundSchema =
3207
+ AgentToolInputRunWriteMemoryStoreTool$inboundSchema;
3208
+ /** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
3209
+ export const outboundSchema =
3210
+ AgentToolInputRunWriteMemoryStoreTool$outboundSchema;
3211
+ /** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
3212
+ export type Outbound = AgentToolInputRunWriteMemoryStoreTool$Outbound;
3296
3213
  }
3297
3214
 
3298
- export function writeMemoryStoreToolToJSON(
3299
- writeMemoryStoreTool: WriteMemoryStoreTool,
3215
+ export function agentToolInputRunWriteMemoryStoreToolToJSON(
3216
+ agentToolInputRunWriteMemoryStoreTool: AgentToolInputRunWriteMemoryStoreTool,
3300
3217
  ): string {
3301
3218
  return JSON.stringify(
3302
- WriteMemoryStoreTool$outboundSchema.parse(writeMemoryStoreTool),
3219
+ AgentToolInputRunWriteMemoryStoreTool$outboundSchema.parse(
3220
+ agentToolInputRunWriteMemoryStoreTool,
3221
+ ),
3303
3222
  );
3304
3223
  }
3305
3224
 
3306
- export function writeMemoryStoreToolFromJSON(
3225
+ export function agentToolInputRunWriteMemoryStoreToolFromJSON(
3307
3226
  jsonString: string,
3308
- ): SafeParseResult<WriteMemoryStoreTool, SDKValidationError> {
3227
+ ): SafeParseResult<AgentToolInputRunWriteMemoryStoreTool, SDKValidationError> {
3309
3228
  return safeParse(
3310
3229
  jsonString,
3311
- (x) => WriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3312
- `Failed to parse 'WriteMemoryStoreTool' from JSON`,
3230
+ (x) =>
3231
+ AgentToolInputRunWriteMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3232
+ `Failed to parse 'AgentToolInputRunWriteMemoryStoreTool' from JSON`,
3313
3233
  );
3314
3234
  }
3315
3235
 
3316
3236
  /** @internal */
3317
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema:
3237
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema:
3318
3238
  z.ZodNativeEnum<
3319
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType
3320
- > = z.nativeEnum(RunAgentRunAgentRequestToolAgentsRequestRequestBodyType);
3239
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
3240
+ > = z.nativeEnum(RunAgentAgentToolInputRunAgentsRequestRequestBodyType);
3321
3241
 
3322
3242
  /** @internal */
3323
- export const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema:
3243
+ export const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema:
3324
3244
  z.ZodNativeEnum<
3325
- typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType
3326
- > = RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
3245
+ typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType
3246
+ > = RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3327
3247
 
3328
3248
  /**
3329
3249
  * @internal
3330
3250
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3331
3251
  */
3332
- export namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$ {
3333
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema` instead. */
3252
+ export namespace RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
3253
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
3334
3254
  export const inboundSchema =
3335
- RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema;
3336
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema` instead. */
3255
+ RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema;
3256
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
3337
3257
  export const outboundSchema =
3338
- RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema;
3258
+ RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema;
3339
3259
  }
3340
3260
 
3341
3261
  /** @internal */
3342
- export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
3343
- QueryMemoryStoreTool,
3262
+ export const AgentToolInputRunQueryMemoryStoreTool$inboundSchema: z.ZodType<
3263
+ AgentToolInputRunQueryMemoryStoreTool,
3344
3264
  z.ZodTypeDef,
3345
3265
  unknown
3346
3266
  > = z.object({
3347
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema,
3267
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
3348
3268
  requires_approval: z.boolean().default(false),
3349
3269
  }).transform((v) => {
3350
3270
  return remap$(v, {
@@ -3353,18 +3273,18 @@ export const QueryMemoryStoreTool$inboundSchema: z.ZodType<
3353
3273
  });
3354
3274
 
3355
3275
  /** @internal */
3356
- export type QueryMemoryStoreTool$Outbound = {
3276
+ export type AgentToolInputRunQueryMemoryStoreTool$Outbound = {
3357
3277
  type: string;
3358
3278
  requires_approval: boolean;
3359
3279
  };
3360
3280
 
3361
3281
  /** @internal */
3362
- export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
3363
- QueryMemoryStoreTool$Outbound,
3282
+ export const AgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<
3283
+ AgentToolInputRunQueryMemoryStoreTool$Outbound,
3364
3284
  z.ZodTypeDef,
3365
- QueryMemoryStoreTool
3285
+ AgentToolInputRunQueryMemoryStoreTool
3366
3286
  > = z.object({
3367
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema,
3287
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
3368
3288
  requiresApproval: z.boolean().default(false),
3369
3289
  }).transform((v) => {
3370
3290
  return remap$(v, {
@@ -3376,63 +3296,68 @@ export const QueryMemoryStoreTool$outboundSchema: z.ZodType<
3376
3296
  * @internal
3377
3297
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3378
3298
  */
3379
- export namespace QueryMemoryStoreTool$ {
3380
- /** @deprecated use `QueryMemoryStoreTool$inboundSchema` instead. */
3381
- export const inboundSchema = QueryMemoryStoreTool$inboundSchema;
3382
- /** @deprecated use `QueryMemoryStoreTool$outboundSchema` instead. */
3383
- export const outboundSchema = QueryMemoryStoreTool$outboundSchema;
3384
- /** @deprecated use `QueryMemoryStoreTool$Outbound` instead. */
3385
- export type Outbound = QueryMemoryStoreTool$Outbound;
3299
+ export namespace AgentToolInputRunQueryMemoryStoreTool$ {
3300
+ /** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
3301
+ export const inboundSchema =
3302
+ AgentToolInputRunQueryMemoryStoreTool$inboundSchema;
3303
+ /** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
3304
+ export const outboundSchema =
3305
+ AgentToolInputRunQueryMemoryStoreTool$outboundSchema;
3306
+ /** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
3307
+ export type Outbound = AgentToolInputRunQueryMemoryStoreTool$Outbound;
3386
3308
  }
3387
3309
 
3388
- export function queryMemoryStoreToolToJSON(
3389
- queryMemoryStoreTool: QueryMemoryStoreTool,
3310
+ export function agentToolInputRunQueryMemoryStoreToolToJSON(
3311
+ agentToolInputRunQueryMemoryStoreTool: AgentToolInputRunQueryMemoryStoreTool,
3390
3312
  ): string {
3391
3313
  return JSON.stringify(
3392
- QueryMemoryStoreTool$outboundSchema.parse(queryMemoryStoreTool),
3314
+ AgentToolInputRunQueryMemoryStoreTool$outboundSchema.parse(
3315
+ agentToolInputRunQueryMemoryStoreTool,
3316
+ ),
3393
3317
  );
3394
3318
  }
3395
3319
 
3396
- export function queryMemoryStoreToolFromJSON(
3320
+ export function agentToolInputRunQueryMemoryStoreToolFromJSON(
3397
3321
  jsonString: string,
3398
- ): SafeParseResult<QueryMemoryStoreTool, SDKValidationError> {
3322
+ ): SafeParseResult<AgentToolInputRunQueryMemoryStoreTool, SDKValidationError> {
3399
3323
  return safeParse(
3400
3324
  jsonString,
3401
- (x) => QueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3402
- `Failed to parse 'QueryMemoryStoreTool' from JSON`,
3325
+ (x) =>
3326
+ AgentToolInputRunQueryMemoryStoreTool$inboundSchema.parse(JSON.parse(x)),
3327
+ `Failed to parse 'AgentToolInputRunQueryMemoryStoreTool' from JSON`,
3403
3328
  );
3404
3329
  }
3405
3330
 
3406
3331
  /** @internal */
3407
- export const RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema:
3408
- z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestType> = z
3409
- .nativeEnum(RunAgentRunAgentRequestToolAgentsRequestType);
3332
+ export const RunAgentAgentToolInputRunAgentsRequestType$inboundSchema:
3333
+ z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> = z
3334
+ .nativeEnum(RunAgentAgentToolInputRunAgentsRequestType);
3410
3335
 
3411
3336
  /** @internal */
3412
- export const RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema:
3413
- z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestType> =
3414
- RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
3337
+ export const RunAgentAgentToolInputRunAgentsRequestType$outboundSchema:
3338
+ z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType> =
3339
+ RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3415
3340
 
3416
3341
  /**
3417
3342
  * @internal
3418
3343
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3419
3344
  */
3420
- export namespace RunAgentRunAgentRequestToolAgentsRequestType$ {
3421
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema` instead. */
3345
+ export namespace RunAgentAgentToolInputRunAgentsRequestType$ {
3346
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
3422
3347
  export const inboundSchema =
3423
- RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema;
3424
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema` instead. */
3348
+ RunAgentAgentToolInputRunAgentsRequestType$inboundSchema;
3349
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
3425
3350
  export const outboundSchema =
3426
- RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema;
3351
+ RunAgentAgentToolInputRunAgentsRequestType$outboundSchema;
3427
3352
  }
3428
3353
 
3429
3354
  /** @internal */
3430
- export const RetrieveAgentsTool$inboundSchema: z.ZodType<
3431
- RetrieveAgentsTool,
3355
+ export const AgentToolInputRunRetrieveAgentsTool$inboundSchema: z.ZodType<
3356
+ AgentToolInputRunRetrieveAgentsTool,
3432
3357
  z.ZodTypeDef,
3433
3358
  unknown
3434
3359
  > = z.object({
3435
- type: RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema,
3360
+ type: RunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
3436
3361
  requires_approval: z.boolean().default(false),
3437
3362
  }).transform((v) => {
3438
3363
  return remap$(v, {
@@ -3441,18 +3366,18 @@ export const RetrieveAgentsTool$inboundSchema: z.ZodType<
3441
3366
  });
3442
3367
 
3443
3368
  /** @internal */
3444
- export type RetrieveAgentsTool$Outbound = {
3369
+ export type AgentToolInputRunRetrieveAgentsTool$Outbound = {
3445
3370
  type: string;
3446
3371
  requires_approval: boolean;
3447
3372
  };
3448
3373
 
3449
3374
  /** @internal */
3450
- export const RetrieveAgentsTool$outboundSchema: z.ZodType<
3451
- RetrieveAgentsTool$Outbound,
3375
+ export const AgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<
3376
+ AgentToolInputRunRetrieveAgentsTool$Outbound,
3452
3377
  z.ZodTypeDef,
3453
- RetrieveAgentsTool
3378
+ AgentToolInputRunRetrieveAgentsTool
3454
3379
  > = z.object({
3455
- type: RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema,
3380
+ type: RunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
3456
3381
  requiresApproval: z.boolean().default(false),
3457
3382
  }).transform((v) => {
3458
3383
  return remap$(v, {
@@ -3464,64 +3389,68 @@ export const RetrieveAgentsTool$outboundSchema: z.ZodType<
3464
3389
  * @internal
3465
3390
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3466
3391
  */
3467
- export namespace RetrieveAgentsTool$ {
3468
- /** @deprecated use `RetrieveAgentsTool$inboundSchema` instead. */
3469
- export const inboundSchema = RetrieveAgentsTool$inboundSchema;
3470
- /** @deprecated use `RetrieveAgentsTool$outboundSchema` instead. */
3471
- export const outboundSchema = RetrieveAgentsTool$outboundSchema;
3472
- /** @deprecated use `RetrieveAgentsTool$Outbound` instead. */
3473
- export type Outbound = RetrieveAgentsTool$Outbound;
3392
+ export namespace AgentToolInputRunRetrieveAgentsTool$ {
3393
+ /** @deprecated use `AgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
3394
+ export const inboundSchema =
3395
+ AgentToolInputRunRetrieveAgentsTool$inboundSchema;
3396
+ /** @deprecated use `AgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
3397
+ export const outboundSchema =
3398
+ AgentToolInputRunRetrieveAgentsTool$outboundSchema;
3399
+ /** @deprecated use `AgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
3400
+ export type Outbound = AgentToolInputRunRetrieveAgentsTool$Outbound;
3474
3401
  }
3475
3402
 
3476
- export function retrieveAgentsToolToJSON(
3477
- retrieveAgentsTool: RetrieveAgentsTool,
3403
+ export function agentToolInputRunRetrieveAgentsToolToJSON(
3404
+ agentToolInputRunRetrieveAgentsTool: AgentToolInputRunRetrieveAgentsTool,
3478
3405
  ): string {
3479
3406
  return JSON.stringify(
3480
- RetrieveAgentsTool$outboundSchema.parse(retrieveAgentsTool),
3407
+ AgentToolInputRunRetrieveAgentsTool$outboundSchema.parse(
3408
+ agentToolInputRunRetrieveAgentsTool,
3409
+ ),
3481
3410
  );
3482
3411
  }
3483
3412
 
3484
- export function retrieveAgentsToolFromJSON(
3413
+ export function agentToolInputRunRetrieveAgentsToolFromJSON(
3485
3414
  jsonString: string,
3486
- ): SafeParseResult<RetrieveAgentsTool, SDKValidationError> {
3415
+ ): SafeParseResult<AgentToolInputRunRetrieveAgentsTool, SDKValidationError> {
3487
3416
  return safeParse(
3488
3417
  jsonString,
3489
- (x) => RetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
3490
- `Failed to parse 'RetrieveAgentsTool' from JSON`,
3418
+ (x) =>
3419
+ AgentToolInputRunRetrieveAgentsTool$inboundSchema.parse(JSON.parse(x)),
3420
+ `Failed to parse 'AgentToolInputRunRetrieveAgentsTool' from JSON`,
3491
3421
  );
3492
3422
  }
3493
3423
 
3494
3424
  /** @internal */
3495
- export const RunAgentRunAgentRequestToolAgentsType$inboundSchema:
3496
- z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsType> = z.nativeEnum(
3497
- RunAgentRunAgentRequestToolAgentsType,
3498
- );
3425
+ export const RunAgentAgentToolInputRunAgentsType$inboundSchema: z.ZodNativeEnum<
3426
+ typeof RunAgentAgentToolInputRunAgentsType
3427
+ > = z.nativeEnum(RunAgentAgentToolInputRunAgentsType);
3499
3428
 
3500
3429
  /** @internal */
3501
- export const RunAgentRunAgentRequestToolAgentsType$outboundSchema:
3502
- z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsType> =
3503
- RunAgentRunAgentRequestToolAgentsType$inboundSchema;
3430
+ export const RunAgentAgentToolInputRunAgentsType$outboundSchema:
3431
+ z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsType> =
3432
+ RunAgentAgentToolInputRunAgentsType$inboundSchema;
3504
3433
 
3505
3434
  /**
3506
3435
  * @internal
3507
3436
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3508
3437
  */
3509
- export namespace RunAgentRunAgentRequestToolAgentsType$ {
3510
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsType$inboundSchema` instead. */
3438
+ export namespace RunAgentAgentToolInputRunAgentsType$ {
3439
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
3511
3440
  export const inboundSchema =
3512
- RunAgentRunAgentRequestToolAgentsType$inboundSchema;
3513
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsType$outboundSchema` instead. */
3441
+ RunAgentAgentToolInputRunAgentsType$inboundSchema;
3442
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
3514
3443
  export const outboundSchema =
3515
- RunAgentRunAgentRequestToolAgentsType$outboundSchema;
3444
+ RunAgentAgentToolInputRunAgentsType$outboundSchema;
3516
3445
  }
3517
3446
 
3518
3447
  /** @internal */
3519
- export const CallSubAgentTool$inboundSchema: z.ZodType<
3520
- CallSubAgentTool,
3448
+ export const AgentToolInputRunCallSubAgentTool$inboundSchema: z.ZodType<
3449
+ AgentToolInputRunCallSubAgentTool,
3521
3450
  z.ZodTypeDef,
3522
3451
  unknown
3523
3452
  > = z.object({
3524
- type: RunAgentRunAgentRequestToolAgentsType$inboundSchema,
3453
+ type: RunAgentAgentToolInputRunAgentsType$inboundSchema,
3525
3454
  requires_approval: z.boolean().default(false),
3526
3455
  }).transform((v) => {
3527
3456
  return remap$(v, {
@@ -3530,18 +3459,18 @@ export const CallSubAgentTool$inboundSchema: z.ZodType<
3530
3459
  });
3531
3460
 
3532
3461
  /** @internal */
3533
- export type CallSubAgentTool$Outbound = {
3462
+ export type AgentToolInputRunCallSubAgentTool$Outbound = {
3534
3463
  type: string;
3535
3464
  requires_approval: boolean;
3536
3465
  };
3537
3466
 
3538
3467
  /** @internal */
3539
- export const CallSubAgentTool$outboundSchema: z.ZodType<
3540
- CallSubAgentTool$Outbound,
3468
+ export const AgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<
3469
+ AgentToolInputRunCallSubAgentTool$Outbound,
3541
3470
  z.ZodTypeDef,
3542
- CallSubAgentTool
3471
+ AgentToolInputRunCallSubAgentTool
3543
3472
  > = z.object({
3544
- type: RunAgentRunAgentRequestToolAgentsType$outboundSchema,
3473
+ type: RunAgentAgentToolInputRunAgentsType$outboundSchema,
3545
3474
  requiresApproval: z.boolean().default(false),
3546
3475
  }).transform((v) => {
3547
3476
  return remap$(v, {
@@ -3553,61 +3482,64 @@ export const CallSubAgentTool$outboundSchema: z.ZodType<
3553
3482
  * @internal
3554
3483
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3555
3484
  */
3556
- export namespace CallSubAgentTool$ {
3557
- /** @deprecated use `CallSubAgentTool$inboundSchema` instead. */
3558
- export const inboundSchema = CallSubAgentTool$inboundSchema;
3559
- /** @deprecated use `CallSubAgentTool$outboundSchema` instead. */
3560
- export const outboundSchema = CallSubAgentTool$outboundSchema;
3561
- /** @deprecated use `CallSubAgentTool$Outbound` instead. */
3562
- export type Outbound = CallSubAgentTool$Outbound;
3485
+ export namespace AgentToolInputRunCallSubAgentTool$ {
3486
+ /** @deprecated use `AgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
3487
+ export const inboundSchema = AgentToolInputRunCallSubAgentTool$inboundSchema;
3488
+ /** @deprecated use `AgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
3489
+ export const outboundSchema =
3490
+ AgentToolInputRunCallSubAgentTool$outboundSchema;
3491
+ /** @deprecated use `AgentToolInputRunCallSubAgentTool$Outbound` instead. */
3492
+ export type Outbound = AgentToolInputRunCallSubAgentTool$Outbound;
3563
3493
  }
3564
3494
 
3565
- export function callSubAgentToolToJSON(
3566
- callSubAgentTool: CallSubAgentTool,
3495
+ export function agentToolInputRunCallSubAgentToolToJSON(
3496
+ agentToolInputRunCallSubAgentTool: AgentToolInputRunCallSubAgentTool,
3567
3497
  ): string {
3568
3498
  return JSON.stringify(
3569
- CallSubAgentTool$outboundSchema.parse(callSubAgentTool),
3499
+ AgentToolInputRunCallSubAgentTool$outboundSchema.parse(
3500
+ agentToolInputRunCallSubAgentTool,
3501
+ ),
3570
3502
  );
3571
3503
  }
3572
3504
 
3573
- export function callSubAgentToolFromJSON(
3505
+ export function agentToolInputRunCallSubAgentToolFromJSON(
3574
3506
  jsonString: string,
3575
- ): SafeParseResult<CallSubAgentTool, SDKValidationError> {
3507
+ ): SafeParseResult<AgentToolInputRunCallSubAgentTool, SDKValidationError> {
3576
3508
  return safeParse(
3577
3509
  jsonString,
3578
- (x) => CallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
3579
- `Failed to parse 'CallSubAgentTool' from JSON`,
3510
+ (x) => AgentToolInputRunCallSubAgentTool$inboundSchema.parse(JSON.parse(x)),
3511
+ `Failed to parse 'AgentToolInputRunCallSubAgentTool' from JSON`,
3580
3512
  );
3581
3513
  }
3582
3514
 
3583
3515
  /** @internal */
3584
- export const RunAgentRunAgentRequestToolType$inboundSchema: z.ZodNativeEnum<
3585
- typeof RunAgentRunAgentRequestToolType
3586
- > = z.nativeEnum(RunAgentRunAgentRequestToolType);
3516
+ export const RunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
3517
+ typeof RunAgentAgentToolInputRunType
3518
+ > = z.nativeEnum(RunAgentAgentToolInputRunType);
3587
3519
 
3588
3520
  /** @internal */
3589
- export const RunAgentRunAgentRequestToolType$outboundSchema: z.ZodNativeEnum<
3590
- typeof RunAgentRunAgentRequestToolType
3591
- > = RunAgentRunAgentRequestToolType$inboundSchema;
3521
+ export const RunAgentAgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
3522
+ typeof RunAgentAgentToolInputRunType
3523
+ > = RunAgentAgentToolInputRunType$inboundSchema;
3592
3524
 
3593
3525
  /**
3594
3526
  * @internal
3595
3527
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3596
3528
  */
3597
- export namespace RunAgentRunAgentRequestToolType$ {
3598
- /** @deprecated use `RunAgentRunAgentRequestToolType$inboundSchema` instead. */
3599
- export const inboundSchema = RunAgentRunAgentRequestToolType$inboundSchema;
3600
- /** @deprecated use `RunAgentRunAgentRequestToolType$outboundSchema` instead. */
3601
- export const outboundSchema = RunAgentRunAgentRequestToolType$outboundSchema;
3529
+ export namespace RunAgentAgentToolInputRunType$ {
3530
+ /** @deprecated use `RunAgentAgentToolInputRunType$inboundSchema` instead. */
3531
+ export const inboundSchema = RunAgentAgentToolInputRunType$inboundSchema;
3532
+ /** @deprecated use `RunAgentAgentToolInputRunType$outboundSchema` instead. */
3533
+ export const outboundSchema = RunAgentAgentToolInputRunType$outboundSchema;
3602
3534
  }
3603
3535
 
3604
3536
  /** @internal */
3605
- export const WebScraperTool$inboundSchema: z.ZodType<
3606
- WebScraperTool,
3537
+ export const AgentToolInputRunWebScraperTool$inboundSchema: z.ZodType<
3538
+ AgentToolInputRunWebScraperTool,
3607
3539
  z.ZodTypeDef,
3608
3540
  unknown
3609
3541
  > = z.object({
3610
- type: RunAgentRunAgentRequestToolType$inboundSchema,
3542
+ type: RunAgentAgentToolInputRunType$inboundSchema,
3611
3543
  requires_approval: z.boolean().default(false),
3612
3544
  }).transform((v) => {
3613
3545
  return remap$(v, {
@@ -3616,18 +3548,18 @@ export const WebScraperTool$inboundSchema: z.ZodType<
3616
3548
  });
3617
3549
 
3618
3550
  /** @internal */
3619
- export type WebScraperTool$Outbound = {
3551
+ export type AgentToolInputRunWebScraperTool$Outbound = {
3620
3552
  type: string;
3621
3553
  requires_approval: boolean;
3622
3554
  };
3623
3555
 
3624
3556
  /** @internal */
3625
- export const WebScraperTool$outboundSchema: z.ZodType<
3626
- WebScraperTool$Outbound,
3557
+ export const AgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<
3558
+ AgentToolInputRunWebScraperTool$Outbound,
3627
3559
  z.ZodTypeDef,
3628
- WebScraperTool
3560
+ AgentToolInputRunWebScraperTool
3629
3561
  > = z.object({
3630
- type: RunAgentRunAgentRequestToolType$outboundSchema,
3562
+ type: RunAgentAgentToolInputRunType$outboundSchema,
3631
3563
  requiresApproval: z.boolean().default(false),
3632
3564
  }).transform((v) => {
3633
3565
  return remap$(v, {
@@ -3639,57 +3571,63 @@ export const WebScraperTool$outboundSchema: z.ZodType<
3639
3571
  * @internal
3640
3572
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3641
3573
  */
3642
- export namespace WebScraperTool$ {
3643
- /** @deprecated use `WebScraperTool$inboundSchema` instead. */
3644
- export const inboundSchema = WebScraperTool$inboundSchema;
3645
- /** @deprecated use `WebScraperTool$outboundSchema` instead. */
3646
- export const outboundSchema = WebScraperTool$outboundSchema;
3647
- /** @deprecated use `WebScraperTool$Outbound` instead. */
3648
- export type Outbound = WebScraperTool$Outbound;
3574
+ export namespace AgentToolInputRunWebScraperTool$ {
3575
+ /** @deprecated use `AgentToolInputRunWebScraperTool$inboundSchema` instead. */
3576
+ export const inboundSchema = AgentToolInputRunWebScraperTool$inboundSchema;
3577
+ /** @deprecated use `AgentToolInputRunWebScraperTool$outboundSchema` instead. */
3578
+ export const outboundSchema = AgentToolInputRunWebScraperTool$outboundSchema;
3579
+ /** @deprecated use `AgentToolInputRunWebScraperTool$Outbound` instead. */
3580
+ export type Outbound = AgentToolInputRunWebScraperTool$Outbound;
3649
3581
  }
3650
3582
 
3651
- export function webScraperToolToJSON(webScraperTool: WebScraperTool): string {
3652
- return JSON.stringify(WebScraperTool$outboundSchema.parse(webScraperTool));
3583
+ export function agentToolInputRunWebScraperToolToJSON(
3584
+ agentToolInputRunWebScraperTool: AgentToolInputRunWebScraperTool,
3585
+ ): string {
3586
+ return JSON.stringify(
3587
+ AgentToolInputRunWebScraperTool$outboundSchema.parse(
3588
+ agentToolInputRunWebScraperTool,
3589
+ ),
3590
+ );
3653
3591
  }
3654
3592
 
3655
- export function webScraperToolFromJSON(
3593
+ export function agentToolInputRunWebScraperToolFromJSON(
3656
3594
  jsonString: string,
3657
- ): SafeParseResult<WebScraperTool, SDKValidationError> {
3595
+ ): SafeParseResult<AgentToolInputRunWebScraperTool, SDKValidationError> {
3658
3596
  return safeParse(
3659
3597
  jsonString,
3660
- (x) => WebScraperTool$inboundSchema.parse(JSON.parse(x)),
3661
- `Failed to parse 'WebScraperTool' from JSON`,
3598
+ (x) => AgentToolInputRunWebScraperTool$inboundSchema.parse(JSON.parse(x)),
3599
+ `Failed to parse 'AgentToolInputRunWebScraperTool' from JSON`,
3662
3600
  );
3663
3601
  }
3664
3602
 
3665
3603
  /** @internal */
3666
- export const RunAgentRequestToolType$inboundSchema: z.ZodNativeEnum<
3667
- typeof RunAgentRequestToolType
3668
- > = z.nativeEnum(RunAgentRequestToolType);
3604
+ export const AgentToolInputRunType$inboundSchema: z.ZodNativeEnum<
3605
+ typeof AgentToolInputRunType
3606
+ > = z.nativeEnum(AgentToolInputRunType);
3669
3607
 
3670
3608
  /** @internal */
3671
- export const RunAgentRequestToolType$outboundSchema: z.ZodNativeEnum<
3672
- typeof RunAgentRequestToolType
3673
- > = RunAgentRequestToolType$inboundSchema;
3609
+ export const AgentToolInputRunType$outboundSchema: z.ZodNativeEnum<
3610
+ typeof AgentToolInputRunType
3611
+ > = AgentToolInputRunType$inboundSchema;
3674
3612
 
3675
3613
  /**
3676
3614
  * @internal
3677
3615
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3678
3616
  */
3679
- export namespace RunAgentRequestToolType$ {
3680
- /** @deprecated use `RunAgentRequestToolType$inboundSchema` instead. */
3681
- export const inboundSchema = RunAgentRequestToolType$inboundSchema;
3682
- /** @deprecated use `RunAgentRequestToolType$outboundSchema` instead. */
3683
- export const outboundSchema = RunAgentRequestToolType$outboundSchema;
3617
+ export namespace AgentToolInputRunType$ {
3618
+ /** @deprecated use `AgentToolInputRunType$inboundSchema` instead. */
3619
+ export const inboundSchema = AgentToolInputRunType$inboundSchema;
3620
+ /** @deprecated use `AgentToolInputRunType$outboundSchema` instead. */
3621
+ export const outboundSchema = AgentToolInputRunType$outboundSchema;
3684
3622
  }
3685
3623
 
3686
3624
  /** @internal */
3687
- export const GoogleSearchTool$inboundSchema: z.ZodType<
3688
- GoogleSearchTool,
3625
+ export const AgentToolInputRunGoogleSearchTool$inboundSchema: z.ZodType<
3626
+ AgentToolInputRunGoogleSearchTool,
3689
3627
  z.ZodTypeDef,
3690
3628
  unknown
3691
3629
  > = z.object({
3692
- type: RunAgentRequestToolType$inboundSchema,
3630
+ type: AgentToolInputRunType$inboundSchema,
3693
3631
  requires_approval: z.boolean().default(false),
3694
3632
  }).transform((v) => {
3695
3633
  return remap$(v, {
@@ -3698,18 +3636,18 @@ export const GoogleSearchTool$inboundSchema: z.ZodType<
3698
3636
  });
3699
3637
 
3700
3638
  /** @internal */
3701
- export type GoogleSearchTool$Outbound = {
3639
+ export type AgentToolInputRunGoogleSearchTool$Outbound = {
3702
3640
  type: string;
3703
3641
  requires_approval: boolean;
3704
3642
  };
3705
3643
 
3706
3644
  /** @internal */
3707
- export const GoogleSearchTool$outboundSchema: z.ZodType<
3708
- GoogleSearchTool$Outbound,
3645
+ export const AgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<
3646
+ AgentToolInputRunGoogleSearchTool$Outbound,
3709
3647
  z.ZodTypeDef,
3710
- GoogleSearchTool
3648
+ AgentToolInputRunGoogleSearchTool
3711
3649
  > = z.object({
3712
- type: RunAgentRequestToolType$outboundSchema,
3650
+ type: AgentToolInputRunType$outboundSchema,
3713
3651
  requiresApproval: z.boolean().default(false),
3714
3652
  }).transform((v) => {
3715
3653
  return remap$(v, {
@@ -3721,171 +3659,176 @@ export const GoogleSearchTool$outboundSchema: z.ZodType<
3721
3659
  * @internal
3722
3660
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3723
3661
  */
3724
- export namespace GoogleSearchTool$ {
3725
- /** @deprecated use `GoogleSearchTool$inboundSchema` instead. */
3726
- export const inboundSchema = GoogleSearchTool$inboundSchema;
3727
- /** @deprecated use `GoogleSearchTool$outboundSchema` instead. */
3728
- export const outboundSchema = GoogleSearchTool$outboundSchema;
3729
- /** @deprecated use `GoogleSearchTool$Outbound` instead. */
3730
- export type Outbound = GoogleSearchTool$Outbound;
3662
+ export namespace AgentToolInputRunGoogleSearchTool$ {
3663
+ /** @deprecated use `AgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
3664
+ export const inboundSchema = AgentToolInputRunGoogleSearchTool$inboundSchema;
3665
+ /** @deprecated use `AgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
3666
+ export const outboundSchema =
3667
+ AgentToolInputRunGoogleSearchTool$outboundSchema;
3668
+ /** @deprecated use `AgentToolInputRunGoogleSearchTool$Outbound` instead. */
3669
+ export type Outbound = AgentToolInputRunGoogleSearchTool$Outbound;
3731
3670
  }
3732
3671
 
3733
- export function googleSearchToolToJSON(
3734
- googleSearchTool: GoogleSearchTool,
3672
+ export function agentToolInputRunGoogleSearchToolToJSON(
3673
+ agentToolInputRunGoogleSearchTool: AgentToolInputRunGoogleSearchTool,
3735
3674
  ): string {
3736
3675
  return JSON.stringify(
3737
- GoogleSearchTool$outboundSchema.parse(googleSearchTool),
3676
+ AgentToolInputRunGoogleSearchTool$outboundSchema.parse(
3677
+ agentToolInputRunGoogleSearchTool,
3678
+ ),
3738
3679
  );
3739
3680
  }
3740
3681
 
3741
- export function googleSearchToolFromJSON(
3682
+ export function agentToolInputRunGoogleSearchToolFromJSON(
3742
3683
  jsonString: string,
3743
- ): SafeParseResult<GoogleSearchTool, SDKValidationError> {
3684
+ ): SafeParseResult<AgentToolInputRunGoogleSearchTool, SDKValidationError> {
3744
3685
  return safeParse(
3745
3686
  jsonString,
3746
- (x) => GoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
3747
- `Failed to parse 'GoogleSearchTool' from JSON`,
3687
+ (x) => AgentToolInputRunGoogleSearchTool$inboundSchema.parse(JSON.parse(x)),
3688
+ `Failed to parse 'AgentToolInputRunGoogleSearchTool' from JSON`,
3748
3689
  );
3749
3690
  }
3750
3691
 
3751
3692
  /** @internal */
3752
- export const RunAgentRequestTool$inboundSchema: z.ZodType<
3753
- RunAgentRequestTool,
3693
+ export const AgentToolInputRun$inboundSchema: z.ZodType<
3694
+ AgentToolInputRun,
3754
3695
  z.ZodTypeDef,
3755
3696
  unknown
3756
3697
  > = z.union([
3757
- z.lazy(() => HTTPTool$inboundSchema),
3758
- z.lazy(() => CodeExecutionTool$inboundSchema),
3759
- z.lazy(() => FunctionTool$inboundSchema),
3760
- z.lazy(() => GoogleSearchTool$inboundSchema),
3761
- z.lazy(() => WebScraperTool$inboundSchema),
3762
- z.lazy(() => CallSubAgentTool$inboundSchema),
3763
- z.lazy(() => RetrieveAgentsTool$inboundSchema),
3764
- z.lazy(() => QueryMemoryStoreTool$inboundSchema),
3765
- z.lazy(() => WriteMemoryStoreTool$inboundSchema),
3766
- z.lazy(() => RetrieveMemoryStoresTool$inboundSchema),
3767
- z.lazy(() => DeleteMemoryStoreTool$inboundSchema),
3768
- z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
3769
- z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
3770
- z.lazy(() => CurrentDateTool$inboundSchema),
3698
+ z.lazy(() => HTTPToolRun$inboundSchema),
3699
+ z.lazy(() => CodeToolRun$inboundSchema),
3700
+ z.lazy(() => FunctionToolRun$inboundSchema),
3701
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
3702
+ z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
3703
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
3704
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
3705
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
3706
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
3707
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
3708
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
3709
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
3710
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
3711
+ z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
3771
3712
  ]);
3772
3713
 
3773
3714
  /** @internal */
3774
- export type RunAgentRequestTool$Outbound =
3775
- | HTTPTool$Outbound
3776
- | CodeExecutionTool$Outbound
3777
- | FunctionTool$Outbound
3778
- | GoogleSearchTool$Outbound
3779
- | WebScraperTool$Outbound
3780
- | CallSubAgentTool$Outbound
3781
- | RetrieveAgentsTool$Outbound
3782
- | QueryMemoryStoreTool$Outbound
3783
- | WriteMemoryStoreTool$Outbound
3784
- | RetrieveMemoryStoresTool$Outbound
3785
- | DeleteMemoryStoreTool$Outbound
3786
- | RetrieveKnowledgeBasesTool$Outbound
3787
- | QueryKnowledgeBaseTool$Outbound
3788
- | CurrentDateTool$Outbound;
3789
-
3790
- /** @internal */
3791
- export const RunAgentRequestTool$outboundSchema: z.ZodType<
3792
- RunAgentRequestTool$Outbound,
3715
+ export type AgentToolInputRun$Outbound =
3716
+ | HTTPToolRun$Outbound
3717
+ | CodeToolRun$Outbound
3718
+ | FunctionToolRun$Outbound
3719
+ | AgentToolInputRunGoogleSearchTool$Outbound
3720
+ | AgentToolInputRunWebScraperTool$Outbound
3721
+ | AgentToolInputRunCallSubAgentTool$Outbound
3722
+ | AgentToolInputRunRetrieveAgentsTool$Outbound
3723
+ | AgentToolInputRunQueryMemoryStoreTool$Outbound
3724
+ | AgentToolInputRunWriteMemoryStoreTool$Outbound
3725
+ | AgentToolInputRunRetrieveMemoryStoresTool$Outbound
3726
+ | AgentToolInputRunDeleteMemoryDocumentTool$Outbound
3727
+ | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
3728
+ | AgentToolInputRunQueryKnowledgeBaseTool$Outbound
3729
+ | AgentToolInputRunCurrentDateTool$Outbound;
3730
+
3731
+ /** @internal */
3732
+ export const AgentToolInputRun$outboundSchema: z.ZodType<
3733
+ AgentToolInputRun$Outbound,
3793
3734
  z.ZodTypeDef,
3794
- RunAgentRequestTool
3735
+ AgentToolInputRun
3795
3736
  > = z.union([
3796
- z.lazy(() => HTTPTool$outboundSchema),
3797
- z.lazy(() => CodeExecutionTool$outboundSchema),
3798
- z.lazy(() => FunctionTool$outboundSchema),
3799
- z.lazy(() => GoogleSearchTool$outboundSchema),
3800
- z.lazy(() => WebScraperTool$outboundSchema),
3801
- z.lazy(() => CallSubAgentTool$outboundSchema),
3802
- z.lazy(() => RetrieveAgentsTool$outboundSchema),
3803
- z.lazy(() => QueryMemoryStoreTool$outboundSchema),
3804
- z.lazy(() => WriteMemoryStoreTool$outboundSchema),
3805
- z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
3806
- z.lazy(() => DeleteMemoryStoreTool$outboundSchema),
3807
- z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
3808
- z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
3809
- z.lazy(() => CurrentDateTool$outboundSchema),
3737
+ z.lazy(() => HTTPToolRun$outboundSchema),
3738
+ z.lazy(() => CodeToolRun$outboundSchema),
3739
+ z.lazy(() => FunctionToolRun$outboundSchema),
3740
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
3741
+ z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
3742
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
3743
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
3744
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
3745
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
3746
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
3747
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
3748
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
3749
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
3750
+ z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
3810
3751
  ]);
3811
3752
 
3812
3753
  /**
3813
3754
  * @internal
3814
3755
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3815
3756
  */
3816
- export namespace RunAgentRequestTool$ {
3817
- /** @deprecated use `RunAgentRequestTool$inboundSchema` instead. */
3818
- export const inboundSchema = RunAgentRequestTool$inboundSchema;
3819
- /** @deprecated use `RunAgentRequestTool$outboundSchema` instead. */
3820
- export const outboundSchema = RunAgentRequestTool$outboundSchema;
3821
- /** @deprecated use `RunAgentRequestTool$Outbound` instead. */
3822
- export type Outbound = RunAgentRequestTool$Outbound;
3757
+ export namespace AgentToolInputRun$ {
3758
+ /** @deprecated use `AgentToolInputRun$inboundSchema` instead. */
3759
+ export const inboundSchema = AgentToolInputRun$inboundSchema;
3760
+ /** @deprecated use `AgentToolInputRun$outboundSchema` instead. */
3761
+ export const outboundSchema = AgentToolInputRun$outboundSchema;
3762
+ /** @deprecated use `AgentToolInputRun$Outbound` instead. */
3763
+ export type Outbound = AgentToolInputRun$Outbound;
3823
3764
  }
3824
3765
 
3825
- export function runAgentRequestToolToJSON(
3826
- runAgentRequestTool: RunAgentRequestTool,
3766
+ export function agentToolInputRunToJSON(
3767
+ agentToolInputRun: AgentToolInputRun,
3827
3768
  ): string {
3828
3769
  return JSON.stringify(
3829
- RunAgentRequestTool$outboundSchema.parse(runAgentRequestTool),
3770
+ AgentToolInputRun$outboundSchema.parse(agentToolInputRun),
3830
3771
  );
3831
3772
  }
3832
3773
 
3833
- export function runAgentRequestToolFromJSON(
3774
+ export function agentToolInputRunFromJSON(
3834
3775
  jsonString: string,
3835
- ): SafeParseResult<RunAgentRequestTool, SDKValidationError> {
3776
+ ): SafeParseResult<AgentToolInputRun, SDKValidationError> {
3836
3777
  return safeParse(
3837
3778
  jsonString,
3838
- (x) => RunAgentRequestTool$inboundSchema.parse(JSON.parse(x)),
3839
- `Failed to parse 'RunAgentRequestTool' from JSON`,
3779
+ (x) => AgentToolInputRun$inboundSchema.parse(JSON.parse(x)),
3780
+ `Failed to parse 'AgentToolInputRun' from JSON`,
3840
3781
  );
3841
3782
  }
3842
3783
 
3843
3784
  /** @internal */
3844
- export const ToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
3845
- typeof ToolApprovalRequired
3846
- > = z.nativeEnum(ToolApprovalRequired);
3785
+ export const RunAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
3786
+ typeof RunAgentToolApprovalRequired
3787
+ > = z.nativeEnum(RunAgentToolApprovalRequired);
3847
3788
 
3848
3789
  /** @internal */
3849
- export const ToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
3850
- typeof ToolApprovalRequired
3851
- > = ToolApprovalRequired$inboundSchema;
3790
+ export const RunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
3791
+ typeof RunAgentToolApprovalRequired
3792
+ > = RunAgentToolApprovalRequired$inboundSchema;
3852
3793
 
3853
3794
  /**
3854
3795
  * @internal
3855
3796
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3856
3797
  */
3857
- export namespace ToolApprovalRequired$ {
3858
- /** @deprecated use `ToolApprovalRequired$inboundSchema` instead. */
3859
- export const inboundSchema = ToolApprovalRequired$inboundSchema;
3860
- /** @deprecated use `ToolApprovalRequired$outboundSchema` instead. */
3861
- export const outboundSchema = ToolApprovalRequired$outboundSchema;
3798
+ export namespace RunAgentToolApprovalRequired$ {
3799
+ /** @deprecated use `RunAgentToolApprovalRequired$inboundSchema` instead. */
3800
+ export const inboundSchema = RunAgentToolApprovalRequired$inboundSchema;
3801
+ /** @deprecated use `RunAgentToolApprovalRequired$outboundSchema` instead. */
3802
+ export const outboundSchema = RunAgentToolApprovalRequired$outboundSchema;
3862
3803
  }
3863
3804
 
3864
3805
  /** @internal */
3865
- export const Settings$inboundSchema: z.ZodType<
3866
- Settings,
3806
+ export const RunAgentSettings$inboundSchema: z.ZodType<
3807
+ RunAgentSettings,
3867
3808
  z.ZodTypeDef,
3868
3809
  unknown
3869
3810
  > = z.object({
3870
3811
  tools: z.array(
3871
3812
  z.union([
3872
- z.lazy(() => HTTPTool$inboundSchema),
3873
- z.lazy(() => CodeExecutionTool$inboundSchema),
3874
- z.lazy(() => FunctionTool$inboundSchema),
3875
- z.lazy(() => GoogleSearchTool$inboundSchema),
3876
- z.lazy(() => WebScraperTool$inboundSchema),
3877
- z.lazy(() => CallSubAgentTool$inboundSchema),
3878
- z.lazy(() => RetrieveAgentsTool$inboundSchema),
3879
- z.lazy(() => QueryMemoryStoreTool$inboundSchema),
3880
- z.lazy(() => WriteMemoryStoreTool$inboundSchema),
3881
- z.lazy(() => RetrieveMemoryStoresTool$inboundSchema),
3882
- z.lazy(() => DeleteMemoryStoreTool$inboundSchema),
3883
- z.lazy(() => RetrieveKnowledgeBasesTool$inboundSchema),
3884
- z.lazy(() => QueryKnowledgeBaseTool$inboundSchema),
3885
- z.lazy(() => CurrentDateTool$inboundSchema),
3813
+ z.lazy(() => HTTPToolRun$inboundSchema),
3814
+ z.lazy(() => CodeToolRun$inboundSchema),
3815
+ z.lazy(() => FunctionToolRun$inboundSchema),
3816
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$inboundSchema),
3817
+ z.lazy(() => AgentToolInputRunWebScraperTool$inboundSchema),
3818
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$inboundSchema),
3819
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$inboundSchema),
3820
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$inboundSchema),
3821
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$inboundSchema),
3822
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema),
3823
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema),
3824
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema),
3825
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema),
3826
+ z.lazy(() => AgentToolInputRunCurrentDateTool$inboundSchema),
3886
3827
  ]),
3887
3828
  ),
3888
- tool_approval_required: ToolApprovalRequired$inboundSchema.default("none"),
3829
+ tool_approval_required: RunAgentToolApprovalRequired$inboundSchema.default(
3830
+ "none",
3831
+ ),
3889
3832
  max_iterations: z.number().int().default(15),
3890
3833
  max_execution_time: z.number().int().default(300),
3891
3834
  }).transform((v) => {
@@ -3897,22 +3840,22 @@ export const Settings$inboundSchema: z.ZodType<
3897
3840
  });
3898
3841
 
3899
3842
  /** @internal */
3900
- export type Settings$Outbound = {
3843
+ export type RunAgentSettings$Outbound = {
3901
3844
  tools: Array<
3902
- | HTTPTool$Outbound
3903
- | CodeExecutionTool$Outbound
3904
- | FunctionTool$Outbound
3905
- | GoogleSearchTool$Outbound
3906
- | WebScraperTool$Outbound
3907
- | CallSubAgentTool$Outbound
3908
- | RetrieveAgentsTool$Outbound
3909
- | QueryMemoryStoreTool$Outbound
3910
- | WriteMemoryStoreTool$Outbound
3911
- | RetrieveMemoryStoresTool$Outbound
3912
- | DeleteMemoryStoreTool$Outbound
3913
- | RetrieveKnowledgeBasesTool$Outbound
3914
- | QueryKnowledgeBaseTool$Outbound
3915
- | CurrentDateTool$Outbound
3845
+ | HTTPToolRun$Outbound
3846
+ | CodeToolRun$Outbound
3847
+ | FunctionToolRun$Outbound
3848
+ | AgentToolInputRunGoogleSearchTool$Outbound
3849
+ | AgentToolInputRunWebScraperTool$Outbound
3850
+ | AgentToolInputRunCallSubAgentTool$Outbound
3851
+ | AgentToolInputRunRetrieveAgentsTool$Outbound
3852
+ | AgentToolInputRunQueryMemoryStoreTool$Outbound
3853
+ | AgentToolInputRunWriteMemoryStoreTool$Outbound
3854
+ | AgentToolInputRunRetrieveMemoryStoresTool$Outbound
3855
+ | AgentToolInputRunDeleteMemoryDocumentTool$Outbound
3856
+ | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
3857
+ | AgentToolInputRunQueryKnowledgeBaseTool$Outbound
3858
+ | AgentToolInputRunCurrentDateTool$Outbound
3916
3859
  >;
3917
3860
  tool_approval_required: string;
3918
3861
  max_iterations: number;
@@ -3920,30 +3863,32 @@ export type Settings$Outbound = {
3920
3863
  };
3921
3864
 
3922
3865
  /** @internal */
3923
- export const Settings$outboundSchema: z.ZodType<
3924
- Settings$Outbound,
3866
+ export const RunAgentSettings$outboundSchema: z.ZodType<
3867
+ RunAgentSettings$Outbound,
3925
3868
  z.ZodTypeDef,
3926
- Settings
3869
+ RunAgentSettings
3927
3870
  > = z.object({
3928
3871
  tools: z.array(
3929
3872
  z.union([
3930
- z.lazy(() => HTTPTool$outboundSchema),
3931
- z.lazy(() => CodeExecutionTool$outboundSchema),
3932
- z.lazy(() => FunctionTool$outboundSchema),
3933
- z.lazy(() => GoogleSearchTool$outboundSchema),
3934
- z.lazy(() => WebScraperTool$outboundSchema),
3935
- z.lazy(() => CallSubAgentTool$outboundSchema),
3936
- z.lazy(() => RetrieveAgentsTool$outboundSchema),
3937
- z.lazy(() => QueryMemoryStoreTool$outboundSchema),
3938
- z.lazy(() => WriteMemoryStoreTool$outboundSchema),
3939
- z.lazy(() => RetrieveMemoryStoresTool$outboundSchema),
3940
- z.lazy(() => DeleteMemoryStoreTool$outboundSchema),
3941
- z.lazy(() => RetrieveKnowledgeBasesTool$outboundSchema),
3942
- z.lazy(() => QueryKnowledgeBaseTool$outboundSchema),
3943
- z.lazy(() => CurrentDateTool$outboundSchema),
3873
+ z.lazy(() => HTTPToolRun$outboundSchema),
3874
+ z.lazy(() => CodeToolRun$outboundSchema),
3875
+ z.lazy(() => FunctionToolRun$outboundSchema),
3876
+ z.lazy(() => AgentToolInputRunGoogleSearchTool$outboundSchema),
3877
+ z.lazy(() => AgentToolInputRunWebScraperTool$outboundSchema),
3878
+ z.lazy(() => AgentToolInputRunCallSubAgentTool$outboundSchema),
3879
+ z.lazy(() => AgentToolInputRunRetrieveAgentsTool$outboundSchema),
3880
+ z.lazy(() => AgentToolInputRunQueryMemoryStoreTool$outboundSchema),
3881
+ z.lazy(() => AgentToolInputRunWriteMemoryStoreTool$outboundSchema),
3882
+ z.lazy(() => AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema),
3883
+ z.lazy(() => AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema),
3884
+ z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
3885
+ z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
3886
+ z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
3944
3887
  ]),
3945
3888
  ),
3946
- toolApprovalRequired: ToolApprovalRequired$outboundSchema.default("none"),
3889
+ toolApprovalRequired: RunAgentToolApprovalRequired$outboundSchema.default(
3890
+ "none",
3891
+ ),
3947
3892
  maxIterations: z.number().int().default(15),
3948
3893
  maxExecutionTime: z.number().int().default(300),
3949
3894
  }).transform((v) => {
@@ -3958,26 +3903,30 @@ export const Settings$outboundSchema: z.ZodType<
3958
3903
  * @internal
3959
3904
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3960
3905
  */
3961
- export namespace Settings$ {
3962
- /** @deprecated use `Settings$inboundSchema` instead. */
3963
- export const inboundSchema = Settings$inboundSchema;
3964
- /** @deprecated use `Settings$outboundSchema` instead. */
3965
- export const outboundSchema = Settings$outboundSchema;
3966
- /** @deprecated use `Settings$Outbound` instead. */
3967
- export type Outbound = Settings$Outbound;
3906
+ export namespace RunAgentSettings$ {
3907
+ /** @deprecated use `RunAgentSettings$inboundSchema` instead. */
3908
+ export const inboundSchema = RunAgentSettings$inboundSchema;
3909
+ /** @deprecated use `RunAgentSettings$outboundSchema` instead. */
3910
+ export const outboundSchema = RunAgentSettings$outboundSchema;
3911
+ /** @deprecated use `RunAgentSettings$Outbound` instead. */
3912
+ export type Outbound = RunAgentSettings$Outbound;
3968
3913
  }
3969
3914
 
3970
- export function settingsToJSON(settings: Settings): string {
3971
- return JSON.stringify(Settings$outboundSchema.parse(settings));
3915
+ export function runAgentSettingsToJSON(
3916
+ runAgentSettings: RunAgentSettings,
3917
+ ): string {
3918
+ return JSON.stringify(
3919
+ RunAgentSettings$outboundSchema.parse(runAgentSettings),
3920
+ );
3972
3921
  }
3973
3922
 
3974
- export function settingsFromJSON(
3923
+ export function runAgentSettingsFromJSON(
3975
3924
  jsonString: string,
3976
- ): SafeParseResult<Settings, SDKValidationError> {
3925
+ ): SafeParseResult<RunAgentSettings, SDKValidationError> {
3977
3926
  return safeParse(
3978
3927
  jsonString,
3979
- (x) => Settings$inboundSchema.parse(JSON.parse(x)),
3980
- `Failed to parse 'Settings' from JSON`,
3928
+ (x) => RunAgentSettings$inboundSchema.parse(JSON.parse(x)),
3929
+ `Failed to parse 'RunAgentSettings' from JSON`,
3981
3930
  );
3982
3931
  }
3983
3932
 
@@ -3988,27 +3937,28 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
3988
3937
  unknown
3989
3938
  > = z.object({
3990
3939
  key: z.string(),
3991
- taskId: z.string().optional(),
3940
+ task_id: z.string().optional(),
3992
3941
  model: z.string(),
3993
3942
  fallback_models: z.array(z.string()).optional(),
3994
3943
  role: z.string(),
3995
3944
  instructions: z.string(),
3996
- message: z.lazy(() => Message$inboundSchema),
3945
+ message: z.lazy(() => RunAgentMessage$inboundSchema),
3997
3946
  variables: z.record(z.any()).optional(),
3998
- contact: z.lazy(() => Contact$inboundSchema).optional(),
3947
+ contact: z.lazy(() => RunAgentContact$inboundSchema).optional(),
3999
3948
  thread: z.lazy(() => RunAgentThread$inboundSchema).optional(),
4000
- memory: z.lazy(() => Memory$inboundSchema).optional(),
3949
+ memory: z.lazy(() => RunAgentMemory$inboundSchema).optional(),
4001
3950
  path: z.string(),
4002
3951
  description: z.string().optional(),
4003
3952
  system_prompt: z.string().optional(),
4004
3953
  memory_stores: z.array(z.string()).optional(),
4005
- knowledge_bases: z.array(z.lazy(() => KnowledgeBases$inboundSchema))
3954
+ knowledge_bases: z.array(z.lazy(() => RunAgentKnowledgeBases$inboundSchema))
4006
3955
  .optional(),
4007
3956
  team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
4008
- settings: z.lazy(() => Settings$inboundSchema),
3957
+ settings: z.lazy(() => RunAgentSettings$inboundSchema),
4009
3958
  metadata: z.record(z.any()).optional(),
4010
3959
  }).transform((v) => {
4011
3960
  return remap$(v, {
3961
+ "task_id": "taskId",
4012
3962
  "fallback_models": "fallbackModels",
4013
3963
  "system_prompt": "systemPrompt",
4014
3964
  "memory_stores": "memoryStores",
@@ -4020,23 +3970,23 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
4020
3970
  /** @internal */
4021
3971
  export type RunAgentRequestBody$Outbound = {
4022
3972
  key: string;
4023
- taskId?: string | undefined;
3973
+ task_id?: string | undefined;
4024
3974
  model: string;
4025
3975
  fallback_models?: Array<string> | undefined;
4026
3976
  role: string;
4027
3977
  instructions: string;
4028
- message: Message$Outbound;
3978
+ message: RunAgentMessage$Outbound;
4029
3979
  variables?: { [k: string]: any } | undefined;
4030
- contact?: Contact$Outbound | undefined;
3980
+ contact?: RunAgentContact$Outbound | undefined;
4031
3981
  thread?: RunAgentThread$Outbound | undefined;
4032
- memory?: Memory$Outbound | undefined;
3982
+ memory?: RunAgentMemory$Outbound | undefined;
4033
3983
  path: string;
4034
3984
  description?: string | undefined;
4035
3985
  system_prompt?: string | undefined;
4036
3986
  memory_stores?: Array<string> | undefined;
4037
- knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
3987
+ knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
4038
3988
  team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
4039
- settings: Settings$Outbound;
3989
+ settings: RunAgentSettings$Outbound;
4040
3990
  metadata?: { [k: string]: any } | undefined;
4041
3991
  };
4042
3992
 
@@ -4052,22 +4002,23 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
4052
4002
  fallbackModels: z.array(z.string()).optional(),
4053
4003
  role: z.string(),
4054
4004
  instructions: z.string(),
4055
- message: z.lazy(() => Message$outboundSchema),
4005
+ message: z.lazy(() => RunAgentMessage$outboundSchema),
4056
4006
  variables: z.record(z.any()).optional(),
4057
- contact: z.lazy(() => Contact$outboundSchema).optional(),
4007
+ contact: z.lazy(() => RunAgentContact$outboundSchema).optional(),
4058
4008
  thread: z.lazy(() => RunAgentThread$outboundSchema).optional(),
4059
- memory: z.lazy(() => Memory$outboundSchema).optional(),
4009
+ memory: z.lazy(() => RunAgentMemory$outboundSchema).optional(),
4060
4010
  path: z.string(),
4061
4011
  description: z.string().optional(),
4062
4012
  systemPrompt: z.string().optional(),
4063
4013
  memoryStores: z.array(z.string()).optional(),
4064
- knowledgeBases: z.array(z.lazy(() => KnowledgeBases$outboundSchema))
4014
+ knowledgeBases: z.array(z.lazy(() => RunAgentKnowledgeBases$outboundSchema))
4065
4015
  .optional(),
4066
4016
  teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
4067
- settings: z.lazy(() => Settings$outboundSchema),
4017
+ settings: z.lazy(() => RunAgentSettings$outboundSchema),
4068
4018
  metadata: z.record(z.any()).optional(),
4069
4019
  }).transform((v) => {
4070
4020
  return remap$(v, {
4021
+ taskId: "task_id",
4071
4022
  fallbackModels: "fallback_models",
4072
4023
  systemPrompt: "system_prompt",
4073
4024
  memoryStores: "memory_stores",
@@ -4190,8 +4141,8 @@ export namespace RunAgentAgentsRole$ {
4190
4141
  }
4191
4142
 
4192
4143
  /** @internal */
4193
- export const RunAgentMessage$inboundSchema: z.ZodType<
4194
- RunAgentMessage,
4144
+ export const RunAgentAgentsMessage$inboundSchema: z.ZodType<
4145
+ RunAgentAgentsMessage,
4195
4146
  z.ZodTypeDef,
4196
4147
  unknown
4197
4148
  > = z.object({
@@ -4202,7 +4153,7 @@ export const RunAgentMessage$inboundSchema: z.ZodType<
4202
4153
  });
4203
4154
 
4204
4155
  /** @internal */
4205
- export type RunAgentMessage$Outbound = {
4156
+ export type RunAgentAgentsMessage$Outbound = {
4206
4157
  kind: string;
4207
4158
  messageId: string;
4208
4159
  role: string;
@@ -4210,10 +4161,10 @@ export type RunAgentMessage$Outbound = {
4210
4161
  };
4211
4162
 
4212
4163
  /** @internal */
4213
- export const RunAgentMessage$outboundSchema: z.ZodType<
4214
- RunAgentMessage$Outbound,
4164
+ export const RunAgentAgentsMessage$outboundSchema: z.ZodType<
4165
+ RunAgentAgentsMessage$Outbound,
4215
4166
  z.ZodTypeDef,
4216
- RunAgentMessage
4167
+ RunAgentAgentsMessage
4217
4168
  > = z.object({
4218
4169
  kind: RunAgentAgentsKind$outboundSchema,
4219
4170
  messageId: z.string(),
@@ -4225,28 +4176,30 @@ export const RunAgentMessage$outboundSchema: z.ZodType<
4225
4176
  * @internal
4226
4177
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4227
4178
  */
4228
- export namespace RunAgentMessage$ {
4229
- /** @deprecated use `RunAgentMessage$inboundSchema` instead. */
4230
- export const inboundSchema = RunAgentMessage$inboundSchema;
4231
- /** @deprecated use `RunAgentMessage$outboundSchema` instead. */
4232
- export const outboundSchema = RunAgentMessage$outboundSchema;
4233
- /** @deprecated use `RunAgentMessage$Outbound` instead. */
4234
- export type Outbound = RunAgentMessage$Outbound;
4179
+ export namespace RunAgentAgentsMessage$ {
4180
+ /** @deprecated use `RunAgentAgentsMessage$inboundSchema` instead. */
4181
+ export const inboundSchema = RunAgentAgentsMessage$inboundSchema;
4182
+ /** @deprecated use `RunAgentAgentsMessage$outboundSchema` instead. */
4183
+ export const outboundSchema = RunAgentAgentsMessage$outboundSchema;
4184
+ /** @deprecated use `RunAgentAgentsMessage$Outbound` instead. */
4185
+ export type Outbound = RunAgentAgentsMessage$Outbound;
4235
4186
  }
4236
4187
 
4237
- export function runAgentMessageToJSON(
4238
- runAgentMessage: RunAgentMessage,
4188
+ export function runAgentAgentsMessageToJSON(
4189
+ runAgentAgentsMessage: RunAgentAgentsMessage,
4239
4190
  ): string {
4240
- return JSON.stringify(RunAgentMessage$outboundSchema.parse(runAgentMessage));
4191
+ return JSON.stringify(
4192
+ RunAgentAgentsMessage$outboundSchema.parse(runAgentAgentsMessage),
4193
+ );
4241
4194
  }
4242
4195
 
4243
- export function runAgentMessageFromJSON(
4196
+ export function runAgentAgentsMessageFromJSON(
4244
4197
  jsonString: string,
4245
- ): SafeParseResult<RunAgentMessage, SDKValidationError> {
4198
+ ): SafeParseResult<RunAgentAgentsMessage, SDKValidationError> {
4246
4199
  return safeParse(
4247
4200
  jsonString,
4248
- (x) => RunAgentMessage$inboundSchema.parse(JSON.parse(x)),
4249
- `Failed to parse 'RunAgentMessage' from JSON`,
4201
+ (x) => RunAgentAgentsMessage$inboundSchema.parse(JSON.parse(x)),
4202
+ `Failed to parse 'RunAgentAgentsMessage' from JSON`,
4250
4203
  );
4251
4204
  }
4252
4205
 
@@ -4258,14 +4211,14 @@ export const RunAgentStatus$inboundSchema: z.ZodType<
4258
4211
  > = z.object({
4259
4212
  state: RunAgentState$inboundSchema,
4260
4213
  timestamp: z.string().optional(),
4261
- message: z.lazy(() => RunAgentMessage$inboundSchema).optional(),
4214
+ message: z.lazy(() => RunAgentAgentsMessage$inboundSchema).optional(),
4262
4215
  });
4263
4216
 
4264
4217
  /** @internal */
4265
4218
  export type RunAgentStatus$Outbound = {
4266
4219
  state: string;
4267
4220
  timestamp?: string | undefined;
4268
- message?: RunAgentMessage$Outbound | undefined;
4221
+ message?: RunAgentAgentsMessage$Outbound | undefined;
4269
4222
  };
4270
4223
 
4271
4224
  /** @internal */
@@ -4276,7 +4229,7 @@ export const RunAgentStatus$outboundSchema: z.ZodType<
4276
4229
  > = z.object({
4277
4230
  state: RunAgentState$outboundSchema,
4278
4231
  timestamp: z.string().optional(),
4279
- message: z.lazy(() => RunAgentMessage$outboundSchema).optional(),
4232
+ message: z.lazy(() => RunAgentAgentsMessage$outboundSchema).optional(),
4280
4233
  });
4281
4234
 
4282
4235
  /**