@orq-ai/node 3.13.10 → 3.13.12

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 (300) hide show
  1. package/README.md +107 -93
  2. package/bin/mcp-server.js +44131 -41116
  3. package/bin/mcp-server.js.map +118 -99
  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 +3 -3
  28. package/lib/config.js +3 -3
  29. package/lib/config.js.map +1 -1
  30. package/lib/env.d.ts.map +1 -1
  31. package/lib/env.js +18 -1
  32. package/lib/env.js.map +1 -1
  33. package/mcp-server/mcp-server.js +1 -1
  34. package/mcp-server/server.d.ts.map +1 -1
  35. package/mcp-server/server.js +11 -1
  36. package/mcp-server/server.js.map +1 -1
  37. package/mcp-server/tools/agentsCreate.d.ts +8 -0
  38. package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
  39. package/mcp-server/tools/agentsCreate.js +64 -0
  40. package/mcp-server/tools/agentsCreate.js.map +1 -0
  41. package/mcp-server/tools/agentsDelete.d.ts +8 -0
  42. package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
  43. package/mcp-server/tools/agentsDelete.js +63 -0
  44. package/mcp-server/tools/agentsDelete.js.map +1 -0
  45. package/mcp-server/tools/agentsInvoke.d.ts +8 -0
  46. package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
  47. package/mcp-server/tools/agentsInvoke.js +64 -0
  48. package/mcp-server/tools/agentsInvoke.js.map +1 -0
  49. package/mcp-server/tools/agentsStream.d.ts +8 -0
  50. package/mcp-server/tools/agentsStream.d.ts.map +1 -0
  51. package/mcp-server/tools/agentsStream.js +64 -0
  52. package/mcp-server/tools/agentsStream.js.map +1 -0
  53. package/mcp-server/tools/agentsUpdate.d.ts +8 -0
  54. package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
  55. package/mcp-server/tools/agentsUpdate.js +64 -0
  56. package/mcp-server/tools/agentsUpdate.js.map +1 -0
  57. package/models/errors/createagent.d.ts +41 -0
  58. package/models/errors/createagent.d.ts.map +1 -0
  59. package/models/errors/createagent.js +85 -0
  60. package/models/errors/createagent.js.map +1 -0
  61. package/models/errors/deleteagent.d.ts +41 -0
  62. package/models/errors/deleteagent.d.ts.map +1 -0
  63. package/models/errors/deleteagent.js +85 -0
  64. package/models/errors/deleteagent.js.map +1 -0
  65. package/models/errors/index.d.ts +4 -0
  66. package/models/errors/index.d.ts.map +1 -1
  67. package/models/errors/index.js +4 -0
  68. package/models/errors/index.js.map +1 -1
  69. package/models/errors/streamagent.d.ts +41 -0
  70. package/models/errors/streamagent.d.ts.map +1 -0
  71. package/models/errors/streamagent.js +85 -0
  72. package/models/errors/streamagent.js.map +1 -0
  73. package/models/errors/updateagent.d.ts +41 -0
  74. package/models/errors/updateagent.d.ts.map +1 -0
  75. package/models/errors/updateagent.js +85 -0
  76. package/models/errors/updateagent.js.map +1 -0
  77. package/models/operations/createagent.d.ts +1504 -0
  78. package/models/operations/createagent.d.ts.map +1 -0
  79. package/models/operations/createagent.js +1530 -0
  80. package/models/operations/createagent.js.map +1 -0
  81. package/models/operations/createbudget.js +2 -2
  82. package/models/operations/createcontact.js +2 -2
  83. package/models/operations/createdataset.js +2 -2
  84. package/models/operations/createdatasetitem.js +2 -2
  85. package/models/operations/createdatasource.js +2 -2
  86. package/models/operations/createeval.js +28 -28
  87. package/models/operations/createtool.d.ts +20 -20
  88. package/models/operations/createtool.d.ts.map +1 -1
  89. package/models/operations/createtool.js +34 -34
  90. package/models/operations/createtool.js.map +1 -1
  91. package/models/operations/deleteagent.d.ts +32 -0
  92. package/models/operations/deleteagent.d.ts.map +1 -0
  93. package/models/operations/deleteagent.js +78 -0
  94. package/models/operations/deleteagent.js.map +1 -0
  95. package/models/operations/duplicatetool.d.ts +10 -10
  96. package/models/operations/duplicatetool.d.ts.map +1 -1
  97. package/models/operations/duplicatetool.js +20 -20
  98. package/models/operations/duplicatetool.js.map +1 -1
  99. package/models/operations/fileget.js +2 -2
  100. package/models/operations/filelist.js +2 -2
  101. package/models/operations/fileupload.js +2 -2
  102. package/models/operations/getagent.d.ts +44 -175
  103. package/models/operations/getagent.d.ts.map +1 -1
  104. package/models/operations/getagent.js +51 -184
  105. package/models/operations/getagent.js.map +1 -1
  106. package/models/operations/getalltools.d.ts +10 -10
  107. package/models/operations/getalltools.d.ts.map +1 -1
  108. package/models/operations/getalltools.js +20 -20
  109. package/models/operations/getalltools.js.map +1 -1
  110. package/models/operations/getbudget.js +2 -2
  111. package/models/operations/getevals.js +28 -28
  112. package/models/operations/index.d.ts +5 -0
  113. package/models/operations/index.d.ts.map +1 -1
  114. package/models/operations/index.js +5 -0
  115. package/models/operations/index.js.map +1 -1
  116. package/models/operations/invokeagent.d.ts +912 -0
  117. package/models/operations/invokeagent.d.ts.map +1 -0
  118. package/models/operations/invokeagent.js +824 -0
  119. package/models/operations/invokeagent.js.map +1 -0
  120. package/models/operations/listagents.d.ts +6 -137
  121. package/models/operations/listagents.d.ts.map +1 -1
  122. package/models/operations/listagents.js +3 -139
  123. package/models/operations/listagents.js.map +1 -1
  124. package/models/operations/listagenttasks.d.ts +5 -0
  125. package/models/operations/listagenttasks.d.ts.map +1 -1
  126. package/models/operations/listagenttasks.js +2 -0
  127. package/models/operations/listagenttasks.js.map +1 -1
  128. package/models/operations/listbudgets.js +2 -2
  129. package/models/operations/listcontacts.js +2 -2
  130. package/models/operations/listdatasetdatapoints.js +2 -2
  131. package/models/operations/listdatasets.js +2 -2
  132. package/models/operations/listdatasources.js +2 -2
  133. package/models/operations/retrievecontact.js +2 -2
  134. package/models/operations/retrievedatapoint.js +2 -2
  135. package/models/operations/retrievedataset.js +2 -2
  136. package/models/operations/retrievedatasource.js +2 -2
  137. package/models/operations/retrievetool.d.ts +10 -10
  138. package/models/operations/retrievetool.d.ts.map +1 -1
  139. package/models/operations/retrievetool.js +20 -20
  140. package/models/operations/retrievetool.js.map +1 -1
  141. package/models/operations/runagent.d.ts +640 -721
  142. package/models/operations/runagent.d.ts.map +1 -1
  143. package/models/operations/runagent.js +817 -928
  144. package/models/operations/runagent.js.map +1 -1
  145. package/models/operations/streamagent.d.ts +676 -0
  146. package/models/operations/streamagent.d.ts.map +1 -0
  147. package/models/operations/streamagent.js +670 -0
  148. package/models/operations/streamagent.js.map +1 -0
  149. package/models/operations/streamrunagent.d.ts +567 -648
  150. package/models/operations/streamrunagent.d.ts.map +1 -1
  151. package/models/operations/streamrunagent.js +721 -835
  152. package/models/operations/streamrunagent.js.map +1 -1
  153. package/models/operations/updateagent.d.ts +1515 -0
  154. package/models/operations/updateagent.d.ts.map +1 -0
  155. package/models/operations/updateagent.js +1576 -0
  156. package/models/operations/updateagent.js.map +1 -0
  157. package/models/operations/updatebudget.js +2 -2
  158. package/models/operations/updatecontact.js +2 -2
  159. package/models/operations/updatedatapoint.js +2 -2
  160. package/models/operations/updatedataset.js +2 -2
  161. package/models/operations/updatedatasource.js +2 -2
  162. package/models/operations/updateeval.js +28 -28
  163. package/models/operations/updatetool.d.ts +18 -18
  164. package/models/operations/updatetool.d.ts.map +1 -1
  165. package/models/operations/updatetool.js +36 -36
  166. package/models/operations/updatetool.js.map +1 -1
  167. package/package.json +1 -1
  168. package/packages/orq-rc/README.md +103 -94
  169. package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
  170. package/packages/orq-rc/examples/package-lock.json +1 -1
  171. package/packages/orq-rc/jsr.json +1 -1
  172. package/packages/orq-rc/package-lock.json +2 -2
  173. package/packages/orq-rc/package.json +1 -1
  174. package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
  175. package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
  176. package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
  177. package/packages/orq-rc/src/lib/config.ts +3 -3
  178. package/packages/orq-rc/src/lib/env.ts +20 -3
  179. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  180. package/packages/orq-rc/src/mcp-server/server.ts +7 -1
  181. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
  182. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
  183. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
  184. package/packages/orq-rc/src/models/components/deployments.ts +6 -6
  185. package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
  186. package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
  187. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  188. package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
  189. package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
  190. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  191. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  192. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  193. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +14 -14
  194. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  195. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  196. package/packages/orq-rc/src/models/operations/createtool.ts +50 -50
  197. package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
  198. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +6 -6
  199. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -6
  200. package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -6
  201. package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
  202. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  203. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  204. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  205. package/packages/orq-rc/src/models/operations/getagent.ts +87 -387
  206. package/packages/orq-rc/src/models/operations/getalltools.ts +30 -30
  207. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  208. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  209. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  210. package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
  211. package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
  212. package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
  213. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  214. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  215. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +11 -11
  216. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  217. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  218. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  219. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +11 -11
  220. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  221. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  222. package/packages/orq-rc/src/models/operations/retrievetool.ts +30 -30
  223. package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
  224. package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
  225. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
  226. package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
  227. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  228. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  229. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +14 -14
  230. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  231. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  232. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  233. package/packages/orq-rc/src/models/operations/updatetool.ts +56 -56
  234. package/packages/orq-rc/src/sdk/agents.ts +54 -0
  235. package/sdk/agents.d.ts +35 -0
  236. package/sdk/agents.d.ts.map +1 -1
  237. package/sdk/agents.js +50 -0
  238. package/sdk/agents.js.map +1 -1
  239. package/src/funcs/agentsCreate.ts +172 -0
  240. package/src/funcs/agentsDelete.ts +176 -0
  241. package/src/funcs/agentsInvoke.ts +167 -0
  242. package/src/funcs/agentsStream.ts +191 -0
  243. package/src/funcs/agentsUpdate.ts +176 -0
  244. package/src/lib/config.ts +3 -3
  245. package/src/lib/env.ts +20 -3
  246. package/src/mcp-server/mcp-server.ts +1 -1
  247. package/src/mcp-server/server.ts +11 -1
  248. package/src/mcp-server/tools/agentsCreate.ts +37 -0
  249. package/src/mcp-server/tools/agentsDelete.ts +35 -0
  250. package/src/mcp-server/tools/agentsInvoke.ts +37 -0
  251. package/src/mcp-server/tools/agentsStream.ts +37 -0
  252. package/src/mcp-server/tools/agentsUpdate.ts +37 -0
  253. package/src/models/errors/createagent.ts +80 -0
  254. package/src/models/errors/deleteagent.ts +80 -0
  255. package/src/models/errors/index.ts +4 -0
  256. package/src/models/errors/streamagent.ts +80 -0
  257. package/src/models/errors/updateagent.ts +80 -0
  258. package/src/models/operations/createagent.ts +3021 -0
  259. package/src/models/operations/createbudget.ts +2 -2
  260. package/src/models/operations/createcontact.ts +2 -2
  261. package/src/models/operations/createdataset.ts +2 -2
  262. package/src/models/operations/createdatasetitem.ts +2 -2
  263. package/src/models/operations/createdatasource.ts +2 -2
  264. package/src/models/operations/createeval.ts +28 -28
  265. package/src/models/operations/createtool.ts +54 -54
  266. package/src/models/operations/deleteagent.ts +78 -0
  267. package/src/models/operations/duplicatetool.ts +30 -30
  268. package/src/models/operations/fileget.ts +2 -2
  269. package/src/models/operations/filelist.ts +2 -2
  270. package/src/models/operations/fileupload.ts +2 -2
  271. package/src/models/operations/getagent.ts +87 -387
  272. package/src/models/operations/getalltools.ts +30 -30
  273. package/src/models/operations/getbudget.ts +2 -2
  274. package/src/models/operations/getevals.ts +28 -28
  275. package/src/models/operations/index.ts +5 -0
  276. package/src/models/operations/invokeagent.ts +1569 -0
  277. package/src/models/operations/listagents.ts +8 -321
  278. package/src/models/operations/listagenttasks.ts +7 -0
  279. package/src/models/operations/listbudgets.ts +2 -2
  280. package/src/models/operations/listcontacts.ts +2 -2
  281. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  282. package/src/models/operations/listdatasets.ts +2 -2
  283. package/src/models/operations/listdatasources.ts +2 -2
  284. package/src/models/operations/retrievecontact.ts +2 -2
  285. package/src/models/operations/retrievedatapoint.ts +2 -2
  286. package/src/models/operations/retrievedataset.ts +2 -2
  287. package/src/models/operations/retrievedatasource.ts +2 -2
  288. package/src/models/operations/retrievetool.ts +30 -30
  289. package/src/models/operations/runagent.ts +1441 -1488
  290. package/src/models/operations/streamagent.ts +1367 -0
  291. package/src/models/operations/streamrunagent.ts +1542 -1657
  292. package/src/models/operations/updateagent.ts +3227 -0
  293. package/src/models/operations/updatebudget.ts +2 -2
  294. package/src/models/operations/updatecontact.ts +2 -2
  295. package/src/models/operations/updatedatapoint.ts +2 -2
  296. package/src/models/operations/updatedataset.ts +2 -2
  297. package/src/models/operations/updatedatasource.ts +2 -2
  298. package/src/models/operations/updateeval.ts +28 -28
  299. package/src/models/operations/updatetool.ts +60 -60
  300. package/src/sdk/agents.ts +90 -0
@@ -5,50 +5,50 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  /**
6
6
  * Tool message
7
7
  */
8
- export declare const RoleToolMessage: {
8
+ export declare const RunAgentRoleToolMessage: {
9
9
  readonly Tool: "tool";
10
10
  };
11
11
  /**
12
12
  * Tool message
13
13
  */
14
- export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
14
+ export type RunAgentRoleToolMessage = ClosedEnum<typeof RunAgentRoleToolMessage>;
15
15
  /**
16
16
  * User message
17
17
  */
18
- export declare const RoleUserMessage: {
18
+ export declare const RunAgentRoleUserMessage: {
19
19
  readonly User: "user";
20
20
  };
21
21
  /**
22
22
  * User message
23
23
  */
24
- export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
24
+ export type RunAgentRoleUserMessage = ClosedEnum<typeof RunAgentRoleUserMessage>;
25
25
  /**
26
26
  * Message role (user or tool for continuing executions)
27
27
  */
28
- export type RunAgentRole = RoleUserMessage | RoleToolMessage;
29
- export declare const RunAgentPublicMessagePartKind: {
28
+ export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
29
+ export declare const RunAgentPublicMessagePartAgentsRequestKind: {
30
30
  readonly ToolResult: "tool_result";
31
31
  };
32
- export type RunAgentPublicMessagePartKind = ClosedEnum<typeof RunAgentPublicMessagePartKind>;
32
+ export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<typeof RunAgentPublicMessagePartAgentsRequestKind>;
33
33
  /**
34
34
  * Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
35
35
  */
36
- export type ToolResultPart = {
37
- kind: RunAgentPublicMessagePartKind;
36
+ export type PublicMessagePartToolResultPart = {
37
+ kind: RunAgentPublicMessagePartAgentsRequestKind;
38
38
  toolCallId: string;
39
39
  result?: any | undefined;
40
40
  metadata?: {
41
41
  [k: string]: any;
42
42
  } | undefined;
43
43
  };
44
- export declare const PublicMessagePartKind: {
44
+ export declare const RunAgentPublicMessagePartAgentsKind: {
45
45
  readonly File: "file";
46
46
  };
47
- export type PublicMessagePartKind = ClosedEnum<typeof PublicMessagePartKind>;
47
+ export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<typeof RunAgentPublicMessagePartAgentsKind>;
48
48
  /**
49
49
  * File in URI format. Check in the model's documentation for the supported mime types for the URI format
50
50
  */
51
- export type FileInURIFormat = {
51
+ export type FileFileInURIFormat = {
52
52
  /**
53
53
  * URL for the File content
54
54
  */
@@ -65,7 +65,7 @@ export type FileInURIFormat = {
65
65
  /**
66
66
  * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
67
67
  */
68
- export type BinaryFormat = {
68
+ export type FileBinaryFormat = {
69
69
  /**
70
70
  * base64 encoded content of the file
71
71
  */
@@ -79,36 +79,36 @@ export type BinaryFormat = {
79
79
  */
80
80
  name?: string | undefined;
81
81
  };
82
- export type PublicMessagePartFile = BinaryFormat | FileInURIFormat;
82
+ export type RunAgentPublicMessagePartFile = FileBinaryFormat | FileFileInURIFormat;
83
83
  /**
84
84
  * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
85
85
  */
86
- export type FilePart = {
87
- kind: PublicMessagePartKind;
88
- file: BinaryFormat | FileInURIFormat;
86
+ export type PublicMessagePartFilePart = {
87
+ kind: RunAgentPublicMessagePartAgentsKind;
88
+ file: FileBinaryFormat | FileFileInURIFormat;
89
89
  metadata?: {
90
90
  [k: string]: any;
91
91
  } | undefined;
92
92
  };
93
- export declare const Kind: {
93
+ export declare const RunAgentPublicMessagePartKind: {
94
94
  readonly Text: "text";
95
95
  };
96
- export type Kind = ClosedEnum<typeof Kind>;
96
+ export type RunAgentPublicMessagePartKind = ClosedEnum<typeof RunAgentPublicMessagePartKind>;
97
97
  /**
98
98
  * Text content part. Use this to send text messages to the agent.
99
99
  */
100
- export type TextPart = {
101
- kind: Kind;
100
+ export type PublicMessagePartTextPart = {
101
+ kind: RunAgentPublicMessagePartKind;
102
102
  text: string;
103
103
  };
104
104
  /**
105
105
  * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
106
106
  */
107
- export type PublicMessagePart = TextPart | FilePart | ToolResultPart;
107
+ export type RunAgentPublicMessagePart = PublicMessagePartTextPart | PublicMessagePartFilePart | PublicMessagePartToolResultPart;
108
108
  /**
109
109
  * The A2A format message containing the task for the agent to perform.
110
110
  */
111
- export type Message = {
111
+ export type RunAgentMessage = {
112
112
  /**
113
113
  * Optional A2A message ID in ULID format
114
114
  */
@@ -116,16 +116,16 @@ export type Message = {
116
116
  /**
117
117
  * Message role (user or tool for continuing executions)
118
118
  */
119
- role: RoleUserMessage | RoleToolMessage;
119
+ role: RunAgentRoleUserMessage | RunAgentRoleToolMessage;
120
120
  /**
121
121
  * A2A message parts (text, file, or tool_result only)
122
122
  */
123
- parts: Array<TextPart | FilePart | ToolResultPart>;
123
+ parts: Array<PublicMessagePartTextPart | PublicMessagePartFilePart | PublicMessagePartToolResultPart>;
124
124
  };
125
125
  /**
126
126
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
127
127
  */
128
- export type Contact = {
128
+ export type RunAgentContact = {
129
129
  /**
130
130
  * Unique identifier for the contact
131
131
  */
@@ -169,42 +169,17 @@ export type RunAgentThread = {
169
169
  /**
170
170
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
171
171
  */
172
- export type Memory = {
172
+ export type RunAgentMemory = {
173
173
  /**
174
174
  * 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.
175
175
  */
176
176
  entityId: string;
177
177
  };
178
- export declare const RunAgentKnowledgeBaseConfigurationType: {
179
- readonly Query: "query";
180
- };
181
- export type RunAgentKnowledgeBaseConfigurationType = ClosedEnum<typeof RunAgentKnowledgeBaseConfigurationType>;
182
- /**
183
- * Defines the configuration settings for a static query.
184
- */
185
- export type KnowledgeBaseStaticQuery = {
186
- type: RunAgentKnowledgeBaseConfigurationType;
187
- query: string;
188
- };
189
- export declare const KnowledgeBaseConfigurationType: {
190
- readonly LastUserMessage: "last_user_message";
191
- };
192
- export type KnowledgeBaseConfigurationType = ClosedEnum<typeof KnowledgeBaseConfigurationType>;
193
- /**
194
- * Defines the configuration settings for a last user message type retrieval.
195
- */
196
- export type KnowledgeBaseLastUserMessage = {
197
- type: KnowledgeBaseConfigurationType;
198
- };
199
- /**
200
- * Defines the configuration settings which can either be for a user message or a text entry.
201
- */
202
- export type KnowledgeBaseConfiguration = KnowledgeBaseStaticQuery | KnowledgeBaseLastUserMessage;
203
- export type KnowledgeBases = {
178
+ export type RunAgentKnowledgeBases = {
204
179
  /**
205
- * Defines the configuration settings which can either be for a user message or a text entry.
180
+ * Unique identifier of the knowledge base to search
206
181
  */
207
- configuration: KnowledgeBaseStaticQuery | KnowledgeBaseLastUserMessage;
182
+ knowledgeId: string;
208
183
  };
209
184
  export type TeamOfAgents = {
210
185
  /**
@@ -216,34 +191,49 @@ export type TeamOfAgents = {
216
191
  */
217
192
  role?: string | undefined;
218
193
  };
219
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type: {
194
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type: {
220
195
  readonly Function: "function";
221
196
  };
222
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type>;
223
- export type RunAgentRequestToolFunction = {
197
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
198
+ export type AgentToolInputRunFunction = {
199
+ /**
200
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
201
+ */
224
202
  name: string;
203
+ /**
204
+ * A description of what the function does, used by the model to choose when and how to call the function.
205
+ */
225
206
  description?: string | undefined;
207
+ /**
208
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
209
+ */
226
210
  strict?: boolean | undefined;
211
+ /**
212
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
213
+ */
227
214
  parameters?: {
228
215
  [k: string]: any;
229
216
  } | undefined;
230
217
  };
231
218
  /**
232
- * Custom function tool with configurable parameters
219
+ * Function tool with inline definition for on-the-fly creation in run endpoint
233
220
  */
234
- export type FunctionTool = {
235
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type;
236
- id?: string | undefined;
221
+ export type FunctionToolRun = {
222
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
223
+ /**
224
+ * Unique key of the tool as it will be displayed in the UI
225
+ */
237
226
  key: string;
227
+ id?: string | undefined;
238
228
  displayName?: string | undefined;
239
229
  description?: string | undefined;
230
+ function: AgentToolInputRunFunction;
240
231
  requiresApproval?: boolean | undefined;
241
- function: RunAgentRequestToolFunction;
242
232
  };
243
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type: {
233
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type: {
244
234
  readonly Code: "code";
245
235
  };
246
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type>;
236
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
247
237
  export declare const Language: {
248
238
  readonly Python: "python";
249
239
  };
@@ -262,30 +252,27 @@ export type CodeTool = {
262
252
  code: string;
263
253
  };
264
254
  /**
265
- * Executes code in a secure sandbox environment
255
+ * Code execution tool with inline definition for on-the-fly creation in run endpoint
266
256
  */
267
- export type CodeExecutionTool = {
257
+ export type CodeToolRun = {
258
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
268
259
  /**
269
260
  * Unique key of the tool as it will be displayed in the UI
270
261
  */
271
262
  key: string;
272
- /**
273
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
274
- */
275
- displayName: string;
263
+ id?: string | undefined;
264
+ displayName?: string | undefined;
276
265
  /**
277
266
  * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
278
267
  */
279
268
  description: string;
280
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type;
281
269
  codeTool: CodeTool;
282
- id?: string | undefined;
283
270
  requiresApproval?: boolean | undefined;
284
271
  };
285
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type: {
272
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type: {
286
273
  readonly Http: "http";
287
274
  };
288
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type>;
275
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type>;
289
276
  /**
290
277
  * The HTTP method to use.
291
278
  */
@@ -327,7 +314,7 @@ export type Blueprint = {
327
314
  /**
328
315
  * The type of the argument.
329
316
  */
330
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType: {
317
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType: {
331
318
  readonly String: "string";
332
319
  readonly Number: "number";
333
320
  readonly Boolean: "boolean";
@@ -335,7 +322,7 @@ export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettings
335
322
  /**
336
323
  * The type of the argument.
337
324
  */
338
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType>;
325
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType>;
339
326
  /**
340
327
  * The default value of the argument.
341
328
  */
@@ -344,7 +331,7 @@ export type Arguments = {
344
331
  /**
345
332
  * The type of the argument.
346
333
  */
347
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType;
334
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
348
335
  /**
349
336
  * A description of the argument.
350
337
  */
@@ -371,155 +358,185 @@ export type Http = {
371
358
  } | undefined;
372
359
  };
373
360
  /**
374
- * Makes HTTP requests to external APIs
361
+ * HTTP tool with inline definition for on-the-fly creation in run endpoint
375
362
  */
376
- export type HTTPTool = {
377
- id?: string | undefined;
363
+ export type HTTPToolRun = {
364
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
378
365
  /**
379
366
  * Unique key of the tool as it will be displayed in the UI
380
367
  */
381
368
  key: string;
382
- /**
383
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
384
- */
385
- displayName: string;
369
+ id?: string | undefined;
370
+ displayName?: string | undefined;
386
371
  /**
387
372
  * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
388
373
  */
389
374
  description: string;
390
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type;
391
375
  http: Http;
392
376
  requiresApproval?: boolean | undefined;
393
377
  };
394
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type: {
378
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type: {
395
379
  readonly CurrentDate: "current_date";
396
380
  };
397
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type>;
381
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type>;
398
382
  /**
399
- * Provides the current date and time
383
+ * Returns the current date and time
400
384
  */
401
- export type CurrentDateTool = {
402
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type;
385
+ export type AgentToolInputRunCurrentDateTool = {
386
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
387
+ /**
388
+ * Whether this tool requires approval before execution
389
+ */
403
390
  requiresApproval?: boolean | undefined;
404
391
  };
405
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type: {
392
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type: {
406
393
  readonly QueryKnowledgeBase: "query_knowledge_base";
407
394
  };
408
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type>;
395
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type>;
409
396
  /**
410
397
  * Queries knowledge bases for information
411
398
  */
412
- export type QueryKnowledgeBaseTool = {
413
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type;
399
+ export type AgentToolInputRunQueryKnowledgeBaseTool = {
400
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
401
+ /**
402
+ * Whether this tool requires approval before execution
403
+ */
414
404
  requiresApproval?: boolean | undefined;
415
405
  };
416
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type: {
406
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type: {
417
407
  readonly RetrieveKnowledgeBases: "retrieve_knowledge_bases";
418
408
  };
419
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type>;
409
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type>;
420
410
  /**
421
411
  * Lists available knowledge bases
422
412
  */
423
- export type RetrieveKnowledgeBasesTool = {
424
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type;
413
+ export type AgentToolInputRunRetrieveKnowledgeBasesTool = {
414
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
415
+ /**
416
+ * Whether this tool requires approval before execution
417
+ */
425
418
  requiresApproval?: boolean | undefined;
426
419
  };
427
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type: {
420
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type: {
428
421
  readonly DeleteMemoryDocument: "delete_memory_document";
429
422
  };
430
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type>;
423
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type>;
431
424
  /**
432
- * Deletes a memory store
425
+ * Deletes documents from memory stores
433
426
  */
434
- export type DeleteMemoryStoreTool = {
435
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type;
427
+ export type AgentToolInputRunDeleteMemoryDocumentTool = {
428
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
429
+ /**
430
+ * Whether this tool requires approval before execution
431
+ */
436
432
  requiresApproval?: boolean | undefined;
437
433
  };
438
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType: {
434
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType: {
439
435
  readonly RetrieveMemoryStores: "retrieve_memory_stores";
440
436
  };
441
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType>;
437
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType>;
442
438
  /**
443
439
  * Lists available memory stores
444
440
  */
445
- export type RetrieveMemoryStoresTool = {
446
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType;
441
+ export type AgentToolInputRunRetrieveMemoryStoresTool = {
442
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
443
+ /**
444
+ * Whether this tool requires approval before execution
445
+ */
447
446
  requiresApproval?: boolean | undefined;
448
447
  };
449
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType: {
448
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType: {
450
449
  readonly WriteMemoryStore: "write_memory_store";
451
450
  };
452
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType>;
451
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType>;
453
452
  /**
454
453
  * Writes information to agent memory stores
455
454
  */
456
- export type WriteMemoryStoreTool = {
457
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType;
455
+ export type AgentToolInputRunWriteMemoryStoreTool = {
456
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
457
+ /**
458
+ * Whether this tool requires approval before execution
459
+ */
458
460
  requiresApproval?: boolean | undefined;
459
461
  };
460
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType: {
462
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodyType: {
461
463
  readonly QueryMemoryStore: "query_memory_store";
462
464
  };
463
- export type RunAgentRunAgentRequestToolAgentsRequestRequestBodyType = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType>;
465
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodyType = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType>;
464
466
  /**
465
467
  * Queries agent memory stores for context
466
468
  */
467
- export type QueryMemoryStoreTool = {
468
- type: RunAgentRunAgentRequestToolAgentsRequestRequestBodyType;
469
+ export type AgentToolInputRunQueryMemoryStoreTool = {
470
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType;
471
+ /**
472
+ * Whether this tool requires approval before execution
473
+ */
469
474
  requiresApproval?: boolean | undefined;
470
475
  };
471
- export declare const RunAgentRunAgentRequestToolAgentsRequestType: {
476
+ export declare const RunAgentAgentToolInputRunAgentsRequestType: {
472
477
  readonly RetrieveAgents: "retrieve_agents";
473
478
  };
474
- export type RunAgentRunAgentRequestToolAgentsRequestType = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsRequestType>;
479
+ export type RunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestType>;
475
480
  /**
476
481
  * Retrieves available agents in the system
477
482
  */
478
- export type RetrieveAgentsTool = {
479
- type: RunAgentRunAgentRequestToolAgentsRequestType;
483
+ export type AgentToolInputRunRetrieveAgentsTool = {
484
+ type: RunAgentAgentToolInputRunAgentsRequestType;
485
+ /**
486
+ * Whether this tool requires approval before execution
487
+ */
480
488
  requiresApproval?: boolean | undefined;
481
489
  };
482
- export declare const RunAgentRunAgentRequestToolAgentsType: {
490
+ export declare const RunAgentAgentToolInputRunAgentsType: {
483
491
  readonly CallSubAgent: "call_sub_agent";
484
492
  };
485
- export type RunAgentRunAgentRequestToolAgentsType = ClosedEnum<typeof RunAgentRunAgentRequestToolAgentsType>;
493
+ export type RunAgentAgentToolInputRunAgentsType = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsType>;
486
494
  /**
487
495
  * Delegates tasks to specialized sub-agents
488
496
  */
489
- export type CallSubAgentTool = {
490
- type: RunAgentRunAgentRequestToolAgentsType;
497
+ export type AgentToolInputRunCallSubAgentTool = {
498
+ type: RunAgentAgentToolInputRunAgentsType;
499
+ /**
500
+ * Whether this tool requires approval before execution
501
+ */
491
502
  requiresApproval?: boolean | undefined;
492
503
  };
493
- export declare const RunAgentRunAgentRequestToolType: {
504
+ export declare const RunAgentAgentToolInputRunType: {
494
505
  readonly WebScraper: "web_scraper";
495
506
  };
496
- export type RunAgentRunAgentRequestToolType = ClosedEnum<typeof RunAgentRunAgentRequestToolType>;
507
+ export type RunAgentAgentToolInputRunType = ClosedEnum<typeof RunAgentAgentToolInputRunType>;
497
508
  /**
498
509
  * Scrapes and extracts content from web pages
499
510
  */
500
- export type WebScraperTool = {
501
- type: RunAgentRunAgentRequestToolType;
511
+ export type AgentToolInputRunWebScraperTool = {
512
+ type: RunAgentAgentToolInputRunType;
513
+ /**
514
+ * Whether this tool requires approval before execution
515
+ */
502
516
  requiresApproval?: boolean | undefined;
503
517
  };
504
- export declare const RunAgentRequestToolType: {
518
+ export declare const AgentToolInputRunType: {
505
519
  readonly GoogleSearch: "google_search";
506
520
  };
507
- export type RunAgentRequestToolType = ClosedEnum<typeof RunAgentRequestToolType>;
521
+ export type AgentToolInputRunType = ClosedEnum<typeof AgentToolInputRunType>;
508
522
  /**
509
523
  * Performs Google searches to retrieve web content
510
524
  */
511
- export type GoogleSearchTool = {
512
- type: RunAgentRequestToolType;
525
+ export type AgentToolInputRunGoogleSearchTool = {
526
+ type: AgentToolInputRunType;
527
+ /**
528
+ * Whether this tool requires approval before execution
529
+ */
513
530
  requiresApproval?: boolean | undefined;
514
531
  };
515
532
  /**
516
- * Available tools for agent execution. Each tool provides specific capabilities to interact with external systems, retrieve information, or perform specialized tasks.
533
+ * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (http, code, function) support full inline definitions for on-the-fly creation.
517
534
  */
518
- export type RunAgentRequestTool = HTTPTool | CodeExecutionTool | FunctionTool | GoogleSearchTool | WebScraperTool | CallSubAgentTool | RetrieveAgentsTool | QueryMemoryStoreTool | WriteMemoryStoreTool | RetrieveMemoryStoresTool | DeleteMemoryStoreTool | RetrieveKnowledgeBasesTool | QueryKnowledgeBaseTool | CurrentDateTool;
535
+ export type AgentToolInputRun = HTTPToolRun | CodeToolRun | FunctionToolRun | AgentToolInputRunGoogleSearchTool | AgentToolInputRunWebScraperTool | AgentToolInputRunCallSubAgentTool | AgentToolInputRunRetrieveAgentsTool | AgentToolInputRunQueryMemoryStoreTool | AgentToolInputRunWriteMemoryStoreTool | AgentToolInputRunRetrieveMemoryStoresTool | AgentToolInputRunDeleteMemoryDocumentTool | AgentToolInputRunRetrieveKnowledgeBasesTool | AgentToolInputRunQueryKnowledgeBaseTool | AgentToolInputRunCurrentDateTool;
519
536
  /**
520
537
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
521
538
  */
522
- export declare const ToolApprovalRequired: {
539
+ export declare const RunAgentToolApprovalRequired: {
523
540
  readonly All: "all";
524
541
  readonly RespectTool: "respect_tool";
525
542
  readonly None: "none";
@@ -527,16 +544,16 @@ export declare const ToolApprovalRequired: {
527
544
  /**
528
545
  * 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.
529
546
  */
530
- export type ToolApprovalRequired = ClosedEnum<typeof ToolApprovalRequired>;
531
- export type Settings = {
547
+ export type RunAgentToolApprovalRequired = ClosedEnum<typeof RunAgentToolApprovalRequired>;
548
+ export type RunAgentSettings = {
532
549
  /**
533
550
  * Tools available to the agent
534
551
  */
535
- tools: Array<HTTPTool | CodeExecutionTool | FunctionTool | GoogleSearchTool | WebScraperTool | CallSubAgentTool | RetrieveAgentsTool | QueryMemoryStoreTool | WriteMemoryStoreTool | RetrieveMemoryStoresTool | DeleteMemoryStoreTool | RetrieveKnowledgeBasesTool | QueryKnowledgeBaseTool | CurrentDateTool>;
552
+ tools: Array<HTTPToolRun | CodeToolRun | FunctionToolRun | AgentToolInputRunGoogleSearchTool | AgentToolInputRunWebScraperTool | AgentToolInputRunCallSubAgentTool | AgentToolInputRunRetrieveAgentsTool | AgentToolInputRunQueryMemoryStoreTool | AgentToolInputRunWriteMemoryStoreTool | AgentToolInputRunRetrieveMemoryStoresTool | AgentToolInputRunDeleteMemoryDocumentTool | AgentToolInputRunRetrieveKnowledgeBasesTool | AgentToolInputRunQueryKnowledgeBaseTool | AgentToolInputRunCurrentDateTool>;
536
553
  /**
537
554
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
538
555
  */
539
- toolApprovalRequired?: ToolApprovalRequired | undefined;
556
+ toolApprovalRequired?: RunAgentToolApprovalRequired | undefined;
540
557
  /**
541
558
  * Maximum iterations(llm calls) before the agent will stop executing.
542
559
  */
@@ -574,7 +591,7 @@ export type RunAgentRequestBody = {
574
591
  /**
575
592
  * The A2A format message containing the task for the agent to perform.
576
593
  */
577
- message: Message;
594
+ message: RunAgentMessage;
578
595
  /**
579
596
  * Optional variables for template replacement in system prompt, instructions, and messages
580
597
  */
@@ -584,7 +601,7 @@ export type RunAgentRequestBody = {
584
601
  /**
585
602
  * Information about the contact making the request. If the contact does not exist, it will be created automatically.
586
603
  */
587
- contact?: Contact | undefined;
604
+ contact?: RunAgentContact | undefined;
588
605
  /**
589
606
  * Thread information to group related requests
590
607
  */
@@ -592,7 +609,7 @@ export type RunAgentRequestBody = {
592
609
  /**
593
610
  * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
594
611
  */
595
- memory?: Memory | undefined;
612
+ memory?: RunAgentMemory | undefined;
596
613
  /**
597
614
  * 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.
598
615
  */
@@ -609,12 +626,15 @@ export type RunAgentRequestBody = {
609
626
  * The list of keys of the memory stores that are accessible to the agent.
610
627
  */
611
628
  memoryStores?: Array<string> | undefined;
612
- knowledgeBases?: Array<KnowledgeBases> | undefined;
629
+ /**
630
+ * Knowledge base configurations for the agent to access
631
+ */
632
+ knowledgeBases?: Array<RunAgentKnowledgeBases> | undefined;
613
633
  /**
614
634
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
615
635
  */
616
636
  teamOfAgents?: Array<TeamOfAgents> | undefined;
617
- settings: Settings;
637
+ settings: RunAgentSettings;
618
638
  /**
619
639
  * Optional metadata for the agent run as key-value pairs that will be included in traces
620
640
  */
@@ -670,7 +690,7 @@ export type RunAgentAgentsRole = ClosedEnum<typeof RunAgentAgentsRole>;
670
690
  /**
671
691
  * Optional status message
672
692
  */
673
- export type RunAgentMessage = {
693
+ export type RunAgentAgentsMessage = {
674
694
  kind: RunAgentAgentsKind;
675
695
  messageId: string;
676
696
  /**
@@ -694,7 +714,7 @@ export type RunAgentStatus = {
694
714
  /**
695
715
  * Optional status message
696
716
  */
697
- message?: RunAgentMessage | undefined;
717
+ message?: RunAgentAgentsMessage | undefined;
698
718
  };
699
719
  /**
700
720
  * A2A Task response format
@@ -705,7 +725,7 @@ export type RunAgentResponseBody = {
705
725
  */
706
726
  id: string;
707
727
  /**
708
- * The context ID (workspace ID)
728
+ * The correlation ID for this execution
709
729
  */
710
730
  contextId: string;
711
731
  /**
@@ -717,44 +737,44 @@ export type RunAgentResponseBody = {
717
737
  */
718
738
  status: RunAgentStatus;
719
739
  /**
720
- * Task metadata
740
+ * Task metadata containing workspace_id and trace_id for feedback
721
741
  */
722
742
  metadata?: {
723
743
  [k: string]: any;
724
744
  } | undefined;
725
745
  };
726
746
  /** @internal */
727
- export declare const RoleToolMessage$inboundSchema: z.ZodNativeEnum<typeof RoleToolMessage>;
747
+ export declare const RunAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<typeof RunAgentRoleToolMessage>;
728
748
  /** @internal */
729
- export declare const RoleToolMessage$outboundSchema: z.ZodNativeEnum<typeof RoleToolMessage>;
749
+ export declare const RunAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<typeof RunAgentRoleToolMessage>;
730
750
  /**
731
751
  * @internal
732
752
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
733
753
  */
734
- export declare namespace RoleToolMessage$ {
735
- /** @deprecated use `RoleToolMessage$inboundSchema` instead. */
754
+ export declare namespace RunAgentRoleToolMessage$ {
755
+ /** @deprecated use `RunAgentRoleToolMessage$inboundSchema` instead. */
736
756
  const inboundSchema: z.ZodNativeEnum<{
737
757
  readonly Tool: "tool";
738
758
  }>;
739
- /** @deprecated use `RoleToolMessage$outboundSchema` instead. */
759
+ /** @deprecated use `RunAgentRoleToolMessage$outboundSchema` instead. */
740
760
  const outboundSchema: z.ZodNativeEnum<{
741
761
  readonly Tool: "tool";
742
762
  }>;
743
763
  }
744
764
  /** @internal */
745
- export declare const RoleUserMessage$inboundSchema: z.ZodNativeEnum<typeof RoleUserMessage>;
765
+ export declare const RunAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<typeof RunAgentRoleUserMessage>;
746
766
  /** @internal */
747
- export declare const RoleUserMessage$outboundSchema: z.ZodNativeEnum<typeof RoleUserMessage>;
767
+ export declare const RunAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<typeof RunAgentRoleUserMessage>;
748
768
  /**
749
769
  * @internal
750
770
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
751
771
  */
752
- export declare namespace RoleUserMessage$ {
753
- /** @deprecated use `RoleUserMessage$inboundSchema` instead. */
772
+ export declare namespace RunAgentRoleUserMessage$ {
773
+ /** @deprecated use `RunAgentRoleUserMessage$inboundSchema` instead. */
754
774
  const inboundSchema: z.ZodNativeEnum<{
755
775
  readonly User: "user";
756
776
  }>;
757
- /** @deprecated use `RoleUserMessage$outboundSchema` instead. */
777
+ /** @deprecated use `RunAgentRoleUserMessage$outboundSchema` instead. */
758
778
  const outboundSchema: z.ZodNativeEnum<{
759
779
  readonly User: "user";
760
780
  }>;
@@ -780,27 +800,27 @@ export declare namespace RunAgentRole$ {
780
800
  export declare function runAgentRoleToJSON(runAgentRole: RunAgentRole): string;
781
801
  export declare function runAgentRoleFromJSON(jsonString: string): SafeParseResult<RunAgentRole, SDKValidationError>;
782
802
  /** @internal */
783
- export declare const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
803
+ export declare const RunAgentPublicMessagePartAgentsRequestKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind>;
784
804
  /** @internal */
785
- export declare const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
805
+ export declare const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind>;
786
806
  /**
787
807
  * @internal
788
808
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
789
809
  */
790
- export declare namespace RunAgentPublicMessagePartKind$ {
791
- /** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
810
+ export declare namespace RunAgentPublicMessagePartAgentsRequestKind$ {
811
+ /** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
792
812
  const inboundSchema: z.ZodNativeEnum<{
793
813
  readonly ToolResult: "tool_result";
794
814
  }>;
795
- /** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
815
+ /** @deprecated use `RunAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
796
816
  const outboundSchema: z.ZodNativeEnum<{
797
817
  readonly ToolResult: "tool_result";
798
818
  }>;
799
819
  }
800
820
  /** @internal */
801
- export declare const ToolResultPart$inboundSchema: z.ZodType<ToolResultPart, z.ZodTypeDef, unknown>;
821
+ export declare const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<PublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
802
822
  /** @internal */
803
- export type ToolResultPart$Outbound = {
823
+ export type PublicMessagePartToolResultPart$Outbound = {
804
824
  kind: string;
805
825
  tool_call_id: string;
806
826
  result?: any | undefined;
@@ -809,222 +829,222 @@ export type ToolResultPart$Outbound = {
809
829
  } | undefined;
810
830
  };
811
831
  /** @internal */
812
- export declare const ToolResultPart$outboundSchema: z.ZodType<ToolResultPart$Outbound, z.ZodTypeDef, ToolResultPart>;
832
+ export declare const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<PublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, PublicMessagePartToolResultPart>;
813
833
  /**
814
834
  * @internal
815
835
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
816
836
  */
817
- export declare namespace ToolResultPart$ {
818
- /** @deprecated use `ToolResultPart$inboundSchema` instead. */
819
- const inboundSchema: z.ZodType<ToolResultPart, z.ZodTypeDef, unknown>;
820
- /** @deprecated use `ToolResultPart$outboundSchema` instead. */
821
- const outboundSchema: z.ZodType<ToolResultPart$Outbound, z.ZodTypeDef, ToolResultPart>;
822
- /** @deprecated use `ToolResultPart$Outbound` instead. */
823
- type Outbound = ToolResultPart$Outbound;
837
+ export declare namespace PublicMessagePartToolResultPart$ {
838
+ /** @deprecated use `PublicMessagePartToolResultPart$inboundSchema` instead. */
839
+ const inboundSchema: z.ZodType<PublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
840
+ /** @deprecated use `PublicMessagePartToolResultPart$outboundSchema` instead. */
841
+ const outboundSchema: z.ZodType<PublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, PublicMessagePartToolResultPart>;
842
+ /** @deprecated use `PublicMessagePartToolResultPart$Outbound` instead. */
843
+ type Outbound = PublicMessagePartToolResultPart$Outbound;
824
844
  }
825
- export declare function toolResultPartToJSON(toolResultPart: ToolResultPart): string;
826
- export declare function toolResultPartFromJSON(jsonString: string): SafeParseResult<ToolResultPart, SDKValidationError>;
845
+ export declare function publicMessagePartToolResultPartToJSON(publicMessagePartToolResultPart: PublicMessagePartToolResultPart): string;
846
+ export declare function publicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError>;
827
847
  /** @internal */
828
- export declare const PublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof PublicMessagePartKind>;
848
+ export declare const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
829
849
  /** @internal */
830
- export declare const PublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof PublicMessagePartKind>;
850
+ export declare const RunAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
831
851
  /**
832
852
  * @internal
833
853
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
834
854
  */
835
- export declare namespace PublicMessagePartKind$ {
836
- /** @deprecated use `PublicMessagePartKind$inboundSchema` instead. */
855
+ export declare namespace RunAgentPublicMessagePartAgentsKind$ {
856
+ /** @deprecated use `RunAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
837
857
  const inboundSchema: z.ZodNativeEnum<{
838
858
  readonly File: "file";
839
859
  }>;
840
- /** @deprecated use `PublicMessagePartKind$outboundSchema` instead. */
860
+ /** @deprecated use `RunAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
841
861
  const outboundSchema: z.ZodNativeEnum<{
842
862
  readonly File: "file";
843
863
  }>;
844
864
  }
845
865
  /** @internal */
846
- export declare const FileInURIFormat$inboundSchema: z.ZodType<FileInURIFormat, z.ZodTypeDef, unknown>;
866
+ export declare const FileFileInURIFormat$inboundSchema: z.ZodType<FileFileInURIFormat, z.ZodTypeDef, unknown>;
847
867
  /** @internal */
848
- export type FileInURIFormat$Outbound = {
868
+ export type FileFileInURIFormat$Outbound = {
849
869
  uri: string;
850
870
  mimeType?: string | undefined;
851
871
  name?: string | undefined;
852
872
  };
853
873
  /** @internal */
854
- export declare const FileInURIFormat$outboundSchema: z.ZodType<FileInURIFormat$Outbound, z.ZodTypeDef, FileInURIFormat>;
874
+ export declare const FileFileInURIFormat$outboundSchema: z.ZodType<FileFileInURIFormat$Outbound, z.ZodTypeDef, FileFileInURIFormat>;
855
875
  /**
856
876
  * @internal
857
877
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
858
878
  */
859
- export declare namespace FileInURIFormat$ {
860
- /** @deprecated use `FileInURIFormat$inboundSchema` instead. */
861
- const inboundSchema: z.ZodType<FileInURIFormat, z.ZodTypeDef, unknown>;
862
- /** @deprecated use `FileInURIFormat$outboundSchema` instead. */
863
- const outboundSchema: z.ZodType<FileInURIFormat$Outbound, z.ZodTypeDef, FileInURIFormat>;
864
- /** @deprecated use `FileInURIFormat$Outbound` instead. */
865
- type Outbound = FileInURIFormat$Outbound;
879
+ export declare namespace FileFileInURIFormat$ {
880
+ /** @deprecated use `FileFileInURIFormat$inboundSchema` instead. */
881
+ const inboundSchema: z.ZodType<FileFileInURIFormat, z.ZodTypeDef, unknown>;
882
+ /** @deprecated use `FileFileInURIFormat$outboundSchema` instead. */
883
+ const outboundSchema: z.ZodType<FileFileInURIFormat$Outbound, z.ZodTypeDef, FileFileInURIFormat>;
884
+ /** @deprecated use `FileFileInURIFormat$Outbound` instead. */
885
+ type Outbound = FileFileInURIFormat$Outbound;
866
886
  }
867
- export declare function fileInURIFormatToJSON(fileInURIFormat: FileInURIFormat): string;
868
- export declare function fileInURIFormatFromJSON(jsonString: string): SafeParseResult<FileInURIFormat, SDKValidationError>;
887
+ export declare function fileFileInURIFormatToJSON(fileFileInURIFormat: FileFileInURIFormat): string;
888
+ export declare function fileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<FileFileInURIFormat, SDKValidationError>;
869
889
  /** @internal */
870
- export declare const BinaryFormat$inboundSchema: z.ZodType<BinaryFormat, z.ZodTypeDef, unknown>;
890
+ export declare const FileBinaryFormat$inboundSchema: z.ZodType<FileBinaryFormat, z.ZodTypeDef, unknown>;
871
891
  /** @internal */
872
- export type BinaryFormat$Outbound = {
892
+ export type FileBinaryFormat$Outbound = {
873
893
  bytes: string;
874
894
  mimeType?: string | undefined;
875
895
  name?: string | undefined;
876
896
  };
877
897
  /** @internal */
878
- export declare const BinaryFormat$outboundSchema: z.ZodType<BinaryFormat$Outbound, z.ZodTypeDef, BinaryFormat>;
898
+ export declare const FileBinaryFormat$outboundSchema: z.ZodType<FileBinaryFormat$Outbound, z.ZodTypeDef, FileBinaryFormat>;
879
899
  /**
880
900
  * @internal
881
901
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
882
902
  */
883
- export declare namespace BinaryFormat$ {
884
- /** @deprecated use `BinaryFormat$inboundSchema` instead. */
885
- const inboundSchema: z.ZodType<BinaryFormat, z.ZodTypeDef, unknown>;
886
- /** @deprecated use `BinaryFormat$outboundSchema` instead. */
887
- const outboundSchema: z.ZodType<BinaryFormat$Outbound, z.ZodTypeDef, BinaryFormat>;
888
- /** @deprecated use `BinaryFormat$Outbound` instead. */
889
- type Outbound = BinaryFormat$Outbound;
903
+ export declare namespace FileBinaryFormat$ {
904
+ /** @deprecated use `FileBinaryFormat$inboundSchema` instead. */
905
+ const inboundSchema: z.ZodType<FileBinaryFormat, z.ZodTypeDef, unknown>;
906
+ /** @deprecated use `FileBinaryFormat$outboundSchema` instead. */
907
+ const outboundSchema: z.ZodType<FileBinaryFormat$Outbound, z.ZodTypeDef, FileBinaryFormat>;
908
+ /** @deprecated use `FileBinaryFormat$Outbound` instead. */
909
+ type Outbound = FileBinaryFormat$Outbound;
890
910
  }
891
- export declare function binaryFormatToJSON(binaryFormat: BinaryFormat): string;
892
- export declare function binaryFormatFromJSON(jsonString: string): SafeParseResult<BinaryFormat, SDKValidationError>;
911
+ export declare function fileBinaryFormatToJSON(fileBinaryFormat: FileBinaryFormat): string;
912
+ export declare function fileBinaryFormatFromJSON(jsonString: string): SafeParseResult<FileBinaryFormat, SDKValidationError>;
893
913
  /** @internal */
894
- export declare const PublicMessagePartFile$inboundSchema: z.ZodType<PublicMessagePartFile, z.ZodTypeDef, unknown>;
914
+ export declare const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<RunAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
895
915
  /** @internal */
896
- export type PublicMessagePartFile$Outbound = BinaryFormat$Outbound | FileInURIFormat$Outbound;
916
+ export type RunAgentPublicMessagePartFile$Outbound = FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
897
917
  /** @internal */
898
- export declare const PublicMessagePartFile$outboundSchema: z.ZodType<PublicMessagePartFile$Outbound, z.ZodTypeDef, PublicMessagePartFile>;
918
+ export declare const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<RunAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartFile>;
899
919
  /**
900
920
  * @internal
901
921
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
902
922
  */
903
- export declare namespace PublicMessagePartFile$ {
904
- /** @deprecated use `PublicMessagePartFile$inboundSchema` instead. */
905
- const inboundSchema: z.ZodType<PublicMessagePartFile, z.ZodTypeDef, unknown>;
906
- /** @deprecated use `PublicMessagePartFile$outboundSchema` instead. */
907
- const outboundSchema: z.ZodType<PublicMessagePartFile$Outbound, z.ZodTypeDef, PublicMessagePartFile>;
908
- /** @deprecated use `PublicMessagePartFile$Outbound` instead. */
909
- type Outbound = PublicMessagePartFile$Outbound;
923
+ export declare namespace RunAgentPublicMessagePartFile$ {
924
+ /** @deprecated use `RunAgentPublicMessagePartFile$inboundSchema` instead. */
925
+ const inboundSchema: z.ZodType<RunAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
926
+ /** @deprecated use `RunAgentPublicMessagePartFile$outboundSchema` instead. */
927
+ const outboundSchema: z.ZodType<RunAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartFile>;
928
+ /** @deprecated use `RunAgentPublicMessagePartFile$Outbound` instead. */
929
+ type Outbound = RunAgentPublicMessagePartFile$Outbound;
910
930
  }
911
- export declare function publicMessagePartFileToJSON(publicMessagePartFile: PublicMessagePartFile): string;
912
- export declare function publicMessagePartFileFromJSON(jsonString: string): SafeParseResult<PublicMessagePartFile, SDKValidationError>;
931
+ export declare function runAgentPublicMessagePartFileToJSON(runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile): string;
932
+ export declare function runAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError>;
913
933
  /** @internal */
914
- export declare const FilePart$inboundSchema: z.ZodType<FilePart, z.ZodTypeDef, unknown>;
934
+ export declare const PublicMessagePartFilePart$inboundSchema: z.ZodType<PublicMessagePartFilePart, z.ZodTypeDef, unknown>;
915
935
  /** @internal */
916
- export type FilePart$Outbound = {
936
+ export type PublicMessagePartFilePart$Outbound = {
917
937
  kind: string;
918
- file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
938
+ file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
919
939
  metadata?: {
920
940
  [k: string]: any;
921
941
  } | undefined;
922
942
  };
923
943
  /** @internal */
924
- export declare const FilePart$outboundSchema: z.ZodType<FilePart$Outbound, z.ZodTypeDef, FilePart>;
944
+ export declare const PublicMessagePartFilePart$outboundSchema: z.ZodType<PublicMessagePartFilePart$Outbound, z.ZodTypeDef, PublicMessagePartFilePart>;
925
945
  /**
926
946
  * @internal
927
947
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
928
948
  */
929
- export declare namespace FilePart$ {
930
- /** @deprecated use `FilePart$inboundSchema` instead. */
931
- const inboundSchema: z.ZodType<FilePart, z.ZodTypeDef, unknown>;
932
- /** @deprecated use `FilePart$outboundSchema` instead. */
933
- const outboundSchema: z.ZodType<FilePart$Outbound, z.ZodTypeDef, FilePart>;
934
- /** @deprecated use `FilePart$Outbound` instead. */
935
- type Outbound = FilePart$Outbound;
949
+ export declare namespace PublicMessagePartFilePart$ {
950
+ /** @deprecated use `PublicMessagePartFilePart$inboundSchema` instead. */
951
+ const inboundSchema: z.ZodType<PublicMessagePartFilePart, z.ZodTypeDef, unknown>;
952
+ /** @deprecated use `PublicMessagePartFilePart$outboundSchema` instead. */
953
+ const outboundSchema: z.ZodType<PublicMessagePartFilePart$Outbound, z.ZodTypeDef, PublicMessagePartFilePart>;
954
+ /** @deprecated use `PublicMessagePartFilePart$Outbound` instead. */
955
+ type Outbound = PublicMessagePartFilePart$Outbound;
936
956
  }
937
- export declare function filePartToJSON(filePart: FilePart): string;
938
- export declare function filePartFromJSON(jsonString: string): SafeParseResult<FilePart, SDKValidationError>;
957
+ export declare function publicMessagePartFilePartToJSON(publicMessagePartFilePart: PublicMessagePartFilePart): string;
958
+ export declare function publicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartFilePart, SDKValidationError>;
939
959
  /** @internal */
940
- export declare const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind>;
960
+ export declare const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
941
961
  /** @internal */
942
- export declare const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind>;
962
+ export declare const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
943
963
  /**
944
964
  * @internal
945
965
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
946
966
  */
947
- export declare namespace Kind$ {
948
- /** @deprecated use `Kind$inboundSchema` instead. */
967
+ export declare namespace RunAgentPublicMessagePartKind$ {
968
+ /** @deprecated use `RunAgentPublicMessagePartKind$inboundSchema` instead. */
949
969
  const inboundSchema: z.ZodNativeEnum<{
950
970
  readonly Text: "text";
951
971
  }>;
952
- /** @deprecated use `Kind$outboundSchema` instead. */
972
+ /** @deprecated use `RunAgentPublicMessagePartKind$outboundSchema` instead. */
953
973
  const outboundSchema: z.ZodNativeEnum<{
954
974
  readonly Text: "text";
955
975
  }>;
956
976
  }
957
977
  /** @internal */
958
- export declare const TextPart$inboundSchema: z.ZodType<TextPart, z.ZodTypeDef, unknown>;
978
+ export declare const PublicMessagePartTextPart$inboundSchema: z.ZodType<PublicMessagePartTextPart, z.ZodTypeDef, unknown>;
959
979
  /** @internal */
960
- export type TextPart$Outbound = {
980
+ export type PublicMessagePartTextPart$Outbound = {
961
981
  kind: string;
962
982
  text: string;
963
983
  };
964
984
  /** @internal */
965
- export declare const TextPart$outboundSchema: z.ZodType<TextPart$Outbound, z.ZodTypeDef, TextPart>;
985
+ export declare const PublicMessagePartTextPart$outboundSchema: z.ZodType<PublicMessagePartTextPart$Outbound, z.ZodTypeDef, PublicMessagePartTextPart>;
966
986
  /**
967
987
  * @internal
968
988
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
969
989
  */
970
- export declare namespace TextPart$ {
971
- /** @deprecated use `TextPart$inboundSchema` instead. */
972
- const inboundSchema: z.ZodType<TextPart, z.ZodTypeDef, unknown>;
973
- /** @deprecated use `TextPart$outboundSchema` instead. */
974
- const outboundSchema: z.ZodType<TextPart$Outbound, z.ZodTypeDef, TextPart>;
975
- /** @deprecated use `TextPart$Outbound` instead. */
976
- type Outbound = TextPart$Outbound;
990
+ export declare namespace PublicMessagePartTextPart$ {
991
+ /** @deprecated use `PublicMessagePartTextPart$inboundSchema` instead. */
992
+ const inboundSchema: z.ZodType<PublicMessagePartTextPart, z.ZodTypeDef, unknown>;
993
+ /** @deprecated use `PublicMessagePartTextPart$outboundSchema` instead. */
994
+ const outboundSchema: z.ZodType<PublicMessagePartTextPart$Outbound, z.ZodTypeDef, PublicMessagePartTextPart>;
995
+ /** @deprecated use `PublicMessagePartTextPart$Outbound` instead. */
996
+ type Outbound = PublicMessagePartTextPart$Outbound;
977
997
  }
978
- export declare function textPartToJSON(textPart: TextPart): string;
979
- export declare function textPartFromJSON(jsonString: string): SafeParseResult<TextPart, SDKValidationError>;
998
+ export declare function publicMessagePartTextPartToJSON(publicMessagePartTextPart: PublicMessagePartTextPart): string;
999
+ export declare function publicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<PublicMessagePartTextPart, SDKValidationError>;
980
1000
  /** @internal */
981
- export declare const PublicMessagePart$inboundSchema: z.ZodType<PublicMessagePart, z.ZodTypeDef, unknown>;
1001
+ export declare const RunAgentPublicMessagePart$inboundSchema: z.ZodType<RunAgentPublicMessagePart, z.ZodTypeDef, unknown>;
982
1002
  /** @internal */
983
- export type PublicMessagePart$Outbound = TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound;
1003
+ export type RunAgentPublicMessagePart$Outbound = PublicMessagePartTextPart$Outbound | PublicMessagePartFilePart$Outbound | PublicMessagePartToolResultPart$Outbound;
984
1004
  /** @internal */
985
- export declare const PublicMessagePart$outboundSchema: z.ZodType<PublicMessagePart$Outbound, z.ZodTypeDef, PublicMessagePart>;
1005
+ export declare const RunAgentPublicMessagePart$outboundSchema: z.ZodType<RunAgentPublicMessagePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePart>;
986
1006
  /**
987
1007
  * @internal
988
1008
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
989
1009
  */
990
- export declare namespace PublicMessagePart$ {
991
- /** @deprecated use `PublicMessagePart$inboundSchema` instead. */
992
- const inboundSchema: z.ZodType<PublicMessagePart, z.ZodTypeDef, unknown>;
993
- /** @deprecated use `PublicMessagePart$outboundSchema` instead. */
994
- const outboundSchema: z.ZodType<PublicMessagePart$Outbound, z.ZodTypeDef, PublicMessagePart>;
995
- /** @deprecated use `PublicMessagePart$Outbound` instead. */
996
- type Outbound = PublicMessagePart$Outbound;
1010
+ export declare namespace RunAgentPublicMessagePart$ {
1011
+ /** @deprecated use `RunAgentPublicMessagePart$inboundSchema` instead. */
1012
+ const inboundSchema: z.ZodType<RunAgentPublicMessagePart, z.ZodTypeDef, unknown>;
1013
+ /** @deprecated use `RunAgentPublicMessagePart$outboundSchema` instead. */
1014
+ const outboundSchema: z.ZodType<RunAgentPublicMessagePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePart>;
1015
+ /** @deprecated use `RunAgentPublicMessagePart$Outbound` instead. */
1016
+ type Outbound = RunAgentPublicMessagePart$Outbound;
997
1017
  }
998
- export declare function publicMessagePartToJSON(publicMessagePart: PublicMessagePart): string;
999
- export declare function publicMessagePartFromJSON(jsonString: string): SafeParseResult<PublicMessagePart, SDKValidationError>;
1018
+ export declare function runAgentPublicMessagePartToJSON(runAgentPublicMessagePart: RunAgentPublicMessagePart): string;
1019
+ export declare function runAgentPublicMessagePartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePart, SDKValidationError>;
1000
1020
  /** @internal */
1001
- export declare const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown>;
1021
+ export declare const RunAgentMessage$inboundSchema: z.ZodType<RunAgentMessage, z.ZodTypeDef, unknown>;
1002
1022
  /** @internal */
1003
- export type Message$Outbound = {
1023
+ export type RunAgentMessage$Outbound = {
1004
1024
  messageId?: string | undefined;
1005
1025
  role: string | string;
1006
- parts: Array<TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound>;
1026
+ parts: Array<PublicMessagePartTextPart$Outbound | PublicMessagePartFilePart$Outbound | PublicMessagePartToolResultPart$Outbound>;
1007
1027
  };
1008
1028
  /** @internal */
1009
- export declare const Message$outboundSchema: z.ZodType<Message$Outbound, z.ZodTypeDef, Message>;
1029
+ export declare const RunAgentMessage$outboundSchema: z.ZodType<RunAgentMessage$Outbound, z.ZodTypeDef, RunAgentMessage>;
1010
1030
  /**
1011
1031
  * @internal
1012
1032
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1013
1033
  */
1014
- export declare namespace Message$ {
1015
- /** @deprecated use `Message$inboundSchema` instead. */
1016
- const inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown>;
1017
- /** @deprecated use `Message$outboundSchema` instead. */
1018
- const outboundSchema: z.ZodType<Message$Outbound, z.ZodTypeDef, Message>;
1019
- /** @deprecated use `Message$Outbound` instead. */
1020
- type Outbound = Message$Outbound;
1034
+ export declare namespace RunAgentMessage$ {
1035
+ /** @deprecated use `RunAgentMessage$inboundSchema` instead. */
1036
+ const inboundSchema: z.ZodType<RunAgentMessage, z.ZodTypeDef, unknown>;
1037
+ /** @deprecated use `RunAgentMessage$outboundSchema` instead. */
1038
+ const outboundSchema: z.ZodType<RunAgentMessage$Outbound, z.ZodTypeDef, RunAgentMessage>;
1039
+ /** @deprecated use `RunAgentMessage$Outbound` instead. */
1040
+ type Outbound = RunAgentMessage$Outbound;
1021
1041
  }
1022
- export declare function messageToJSON(message: Message): string;
1023
- export declare function messageFromJSON(jsonString: string): SafeParseResult<Message, SDKValidationError>;
1042
+ export declare function runAgentMessageToJSON(runAgentMessage: RunAgentMessage): string;
1043
+ export declare function runAgentMessageFromJSON(jsonString: string): SafeParseResult<RunAgentMessage, SDKValidationError>;
1024
1044
  /** @internal */
1025
- export declare const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown>;
1045
+ export declare const RunAgentContact$inboundSchema: z.ZodType<RunAgentContact, z.ZodTypeDef, unknown>;
1026
1046
  /** @internal */
1027
- export type Contact$Outbound = {
1047
+ export type RunAgentContact$Outbound = {
1028
1048
  id: string;
1029
1049
  display_name?: string | undefined;
1030
1050
  email?: string | undefined;
@@ -1035,21 +1055,21 @@ export type Contact$Outbound = {
1035
1055
  tags?: Array<string> | undefined;
1036
1056
  };
1037
1057
  /** @internal */
1038
- export declare const Contact$outboundSchema: z.ZodType<Contact$Outbound, z.ZodTypeDef, Contact>;
1058
+ export declare const RunAgentContact$outboundSchema: z.ZodType<RunAgentContact$Outbound, z.ZodTypeDef, RunAgentContact>;
1039
1059
  /**
1040
1060
  * @internal
1041
1061
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1042
1062
  */
1043
- export declare namespace Contact$ {
1044
- /** @deprecated use `Contact$inboundSchema` instead. */
1045
- const inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown>;
1046
- /** @deprecated use `Contact$outboundSchema` instead. */
1047
- const outboundSchema: z.ZodType<Contact$Outbound, z.ZodTypeDef, Contact>;
1048
- /** @deprecated use `Contact$Outbound` instead. */
1049
- type Outbound = Contact$Outbound;
1063
+ export declare namespace RunAgentContact$ {
1064
+ /** @deprecated use `RunAgentContact$inboundSchema` instead. */
1065
+ const inboundSchema: z.ZodType<RunAgentContact, z.ZodTypeDef, unknown>;
1066
+ /** @deprecated use `RunAgentContact$outboundSchema` instead. */
1067
+ const outboundSchema: z.ZodType<RunAgentContact$Outbound, z.ZodTypeDef, RunAgentContact>;
1068
+ /** @deprecated use `RunAgentContact$Outbound` instead. */
1069
+ type Outbound = RunAgentContact$Outbound;
1050
1070
  }
1051
- export declare function contactToJSON(contact: Contact): string;
1052
- export declare function contactFromJSON(jsonString: string): SafeParseResult<Contact, SDKValidationError>;
1071
+ export declare function runAgentContactToJSON(runAgentContact: RunAgentContact): string;
1072
+ export declare function runAgentContactFromJSON(jsonString: string): SafeParseResult<RunAgentContact, SDKValidationError>;
1053
1073
  /** @internal */
1054
1074
  export declare const RunAgentThread$inboundSchema: z.ZodType<RunAgentThread, z.ZodTypeDef, unknown>;
1055
1075
  /** @internal */
@@ -1074,150 +1094,49 @@ export declare namespace RunAgentThread$ {
1074
1094
  export declare function runAgentThreadToJSON(runAgentThread: RunAgentThread): string;
1075
1095
  export declare function runAgentThreadFromJSON(jsonString: string): SafeParseResult<RunAgentThread, SDKValidationError>;
1076
1096
  /** @internal */
1077
- export declare const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown>;
1097
+ export declare const RunAgentMemory$inboundSchema: z.ZodType<RunAgentMemory, z.ZodTypeDef, unknown>;
1078
1098
  /** @internal */
1079
- export type Memory$Outbound = {
1099
+ export type RunAgentMemory$Outbound = {
1080
1100
  entity_id: string;
1081
1101
  };
1082
1102
  /** @internal */
1083
- export declare const Memory$outboundSchema: z.ZodType<Memory$Outbound, z.ZodTypeDef, Memory>;
1103
+ export declare const RunAgentMemory$outboundSchema: z.ZodType<RunAgentMemory$Outbound, z.ZodTypeDef, RunAgentMemory>;
1084
1104
  /**
1085
1105
  * @internal
1086
1106
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1087
1107
  */
1088
- export declare namespace Memory$ {
1089
- /** @deprecated use `Memory$inboundSchema` instead. */
1090
- const inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown>;
1091
- /** @deprecated use `Memory$outboundSchema` instead. */
1092
- const outboundSchema: z.ZodType<Memory$Outbound, z.ZodTypeDef, Memory>;
1093
- /** @deprecated use `Memory$Outbound` instead. */
1094
- type Outbound = Memory$Outbound;
1108
+ export declare namespace RunAgentMemory$ {
1109
+ /** @deprecated use `RunAgentMemory$inboundSchema` instead. */
1110
+ const inboundSchema: z.ZodType<RunAgentMemory, z.ZodTypeDef, unknown>;
1111
+ /** @deprecated use `RunAgentMemory$outboundSchema` instead. */
1112
+ const outboundSchema: z.ZodType<RunAgentMemory$Outbound, z.ZodTypeDef, RunAgentMemory>;
1113
+ /** @deprecated use `RunAgentMemory$Outbound` instead. */
1114
+ type Outbound = RunAgentMemory$Outbound;
1095
1115
  }
1096
- export declare function memoryToJSON(memory: Memory): string;
1097
- export declare function memoryFromJSON(jsonString: string): SafeParseResult<Memory, SDKValidationError>;
1116
+ export declare function runAgentMemoryToJSON(runAgentMemory: RunAgentMemory): string;
1117
+ export declare function runAgentMemoryFromJSON(jsonString: string): SafeParseResult<RunAgentMemory, SDKValidationError>;
1098
1118
  /** @internal */
1099
- export declare const RunAgentKnowledgeBaseConfigurationType$inboundSchema: z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType>;
1119
+ export declare const RunAgentKnowledgeBases$inboundSchema: z.ZodType<RunAgentKnowledgeBases, z.ZodTypeDef, unknown>;
1100
1120
  /** @internal */
1101
- export declare const RunAgentKnowledgeBaseConfigurationType$outboundSchema: z.ZodNativeEnum<typeof RunAgentKnowledgeBaseConfigurationType>;
1102
- /**
1103
- * @internal
1104
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1105
- */
1106
- export declare namespace RunAgentKnowledgeBaseConfigurationType$ {
1107
- /** @deprecated use `RunAgentKnowledgeBaseConfigurationType$inboundSchema` instead. */
1108
- const inboundSchema: z.ZodNativeEnum<{
1109
- readonly Query: "query";
1110
- }>;
1111
- /** @deprecated use `RunAgentKnowledgeBaseConfigurationType$outboundSchema` instead. */
1112
- const outboundSchema: z.ZodNativeEnum<{
1113
- readonly Query: "query";
1114
- }>;
1115
- }
1116
- /** @internal */
1117
- export declare const KnowledgeBaseStaticQuery$inboundSchema: z.ZodType<KnowledgeBaseStaticQuery, z.ZodTypeDef, unknown>;
1118
- /** @internal */
1119
- export type KnowledgeBaseStaticQuery$Outbound = {
1120
- type: string;
1121
- query: string;
1121
+ export type RunAgentKnowledgeBases$Outbound = {
1122
+ knowledge_id: string;
1122
1123
  };
1123
1124
  /** @internal */
1124
- export declare const KnowledgeBaseStaticQuery$outboundSchema: z.ZodType<KnowledgeBaseStaticQuery$Outbound, z.ZodTypeDef, KnowledgeBaseStaticQuery>;
1125
+ export declare const RunAgentKnowledgeBases$outboundSchema: z.ZodType<RunAgentKnowledgeBases$Outbound, z.ZodTypeDef, RunAgentKnowledgeBases>;
1125
1126
  /**
1126
1127
  * @internal
1127
1128
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1128
1129
  */
1129
- export declare namespace KnowledgeBaseStaticQuery$ {
1130
- /** @deprecated use `KnowledgeBaseStaticQuery$inboundSchema` instead. */
1131
- const inboundSchema: z.ZodType<KnowledgeBaseStaticQuery, z.ZodTypeDef, unknown>;
1132
- /** @deprecated use `KnowledgeBaseStaticQuery$outboundSchema` instead. */
1133
- const outboundSchema: z.ZodType<KnowledgeBaseStaticQuery$Outbound, z.ZodTypeDef, KnowledgeBaseStaticQuery>;
1134
- /** @deprecated use `KnowledgeBaseStaticQuery$Outbound` instead. */
1135
- type Outbound = KnowledgeBaseStaticQuery$Outbound;
1130
+ export declare namespace RunAgentKnowledgeBases$ {
1131
+ /** @deprecated use `RunAgentKnowledgeBases$inboundSchema` instead. */
1132
+ const inboundSchema: z.ZodType<RunAgentKnowledgeBases, z.ZodTypeDef, unknown>;
1133
+ /** @deprecated use `RunAgentKnowledgeBases$outboundSchema` instead. */
1134
+ const outboundSchema: z.ZodType<RunAgentKnowledgeBases$Outbound, z.ZodTypeDef, RunAgentKnowledgeBases>;
1135
+ /** @deprecated use `RunAgentKnowledgeBases$Outbound` instead. */
1136
+ type Outbound = RunAgentKnowledgeBases$Outbound;
1136
1137
  }
1137
- export declare function knowledgeBaseStaticQueryToJSON(knowledgeBaseStaticQuery: KnowledgeBaseStaticQuery): string;
1138
- export declare function knowledgeBaseStaticQueryFromJSON(jsonString: string): SafeParseResult<KnowledgeBaseStaticQuery, SDKValidationError>;
1139
- /** @internal */
1140
- export declare const KnowledgeBaseConfigurationType$inboundSchema: z.ZodNativeEnum<typeof KnowledgeBaseConfigurationType>;
1141
- /** @internal */
1142
- export declare const KnowledgeBaseConfigurationType$outboundSchema: z.ZodNativeEnum<typeof KnowledgeBaseConfigurationType>;
1143
- /**
1144
- * @internal
1145
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1146
- */
1147
- export declare namespace KnowledgeBaseConfigurationType$ {
1148
- /** @deprecated use `KnowledgeBaseConfigurationType$inboundSchema` instead. */
1149
- const inboundSchema: z.ZodNativeEnum<{
1150
- readonly LastUserMessage: "last_user_message";
1151
- }>;
1152
- /** @deprecated use `KnowledgeBaseConfigurationType$outboundSchema` instead. */
1153
- const outboundSchema: z.ZodNativeEnum<{
1154
- readonly LastUserMessage: "last_user_message";
1155
- }>;
1156
- }
1157
- /** @internal */
1158
- export declare const KnowledgeBaseLastUserMessage$inboundSchema: z.ZodType<KnowledgeBaseLastUserMessage, z.ZodTypeDef, unknown>;
1159
- /** @internal */
1160
- export type KnowledgeBaseLastUserMessage$Outbound = {
1161
- type: string;
1162
- };
1163
- /** @internal */
1164
- export declare const KnowledgeBaseLastUserMessage$outboundSchema: z.ZodType<KnowledgeBaseLastUserMessage$Outbound, z.ZodTypeDef, KnowledgeBaseLastUserMessage>;
1165
- /**
1166
- * @internal
1167
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1168
- */
1169
- export declare namespace KnowledgeBaseLastUserMessage$ {
1170
- /** @deprecated use `KnowledgeBaseLastUserMessage$inboundSchema` instead. */
1171
- const inboundSchema: z.ZodType<KnowledgeBaseLastUserMessage, z.ZodTypeDef, unknown>;
1172
- /** @deprecated use `KnowledgeBaseLastUserMessage$outboundSchema` instead. */
1173
- const outboundSchema: z.ZodType<KnowledgeBaseLastUserMessage$Outbound, z.ZodTypeDef, KnowledgeBaseLastUserMessage>;
1174
- /** @deprecated use `KnowledgeBaseLastUserMessage$Outbound` instead. */
1175
- type Outbound = KnowledgeBaseLastUserMessage$Outbound;
1176
- }
1177
- export declare function knowledgeBaseLastUserMessageToJSON(knowledgeBaseLastUserMessage: KnowledgeBaseLastUserMessage): string;
1178
- export declare function knowledgeBaseLastUserMessageFromJSON(jsonString: string): SafeParseResult<KnowledgeBaseLastUserMessage, SDKValidationError>;
1179
- /** @internal */
1180
- export declare const KnowledgeBaseConfiguration$inboundSchema: z.ZodType<KnowledgeBaseConfiguration, z.ZodTypeDef, unknown>;
1181
- /** @internal */
1182
- export type KnowledgeBaseConfiguration$Outbound = KnowledgeBaseStaticQuery$Outbound | KnowledgeBaseLastUserMessage$Outbound;
1183
- /** @internal */
1184
- export declare const KnowledgeBaseConfiguration$outboundSchema: z.ZodType<KnowledgeBaseConfiguration$Outbound, z.ZodTypeDef, KnowledgeBaseConfiguration>;
1185
- /**
1186
- * @internal
1187
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1188
- */
1189
- export declare namespace KnowledgeBaseConfiguration$ {
1190
- /** @deprecated use `KnowledgeBaseConfiguration$inboundSchema` instead. */
1191
- const inboundSchema: z.ZodType<KnowledgeBaseConfiguration, z.ZodTypeDef, unknown>;
1192
- /** @deprecated use `KnowledgeBaseConfiguration$outboundSchema` instead. */
1193
- const outboundSchema: z.ZodType<KnowledgeBaseConfiguration$Outbound, z.ZodTypeDef, KnowledgeBaseConfiguration>;
1194
- /** @deprecated use `KnowledgeBaseConfiguration$Outbound` instead. */
1195
- type Outbound = KnowledgeBaseConfiguration$Outbound;
1196
- }
1197
- export declare function knowledgeBaseConfigurationToJSON(knowledgeBaseConfiguration: KnowledgeBaseConfiguration): string;
1198
- export declare function knowledgeBaseConfigurationFromJSON(jsonString: string): SafeParseResult<KnowledgeBaseConfiguration, SDKValidationError>;
1199
- /** @internal */
1200
- export declare const KnowledgeBases$inboundSchema: z.ZodType<KnowledgeBases, z.ZodTypeDef, unknown>;
1201
- /** @internal */
1202
- export type KnowledgeBases$Outbound = {
1203
- configuration: KnowledgeBaseStaticQuery$Outbound | KnowledgeBaseLastUserMessage$Outbound;
1204
- };
1205
- /** @internal */
1206
- export declare const KnowledgeBases$outboundSchema: z.ZodType<KnowledgeBases$Outbound, z.ZodTypeDef, KnowledgeBases>;
1207
- /**
1208
- * @internal
1209
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1210
- */
1211
- export declare namespace KnowledgeBases$ {
1212
- /** @deprecated use `KnowledgeBases$inboundSchema` instead. */
1213
- const inboundSchema: z.ZodType<KnowledgeBases, z.ZodTypeDef, unknown>;
1214
- /** @deprecated use `KnowledgeBases$outboundSchema` instead. */
1215
- const outboundSchema: z.ZodType<KnowledgeBases$Outbound, z.ZodTypeDef, KnowledgeBases>;
1216
- /** @deprecated use `KnowledgeBases$Outbound` instead. */
1217
- type Outbound = KnowledgeBases$Outbound;
1218
- }
1219
- export declare function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string;
1220
- export declare function knowledgeBasesFromJSON(jsonString: string): SafeParseResult<KnowledgeBases, SDKValidationError>;
1138
+ export declare function runAgentKnowledgeBasesToJSON(runAgentKnowledgeBases: RunAgentKnowledgeBases): string;
1139
+ export declare function runAgentKnowledgeBasesFromJSON(jsonString: string): SafeParseResult<RunAgentKnowledgeBases, SDKValidationError>;
1221
1140
  /** @internal */
1222
1141
  export declare const TeamOfAgents$inboundSchema: z.ZodType<TeamOfAgents, z.ZodTypeDef, unknown>;
1223
1142
  /** @internal */
@@ -1242,27 +1161,27 @@ export declare namespace TeamOfAgents$ {
1242
1161
  export declare function teamOfAgentsToJSON(teamOfAgents: TeamOfAgents): string;
1243
1162
  export declare function teamOfAgentsFromJSON(jsonString: string): SafeParseResult<TeamOfAgents, SDKValidationError>;
1244
1163
  /** @internal */
1245
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type>;
1164
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
1246
1165
  /** @internal */
1247
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type>;
1166
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
1248
1167
  /**
1249
1168
  * @internal
1250
1169
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1251
1170
  */
1252
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$ {
1253
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
1171
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$ {
1172
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema` instead. */
1254
1173
  const inboundSchema: z.ZodNativeEnum<{
1255
1174
  readonly Function: "function";
1256
1175
  }>;
1257
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
1176
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema` instead. */
1258
1177
  const outboundSchema: z.ZodNativeEnum<{
1259
1178
  readonly Function: "function";
1260
1179
  }>;
1261
1180
  }
1262
1181
  /** @internal */
1263
- export declare const RunAgentRequestToolFunction$inboundSchema: z.ZodType<RunAgentRequestToolFunction, z.ZodTypeDef, unknown>;
1182
+ export declare const AgentToolInputRunFunction$inboundSchema: z.ZodType<AgentToolInputRunFunction, z.ZodTypeDef, unknown>;
1264
1183
  /** @internal */
1265
- export type RunAgentRequestToolFunction$Outbound = {
1184
+ export type AgentToolInputRunFunction$Outbound = {
1266
1185
  name: string;
1267
1186
  description?: string | undefined;
1268
1187
  strict?: boolean | undefined;
@@ -1271,63 +1190,63 @@ export type RunAgentRequestToolFunction$Outbound = {
1271
1190
  } | undefined;
1272
1191
  };
1273
1192
  /** @internal */
1274
- export declare const RunAgentRequestToolFunction$outboundSchema: z.ZodType<RunAgentRequestToolFunction$Outbound, z.ZodTypeDef, RunAgentRequestToolFunction>;
1193
+ export declare const AgentToolInputRunFunction$outboundSchema: z.ZodType<AgentToolInputRunFunction$Outbound, z.ZodTypeDef, AgentToolInputRunFunction>;
1275
1194
  /**
1276
1195
  * @internal
1277
1196
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1278
1197
  */
1279
- export declare namespace RunAgentRequestToolFunction$ {
1280
- /** @deprecated use `RunAgentRequestToolFunction$inboundSchema` instead. */
1281
- const inboundSchema: z.ZodType<RunAgentRequestToolFunction, z.ZodTypeDef, unknown>;
1282
- /** @deprecated use `RunAgentRequestToolFunction$outboundSchema` instead. */
1283
- const outboundSchema: z.ZodType<RunAgentRequestToolFunction$Outbound, z.ZodTypeDef, RunAgentRequestToolFunction>;
1284
- /** @deprecated use `RunAgentRequestToolFunction$Outbound` instead. */
1285
- type Outbound = RunAgentRequestToolFunction$Outbound;
1198
+ export declare namespace AgentToolInputRunFunction$ {
1199
+ /** @deprecated use `AgentToolInputRunFunction$inboundSchema` instead. */
1200
+ const inboundSchema: z.ZodType<AgentToolInputRunFunction, z.ZodTypeDef, unknown>;
1201
+ /** @deprecated use `AgentToolInputRunFunction$outboundSchema` instead. */
1202
+ const outboundSchema: z.ZodType<AgentToolInputRunFunction$Outbound, z.ZodTypeDef, AgentToolInputRunFunction>;
1203
+ /** @deprecated use `AgentToolInputRunFunction$Outbound` instead. */
1204
+ type Outbound = AgentToolInputRunFunction$Outbound;
1286
1205
  }
1287
- export declare function runAgentRequestToolFunctionToJSON(runAgentRequestToolFunction: RunAgentRequestToolFunction): string;
1288
- export declare function runAgentRequestToolFunctionFromJSON(jsonString: string): SafeParseResult<RunAgentRequestToolFunction, SDKValidationError>;
1206
+ export declare function agentToolInputRunFunctionToJSON(agentToolInputRunFunction: AgentToolInputRunFunction): string;
1207
+ export declare function agentToolInputRunFunctionFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunFunction, SDKValidationError>;
1289
1208
  /** @internal */
1290
- export declare const FunctionTool$inboundSchema: z.ZodType<FunctionTool, z.ZodTypeDef, unknown>;
1209
+ export declare const FunctionToolRun$inboundSchema: z.ZodType<FunctionToolRun, z.ZodTypeDef, unknown>;
1291
1210
  /** @internal */
1292
- export type FunctionTool$Outbound = {
1211
+ export type FunctionToolRun$Outbound = {
1293
1212
  type: string;
1294
- _id?: string | undefined;
1295
1213
  key: string;
1214
+ _id?: string | undefined;
1296
1215
  display_name?: string | undefined;
1297
1216
  description?: string | undefined;
1217
+ function: AgentToolInputRunFunction$Outbound;
1298
1218
  requires_approval: boolean;
1299
- function: RunAgentRequestToolFunction$Outbound;
1300
1219
  };
1301
1220
  /** @internal */
1302
- export declare const FunctionTool$outboundSchema: z.ZodType<FunctionTool$Outbound, z.ZodTypeDef, FunctionTool>;
1221
+ export declare const FunctionToolRun$outboundSchema: z.ZodType<FunctionToolRun$Outbound, z.ZodTypeDef, FunctionToolRun>;
1303
1222
  /**
1304
1223
  * @internal
1305
1224
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1306
1225
  */
1307
- export declare namespace FunctionTool$ {
1308
- /** @deprecated use `FunctionTool$inboundSchema` instead. */
1309
- const inboundSchema: z.ZodType<FunctionTool, z.ZodTypeDef, unknown>;
1310
- /** @deprecated use `FunctionTool$outboundSchema` instead. */
1311
- const outboundSchema: z.ZodType<FunctionTool$Outbound, z.ZodTypeDef, FunctionTool>;
1312
- /** @deprecated use `FunctionTool$Outbound` instead. */
1313
- type Outbound = FunctionTool$Outbound;
1226
+ export declare namespace FunctionToolRun$ {
1227
+ /** @deprecated use `FunctionToolRun$inboundSchema` instead. */
1228
+ const inboundSchema: z.ZodType<FunctionToolRun, z.ZodTypeDef, unknown>;
1229
+ /** @deprecated use `FunctionToolRun$outboundSchema` instead. */
1230
+ const outboundSchema: z.ZodType<FunctionToolRun$Outbound, z.ZodTypeDef, FunctionToolRun>;
1231
+ /** @deprecated use `FunctionToolRun$Outbound` instead. */
1232
+ type Outbound = FunctionToolRun$Outbound;
1314
1233
  }
1315
- export declare function functionToolToJSON(functionTool: FunctionTool): string;
1316
- export declare function functionToolFromJSON(jsonString: string): SafeParseResult<FunctionTool, SDKValidationError>;
1234
+ export declare function functionToolRunToJSON(functionToolRun: FunctionToolRun): string;
1235
+ export declare function functionToolRunFromJSON(jsonString: string): SafeParseResult<FunctionToolRun, SDKValidationError>;
1317
1236
  /** @internal */
1318
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type>;
1237
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
1319
1238
  /** @internal */
1320
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type>;
1239
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
1321
1240
  /**
1322
1241
  * @internal
1323
1242
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1324
1243
  */
1325
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$ {
1326
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
1244
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$ {
1245
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$inboundSchema` instead. */
1327
1246
  const inboundSchema: z.ZodNativeEnum<{
1328
1247
  readonly Code: "code";
1329
1248
  }>;
1330
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
1249
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema` instead. */
1331
1250
  const outboundSchema: z.ZodNativeEnum<{
1332
1251
  readonly Code: "code";
1333
1252
  }>;
@@ -1377,47 +1296,47 @@ export declare namespace CodeTool$ {
1377
1296
  export declare function codeToolToJSON(codeTool: CodeTool): string;
1378
1297
  export declare function codeToolFromJSON(jsonString: string): SafeParseResult<CodeTool, SDKValidationError>;
1379
1298
  /** @internal */
1380
- export declare const CodeExecutionTool$inboundSchema: z.ZodType<CodeExecutionTool, z.ZodTypeDef, unknown>;
1299
+ export declare const CodeToolRun$inboundSchema: z.ZodType<CodeToolRun, z.ZodTypeDef, unknown>;
1381
1300
  /** @internal */
1382
- export type CodeExecutionTool$Outbound = {
1301
+ export type CodeToolRun$Outbound = {
1302
+ type: string;
1383
1303
  key: string;
1384
- display_name: string;
1304
+ _id?: string | undefined;
1305
+ display_name?: string | undefined;
1385
1306
  description: string;
1386
- type: string;
1387
1307
  code_tool: CodeTool$Outbound;
1388
- _id?: string | undefined;
1389
1308
  requires_approval: boolean;
1390
1309
  };
1391
1310
  /** @internal */
1392
- export declare const CodeExecutionTool$outboundSchema: z.ZodType<CodeExecutionTool$Outbound, z.ZodTypeDef, CodeExecutionTool>;
1311
+ export declare const CodeToolRun$outboundSchema: z.ZodType<CodeToolRun$Outbound, z.ZodTypeDef, CodeToolRun>;
1393
1312
  /**
1394
1313
  * @internal
1395
1314
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1396
1315
  */
1397
- export declare namespace CodeExecutionTool$ {
1398
- /** @deprecated use `CodeExecutionTool$inboundSchema` instead. */
1399
- const inboundSchema: z.ZodType<CodeExecutionTool, z.ZodTypeDef, unknown>;
1400
- /** @deprecated use `CodeExecutionTool$outboundSchema` instead. */
1401
- const outboundSchema: z.ZodType<CodeExecutionTool$Outbound, z.ZodTypeDef, CodeExecutionTool>;
1402
- /** @deprecated use `CodeExecutionTool$Outbound` instead. */
1403
- type Outbound = CodeExecutionTool$Outbound;
1316
+ export declare namespace CodeToolRun$ {
1317
+ /** @deprecated use `CodeToolRun$inboundSchema` instead. */
1318
+ const inboundSchema: z.ZodType<CodeToolRun, z.ZodTypeDef, unknown>;
1319
+ /** @deprecated use `CodeToolRun$outboundSchema` instead. */
1320
+ const outboundSchema: z.ZodType<CodeToolRun$Outbound, z.ZodTypeDef, CodeToolRun>;
1321
+ /** @deprecated use `CodeToolRun$Outbound` instead. */
1322
+ type Outbound = CodeToolRun$Outbound;
1404
1323
  }
1405
- export declare function codeExecutionToolToJSON(codeExecutionTool: CodeExecutionTool): string;
1406
- export declare function codeExecutionToolFromJSON(jsonString: string): SafeParseResult<CodeExecutionTool, SDKValidationError>;
1324
+ export declare function codeToolRunToJSON(codeToolRun: CodeToolRun): string;
1325
+ export declare function codeToolRunFromJSON(jsonString: string): SafeParseResult<CodeToolRun, SDKValidationError>;
1407
1326
  /** @internal */
1408
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type>;
1327
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type>;
1409
1328
  /** @internal */
1410
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type>;
1329
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type>;
1411
1330
  /**
1412
1331
  * @internal
1413
1332
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1414
1333
  */
1415
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$ {
1416
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
1334
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$ {
1335
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$inboundSchema` instead. */
1417
1336
  const inboundSchema: z.ZodNativeEnum<{
1418
1337
  readonly Http: "http";
1419
1338
  }>;
1420
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
1339
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type$outboundSchema` instead. */
1421
1340
  const outboundSchema: z.ZodNativeEnum<{
1422
1341
  readonly Http: "http";
1423
1342
  }>;
@@ -1476,21 +1395,21 @@ export declare namespace Blueprint$ {
1476
1395
  export declare function blueprintToJSON(blueprint: Blueprint): string;
1477
1396
  export declare function blueprintFromJSON(jsonString: string): SafeParseResult<Blueprint, SDKValidationError>;
1478
1397
  /** @internal */
1479
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType>;
1398
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType>;
1480
1399
  /** @internal */
1481
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType>;
1400
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType>;
1482
1401
  /**
1483
1402
  * @internal
1484
1403
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1485
1404
  */
1486
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$ {
1487
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
1405
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$ {
1406
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$inboundSchema` instead. */
1488
1407
  const inboundSchema: z.ZodNativeEnum<{
1489
1408
  readonly String: "string";
1490
1409
  readonly Number: "number";
1491
1410
  readonly Boolean: "boolean";
1492
1411
  }>;
1493
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
1412
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType$outboundSchema` instead. */
1494
1413
  const outboundSchema: z.ZodNativeEnum<{
1495
1414
  readonly String: "string";
1496
1415
  readonly Number: "number";
@@ -1568,520 +1487,520 @@ export declare namespace Http$ {
1568
1487
  export declare function httpToJSON(http: Http): string;
1569
1488
  export declare function httpFromJSON(jsonString: string): SafeParseResult<Http, SDKValidationError>;
1570
1489
  /** @internal */
1571
- export declare const HTTPTool$inboundSchema: z.ZodType<HTTPTool, z.ZodTypeDef, unknown>;
1490
+ export declare const HTTPToolRun$inboundSchema: z.ZodType<HTTPToolRun, z.ZodTypeDef, unknown>;
1572
1491
  /** @internal */
1573
- export type HTTPTool$Outbound = {
1574
- _id: string;
1492
+ export type HTTPToolRun$Outbound = {
1493
+ type: string;
1575
1494
  key: string;
1576
- display_name: string;
1495
+ _id?: string | undefined;
1496
+ display_name?: string | undefined;
1577
1497
  description: string;
1578
- type: string;
1579
1498
  http: Http$Outbound;
1580
1499
  requires_approval: boolean;
1581
1500
  };
1582
1501
  /** @internal */
1583
- export declare const HTTPTool$outboundSchema: z.ZodType<HTTPTool$Outbound, z.ZodTypeDef, HTTPTool>;
1502
+ export declare const HTTPToolRun$outboundSchema: z.ZodType<HTTPToolRun$Outbound, z.ZodTypeDef, HTTPToolRun>;
1584
1503
  /**
1585
1504
  * @internal
1586
1505
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1587
1506
  */
1588
- export declare namespace HTTPTool$ {
1589
- /** @deprecated use `HTTPTool$inboundSchema` instead. */
1590
- const inboundSchema: z.ZodType<HTTPTool, z.ZodTypeDef, unknown>;
1591
- /** @deprecated use `HTTPTool$outboundSchema` instead. */
1592
- const outboundSchema: z.ZodType<HTTPTool$Outbound, z.ZodTypeDef, HTTPTool>;
1593
- /** @deprecated use `HTTPTool$Outbound` instead. */
1594
- type Outbound = HTTPTool$Outbound;
1507
+ export declare namespace HTTPToolRun$ {
1508
+ /** @deprecated use `HTTPToolRun$inboundSchema` instead. */
1509
+ const inboundSchema: z.ZodType<HTTPToolRun, z.ZodTypeDef, unknown>;
1510
+ /** @deprecated use `HTTPToolRun$outboundSchema` instead. */
1511
+ const outboundSchema: z.ZodType<HTTPToolRun$Outbound, z.ZodTypeDef, HTTPToolRun>;
1512
+ /** @deprecated use `HTTPToolRun$Outbound` instead. */
1513
+ type Outbound = HTTPToolRun$Outbound;
1595
1514
  }
1596
- export declare function httpToolToJSON(httpTool: HTTPTool): string;
1597
- export declare function httpToolFromJSON(jsonString: string): SafeParseResult<HTTPTool, SDKValidationError>;
1515
+ export declare function httpToolRunToJSON(httpToolRun: HTTPToolRun): string;
1516
+ export declare function httpToolRunFromJSON(jsonString: string): SafeParseResult<HTTPToolRun, SDKValidationError>;
1598
1517
  /** @internal */
1599
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type>;
1518
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type>;
1600
1519
  /** @internal */
1601
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type>;
1520
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type>;
1602
1521
  /**
1603
1522
  * @internal
1604
1523
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1605
1524
  */
1606
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$ {
1607
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
1525
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$ {
1526
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema` instead. */
1608
1527
  const inboundSchema: z.ZodNativeEnum<{
1609
1528
  readonly CurrentDate: "current_date";
1610
1529
  }>;
1611
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
1530
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema` instead. */
1612
1531
  const outboundSchema: z.ZodNativeEnum<{
1613
1532
  readonly CurrentDate: "current_date";
1614
1533
  }>;
1615
1534
  }
1616
1535
  /** @internal */
1617
- export declare const CurrentDateTool$inboundSchema: z.ZodType<CurrentDateTool, z.ZodTypeDef, unknown>;
1536
+ export declare const AgentToolInputRunCurrentDateTool$inboundSchema: z.ZodType<AgentToolInputRunCurrentDateTool, z.ZodTypeDef, unknown>;
1618
1537
  /** @internal */
1619
- export type CurrentDateTool$Outbound = {
1538
+ export type AgentToolInputRunCurrentDateTool$Outbound = {
1620
1539
  type: string;
1621
1540
  requires_approval: boolean;
1622
1541
  };
1623
1542
  /** @internal */
1624
- export declare const CurrentDateTool$outboundSchema: z.ZodType<CurrentDateTool$Outbound, z.ZodTypeDef, CurrentDateTool>;
1543
+ export declare const AgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<AgentToolInputRunCurrentDateTool$Outbound, z.ZodTypeDef, AgentToolInputRunCurrentDateTool>;
1625
1544
  /**
1626
1545
  * @internal
1627
1546
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1628
1547
  */
1629
- export declare namespace CurrentDateTool$ {
1630
- /** @deprecated use `CurrentDateTool$inboundSchema` instead. */
1631
- const inboundSchema: z.ZodType<CurrentDateTool, z.ZodTypeDef, unknown>;
1632
- /** @deprecated use `CurrentDateTool$outboundSchema` instead. */
1633
- const outboundSchema: z.ZodType<CurrentDateTool$Outbound, z.ZodTypeDef, CurrentDateTool>;
1634
- /** @deprecated use `CurrentDateTool$Outbound` instead. */
1635
- type Outbound = CurrentDateTool$Outbound;
1548
+ export declare namespace AgentToolInputRunCurrentDateTool$ {
1549
+ /** @deprecated use `AgentToolInputRunCurrentDateTool$inboundSchema` instead. */
1550
+ const inboundSchema: z.ZodType<AgentToolInputRunCurrentDateTool, z.ZodTypeDef, unknown>;
1551
+ /** @deprecated use `AgentToolInputRunCurrentDateTool$outboundSchema` instead. */
1552
+ const outboundSchema: z.ZodType<AgentToolInputRunCurrentDateTool$Outbound, z.ZodTypeDef, AgentToolInputRunCurrentDateTool>;
1553
+ /** @deprecated use `AgentToolInputRunCurrentDateTool$Outbound` instead. */
1554
+ type Outbound = AgentToolInputRunCurrentDateTool$Outbound;
1636
1555
  }
1637
- export declare function currentDateToolToJSON(currentDateTool: CurrentDateTool): string;
1638
- export declare function currentDateToolFromJSON(jsonString: string): SafeParseResult<CurrentDateTool, SDKValidationError>;
1556
+ export declare function agentToolInputRunCurrentDateToolToJSON(agentToolInputRunCurrentDateTool: AgentToolInputRunCurrentDateTool): string;
1557
+ export declare function agentToolInputRunCurrentDateToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunCurrentDateTool, SDKValidationError>;
1639
1558
  /** @internal */
1640
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type>;
1559
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type>;
1641
1560
  /** @internal */
1642
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type>;
1561
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type>;
1643
1562
  /**
1644
1563
  * @internal
1645
1564
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1646
1565
  */
1647
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$ {
1648
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
1566
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$ {
1567
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema` instead. */
1649
1568
  const inboundSchema: z.ZodNativeEnum<{
1650
1569
  readonly QueryKnowledgeBase: "query_knowledge_base";
1651
1570
  }>;
1652
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
1571
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema` instead. */
1653
1572
  const outboundSchema: z.ZodNativeEnum<{
1654
1573
  readonly QueryKnowledgeBase: "query_knowledge_base";
1655
1574
  }>;
1656
1575
  }
1657
1576
  /** @internal */
1658
- export declare const QueryKnowledgeBaseTool$inboundSchema: z.ZodType<QueryKnowledgeBaseTool, z.ZodTypeDef, unknown>;
1577
+ export declare const AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema: z.ZodType<AgentToolInputRunQueryKnowledgeBaseTool, z.ZodTypeDef, unknown>;
1659
1578
  /** @internal */
1660
- export type QueryKnowledgeBaseTool$Outbound = {
1579
+ export type AgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
1661
1580
  type: string;
1662
1581
  requires_approval: boolean;
1663
1582
  };
1664
1583
  /** @internal */
1665
- export declare const QueryKnowledgeBaseTool$outboundSchema: z.ZodType<QueryKnowledgeBaseTool$Outbound, z.ZodTypeDef, QueryKnowledgeBaseTool>;
1584
+ export declare const AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<AgentToolInputRunQueryKnowledgeBaseTool$Outbound, z.ZodTypeDef, AgentToolInputRunQueryKnowledgeBaseTool>;
1666
1585
  /**
1667
1586
  * @internal
1668
1587
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1669
1588
  */
1670
- export declare namespace QueryKnowledgeBaseTool$ {
1671
- /** @deprecated use `QueryKnowledgeBaseTool$inboundSchema` instead. */
1672
- const inboundSchema: z.ZodType<QueryKnowledgeBaseTool, z.ZodTypeDef, unknown>;
1673
- /** @deprecated use `QueryKnowledgeBaseTool$outboundSchema` instead. */
1674
- const outboundSchema: z.ZodType<QueryKnowledgeBaseTool$Outbound, z.ZodTypeDef, QueryKnowledgeBaseTool>;
1675
- /** @deprecated use `QueryKnowledgeBaseTool$Outbound` instead. */
1676
- type Outbound = QueryKnowledgeBaseTool$Outbound;
1589
+ export declare namespace AgentToolInputRunQueryKnowledgeBaseTool$ {
1590
+ /** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema` instead. */
1591
+ const inboundSchema: z.ZodType<AgentToolInputRunQueryKnowledgeBaseTool, z.ZodTypeDef, unknown>;
1592
+ /** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema` instead. */
1593
+ const outboundSchema: z.ZodType<AgentToolInputRunQueryKnowledgeBaseTool$Outbound, z.ZodTypeDef, AgentToolInputRunQueryKnowledgeBaseTool>;
1594
+ /** @deprecated use `AgentToolInputRunQueryKnowledgeBaseTool$Outbound` instead. */
1595
+ type Outbound = AgentToolInputRunQueryKnowledgeBaseTool$Outbound;
1677
1596
  }
1678
- export declare function queryKnowledgeBaseToolToJSON(queryKnowledgeBaseTool: QueryKnowledgeBaseTool): string;
1679
- export declare function queryKnowledgeBaseToolFromJSON(jsonString: string): SafeParseResult<QueryKnowledgeBaseTool, SDKValidationError>;
1597
+ export declare function agentToolInputRunQueryKnowledgeBaseToolToJSON(agentToolInputRunQueryKnowledgeBaseTool: AgentToolInputRunQueryKnowledgeBaseTool): string;
1598
+ export declare function agentToolInputRunQueryKnowledgeBaseToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunQueryKnowledgeBaseTool, SDKValidationError>;
1680
1599
  /** @internal */
1681
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type>;
1600
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type>;
1682
1601
  /** @internal */
1683
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type>;
1602
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type>;
1684
1603
  /**
1685
1604
  * @internal
1686
1605
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1687
1606
  */
1688
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$ {
1689
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
1607
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$ {
1608
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema` instead. */
1690
1609
  const inboundSchema: z.ZodNativeEnum<{
1691
1610
  readonly RetrieveKnowledgeBases: "retrieve_knowledge_bases";
1692
1611
  }>;
1693
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
1612
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema` instead. */
1694
1613
  const outboundSchema: z.ZodNativeEnum<{
1695
1614
  readonly RetrieveKnowledgeBases: "retrieve_knowledge_bases";
1696
1615
  }>;
1697
1616
  }
1698
1617
  /** @internal */
1699
- export declare const RetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<RetrieveKnowledgeBasesTool, z.ZodTypeDef, unknown>;
1618
+ export declare const AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema: z.ZodType<AgentToolInputRunRetrieveKnowledgeBasesTool, z.ZodTypeDef, unknown>;
1700
1619
  /** @internal */
1701
- export type RetrieveKnowledgeBasesTool$Outbound = {
1620
+ export type AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
1702
1621
  type: string;
1703
1622
  requires_approval: boolean;
1704
1623
  };
1705
1624
  /** @internal */
1706
- export declare const RetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<RetrieveKnowledgeBasesTool$Outbound, z.ZodTypeDef, RetrieveKnowledgeBasesTool>;
1625
+ export declare const AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema: z.ZodType<AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound, z.ZodTypeDef, AgentToolInputRunRetrieveKnowledgeBasesTool>;
1707
1626
  /**
1708
1627
  * @internal
1709
1628
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1710
1629
  */
1711
- export declare namespace RetrieveKnowledgeBasesTool$ {
1712
- /** @deprecated use `RetrieveKnowledgeBasesTool$inboundSchema` instead. */
1713
- const inboundSchema: z.ZodType<RetrieveKnowledgeBasesTool, z.ZodTypeDef, unknown>;
1714
- /** @deprecated use `RetrieveKnowledgeBasesTool$outboundSchema` instead. */
1715
- const outboundSchema: z.ZodType<RetrieveKnowledgeBasesTool$Outbound, z.ZodTypeDef, RetrieveKnowledgeBasesTool>;
1716
- /** @deprecated use `RetrieveKnowledgeBasesTool$Outbound` instead. */
1717
- type Outbound = RetrieveKnowledgeBasesTool$Outbound;
1630
+ export declare namespace AgentToolInputRunRetrieveKnowledgeBasesTool$ {
1631
+ /** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema` instead. */
1632
+ const inboundSchema: z.ZodType<AgentToolInputRunRetrieveKnowledgeBasesTool, z.ZodTypeDef, unknown>;
1633
+ /** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema` instead. */
1634
+ const outboundSchema: z.ZodType<AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound, z.ZodTypeDef, AgentToolInputRunRetrieveKnowledgeBasesTool>;
1635
+ /** @deprecated use `AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound` instead. */
1636
+ type Outbound = AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound;
1718
1637
  }
1719
- export declare function retrieveKnowledgeBasesToolToJSON(retrieveKnowledgeBasesTool: RetrieveKnowledgeBasesTool): string;
1720
- export declare function retrieveKnowledgeBasesToolFromJSON(jsonString: string): SafeParseResult<RetrieveKnowledgeBasesTool, SDKValidationError>;
1638
+ export declare function agentToolInputRunRetrieveKnowledgeBasesToolToJSON(agentToolInputRunRetrieveKnowledgeBasesTool: AgentToolInputRunRetrieveKnowledgeBasesTool): string;
1639
+ export declare function agentToolInputRunRetrieveKnowledgeBasesToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunRetrieveKnowledgeBasesTool, SDKValidationError>;
1721
1640
  /** @internal */
1722
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type>;
1641
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type>;
1723
1642
  /** @internal */
1724
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type>;
1643
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type>;
1725
1644
  /**
1726
1645
  * @internal
1727
1646
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1728
1647
  */
1729
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$ {
1730
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
1648
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$ {
1649
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema` instead. */
1731
1650
  const inboundSchema: z.ZodNativeEnum<{
1732
1651
  readonly DeleteMemoryDocument: "delete_memory_document";
1733
1652
  }>;
1734
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
1653
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema` instead. */
1735
1654
  const outboundSchema: z.ZodNativeEnum<{
1736
1655
  readonly DeleteMemoryDocument: "delete_memory_document";
1737
1656
  }>;
1738
1657
  }
1739
1658
  /** @internal */
1740
- export declare const DeleteMemoryStoreTool$inboundSchema: z.ZodType<DeleteMemoryStoreTool, z.ZodTypeDef, unknown>;
1659
+ export declare const AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema: z.ZodType<AgentToolInputRunDeleteMemoryDocumentTool, z.ZodTypeDef, unknown>;
1741
1660
  /** @internal */
1742
- export type DeleteMemoryStoreTool$Outbound = {
1661
+ export type AgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
1743
1662
  type: string;
1744
1663
  requires_approval: boolean;
1745
1664
  };
1746
1665
  /** @internal */
1747
- export declare const DeleteMemoryStoreTool$outboundSchema: z.ZodType<DeleteMemoryStoreTool$Outbound, z.ZodTypeDef, DeleteMemoryStoreTool>;
1666
+ export declare const AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema: z.ZodType<AgentToolInputRunDeleteMemoryDocumentTool$Outbound, z.ZodTypeDef, AgentToolInputRunDeleteMemoryDocumentTool>;
1748
1667
  /**
1749
1668
  * @internal
1750
1669
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1751
1670
  */
1752
- export declare namespace DeleteMemoryStoreTool$ {
1753
- /** @deprecated use `DeleteMemoryStoreTool$inboundSchema` instead. */
1754
- const inboundSchema: z.ZodType<DeleteMemoryStoreTool, z.ZodTypeDef, unknown>;
1755
- /** @deprecated use `DeleteMemoryStoreTool$outboundSchema` instead. */
1756
- const outboundSchema: z.ZodType<DeleteMemoryStoreTool$Outbound, z.ZodTypeDef, DeleteMemoryStoreTool>;
1757
- /** @deprecated use `DeleteMemoryStoreTool$Outbound` instead. */
1758
- type Outbound = DeleteMemoryStoreTool$Outbound;
1671
+ export declare namespace AgentToolInputRunDeleteMemoryDocumentTool$ {
1672
+ /** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema` instead. */
1673
+ const inboundSchema: z.ZodType<AgentToolInputRunDeleteMemoryDocumentTool, z.ZodTypeDef, unknown>;
1674
+ /** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema` instead. */
1675
+ const outboundSchema: z.ZodType<AgentToolInputRunDeleteMemoryDocumentTool$Outbound, z.ZodTypeDef, AgentToolInputRunDeleteMemoryDocumentTool>;
1676
+ /** @deprecated use `AgentToolInputRunDeleteMemoryDocumentTool$Outbound` instead. */
1677
+ type Outbound = AgentToolInputRunDeleteMemoryDocumentTool$Outbound;
1759
1678
  }
1760
- export declare function deleteMemoryStoreToolToJSON(deleteMemoryStoreTool: DeleteMemoryStoreTool): string;
1761
- export declare function deleteMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<DeleteMemoryStoreTool, SDKValidationError>;
1679
+ export declare function agentToolInputRunDeleteMemoryDocumentToolToJSON(agentToolInputRunDeleteMemoryDocumentTool: AgentToolInputRunDeleteMemoryDocumentTool): string;
1680
+ export declare function agentToolInputRunDeleteMemoryDocumentToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunDeleteMemoryDocumentTool, SDKValidationError>;
1762
1681
  /** @internal */
1763
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType>;
1682
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType>;
1764
1683
  /** @internal */
1765
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType>;
1684
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType>;
1766
1685
  /**
1767
1686
  * @internal
1768
1687
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1769
1688
  */
1770
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$ {
1771
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
1689
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$ {
1690
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema` instead. */
1772
1691
  const inboundSchema: z.ZodNativeEnum<{
1773
1692
  readonly RetrieveMemoryStores: "retrieve_memory_stores";
1774
1693
  }>;
1775
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
1694
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema` instead. */
1776
1695
  const outboundSchema: z.ZodNativeEnum<{
1777
1696
  readonly RetrieveMemoryStores: "retrieve_memory_stores";
1778
1697
  }>;
1779
1698
  }
1780
1699
  /** @internal */
1781
- export declare const RetrieveMemoryStoresTool$inboundSchema: z.ZodType<RetrieveMemoryStoresTool, z.ZodTypeDef, unknown>;
1700
+ export declare const AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema: z.ZodType<AgentToolInputRunRetrieveMemoryStoresTool, z.ZodTypeDef, unknown>;
1782
1701
  /** @internal */
1783
- export type RetrieveMemoryStoresTool$Outbound = {
1702
+ export type AgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
1784
1703
  type: string;
1785
1704
  requires_approval: boolean;
1786
1705
  };
1787
1706
  /** @internal */
1788
- export declare const RetrieveMemoryStoresTool$outboundSchema: z.ZodType<RetrieveMemoryStoresTool$Outbound, z.ZodTypeDef, RetrieveMemoryStoresTool>;
1707
+ export declare const AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema: z.ZodType<AgentToolInputRunRetrieveMemoryStoresTool$Outbound, z.ZodTypeDef, AgentToolInputRunRetrieveMemoryStoresTool>;
1789
1708
  /**
1790
1709
  * @internal
1791
1710
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1792
1711
  */
1793
- export declare namespace RetrieveMemoryStoresTool$ {
1794
- /** @deprecated use `RetrieveMemoryStoresTool$inboundSchema` instead. */
1795
- const inboundSchema: z.ZodType<RetrieveMemoryStoresTool, z.ZodTypeDef, unknown>;
1796
- /** @deprecated use `RetrieveMemoryStoresTool$outboundSchema` instead. */
1797
- const outboundSchema: z.ZodType<RetrieveMemoryStoresTool$Outbound, z.ZodTypeDef, RetrieveMemoryStoresTool>;
1798
- /** @deprecated use `RetrieveMemoryStoresTool$Outbound` instead. */
1799
- type Outbound = RetrieveMemoryStoresTool$Outbound;
1712
+ export declare namespace AgentToolInputRunRetrieveMemoryStoresTool$ {
1713
+ /** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema` instead. */
1714
+ const inboundSchema: z.ZodType<AgentToolInputRunRetrieveMemoryStoresTool, z.ZodTypeDef, unknown>;
1715
+ /** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema` instead. */
1716
+ const outboundSchema: z.ZodType<AgentToolInputRunRetrieveMemoryStoresTool$Outbound, z.ZodTypeDef, AgentToolInputRunRetrieveMemoryStoresTool>;
1717
+ /** @deprecated use `AgentToolInputRunRetrieveMemoryStoresTool$Outbound` instead. */
1718
+ type Outbound = AgentToolInputRunRetrieveMemoryStoresTool$Outbound;
1800
1719
  }
1801
- export declare function retrieveMemoryStoresToolToJSON(retrieveMemoryStoresTool: RetrieveMemoryStoresTool): string;
1802
- export declare function retrieveMemoryStoresToolFromJSON(jsonString: string): SafeParseResult<RetrieveMemoryStoresTool, SDKValidationError>;
1720
+ export declare function agentToolInputRunRetrieveMemoryStoresToolToJSON(agentToolInputRunRetrieveMemoryStoresTool: AgentToolInputRunRetrieveMemoryStoresTool): string;
1721
+ export declare function agentToolInputRunRetrieveMemoryStoresToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunRetrieveMemoryStoresTool, SDKValidationError>;
1803
1722
  /** @internal */
1804
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType>;
1723
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType>;
1805
1724
  /** @internal */
1806
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType>;
1725
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType>;
1807
1726
  /**
1808
1727
  * @internal
1809
1728
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1810
1729
  */
1811
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$ {
1812
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
1730
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$ {
1731
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema` instead. */
1813
1732
  const inboundSchema: z.ZodNativeEnum<{
1814
1733
  readonly WriteMemoryStore: "write_memory_store";
1815
1734
  }>;
1816
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
1735
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema` instead. */
1817
1736
  const outboundSchema: z.ZodNativeEnum<{
1818
1737
  readonly WriteMemoryStore: "write_memory_store";
1819
1738
  }>;
1820
1739
  }
1821
1740
  /** @internal */
1822
- export declare const WriteMemoryStoreTool$inboundSchema: z.ZodType<WriteMemoryStoreTool, z.ZodTypeDef, unknown>;
1741
+ export declare const AgentToolInputRunWriteMemoryStoreTool$inboundSchema: z.ZodType<AgentToolInputRunWriteMemoryStoreTool, z.ZodTypeDef, unknown>;
1823
1742
  /** @internal */
1824
- export type WriteMemoryStoreTool$Outbound = {
1743
+ export type AgentToolInputRunWriteMemoryStoreTool$Outbound = {
1825
1744
  type: string;
1826
1745
  requires_approval: boolean;
1827
1746
  };
1828
1747
  /** @internal */
1829
- export declare const WriteMemoryStoreTool$outboundSchema: z.ZodType<WriteMemoryStoreTool$Outbound, z.ZodTypeDef, WriteMemoryStoreTool>;
1748
+ export declare const AgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<AgentToolInputRunWriteMemoryStoreTool$Outbound, z.ZodTypeDef, AgentToolInputRunWriteMemoryStoreTool>;
1830
1749
  /**
1831
1750
  * @internal
1832
1751
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1833
1752
  */
1834
- export declare namespace WriteMemoryStoreTool$ {
1835
- /** @deprecated use `WriteMemoryStoreTool$inboundSchema` instead. */
1836
- const inboundSchema: z.ZodType<WriteMemoryStoreTool, z.ZodTypeDef, unknown>;
1837
- /** @deprecated use `WriteMemoryStoreTool$outboundSchema` instead. */
1838
- const outboundSchema: z.ZodType<WriteMemoryStoreTool$Outbound, z.ZodTypeDef, WriteMemoryStoreTool>;
1839
- /** @deprecated use `WriteMemoryStoreTool$Outbound` instead. */
1840
- type Outbound = WriteMemoryStoreTool$Outbound;
1753
+ export declare namespace AgentToolInputRunWriteMemoryStoreTool$ {
1754
+ /** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$inboundSchema` instead. */
1755
+ const inboundSchema: z.ZodType<AgentToolInputRunWriteMemoryStoreTool, z.ZodTypeDef, unknown>;
1756
+ /** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$outboundSchema` instead. */
1757
+ const outboundSchema: z.ZodType<AgentToolInputRunWriteMemoryStoreTool$Outbound, z.ZodTypeDef, AgentToolInputRunWriteMemoryStoreTool>;
1758
+ /** @deprecated use `AgentToolInputRunWriteMemoryStoreTool$Outbound` instead. */
1759
+ type Outbound = AgentToolInputRunWriteMemoryStoreTool$Outbound;
1841
1760
  }
1842
- export declare function writeMemoryStoreToolToJSON(writeMemoryStoreTool: WriteMemoryStoreTool): string;
1843
- export declare function writeMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<WriteMemoryStoreTool, SDKValidationError>;
1761
+ export declare function agentToolInputRunWriteMemoryStoreToolToJSON(agentToolInputRunWriteMemoryStoreTool: AgentToolInputRunWriteMemoryStoreTool): string;
1762
+ export declare function agentToolInputRunWriteMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunWriteMemoryStoreTool, SDKValidationError>;
1844
1763
  /** @internal */
1845
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType>;
1764
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType>;
1846
1765
  /** @internal */
1847
- export declare const RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestRequestBodyType>;
1766
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodyType>;
1848
1767
  /**
1849
1768
  * @internal
1850
1769
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1851
1770
  */
1852
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$ {
1853
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$inboundSchema` instead. */
1771
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestRequestBodyType$ {
1772
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema` instead. */
1854
1773
  const inboundSchema: z.ZodNativeEnum<{
1855
1774
  readonly QueryMemoryStore: "query_memory_store";
1856
1775
  }>;
1857
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestRequestBodyType$outboundSchema` instead. */
1776
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema` instead. */
1858
1777
  const outboundSchema: z.ZodNativeEnum<{
1859
1778
  readonly QueryMemoryStore: "query_memory_store";
1860
1779
  }>;
1861
1780
  }
1862
1781
  /** @internal */
1863
- export declare const QueryMemoryStoreTool$inboundSchema: z.ZodType<QueryMemoryStoreTool, z.ZodTypeDef, unknown>;
1782
+ export declare const AgentToolInputRunQueryMemoryStoreTool$inboundSchema: z.ZodType<AgentToolInputRunQueryMemoryStoreTool, z.ZodTypeDef, unknown>;
1864
1783
  /** @internal */
1865
- export type QueryMemoryStoreTool$Outbound = {
1784
+ export type AgentToolInputRunQueryMemoryStoreTool$Outbound = {
1866
1785
  type: string;
1867
1786
  requires_approval: boolean;
1868
1787
  };
1869
1788
  /** @internal */
1870
- export declare const QueryMemoryStoreTool$outboundSchema: z.ZodType<QueryMemoryStoreTool$Outbound, z.ZodTypeDef, QueryMemoryStoreTool>;
1789
+ export declare const AgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<AgentToolInputRunQueryMemoryStoreTool$Outbound, z.ZodTypeDef, AgentToolInputRunQueryMemoryStoreTool>;
1871
1790
  /**
1872
1791
  * @internal
1873
1792
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1874
1793
  */
1875
- export declare namespace QueryMemoryStoreTool$ {
1876
- /** @deprecated use `QueryMemoryStoreTool$inboundSchema` instead. */
1877
- const inboundSchema: z.ZodType<QueryMemoryStoreTool, z.ZodTypeDef, unknown>;
1878
- /** @deprecated use `QueryMemoryStoreTool$outboundSchema` instead. */
1879
- const outboundSchema: z.ZodType<QueryMemoryStoreTool$Outbound, z.ZodTypeDef, QueryMemoryStoreTool>;
1880
- /** @deprecated use `QueryMemoryStoreTool$Outbound` instead. */
1881
- type Outbound = QueryMemoryStoreTool$Outbound;
1794
+ export declare namespace AgentToolInputRunQueryMemoryStoreTool$ {
1795
+ /** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$inboundSchema` instead. */
1796
+ const inboundSchema: z.ZodType<AgentToolInputRunQueryMemoryStoreTool, z.ZodTypeDef, unknown>;
1797
+ /** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$outboundSchema` instead. */
1798
+ const outboundSchema: z.ZodType<AgentToolInputRunQueryMemoryStoreTool$Outbound, z.ZodTypeDef, AgentToolInputRunQueryMemoryStoreTool>;
1799
+ /** @deprecated use `AgentToolInputRunQueryMemoryStoreTool$Outbound` instead. */
1800
+ type Outbound = AgentToolInputRunQueryMemoryStoreTool$Outbound;
1882
1801
  }
1883
- export declare function queryMemoryStoreToolToJSON(queryMemoryStoreTool: QueryMemoryStoreTool): string;
1884
- export declare function queryMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<QueryMemoryStoreTool, SDKValidationError>;
1802
+ export declare function agentToolInputRunQueryMemoryStoreToolToJSON(agentToolInputRunQueryMemoryStoreTool: AgentToolInputRunQueryMemoryStoreTool): string;
1803
+ export declare function agentToolInputRunQueryMemoryStoreToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunQueryMemoryStoreTool, SDKValidationError>;
1885
1804
  /** @internal */
1886
- export declare const RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestType>;
1805
+ export declare const RunAgentAgentToolInputRunAgentsRequestType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType>;
1887
1806
  /** @internal */
1888
- export declare const RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsRequestType>;
1807
+ export declare const RunAgentAgentToolInputRunAgentsRequestType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestType>;
1889
1808
  /**
1890
1809
  * @internal
1891
1810
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1892
1811
  */
1893
- export declare namespace RunAgentRunAgentRequestToolAgentsRequestType$ {
1894
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestType$inboundSchema` instead. */
1812
+ export declare namespace RunAgentAgentToolInputRunAgentsRequestType$ {
1813
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$inboundSchema` instead. */
1895
1814
  const inboundSchema: z.ZodNativeEnum<{
1896
1815
  readonly RetrieveAgents: "retrieve_agents";
1897
1816
  }>;
1898
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsRequestType$outboundSchema` instead. */
1817
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsRequestType$outboundSchema` instead. */
1899
1818
  const outboundSchema: z.ZodNativeEnum<{
1900
1819
  readonly RetrieveAgents: "retrieve_agents";
1901
1820
  }>;
1902
1821
  }
1903
1822
  /** @internal */
1904
- export declare const RetrieveAgentsTool$inboundSchema: z.ZodType<RetrieveAgentsTool, z.ZodTypeDef, unknown>;
1823
+ export declare const AgentToolInputRunRetrieveAgentsTool$inboundSchema: z.ZodType<AgentToolInputRunRetrieveAgentsTool, z.ZodTypeDef, unknown>;
1905
1824
  /** @internal */
1906
- export type RetrieveAgentsTool$Outbound = {
1825
+ export type AgentToolInputRunRetrieveAgentsTool$Outbound = {
1907
1826
  type: string;
1908
1827
  requires_approval: boolean;
1909
1828
  };
1910
1829
  /** @internal */
1911
- export declare const RetrieveAgentsTool$outboundSchema: z.ZodType<RetrieveAgentsTool$Outbound, z.ZodTypeDef, RetrieveAgentsTool>;
1830
+ export declare const AgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<AgentToolInputRunRetrieveAgentsTool$Outbound, z.ZodTypeDef, AgentToolInputRunRetrieveAgentsTool>;
1912
1831
  /**
1913
1832
  * @internal
1914
1833
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1915
1834
  */
1916
- export declare namespace RetrieveAgentsTool$ {
1917
- /** @deprecated use `RetrieveAgentsTool$inboundSchema` instead. */
1918
- const inboundSchema: z.ZodType<RetrieveAgentsTool, z.ZodTypeDef, unknown>;
1919
- /** @deprecated use `RetrieveAgentsTool$outboundSchema` instead. */
1920
- const outboundSchema: z.ZodType<RetrieveAgentsTool$Outbound, z.ZodTypeDef, RetrieveAgentsTool>;
1921
- /** @deprecated use `RetrieveAgentsTool$Outbound` instead. */
1922
- type Outbound = RetrieveAgentsTool$Outbound;
1835
+ export declare namespace AgentToolInputRunRetrieveAgentsTool$ {
1836
+ /** @deprecated use `AgentToolInputRunRetrieveAgentsTool$inboundSchema` instead. */
1837
+ const inboundSchema: z.ZodType<AgentToolInputRunRetrieveAgentsTool, z.ZodTypeDef, unknown>;
1838
+ /** @deprecated use `AgentToolInputRunRetrieveAgentsTool$outboundSchema` instead. */
1839
+ const outboundSchema: z.ZodType<AgentToolInputRunRetrieveAgentsTool$Outbound, z.ZodTypeDef, AgentToolInputRunRetrieveAgentsTool>;
1840
+ /** @deprecated use `AgentToolInputRunRetrieveAgentsTool$Outbound` instead. */
1841
+ type Outbound = AgentToolInputRunRetrieveAgentsTool$Outbound;
1923
1842
  }
1924
- export declare function retrieveAgentsToolToJSON(retrieveAgentsTool: RetrieveAgentsTool): string;
1925
- export declare function retrieveAgentsToolFromJSON(jsonString: string): SafeParseResult<RetrieveAgentsTool, SDKValidationError>;
1843
+ export declare function agentToolInputRunRetrieveAgentsToolToJSON(agentToolInputRunRetrieveAgentsTool: AgentToolInputRunRetrieveAgentsTool): string;
1844
+ export declare function agentToolInputRunRetrieveAgentsToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunRetrieveAgentsTool, SDKValidationError>;
1926
1845
  /** @internal */
1927
- export declare const RunAgentRunAgentRequestToolAgentsType$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsType>;
1846
+ export declare const RunAgentAgentToolInputRunAgentsType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsType>;
1928
1847
  /** @internal */
1929
- export declare const RunAgentRunAgentRequestToolAgentsType$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolAgentsType>;
1848
+ export declare const RunAgentAgentToolInputRunAgentsType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsType>;
1930
1849
  /**
1931
1850
  * @internal
1932
1851
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1933
1852
  */
1934
- export declare namespace RunAgentRunAgentRequestToolAgentsType$ {
1935
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsType$inboundSchema` instead. */
1853
+ export declare namespace RunAgentAgentToolInputRunAgentsType$ {
1854
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsType$inboundSchema` instead. */
1936
1855
  const inboundSchema: z.ZodNativeEnum<{
1937
1856
  readonly CallSubAgent: "call_sub_agent";
1938
1857
  }>;
1939
- /** @deprecated use `RunAgentRunAgentRequestToolAgentsType$outboundSchema` instead. */
1858
+ /** @deprecated use `RunAgentAgentToolInputRunAgentsType$outboundSchema` instead. */
1940
1859
  const outboundSchema: z.ZodNativeEnum<{
1941
1860
  readonly CallSubAgent: "call_sub_agent";
1942
1861
  }>;
1943
1862
  }
1944
1863
  /** @internal */
1945
- export declare const CallSubAgentTool$inboundSchema: z.ZodType<CallSubAgentTool, z.ZodTypeDef, unknown>;
1864
+ export declare const AgentToolInputRunCallSubAgentTool$inboundSchema: z.ZodType<AgentToolInputRunCallSubAgentTool, z.ZodTypeDef, unknown>;
1946
1865
  /** @internal */
1947
- export type CallSubAgentTool$Outbound = {
1866
+ export type AgentToolInputRunCallSubAgentTool$Outbound = {
1948
1867
  type: string;
1949
1868
  requires_approval: boolean;
1950
1869
  };
1951
1870
  /** @internal */
1952
- export declare const CallSubAgentTool$outboundSchema: z.ZodType<CallSubAgentTool$Outbound, z.ZodTypeDef, CallSubAgentTool>;
1871
+ export declare const AgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<AgentToolInputRunCallSubAgentTool$Outbound, z.ZodTypeDef, AgentToolInputRunCallSubAgentTool>;
1953
1872
  /**
1954
1873
  * @internal
1955
1874
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1956
1875
  */
1957
- export declare namespace CallSubAgentTool$ {
1958
- /** @deprecated use `CallSubAgentTool$inboundSchema` instead. */
1959
- const inboundSchema: z.ZodType<CallSubAgentTool, z.ZodTypeDef, unknown>;
1960
- /** @deprecated use `CallSubAgentTool$outboundSchema` instead. */
1961
- const outboundSchema: z.ZodType<CallSubAgentTool$Outbound, z.ZodTypeDef, CallSubAgentTool>;
1962
- /** @deprecated use `CallSubAgentTool$Outbound` instead. */
1963
- type Outbound = CallSubAgentTool$Outbound;
1876
+ export declare namespace AgentToolInputRunCallSubAgentTool$ {
1877
+ /** @deprecated use `AgentToolInputRunCallSubAgentTool$inboundSchema` instead. */
1878
+ const inboundSchema: z.ZodType<AgentToolInputRunCallSubAgentTool, z.ZodTypeDef, unknown>;
1879
+ /** @deprecated use `AgentToolInputRunCallSubAgentTool$outboundSchema` instead. */
1880
+ const outboundSchema: z.ZodType<AgentToolInputRunCallSubAgentTool$Outbound, z.ZodTypeDef, AgentToolInputRunCallSubAgentTool>;
1881
+ /** @deprecated use `AgentToolInputRunCallSubAgentTool$Outbound` instead. */
1882
+ type Outbound = AgentToolInputRunCallSubAgentTool$Outbound;
1964
1883
  }
1965
- export declare function callSubAgentToolToJSON(callSubAgentTool: CallSubAgentTool): string;
1966
- export declare function callSubAgentToolFromJSON(jsonString: string): SafeParseResult<CallSubAgentTool, SDKValidationError>;
1884
+ export declare function agentToolInputRunCallSubAgentToolToJSON(agentToolInputRunCallSubAgentTool: AgentToolInputRunCallSubAgentTool): string;
1885
+ export declare function agentToolInputRunCallSubAgentToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunCallSubAgentTool, SDKValidationError>;
1967
1886
  /** @internal */
1968
- export declare const RunAgentRunAgentRequestToolType$inboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolType>;
1887
+ export declare const RunAgentAgentToolInputRunType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunType>;
1969
1888
  /** @internal */
1970
- export declare const RunAgentRunAgentRequestToolType$outboundSchema: z.ZodNativeEnum<typeof RunAgentRunAgentRequestToolType>;
1889
+ export declare const RunAgentAgentToolInputRunType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunType>;
1971
1890
  /**
1972
1891
  * @internal
1973
1892
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1974
1893
  */
1975
- export declare namespace RunAgentRunAgentRequestToolType$ {
1976
- /** @deprecated use `RunAgentRunAgentRequestToolType$inboundSchema` instead. */
1894
+ export declare namespace RunAgentAgentToolInputRunType$ {
1895
+ /** @deprecated use `RunAgentAgentToolInputRunType$inboundSchema` instead. */
1977
1896
  const inboundSchema: z.ZodNativeEnum<{
1978
1897
  readonly WebScraper: "web_scraper";
1979
1898
  }>;
1980
- /** @deprecated use `RunAgentRunAgentRequestToolType$outboundSchema` instead. */
1899
+ /** @deprecated use `RunAgentAgentToolInputRunType$outboundSchema` instead. */
1981
1900
  const outboundSchema: z.ZodNativeEnum<{
1982
1901
  readonly WebScraper: "web_scraper";
1983
1902
  }>;
1984
1903
  }
1985
1904
  /** @internal */
1986
- export declare const WebScraperTool$inboundSchema: z.ZodType<WebScraperTool, z.ZodTypeDef, unknown>;
1905
+ export declare const AgentToolInputRunWebScraperTool$inboundSchema: z.ZodType<AgentToolInputRunWebScraperTool, z.ZodTypeDef, unknown>;
1987
1906
  /** @internal */
1988
- export type WebScraperTool$Outbound = {
1907
+ export type AgentToolInputRunWebScraperTool$Outbound = {
1989
1908
  type: string;
1990
1909
  requires_approval: boolean;
1991
1910
  };
1992
1911
  /** @internal */
1993
- export declare const WebScraperTool$outboundSchema: z.ZodType<WebScraperTool$Outbound, z.ZodTypeDef, WebScraperTool>;
1912
+ export declare const AgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<AgentToolInputRunWebScraperTool$Outbound, z.ZodTypeDef, AgentToolInputRunWebScraperTool>;
1994
1913
  /**
1995
1914
  * @internal
1996
1915
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1997
1916
  */
1998
- export declare namespace WebScraperTool$ {
1999
- /** @deprecated use `WebScraperTool$inboundSchema` instead. */
2000
- const inboundSchema: z.ZodType<WebScraperTool, z.ZodTypeDef, unknown>;
2001
- /** @deprecated use `WebScraperTool$outboundSchema` instead. */
2002
- const outboundSchema: z.ZodType<WebScraperTool$Outbound, z.ZodTypeDef, WebScraperTool>;
2003
- /** @deprecated use `WebScraperTool$Outbound` instead. */
2004
- type Outbound = WebScraperTool$Outbound;
1917
+ export declare namespace AgentToolInputRunWebScraperTool$ {
1918
+ /** @deprecated use `AgentToolInputRunWebScraperTool$inboundSchema` instead. */
1919
+ const inboundSchema: z.ZodType<AgentToolInputRunWebScraperTool, z.ZodTypeDef, unknown>;
1920
+ /** @deprecated use `AgentToolInputRunWebScraperTool$outboundSchema` instead. */
1921
+ const outboundSchema: z.ZodType<AgentToolInputRunWebScraperTool$Outbound, z.ZodTypeDef, AgentToolInputRunWebScraperTool>;
1922
+ /** @deprecated use `AgentToolInputRunWebScraperTool$Outbound` instead. */
1923
+ type Outbound = AgentToolInputRunWebScraperTool$Outbound;
2005
1924
  }
2006
- export declare function webScraperToolToJSON(webScraperTool: WebScraperTool): string;
2007
- export declare function webScraperToolFromJSON(jsonString: string): SafeParseResult<WebScraperTool, SDKValidationError>;
1925
+ export declare function agentToolInputRunWebScraperToolToJSON(agentToolInputRunWebScraperTool: AgentToolInputRunWebScraperTool): string;
1926
+ export declare function agentToolInputRunWebScraperToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunWebScraperTool, SDKValidationError>;
2008
1927
  /** @internal */
2009
- export declare const RunAgentRequestToolType$inboundSchema: z.ZodNativeEnum<typeof RunAgentRequestToolType>;
1928
+ export declare const AgentToolInputRunType$inboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunType>;
2010
1929
  /** @internal */
2011
- export declare const RunAgentRequestToolType$outboundSchema: z.ZodNativeEnum<typeof RunAgentRequestToolType>;
1930
+ export declare const AgentToolInputRunType$outboundSchema: z.ZodNativeEnum<typeof AgentToolInputRunType>;
2012
1931
  /**
2013
1932
  * @internal
2014
1933
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2015
1934
  */
2016
- export declare namespace RunAgentRequestToolType$ {
2017
- /** @deprecated use `RunAgentRequestToolType$inboundSchema` instead. */
1935
+ export declare namespace AgentToolInputRunType$ {
1936
+ /** @deprecated use `AgentToolInputRunType$inboundSchema` instead. */
2018
1937
  const inboundSchema: z.ZodNativeEnum<{
2019
1938
  readonly GoogleSearch: "google_search";
2020
1939
  }>;
2021
- /** @deprecated use `RunAgentRequestToolType$outboundSchema` instead. */
1940
+ /** @deprecated use `AgentToolInputRunType$outboundSchema` instead. */
2022
1941
  const outboundSchema: z.ZodNativeEnum<{
2023
1942
  readonly GoogleSearch: "google_search";
2024
1943
  }>;
2025
1944
  }
2026
1945
  /** @internal */
2027
- export declare const GoogleSearchTool$inboundSchema: z.ZodType<GoogleSearchTool, z.ZodTypeDef, unknown>;
1946
+ export declare const AgentToolInputRunGoogleSearchTool$inboundSchema: z.ZodType<AgentToolInputRunGoogleSearchTool, z.ZodTypeDef, unknown>;
2028
1947
  /** @internal */
2029
- export type GoogleSearchTool$Outbound = {
1948
+ export type AgentToolInputRunGoogleSearchTool$Outbound = {
2030
1949
  type: string;
2031
1950
  requires_approval: boolean;
2032
1951
  };
2033
1952
  /** @internal */
2034
- export declare const GoogleSearchTool$outboundSchema: z.ZodType<GoogleSearchTool$Outbound, z.ZodTypeDef, GoogleSearchTool>;
1953
+ export declare const AgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<AgentToolInputRunGoogleSearchTool$Outbound, z.ZodTypeDef, AgentToolInputRunGoogleSearchTool>;
2035
1954
  /**
2036
1955
  * @internal
2037
1956
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2038
1957
  */
2039
- export declare namespace GoogleSearchTool$ {
2040
- /** @deprecated use `GoogleSearchTool$inboundSchema` instead. */
2041
- const inboundSchema: z.ZodType<GoogleSearchTool, z.ZodTypeDef, unknown>;
2042
- /** @deprecated use `GoogleSearchTool$outboundSchema` instead. */
2043
- const outboundSchema: z.ZodType<GoogleSearchTool$Outbound, z.ZodTypeDef, GoogleSearchTool>;
2044
- /** @deprecated use `GoogleSearchTool$Outbound` instead. */
2045
- type Outbound = GoogleSearchTool$Outbound;
1958
+ export declare namespace AgentToolInputRunGoogleSearchTool$ {
1959
+ /** @deprecated use `AgentToolInputRunGoogleSearchTool$inboundSchema` instead. */
1960
+ const inboundSchema: z.ZodType<AgentToolInputRunGoogleSearchTool, z.ZodTypeDef, unknown>;
1961
+ /** @deprecated use `AgentToolInputRunGoogleSearchTool$outboundSchema` instead. */
1962
+ const outboundSchema: z.ZodType<AgentToolInputRunGoogleSearchTool$Outbound, z.ZodTypeDef, AgentToolInputRunGoogleSearchTool>;
1963
+ /** @deprecated use `AgentToolInputRunGoogleSearchTool$Outbound` instead. */
1964
+ type Outbound = AgentToolInputRunGoogleSearchTool$Outbound;
2046
1965
  }
2047
- export declare function googleSearchToolToJSON(googleSearchTool: GoogleSearchTool): string;
2048
- export declare function googleSearchToolFromJSON(jsonString: string): SafeParseResult<GoogleSearchTool, SDKValidationError>;
1966
+ export declare function agentToolInputRunGoogleSearchToolToJSON(agentToolInputRunGoogleSearchTool: AgentToolInputRunGoogleSearchTool): string;
1967
+ export declare function agentToolInputRunGoogleSearchToolFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunGoogleSearchTool, SDKValidationError>;
2049
1968
  /** @internal */
2050
- export declare const RunAgentRequestTool$inboundSchema: z.ZodType<RunAgentRequestTool, z.ZodTypeDef, unknown>;
1969
+ export declare const AgentToolInputRun$inboundSchema: z.ZodType<AgentToolInputRun, z.ZodTypeDef, unknown>;
2051
1970
  /** @internal */
2052
- export type RunAgentRequestTool$Outbound = HTTPTool$Outbound | CodeExecutionTool$Outbound | FunctionTool$Outbound | GoogleSearchTool$Outbound | WebScraperTool$Outbound | CallSubAgentTool$Outbound | RetrieveAgentsTool$Outbound | QueryMemoryStoreTool$Outbound | WriteMemoryStoreTool$Outbound | RetrieveMemoryStoresTool$Outbound | DeleteMemoryStoreTool$Outbound | RetrieveKnowledgeBasesTool$Outbound | QueryKnowledgeBaseTool$Outbound | CurrentDateTool$Outbound;
1971
+ export type AgentToolInputRun$Outbound = HTTPToolRun$Outbound | CodeToolRun$Outbound | FunctionToolRun$Outbound | AgentToolInputRunGoogleSearchTool$Outbound | AgentToolInputRunWebScraperTool$Outbound | AgentToolInputRunCallSubAgentTool$Outbound | AgentToolInputRunRetrieveAgentsTool$Outbound | AgentToolInputRunQueryMemoryStoreTool$Outbound | AgentToolInputRunWriteMemoryStoreTool$Outbound | AgentToolInputRunRetrieveMemoryStoresTool$Outbound | AgentToolInputRunDeleteMemoryDocumentTool$Outbound | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | AgentToolInputRunQueryKnowledgeBaseTool$Outbound | AgentToolInputRunCurrentDateTool$Outbound;
2053
1972
  /** @internal */
2054
- export declare const RunAgentRequestTool$outboundSchema: z.ZodType<RunAgentRequestTool$Outbound, z.ZodTypeDef, RunAgentRequestTool>;
1973
+ export declare const AgentToolInputRun$outboundSchema: z.ZodType<AgentToolInputRun$Outbound, z.ZodTypeDef, AgentToolInputRun>;
2055
1974
  /**
2056
1975
  * @internal
2057
1976
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2058
1977
  */
2059
- export declare namespace RunAgentRequestTool$ {
2060
- /** @deprecated use `RunAgentRequestTool$inboundSchema` instead. */
2061
- const inboundSchema: z.ZodType<RunAgentRequestTool, z.ZodTypeDef, unknown>;
2062
- /** @deprecated use `RunAgentRequestTool$outboundSchema` instead. */
2063
- const outboundSchema: z.ZodType<RunAgentRequestTool$Outbound, z.ZodTypeDef, RunAgentRequestTool>;
2064
- /** @deprecated use `RunAgentRequestTool$Outbound` instead. */
2065
- type Outbound = RunAgentRequestTool$Outbound;
1978
+ export declare namespace AgentToolInputRun$ {
1979
+ /** @deprecated use `AgentToolInputRun$inboundSchema` instead. */
1980
+ const inboundSchema: z.ZodType<AgentToolInputRun, z.ZodTypeDef, unknown>;
1981
+ /** @deprecated use `AgentToolInputRun$outboundSchema` instead. */
1982
+ const outboundSchema: z.ZodType<AgentToolInputRun$Outbound, z.ZodTypeDef, AgentToolInputRun>;
1983
+ /** @deprecated use `AgentToolInputRun$Outbound` instead. */
1984
+ type Outbound = AgentToolInputRun$Outbound;
2066
1985
  }
2067
- export declare function runAgentRequestToolToJSON(runAgentRequestTool: RunAgentRequestTool): string;
2068
- export declare function runAgentRequestToolFromJSON(jsonString: string): SafeParseResult<RunAgentRequestTool, SDKValidationError>;
1986
+ export declare function agentToolInputRunToJSON(agentToolInputRun: AgentToolInputRun): string;
1987
+ export declare function agentToolInputRunFromJSON(jsonString: string): SafeParseResult<AgentToolInputRun, SDKValidationError>;
2069
1988
  /** @internal */
2070
- export declare const ToolApprovalRequired$inboundSchema: z.ZodNativeEnum<typeof ToolApprovalRequired>;
1989
+ export declare const RunAgentToolApprovalRequired$inboundSchema: z.ZodNativeEnum<typeof RunAgentToolApprovalRequired>;
2071
1990
  /** @internal */
2072
- export declare const ToolApprovalRequired$outboundSchema: z.ZodNativeEnum<typeof ToolApprovalRequired>;
1991
+ export declare const RunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<typeof RunAgentToolApprovalRequired>;
2073
1992
  /**
2074
1993
  * @internal
2075
1994
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2076
1995
  */
2077
- export declare namespace ToolApprovalRequired$ {
2078
- /** @deprecated use `ToolApprovalRequired$inboundSchema` instead. */
1996
+ export declare namespace RunAgentToolApprovalRequired$ {
1997
+ /** @deprecated use `RunAgentToolApprovalRequired$inboundSchema` instead. */
2079
1998
  const inboundSchema: z.ZodNativeEnum<{
2080
1999
  readonly All: "all";
2081
2000
  readonly RespectTool: "respect_tool";
2082
2001
  readonly None: "none";
2083
2002
  }>;
2084
- /** @deprecated use `ToolApprovalRequired$outboundSchema` instead. */
2003
+ /** @deprecated use `RunAgentToolApprovalRequired$outboundSchema` instead. */
2085
2004
  const outboundSchema: z.ZodNativeEnum<{
2086
2005
  readonly All: "all";
2087
2006
  readonly RespectTool: "respect_tool";
@@ -2089,54 +2008,54 @@ export declare namespace ToolApprovalRequired$ {
2089
2008
  }>;
2090
2009
  }
2091
2010
  /** @internal */
2092
- export declare const Settings$inboundSchema: z.ZodType<Settings, z.ZodTypeDef, unknown>;
2011
+ export declare const RunAgentSettings$inboundSchema: z.ZodType<RunAgentSettings, z.ZodTypeDef, unknown>;
2093
2012
  /** @internal */
2094
- export type Settings$Outbound = {
2095
- tools: Array<HTTPTool$Outbound | CodeExecutionTool$Outbound | FunctionTool$Outbound | GoogleSearchTool$Outbound | WebScraperTool$Outbound | CallSubAgentTool$Outbound | RetrieveAgentsTool$Outbound | QueryMemoryStoreTool$Outbound | WriteMemoryStoreTool$Outbound | RetrieveMemoryStoresTool$Outbound | DeleteMemoryStoreTool$Outbound | RetrieveKnowledgeBasesTool$Outbound | QueryKnowledgeBaseTool$Outbound | CurrentDateTool$Outbound>;
2013
+ export type RunAgentSettings$Outbound = {
2014
+ tools: Array<HTTPToolRun$Outbound | CodeToolRun$Outbound | FunctionToolRun$Outbound | AgentToolInputRunGoogleSearchTool$Outbound | AgentToolInputRunWebScraperTool$Outbound | AgentToolInputRunCallSubAgentTool$Outbound | AgentToolInputRunRetrieveAgentsTool$Outbound | AgentToolInputRunQueryMemoryStoreTool$Outbound | AgentToolInputRunWriteMemoryStoreTool$Outbound | AgentToolInputRunRetrieveMemoryStoresTool$Outbound | AgentToolInputRunDeleteMemoryDocumentTool$Outbound | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | AgentToolInputRunQueryKnowledgeBaseTool$Outbound | AgentToolInputRunCurrentDateTool$Outbound>;
2096
2015
  tool_approval_required: string;
2097
2016
  max_iterations: number;
2098
2017
  max_execution_time: number;
2099
2018
  };
2100
2019
  /** @internal */
2101
- export declare const Settings$outboundSchema: z.ZodType<Settings$Outbound, z.ZodTypeDef, Settings>;
2020
+ export declare const RunAgentSettings$outboundSchema: z.ZodType<RunAgentSettings$Outbound, z.ZodTypeDef, RunAgentSettings>;
2102
2021
  /**
2103
2022
  * @internal
2104
2023
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2105
2024
  */
2106
- export declare namespace Settings$ {
2107
- /** @deprecated use `Settings$inboundSchema` instead. */
2108
- const inboundSchema: z.ZodType<Settings, z.ZodTypeDef, unknown>;
2109
- /** @deprecated use `Settings$outboundSchema` instead. */
2110
- const outboundSchema: z.ZodType<Settings$Outbound, z.ZodTypeDef, Settings>;
2111
- /** @deprecated use `Settings$Outbound` instead. */
2112
- type Outbound = Settings$Outbound;
2025
+ export declare namespace RunAgentSettings$ {
2026
+ /** @deprecated use `RunAgentSettings$inboundSchema` instead. */
2027
+ const inboundSchema: z.ZodType<RunAgentSettings, z.ZodTypeDef, unknown>;
2028
+ /** @deprecated use `RunAgentSettings$outboundSchema` instead. */
2029
+ const outboundSchema: z.ZodType<RunAgentSettings$Outbound, z.ZodTypeDef, RunAgentSettings>;
2030
+ /** @deprecated use `RunAgentSettings$Outbound` instead. */
2031
+ type Outbound = RunAgentSettings$Outbound;
2113
2032
  }
2114
- export declare function settingsToJSON(settings: Settings): string;
2115
- export declare function settingsFromJSON(jsonString: string): SafeParseResult<Settings, SDKValidationError>;
2033
+ export declare function runAgentSettingsToJSON(runAgentSettings: RunAgentSettings): string;
2034
+ export declare function runAgentSettingsFromJSON(jsonString: string): SafeParseResult<RunAgentSettings, SDKValidationError>;
2116
2035
  /** @internal */
2117
2036
  export declare const RunAgentRequestBody$inboundSchema: z.ZodType<RunAgentRequestBody, z.ZodTypeDef, unknown>;
2118
2037
  /** @internal */
2119
2038
  export type RunAgentRequestBody$Outbound = {
2120
2039
  key: string;
2121
- taskId?: string | undefined;
2040
+ task_id?: string | undefined;
2122
2041
  model: string;
2123
2042
  fallback_models?: Array<string> | undefined;
2124
2043
  role: string;
2125
2044
  instructions: string;
2126
- message: Message$Outbound;
2045
+ message: RunAgentMessage$Outbound;
2127
2046
  variables?: {
2128
2047
  [k: string]: any;
2129
2048
  } | undefined;
2130
- contact?: Contact$Outbound | undefined;
2049
+ contact?: RunAgentContact$Outbound | undefined;
2131
2050
  thread?: RunAgentThread$Outbound | undefined;
2132
- memory?: Memory$Outbound | undefined;
2051
+ memory?: RunAgentMemory$Outbound | undefined;
2133
2052
  path: string;
2134
2053
  description?: string | undefined;
2135
2054
  system_prompt?: string | undefined;
2136
2055
  memory_stores?: Array<string> | undefined;
2137
- knowledge_bases?: Array<KnowledgeBases$Outbound> | undefined;
2056
+ knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
2138
2057
  team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
2139
- settings: Settings$Outbound;
2058
+ settings: RunAgentSettings$Outbound;
2140
2059
  metadata?: {
2141
2060
  [k: string]: any;
2142
2061
  } | undefined;
@@ -2252,37 +2171,37 @@ export declare namespace RunAgentAgentsRole$ {
2252
2171
  }>;
2253
2172
  }
2254
2173
  /** @internal */
2255
- export declare const RunAgentMessage$inboundSchema: z.ZodType<RunAgentMessage, z.ZodTypeDef, unknown>;
2174
+ export declare const RunAgentAgentsMessage$inboundSchema: z.ZodType<RunAgentAgentsMessage, z.ZodTypeDef, unknown>;
2256
2175
  /** @internal */
2257
- export type RunAgentMessage$Outbound = {
2176
+ export type RunAgentAgentsMessage$Outbound = {
2258
2177
  kind: string;
2259
2178
  messageId: string;
2260
2179
  role: string;
2261
2180
  parts: Array<any>;
2262
2181
  };
2263
2182
  /** @internal */
2264
- export declare const RunAgentMessage$outboundSchema: z.ZodType<RunAgentMessage$Outbound, z.ZodTypeDef, RunAgentMessage>;
2183
+ export declare const RunAgentAgentsMessage$outboundSchema: z.ZodType<RunAgentAgentsMessage$Outbound, z.ZodTypeDef, RunAgentAgentsMessage>;
2265
2184
  /**
2266
2185
  * @internal
2267
2186
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2268
2187
  */
2269
- export declare namespace RunAgentMessage$ {
2270
- /** @deprecated use `RunAgentMessage$inboundSchema` instead. */
2271
- const inboundSchema: z.ZodType<RunAgentMessage, z.ZodTypeDef, unknown>;
2272
- /** @deprecated use `RunAgentMessage$outboundSchema` instead. */
2273
- const outboundSchema: z.ZodType<RunAgentMessage$Outbound, z.ZodTypeDef, RunAgentMessage>;
2274
- /** @deprecated use `RunAgentMessage$Outbound` instead. */
2275
- type Outbound = RunAgentMessage$Outbound;
2188
+ export declare namespace RunAgentAgentsMessage$ {
2189
+ /** @deprecated use `RunAgentAgentsMessage$inboundSchema` instead. */
2190
+ const inboundSchema: z.ZodType<RunAgentAgentsMessage, z.ZodTypeDef, unknown>;
2191
+ /** @deprecated use `RunAgentAgentsMessage$outboundSchema` instead. */
2192
+ const outboundSchema: z.ZodType<RunAgentAgentsMessage$Outbound, z.ZodTypeDef, RunAgentAgentsMessage>;
2193
+ /** @deprecated use `RunAgentAgentsMessage$Outbound` instead. */
2194
+ type Outbound = RunAgentAgentsMessage$Outbound;
2276
2195
  }
2277
- export declare function runAgentMessageToJSON(runAgentMessage: RunAgentMessage): string;
2278
- export declare function runAgentMessageFromJSON(jsonString: string): SafeParseResult<RunAgentMessage, SDKValidationError>;
2196
+ export declare function runAgentAgentsMessageToJSON(runAgentAgentsMessage: RunAgentAgentsMessage): string;
2197
+ export declare function runAgentAgentsMessageFromJSON(jsonString: string): SafeParseResult<RunAgentAgentsMessage, SDKValidationError>;
2279
2198
  /** @internal */
2280
2199
  export declare const RunAgentStatus$inboundSchema: z.ZodType<RunAgentStatus, z.ZodTypeDef, unknown>;
2281
2200
  /** @internal */
2282
2201
  export type RunAgentStatus$Outbound = {
2283
2202
  state: string;
2284
2203
  timestamp?: string | undefined;
2285
- message?: RunAgentMessage$Outbound | undefined;
2204
+ message?: RunAgentAgentsMessage$Outbound | undefined;
2286
2205
  };
2287
2206
  /** @internal */
2288
2207
  export declare const RunAgentStatus$outboundSchema: z.ZodType<RunAgentStatus$Outbound, z.ZodTypeDef, RunAgentStatus>;