@orq-ai/node 3.13.9 → 3.13.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/README.md +107 -93
  2. package/bin/mcp-server.js +43652 -40649
  3. package/bin/mcp-server.js.map +117 -98
  4. package/docs/sdks/agents/README.md +566 -0
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsCreate.d.ts +18 -0
  7. package/funcs/agentsCreate.d.ts.map +1 -0
  8. package/funcs/agentsCreate.js +120 -0
  9. package/funcs/agentsCreate.js.map +1 -0
  10. package/funcs/agentsDelete.d.ts +18 -0
  11. package/funcs/agentsDelete.d.ts.map +1 -0
  12. package/funcs/agentsDelete.js +124 -0
  13. package/funcs/agentsDelete.js.map +1 -0
  14. package/funcs/agentsInvoke.d.ts +17 -0
  15. package/funcs/agentsInvoke.d.ts.map +1 -0
  16. package/funcs/agentsInvoke.js +120 -0
  17. package/funcs/agentsInvoke.js.map +1 -0
  18. package/funcs/agentsStream.d.ts +19 -0
  19. package/funcs/agentsStream.d.ts.map +1 -0
  20. package/funcs/agentsStream.js +134 -0
  21. package/funcs/agentsStream.js.map +1 -0
  22. package/funcs/agentsUpdate.d.ts +18 -0
  23. package/funcs/agentsUpdate.d.ts.map +1 -0
  24. package/funcs/agentsUpdate.js +124 -0
  25. package/funcs/agentsUpdate.js.map +1 -0
  26. package/jsr.json +1 -1
  27. package/lib/config.d.ts +2 -2
  28. package/lib/config.js +2 -2
  29. package/lib/config.js.map +1 -1
  30. package/mcp-server/mcp-server.js +1 -1
  31. package/mcp-server/mcp-server.js.map +1 -1
  32. package/mcp-server/server.d.ts.map +1 -1
  33. package/mcp-server/server.js +11 -1
  34. package/mcp-server/server.js.map +1 -1
  35. package/mcp-server/tools/agentsCreate.d.ts +8 -0
  36. package/mcp-server/tools/agentsCreate.d.ts.map +1 -0
  37. package/mcp-server/tools/agentsCreate.js +64 -0
  38. package/mcp-server/tools/agentsCreate.js.map +1 -0
  39. package/mcp-server/tools/agentsDelete.d.ts +8 -0
  40. package/mcp-server/tools/agentsDelete.d.ts.map +1 -0
  41. package/mcp-server/tools/agentsDelete.js +63 -0
  42. package/mcp-server/tools/agentsDelete.js.map +1 -0
  43. package/mcp-server/tools/agentsInvoke.d.ts +8 -0
  44. package/mcp-server/tools/agentsInvoke.d.ts.map +1 -0
  45. package/mcp-server/tools/agentsInvoke.js +64 -0
  46. package/mcp-server/tools/agentsInvoke.js.map +1 -0
  47. package/mcp-server/tools/agentsStream.d.ts +8 -0
  48. package/mcp-server/tools/agentsStream.d.ts.map +1 -0
  49. package/mcp-server/tools/agentsStream.js +64 -0
  50. package/mcp-server/tools/agentsStream.js.map +1 -0
  51. package/mcp-server/tools/agentsUpdate.d.ts +8 -0
  52. package/mcp-server/tools/agentsUpdate.d.ts.map +1 -0
  53. package/mcp-server/tools/agentsUpdate.js +64 -0
  54. package/mcp-server/tools/agentsUpdate.js.map +1 -0
  55. package/models/errors/createagent.d.ts +41 -0
  56. package/models/errors/createagent.d.ts.map +1 -0
  57. package/models/errors/createagent.js +85 -0
  58. package/models/errors/createagent.js.map +1 -0
  59. package/models/errors/deleteagent.d.ts +41 -0
  60. package/models/errors/deleteagent.d.ts.map +1 -0
  61. package/models/errors/deleteagent.js +85 -0
  62. package/models/errors/deleteagent.js.map +1 -0
  63. package/models/errors/index.d.ts +4 -0
  64. package/models/errors/index.d.ts.map +1 -1
  65. package/models/errors/index.js +4 -0
  66. package/models/errors/index.js.map +1 -1
  67. package/models/errors/streamagent.d.ts +41 -0
  68. package/models/errors/streamagent.d.ts.map +1 -0
  69. package/models/errors/streamagent.js +85 -0
  70. package/models/errors/streamagent.js.map +1 -0
  71. package/models/errors/updateagent.d.ts +41 -0
  72. package/models/errors/updateagent.d.ts.map +1 -0
  73. package/models/errors/updateagent.js +85 -0
  74. package/models/errors/updateagent.js.map +1 -0
  75. package/models/operations/createagent.d.ts +1504 -0
  76. package/models/operations/createagent.d.ts.map +1 -0
  77. package/models/operations/createagent.js +1530 -0
  78. package/models/operations/createagent.js.map +1 -0
  79. package/models/operations/createbudget.js +2 -2
  80. package/models/operations/createcontact.js +2 -2
  81. package/models/operations/createdataset.js +2 -2
  82. package/models/operations/createdatasetitem.js +2 -2
  83. package/models/operations/createdatasource.js +2 -2
  84. package/models/operations/createeval.js +28 -28
  85. package/models/operations/createtool.d.ts +20 -20
  86. package/models/operations/createtool.d.ts.map +1 -1
  87. package/models/operations/createtool.js +34 -34
  88. package/models/operations/createtool.js.map +1 -1
  89. package/models/operations/deleteagent.d.ts +32 -0
  90. package/models/operations/deleteagent.d.ts.map +1 -0
  91. package/models/operations/deleteagent.js +78 -0
  92. package/models/operations/deleteagent.js.map +1 -0
  93. package/models/operations/duplicatetool.d.ts +10 -10
  94. package/models/operations/duplicatetool.d.ts.map +1 -1
  95. package/models/operations/duplicatetool.js +20 -20
  96. package/models/operations/duplicatetool.js.map +1 -1
  97. package/models/operations/fileget.js +2 -2
  98. package/models/operations/filelist.js +2 -2
  99. package/models/operations/fileupload.js +2 -2
  100. package/models/operations/getagent.d.ts +44 -175
  101. package/models/operations/getagent.d.ts.map +1 -1
  102. package/models/operations/getagent.js +51 -184
  103. package/models/operations/getagent.js.map +1 -1
  104. package/models/operations/getalltools.d.ts +10 -10
  105. package/models/operations/getalltools.d.ts.map +1 -1
  106. package/models/operations/getalltools.js +20 -20
  107. package/models/operations/getalltools.js.map +1 -1
  108. package/models/operations/getbudget.js +2 -2
  109. package/models/operations/getevals.js +28 -28
  110. package/models/operations/index.d.ts +5 -0
  111. package/models/operations/index.d.ts.map +1 -1
  112. package/models/operations/index.js +5 -0
  113. package/models/operations/index.js.map +1 -1
  114. package/models/operations/invokeagent.d.ts +912 -0
  115. package/models/operations/invokeagent.d.ts.map +1 -0
  116. package/models/operations/invokeagent.js +824 -0
  117. package/models/operations/invokeagent.js.map +1 -0
  118. package/models/operations/listagents.d.ts +6 -137
  119. package/models/operations/listagents.d.ts.map +1 -1
  120. package/models/operations/listagents.js +3 -139
  121. package/models/operations/listagents.js.map +1 -1
  122. package/models/operations/listagenttasks.d.ts +5 -0
  123. package/models/operations/listagenttasks.d.ts.map +1 -1
  124. package/models/operations/listagenttasks.js +2 -0
  125. package/models/operations/listagenttasks.js.map +1 -1
  126. package/models/operations/listbudgets.js +2 -2
  127. package/models/operations/listcontacts.js +2 -2
  128. package/models/operations/listdatasetdatapoints.js +2 -2
  129. package/models/operations/listdatasets.js +2 -2
  130. package/models/operations/listdatasources.js +2 -2
  131. package/models/operations/retrievecontact.js +2 -2
  132. package/models/operations/retrievedatapoint.js +2 -2
  133. package/models/operations/retrievedataset.js +2 -2
  134. package/models/operations/retrievedatasource.js +2 -2
  135. package/models/operations/retrievetool.d.ts +10 -10
  136. package/models/operations/retrievetool.d.ts.map +1 -1
  137. package/models/operations/retrievetool.js +20 -20
  138. package/models/operations/retrievetool.js.map +1 -1
  139. package/models/operations/runagent.d.ts +640 -721
  140. package/models/operations/runagent.d.ts.map +1 -1
  141. package/models/operations/runagent.js +817 -928
  142. package/models/operations/runagent.js.map +1 -1
  143. package/models/operations/streamagent.d.ts +676 -0
  144. package/models/operations/streamagent.d.ts.map +1 -0
  145. package/models/operations/streamagent.js +670 -0
  146. package/models/operations/streamagent.js.map +1 -0
  147. package/models/operations/streamrunagent.d.ts +567 -648
  148. package/models/operations/streamrunagent.d.ts.map +1 -1
  149. package/models/operations/streamrunagent.js +721 -835
  150. package/models/operations/streamrunagent.js.map +1 -1
  151. package/models/operations/updateagent.d.ts +1515 -0
  152. package/models/operations/updateagent.d.ts.map +1 -0
  153. package/models/operations/updateagent.js +1576 -0
  154. package/models/operations/updateagent.js.map +1 -0
  155. package/models/operations/updatebudget.js +2 -2
  156. package/models/operations/updatecontact.js +2 -2
  157. package/models/operations/updatedatapoint.js +2 -2
  158. package/models/operations/updatedataset.js +2 -2
  159. package/models/operations/updatedatasource.js +2 -2
  160. package/models/operations/updateeval.js +28 -28
  161. package/models/operations/updatetool.d.ts +18 -18
  162. package/models/operations/updatetool.d.ts.map +1 -1
  163. package/models/operations/updatetool.js +36 -36
  164. package/models/operations/updatetool.js.map +1 -1
  165. package/package.json +1 -1
  166. package/packages/orq-rc/README.md +103 -94
  167. package/packages/orq-rc/docs/sdks/agents/README.md +297 -0
  168. package/packages/orq-rc/examples/package-lock.json +1 -1
  169. package/packages/orq-rc/jsr.json +1 -1
  170. package/packages/orq-rc/package-lock.json +2 -2
  171. package/packages/orq-rc/package.json +1 -1
  172. package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
  173. package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
  174. package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
  175. package/packages/orq-rc/src/lib/config.ts +2 -2
  176. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  177. package/packages/orq-rc/src/mcp-server/server.ts +7 -1
  178. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
  179. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
  180. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
  181. package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
  182. package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
  183. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  184. package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
  185. package/packages/orq-rc/src/models/operations/createagent.ts +3027 -0
  186. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  187. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  188. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  189. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  190. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  191. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  192. package/packages/orq-rc/src/models/operations/createtool.ts +50 -50
  193. package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
  194. package/packages/orq-rc/src/models/operations/duplicatetool.ts +30 -30
  195. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  196. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  197. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  198. package/packages/orq-rc/src/models/operations/getagent.ts +87 -387
  199. package/packages/orq-rc/src/models/operations/getalltools.ts +33 -33
  200. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  201. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  202. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  203. package/packages/orq-rc/src/models/operations/invokeagent.ts +12 -4
  204. package/packages/orq-rc/src/models/operations/listagents.ts +8 -321
  205. package/packages/orq-rc/src/models/operations/listagenttasks.ts +7 -0
  206. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  207. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  208. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  209. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  210. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  211. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  212. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  213. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  214. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  215. package/packages/orq-rc/src/models/operations/retrievetool.ts +30 -30
  216. package/packages/orq-rc/src/models/operations/runagent.ts +1003 -1113
  217. package/packages/orq-rc/src/models/operations/streamagent.ts +4 -2
  218. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1276 -1427
  219. package/packages/orq-rc/src/models/operations/updateagent.ts +3239 -0
  220. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  221. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  222. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  223. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  224. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  225. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  226. package/packages/orq-rc/src/models/operations/updatetool.ts +56 -56
  227. package/packages/orq-rc/src/sdk/agents.ts +54 -0
  228. package/sdk/agents.d.ts +35 -0
  229. package/sdk/agents.d.ts.map +1 -1
  230. package/sdk/agents.js +50 -0
  231. package/sdk/agents.js.map +1 -1
  232. package/src/funcs/agentsCreate.ts +172 -0
  233. package/src/funcs/agentsDelete.ts +176 -0
  234. package/src/funcs/agentsInvoke.ts +167 -0
  235. package/src/funcs/agentsStream.ts +191 -0
  236. package/src/funcs/agentsUpdate.ts +176 -0
  237. package/src/lib/config.ts +2 -2
  238. package/src/mcp-server/mcp-server.ts +1 -1
  239. package/src/mcp-server/server.ts +11 -1
  240. package/src/mcp-server/tools/agentsCreate.ts +37 -0
  241. package/src/mcp-server/tools/agentsDelete.ts +35 -0
  242. package/src/mcp-server/tools/agentsInvoke.ts +37 -0
  243. package/src/mcp-server/tools/agentsStream.ts +37 -0
  244. package/src/mcp-server/tools/agentsUpdate.ts +37 -0
  245. package/src/models/errors/createagent.ts +80 -0
  246. package/src/models/errors/deleteagent.ts +80 -0
  247. package/src/models/errors/index.ts +4 -0
  248. package/src/models/errors/streamagent.ts +80 -0
  249. package/src/models/errors/updateagent.ts +80 -0
  250. package/src/models/operations/createagent.ts +3021 -0
  251. package/src/models/operations/createbudget.ts +2 -2
  252. package/src/models/operations/createcontact.ts +2 -2
  253. package/src/models/operations/createdataset.ts +2 -2
  254. package/src/models/operations/createdatasetitem.ts +2 -2
  255. package/src/models/operations/createdatasource.ts +2 -2
  256. package/src/models/operations/createeval.ts +28 -28
  257. package/src/models/operations/createtool.ts +54 -54
  258. package/src/models/operations/deleteagent.ts +78 -0
  259. package/src/models/operations/duplicatetool.ts +30 -30
  260. package/src/models/operations/fileget.ts +2 -2
  261. package/src/models/operations/filelist.ts +2 -2
  262. package/src/models/operations/fileupload.ts +2 -2
  263. package/src/models/operations/getagent.ts +87 -387
  264. package/src/models/operations/getalltools.ts +30 -30
  265. package/src/models/operations/getbudget.ts +2 -2
  266. package/src/models/operations/getevals.ts +28 -28
  267. package/src/models/operations/index.ts +5 -0
  268. package/src/models/operations/invokeagent.ts +1569 -0
  269. package/src/models/operations/listagents.ts +8 -321
  270. package/src/models/operations/listagenttasks.ts +7 -0
  271. package/src/models/operations/listbudgets.ts +2 -2
  272. package/src/models/operations/listcontacts.ts +2 -2
  273. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  274. package/src/models/operations/listdatasets.ts +2 -2
  275. package/src/models/operations/listdatasources.ts +2 -2
  276. package/src/models/operations/retrievecontact.ts +2 -2
  277. package/src/models/operations/retrievedatapoint.ts +2 -2
  278. package/src/models/operations/retrievedataset.ts +2 -2
  279. package/src/models/operations/retrievedatasource.ts +2 -2
  280. package/src/models/operations/retrievetool.ts +30 -30
  281. package/src/models/operations/runagent.ts +1441 -1488
  282. package/src/models/operations/streamagent.ts +1367 -0
  283. package/src/models/operations/streamrunagent.ts +1542 -1657
  284. package/src/models/operations/updateagent.ts +3227 -0
  285. package/src/models/operations/updatebudget.ts +2 -2
  286. package/src/models/operations/updatecontact.ts +2 -2
  287. package/src/models/operations/updatedatapoint.ts +2 -2
  288. package/src/models/operations/updatedataset.ts +2 -2
  289. package/src/models/operations/updatedatasource.ts +2 -2
  290. package/src/models/operations/updateeval.ts +28 -28
  291. package/src/models/operations/updatetool.ts +60 -60
  292. package/src/sdk/agents.ts +90 -0
@@ -0,0 +1,912 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ /**
6
+ * Tool message
7
+ */
8
+ export declare const RoleToolMessage: {
9
+ readonly Tool: "tool";
10
+ };
11
+ /**
12
+ * Tool message
13
+ */
14
+ export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
15
+ /**
16
+ * User message
17
+ */
18
+ export declare const RoleUserMessage: {
19
+ readonly User: "user";
20
+ };
21
+ /**
22
+ * User message
23
+ */
24
+ export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
25
+ /**
26
+ * Message role (user or tool for continuing executions)
27
+ */
28
+ export type InvokeAgentRole = RoleUserMessage | RoleToolMessage;
29
+ export declare const InvokeAgentPublicMessagePartKind: {
30
+ readonly ToolResult: "tool_result";
31
+ };
32
+ export type InvokeAgentPublicMessagePartKind = ClosedEnum<typeof InvokeAgentPublicMessagePartKind>;
33
+ /**
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
+ */
36
+ export type ToolResultPart = {
37
+ kind: InvokeAgentPublicMessagePartKind;
38
+ toolCallId: string;
39
+ result?: any | undefined;
40
+ metadata?: {
41
+ [k: string]: any;
42
+ } | undefined;
43
+ };
44
+ export declare const PublicMessagePartKind: {
45
+ readonly File: "file";
46
+ };
47
+ export type PublicMessagePartKind = ClosedEnum<typeof PublicMessagePartKind>;
48
+ /**
49
+ * File in URI format. Check in the model's documentation for the supported mime types for the URI format
50
+ */
51
+ export type FileInURIFormat = {
52
+ /**
53
+ * URL for the File content
54
+ */
55
+ uri: string;
56
+ /**
57
+ * Optional mimeType for the file
58
+ */
59
+ mimeType?: string | undefined;
60
+ /**
61
+ * Optional name for the file
62
+ */
63
+ name?: string | undefined;
64
+ };
65
+ /**
66
+ * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
67
+ */
68
+ export type BinaryFormat = {
69
+ /**
70
+ * base64 encoded content of the file
71
+ */
72
+ bytes: string;
73
+ /**
74
+ * Optional mimeType for the file
75
+ */
76
+ mimeType?: string | undefined;
77
+ /**
78
+ * Optional name for the file
79
+ */
80
+ name?: string | undefined;
81
+ };
82
+ export type PublicMessagePartFile = BinaryFormat | FileInURIFormat;
83
+ /**
84
+ * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
85
+ */
86
+ export type FilePart = {
87
+ kind: PublicMessagePartKind;
88
+ file: BinaryFormat | FileInURIFormat;
89
+ metadata?: {
90
+ [k: string]: any;
91
+ } | undefined;
92
+ };
93
+ export declare const Kind: {
94
+ readonly Text: "text";
95
+ };
96
+ export type Kind = ClosedEnum<typeof Kind>;
97
+ /**
98
+ * Text content part. Use this to send text messages to the agent.
99
+ */
100
+ export type TextPart = {
101
+ kind: Kind;
102
+ text: string;
103
+ };
104
+ /**
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
+ */
107
+ export type PublicMessagePart = TextPart | FilePart | ToolResultPart;
108
+ export type Message = {
109
+ /**
110
+ * Optional A2A message ID in ULID format
111
+ */
112
+ messageId?: string | undefined;
113
+ /**
114
+ * Message role (user or tool for continuing executions)
115
+ */
116
+ role: RoleUserMessage | RoleToolMessage;
117
+ /**
118
+ * A2A message parts (text, file, or tool_result only)
119
+ */
120
+ parts: Array<TextPart | FilePart | ToolResultPart>;
121
+ };
122
+ /**
123
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
124
+ */
125
+ export type Contact = {
126
+ /**
127
+ * Unique identifier for the contact
128
+ */
129
+ id: string;
130
+ /**
131
+ * Display name of the contact
132
+ */
133
+ displayName?: string | undefined;
134
+ /**
135
+ * Email address of the contact
136
+ */
137
+ email?: string | undefined;
138
+ /**
139
+ * A hash of key/value pairs containing any other data about the contact
140
+ */
141
+ metadata?: Array<{
142
+ [k: string]: any;
143
+ }> | undefined;
144
+ /**
145
+ * URL to the contact's avatar or logo
146
+ */
147
+ logoUrl?: string | undefined;
148
+ /**
149
+ * A list of tags associated with the contact
150
+ */
151
+ tags?: Array<string> | undefined;
152
+ };
153
+ /**
154
+ * Thread information to group related requests
155
+ */
156
+ export type InvokeAgentThread = {
157
+ /**
158
+ * Unique thread identifier to group related invocations.
159
+ */
160
+ id: string;
161
+ /**
162
+ * Optional tags to differentiate or categorize threads
163
+ */
164
+ tags?: Array<string> | undefined;
165
+ };
166
+ /**
167
+ * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
168
+ */
169
+ export type Memory = {
170
+ /**
171
+ * 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.
172
+ */
173
+ entityId: string;
174
+ };
175
+ export type InvokeAgentRequestBody = {
176
+ /**
177
+ * Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
178
+ */
179
+ taskId?: string | undefined;
180
+ message: Message;
181
+ /**
182
+ * Optional variables for template replacement in system prompt, instructions, and messages
183
+ */
184
+ variables?: {
185
+ [k: string]: any;
186
+ } | undefined;
187
+ /**
188
+ * Information about the contact making the request. If the contact does not exist, it will be created automatically.
189
+ */
190
+ contact?: Contact | undefined;
191
+ /**
192
+ * Thread information to group related requests
193
+ */
194
+ thread?: InvokeAgentThread | undefined;
195
+ /**
196
+ * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
197
+ */
198
+ memory?: Memory | undefined;
199
+ /**
200
+ * Optional metadata for the agent invocation as key-value pairs that will be included in traces
201
+ */
202
+ metadata?: {
203
+ [k: string]: any;
204
+ } | undefined;
205
+ };
206
+ export type InvokeAgentRequest = {
207
+ /**
208
+ * The key or ID of the agent to invoke
209
+ */
210
+ key: string;
211
+ requestBody?: InvokeAgentRequestBody | undefined;
212
+ };
213
+ /**
214
+ * A2A entity type
215
+ */
216
+ export declare const InvokeAgentKind: {
217
+ readonly Task: "task";
218
+ };
219
+ /**
220
+ * A2A entity type
221
+ */
222
+ export type InvokeAgentKind = ClosedEnum<typeof InvokeAgentKind>;
223
+ /**
224
+ * Current task state
225
+ */
226
+ export declare const InvokeAgentState: {
227
+ readonly Submitted: "submitted";
228
+ readonly Working: "working";
229
+ readonly InputRequired: "input-required";
230
+ readonly Completed: "completed";
231
+ readonly Failed: "failed";
232
+ readonly Canceled: "canceled";
233
+ readonly Rejected: "rejected";
234
+ readonly AuthRequired: "auth-required";
235
+ readonly Unknown: "unknown";
236
+ };
237
+ /**
238
+ * Current task state
239
+ */
240
+ export type InvokeAgentState = ClosedEnum<typeof InvokeAgentState>;
241
+ export declare const InvokeAgentAgentsKind: {
242
+ readonly Message: "message";
243
+ };
244
+ export type InvokeAgentAgentsKind = ClosedEnum<typeof InvokeAgentAgentsKind>;
245
+ /**
246
+ * Extended A2A message role
247
+ */
248
+ export declare const InvokeAgentAgentsRole: {
249
+ readonly User: "user";
250
+ readonly Agent: "agent";
251
+ readonly Tool: "tool";
252
+ readonly System: "system";
253
+ };
254
+ /**
255
+ * Extended A2A message role
256
+ */
257
+ export type InvokeAgentAgentsRole = ClosedEnum<typeof InvokeAgentAgentsRole>;
258
+ /**
259
+ * Optional status message
260
+ */
261
+ export type InvokeAgentMessage = {
262
+ kind: InvokeAgentAgentsKind;
263
+ messageId: string;
264
+ /**
265
+ * Extended A2A message role
266
+ */
267
+ role: InvokeAgentAgentsRole;
268
+ parts: Array<any>;
269
+ };
270
+ /**
271
+ * Task status information
272
+ */
273
+ export type InvokeAgentStatus = {
274
+ /**
275
+ * Current task state
276
+ */
277
+ state: InvokeAgentState;
278
+ /**
279
+ * ISO timestamp of status update
280
+ */
281
+ timestamp?: string | undefined;
282
+ /**
283
+ * Optional status message
284
+ */
285
+ message?: InvokeAgentMessage | undefined;
286
+ };
287
+ /**
288
+ * A2A Task response format
289
+ */
290
+ export type InvokeAgentResponseBody = {
291
+ /**
292
+ * The ID of the created agent execution task
293
+ */
294
+ id: string;
295
+ /**
296
+ * The correlation ID for this execution
297
+ */
298
+ contextId: string;
299
+ /**
300
+ * A2A entity type
301
+ */
302
+ kind: InvokeAgentKind;
303
+ /**
304
+ * Task status information
305
+ */
306
+ status: InvokeAgentStatus;
307
+ /**
308
+ * Task metadata containing workspace_id and trace_id for feedback
309
+ */
310
+ metadata?: {
311
+ [k: string]: any;
312
+ } | undefined;
313
+ };
314
+ /** @internal */
315
+ export declare const RoleToolMessage$inboundSchema: z.ZodNativeEnum<typeof RoleToolMessage>;
316
+ /** @internal */
317
+ export declare const RoleToolMessage$outboundSchema: z.ZodNativeEnum<typeof RoleToolMessage>;
318
+ /**
319
+ * @internal
320
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
321
+ */
322
+ export declare namespace RoleToolMessage$ {
323
+ /** @deprecated use `RoleToolMessage$inboundSchema` instead. */
324
+ const inboundSchema: z.ZodNativeEnum<{
325
+ readonly Tool: "tool";
326
+ }>;
327
+ /** @deprecated use `RoleToolMessage$outboundSchema` instead. */
328
+ const outboundSchema: z.ZodNativeEnum<{
329
+ readonly Tool: "tool";
330
+ }>;
331
+ }
332
+ /** @internal */
333
+ export declare const RoleUserMessage$inboundSchema: z.ZodNativeEnum<typeof RoleUserMessage>;
334
+ /** @internal */
335
+ export declare const RoleUserMessage$outboundSchema: z.ZodNativeEnum<typeof RoleUserMessage>;
336
+ /**
337
+ * @internal
338
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
339
+ */
340
+ export declare namespace RoleUserMessage$ {
341
+ /** @deprecated use `RoleUserMessage$inboundSchema` instead. */
342
+ const inboundSchema: z.ZodNativeEnum<{
343
+ readonly User: "user";
344
+ }>;
345
+ /** @deprecated use `RoleUserMessage$outboundSchema` instead. */
346
+ const outboundSchema: z.ZodNativeEnum<{
347
+ readonly User: "user";
348
+ }>;
349
+ }
350
+ /** @internal */
351
+ export declare const InvokeAgentRole$inboundSchema: z.ZodType<InvokeAgentRole, z.ZodTypeDef, unknown>;
352
+ /** @internal */
353
+ export type InvokeAgentRole$Outbound = string | string;
354
+ /** @internal */
355
+ export declare const InvokeAgentRole$outboundSchema: z.ZodType<InvokeAgentRole$Outbound, z.ZodTypeDef, InvokeAgentRole>;
356
+ /**
357
+ * @internal
358
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
359
+ */
360
+ export declare namespace InvokeAgentRole$ {
361
+ /** @deprecated use `InvokeAgentRole$inboundSchema` instead. */
362
+ const inboundSchema: z.ZodType<InvokeAgentRole, z.ZodTypeDef, unknown>;
363
+ /** @deprecated use `InvokeAgentRole$outboundSchema` instead. */
364
+ const outboundSchema: z.ZodType<string, z.ZodTypeDef, InvokeAgentRole>;
365
+ /** @deprecated use `InvokeAgentRole$Outbound` instead. */
366
+ type Outbound = InvokeAgentRole$Outbound;
367
+ }
368
+ export declare function invokeAgentRoleToJSON(invokeAgentRole: InvokeAgentRole): string;
369
+ export declare function invokeAgentRoleFromJSON(jsonString: string): SafeParseResult<InvokeAgentRole, SDKValidationError>;
370
+ /** @internal */
371
+ export declare const InvokeAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartKind>;
372
+ /** @internal */
373
+ export declare const InvokeAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartKind>;
374
+ /**
375
+ * @internal
376
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
377
+ */
378
+ export declare namespace InvokeAgentPublicMessagePartKind$ {
379
+ /** @deprecated use `InvokeAgentPublicMessagePartKind$inboundSchema` instead. */
380
+ const inboundSchema: z.ZodNativeEnum<{
381
+ readonly ToolResult: "tool_result";
382
+ }>;
383
+ /** @deprecated use `InvokeAgentPublicMessagePartKind$outboundSchema` instead. */
384
+ const outboundSchema: z.ZodNativeEnum<{
385
+ readonly ToolResult: "tool_result";
386
+ }>;
387
+ }
388
+ /** @internal */
389
+ export declare const ToolResultPart$inboundSchema: z.ZodType<ToolResultPart, z.ZodTypeDef, unknown>;
390
+ /** @internal */
391
+ export type ToolResultPart$Outbound = {
392
+ kind: string;
393
+ tool_call_id: string;
394
+ result?: any | undefined;
395
+ metadata?: {
396
+ [k: string]: any;
397
+ } | undefined;
398
+ };
399
+ /** @internal */
400
+ export declare const ToolResultPart$outboundSchema: z.ZodType<ToolResultPart$Outbound, z.ZodTypeDef, ToolResultPart>;
401
+ /**
402
+ * @internal
403
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
404
+ */
405
+ export declare namespace ToolResultPart$ {
406
+ /** @deprecated use `ToolResultPart$inboundSchema` instead. */
407
+ const inboundSchema: z.ZodType<ToolResultPart, z.ZodTypeDef, unknown>;
408
+ /** @deprecated use `ToolResultPart$outboundSchema` instead. */
409
+ const outboundSchema: z.ZodType<ToolResultPart$Outbound, z.ZodTypeDef, ToolResultPart>;
410
+ /** @deprecated use `ToolResultPart$Outbound` instead. */
411
+ type Outbound = ToolResultPart$Outbound;
412
+ }
413
+ export declare function toolResultPartToJSON(toolResultPart: ToolResultPart): string;
414
+ export declare function toolResultPartFromJSON(jsonString: string): SafeParseResult<ToolResultPart, SDKValidationError>;
415
+ /** @internal */
416
+ export declare const PublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof PublicMessagePartKind>;
417
+ /** @internal */
418
+ export declare const PublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof PublicMessagePartKind>;
419
+ /**
420
+ * @internal
421
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
422
+ */
423
+ export declare namespace PublicMessagePartKind$ {
424
+ /** @deprecated use `PublicMessagePartKind$inboundSchema` instead. */
425
+ const inboundSchema: z.ZodNativeEnum<{
426
+ readonly File: "file";
427
+ }>;
428
+ /** @deprecated use `PublicMessagePartKind$outboundSchema` instead. */
429
+ const outboundSchema: z.ZodNativeEnum<{
430
+ readonly File: "file";
431
+ }>;
432
+ }
433
+ /** @internal */
434
+ export declare const FileInURIFormat$inboundSchema: z.ZodType<FileInURIFormat, z.ZodTypeDef, unknown>;
435
+ /** @internal */
436
+ export type FileInURIFormat$Outbound = {
437
+ uri: string;
438
+ mimeType?: string | undefined;
439
+ name?: string | undefined;
440
+ };
441
+ /** @internal */
442
+ export declare const FileInURIFormat$outboundSchema: z.ZodType<FileInURIFormat$Outbound, z.ZodTypeDef, FileInURIFormat>;
443
+ /**
444
+ * @internal
445
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
446
+ */
447
+ export declare namespace FileInURIFormat$ {
448
+ /** @deprecated use `FileInURIFormat$inboundSchema` instead. */
449
+ const inboundSchema: z.ZodType<FileInURIFormat, z.ZodTypeDef, unknown>;
450
+ /** @deprecated use `FileInURIFormat$outboundSchema` instead. */
451
+ const outboundSchema: z.ZodType<FileInURIFormat$Outbound, z.ZodTypeDef, FileInURIFormat>;
452
+ /** @deprecated use `FileInURIFormat$Outbound` instead. */
453
+ type Outbound = FileInURIFormat$Outbound;
454
+ }
455
+ export declare function fileInURIFormatToJSON(fileInURIFormat: FileInURIFormat): string;
456
+ export declare function fileInURIFormatFromJSON(jsonString: string): SafeParseResult<FileInURIFormat, SDKValidationError>;
457
+ /** @internal */
458
+ export declare const BinaryFormat$inboundSchema: z.ZodType<BinaryFormat, z.ZodTypeDef, unknown>;
459
+ /** @internal */
460
+ export type BinaryFormat$Outbound = {
461
+ bytes: string;
462
+ mimeType?: string | undefined;
463
+ name?: string | undefined;
464
+ };
465
+ /** @internal */
466
+ export declare const BinaryFormat$outboundSchema: z.ZodType<BinaryFormat$Outbound, z.ZodTypeDef, BinaryFormat>;
467
+ /**
468
+ * @internal
469
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
470
+ */
471
+ export declare namespace BinaryFormat$ {
472
+ /** @deprecated use `BinaryFormat$inboundSchema` instead. */
473
+ const inboundSchema: z.ZodType<BinaryFormat, z.ZodTypeDef, unknown>;
474
+ /** @deprecated use `BinaryFormat$outboundSchema` instead. */
475
+ const outboundSchema: z.ZodType<BinaryFormat$Outbound, z.ZodTypeDef, BinaryFormat>;
476
+ /** @deprecated use `BinaryFormat$Outbound` instead. */
477
+ type Outbound = BinaryFormat$Outbound;
478
+ }
479
+ export declare function binaryFormatToJSON(binaryFormat: BinaryFormat): string;
480
+ export declare function binaryFormatFromJSON(jsonString: string): SafeParseResult<BinaryFormat, SDKValidationError>;
481
+ /** @internal */
482
+ export declare const PublicMessagePartFile$inboundSchema: z.ZodType<PublicMessagePartFile, z.ZodTypeDef, unknown>;
483
+ /** @internal */
484
+ export type PublicMessagePartFile$Outbound = BinaryFormat$Outbound | FileInURIFormat$Outbound;
485
+ /** @internal */
486
+ export declare const PublicMessagePartFile$outboundSchema: z.ZodType<PublicMessagePartFile$Outbound, z.ZodTypeDef, PublicMessagePartFile>;
487
+ /**
488
+ * @internal
489
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
490
+ */
491
+ export declare namespace PublicMessagePartFile$ {
492
+ /** @deprecated use `PublicMessagePartFile$inboundSchema` instead. */
493
+ const inboundSchema: z.ZodType<PublicMessagePartFile, z.ZodTypeDef, unknown>;
494
+ /** @deprecated use `PublicMessagePartFile$outboundSchema` instead. */
495
+ const outboundSchema: z.ZodType<PublicMessagePartFile$Outbound, z.ZodTypeDef, PublicMessagePartFile>;
496
+ /** @deprecated use `PublicMessagePartFile$Outbound` instead. */
497
+ type Outbound = PublicMessagePartFile$Outbound;
498
+ }
499
+ export declare function publicMessagePartFileToJSON(publicMessagePartFile: PublicMessagePartFile): string;
500
+ export declare function publicMessagePartFileFromJSON(jsonString: string): SafeParseResult<PublicMessagePartFile, SDKValidationError>;
501
+ /** @internal */
502
+ export declare const FilePart$inboundSchema: z.ZodType<FilePart, z.ZodTypeDef, unknown>;
503
+ /** @internal */
504
+ export type FilePart$Outbound = {
505
+ kind: string;
506
+ file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
507
+ metadata?: {
508
+ [k: string]: any;
509
+ } | undefined;
510
+ };
511
+ /** @internal */
512
+ export declare const FilePart$outboundSchema: z.ZodType<FilePart$Outbound, z.ZodTypeDef, FilePart>;
513
+ /**
514
+ * @internal
515
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
516
+ */
517
+ export declare namespace FilePart$ {
518
+ /** @deprecated use `FilePart$inboundSchema` instead. */
519
+ const inboundSchema: z.ZodType<FilePart, z.ZodTypeDef, unknown>;
520
+ /** @deprecated use `FilePart$outboundSchema` instead. */
521
+ const outboundSchema: z.ZodType<FilePart$Outbound, z.ZodTypeDef, FilePart>;
522
+ /** @deprecated use `FilePart$Outbound` instead. */
523
+ type Outbound = FilePart$Outbound;
524
+ }
525
+ export declare function filePartToJSON(filePart: FilePart): string;
526
+ export declare function filePartFromJSON(jsonString: string): SafeParseResult<FilePart, SDKValidationError>;
527
+ /** @internal */
528
+ export declare const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind>;
529
+ /** @internal */
530
+ export declare const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind>;
531
+ /**
532
+ * @internal
533
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
534
+ */
535
+ export declare namespace Kind$ {
536
+ /** @deprecated use `Kind$inboundSchema` instead. */
537
+ const inboundSchema: z.ZodNativeEnum<{
538
+ readonly Text: "text";
539
+ }>;
540
+ /** @deprecated use `Kind$outboundSchema` instead. */
541
+ const outboundSchema: z.ZodNativeEnum<{
542
+ readonly Text: "text";
543
+ }>;
544
+ }
545
+ /** @internal */
546
+ export declare const TextPart$inboundSchema: z.ZodType<TextPart, z.ZodTypeDef, unknown>;
547
+ /** @internal */
548
+ export type TextPart$Outbound = {
549
+ kind: string;
550
+ text: string;
551
+ };
552
+ /** @internal */
553
+ export declare const TextPart$outboundSchema: z.ZodType<TextPart$Outbound, z.ZodTypeDef, TextPart>;
554
+ /**
555
+ * @internal
556
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
557
+ */
558
+ export declare namespace TextPart$ {
559
+ /** @deprecated use `TextPart$inboundSchema` instead. */
560
+ const inboundSchema: z.ZodType<TextPart, z.ZodTypeDef, unknown>;
561
+ /** @deprecated use `TextPart$outboundSchema` instead. */
562
+ const outboundSchema: z.ZodType<TextPart$Outbound, z.ZodTypeDef, TextPart>;
563
+ /** @deprecated use `TextPart$Outbound` instead. */
564
+ type Outbound = TextPart$Outbound;
565
+ }
566
+ export declare function textPartToJSON(textPart: TextPart): string;
567
+ export declare function textPartFromJSON(jsonString: string): SafeParseResult<TextPart, SDKValidationError>;
568
+ /** @internal */
569
+ export declare const PublicMessagePart$inboundSchema: z.ZodType<PublicMessagePart, z.ZodTypeDef, unknown>;
570
+ /** @internal */
571
+ export type PublicMessagePart$Outbound = TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound;
572
+ /** @internal */
573
+ export declare const PublicMessagePart$outboundSchema: z.ZodType<PublicMessagePart$Outbound, z.ZodTypeDef, PublicMessagePart>;
574
+ /**
575
+ * @internal
576
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
577
+ */
578
+ export declare namespace PublicMessagePart$ {
579
+ /** @deprecated use `PublicMessagePart$inboundSchema` instead. */
580
+ const inboundSchema: z.ZodType<PublicMessagePart, z.ZodTypeDef, unknown>;
581
+ /** @deprecated use `PublicMessagePart$outboundSchema` instead. */
582
+ const outboundSchema: z.ZodType<PublicMessagePart$Outbound, z.ZodTypeDef, PublicMessagePart>;
583
+ /** @deprecated use `PublicMessagePart$Outbound` instead. */
584
+ type Outbound = PublicMessagePart$Outbound;
585
+ }
586
+ export declare function publicMessagePartToJSON(publicMessagePart: PublicMessagePart): string;
587
+ export declare function publicMessagePartFromJSON(jsonString: string): SafeParseResult<PublicMessagePart, SDKValidationError>;
588
+ /** @internal */
589
+ export declare const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown>;
590
+ /** @internal */
591
+ export type Message$Outbound = {
592
+ messageId?: string | undefined;
593
+ role: string | string;
594
+ parts: Array<TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound>;
595
+ };
596
+ /** @internal */
597
+ export declare const Message$outboundSchema: z.ZodType<Message$Outbound, z.ZodTypeDef, Message>;
598
+ /**
599
+ * @internal
600
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
601
+ */
602
+ export declare namespace Message$ {
603
+ /** @deprecated use `Message$inboundSchema` instead. */
604
+ const inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown>;
605
+ /** @deprecated use `Message$outboundSchema` instead. */
606
+ const outboundSchema: z.ZodType<Message$Outbound, z.ZodTypeDef, Message>;
607
+ /** @deprecated use `Message$Outbound` instead. */
608
+ type Outbound = Message$Outbound;
609
+ }
610
+ export declare function messageToJSON(message: Message): string;
611
+ export declare function messageFromJSON(jsonString: string): SafeParseResult<Message, SDKValidationError>;
612
+ /** @internal */
613
+ export declare const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown>;
614
+ /** @internal */
615
+ export type Contact$Outbound = {
616
+ id: string;
617
+ display_name?: string | undefined;
618
+ email?: string | undefined;
619
+ metadata?: Array<{
620
+ [k: string]: any;
621
+ }> | undefined;
622
+ logo_url?: string | undefined;
623
+ tags?: Array<string> | undefined;
624
+ };
625
+ /** @internal */
626
+ export declare const Contact$outboundSchema: z.ZodType<Contact$Outbound, z.ZodTypeDef, Contact>;
627
+ /**
628
+ * @internal
629
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
630
+ */
631
+ export declare namespace Contact$ {
632
+ /** @deprecated use `Contact$inboundSchema` instead. */
633
+ const inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown>;
634
+ /** @deprecated use `Contact$outboundSchema` instead. */
635
+ const outboundSchema: z.ZodType<Contact$Outbound, z.ZodTypeDef, Contact>;
636
+ /** @deprecated use `Contact$Outbound` instead. */
637
+ type Outbound = Contact$Outbound;
638
+ }
639
+ export declare function contactToJSON(contact: Contact): string;
640
+ export declare function contactFromJSON(jsonString: string): SafeParseResult<Contact, SDKValidationError>;
641
+ /** @internal */
642
+ export declare const InvokeAgentThread$inboundSchema: z.ZodType<InvokeAgentThread, z.ZodTypeDef, unknown>;
643
+ /** @internal */
644
+ export type InvokeAgentThread$Outbound = {
645
+ id: string;
646
+ tags?: Array<string> | undefined;
647
+ };
648
+ /** @internal */
649
+ export declare const InvokeAgentThread$outboundSchema: z.ZodType<InvokeAgentThread$Outbound, z.ZodTypeDef, InvokeAgentThread>;
650
+ /**
651
+ * @internal
652
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
653
+ */
654
+ export declare namespace InvokeAgentThread$ {
655
+ /** @deprecated use `InvokeAgentThread$inboundSchema` instead. */
656
+ const inboundSchema: z.ZodType<InvokeAgentThread, z.ZodTypeDef, unknown>;
657
+ /** @deprecated use `InvokeAgentThread$outboundSchema` instead. */
658
+ const outboundSchema: z.ZodType<InvokeAgentThread$Outbound, z.ZodTypeDef, InvokeAgentThread>;
659
+ /** @deprecated use `InvokeAgentThread$Outbound` instead. */
660
+ type Outbound = InvokeAgentThread$Outbound;
661
+ }
662
+ export declare function invokeAgentThreadToJSON(invokeAgentThread: InvokeAgentThread): string;
663
+ export declare function invokeAgentThreadFromJSON(jsonString: string): SafeParseResult<InvokeAgentThread, SDKValidationError>;
664
+ /** @internal */
665
+ export declare const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown>;
666
+ /** @internal */
667
+ export type Memory$Outbound = {
668
+ entity_id: string;
669
+ };
670
+ /** @internal */
671
+ export declare const Memory$outboundSchema: z.ZodType<Memory$Outbound, z.ZodTypeDef, Memory>;
672
+ /**
673
+ * @internal
674
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
675
+ */
676
+ export declare namespace Memory$ {
677
+ /** @deprecated use `Memory$inboundSchema` instead. */
678
+ const inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown>;
679
+ /** @deprecated use `Memory$outboundSchema` instead. */
680
+ const outboundSchema: z.ZodType<Memory$Outbound, z.ZodTypeDef, Memory>;
681
+ /** @deprecated use `Memory$Outbound` instead. */
682
+ type Outbound = Memory$Outbound;
683
+ }
684
+ export declare function memoryToJSON(memory: Memory): string;
685
+ export declare function memoryFromJSON(jsonString: string): SafeParseResult<Memory, SDKValidationError>;
686
+ /** @internal */
687
+ export declare const InvokeAgentRequestBody$inboundSchema: z.ZodType<InvokeAgentRequestBody, z.ZodTypeDef, unknown>;
688
+ /** @internal */
689
+ export type InvokeAgentRequestBody$Outbound = {
690
+ task_id?: string | undefined;
691
+ message: Message$Outbound;
692
+ variables?: {
693
+ [k: string]: any;
694
+ } | undefined;
695
+ contact?: Contact$Outbound | undefined;
696
+ thread?: InvokeAgentThread$Outbound | undefined;
697
+ memory?: Memory$Outbound | undefined;
698
+ metadata?: {
699
+ [k: string]: any;
700
+ } | undefined;
701
+ };
702
+ /** @internal */
703
+ export declare const InvokeAgentRequestBody$outboundSchema: z.ZodType<InvokeAgentRequestBody$Outbound, z.ZodTypeDef, InvokeAgentRequestBody>;
704
+ /**
705
+ * @internal
706
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
707
+ */
708
+ export declare namespace InvokeAgentRequestBody$ {
709
+ /** @deprecated use `InvokeAgentRequestBody$inboundSchema` instead. */
710
+ const inboundSchema: z.ZodType<InvokeAgentRequestBody, z.ZodTypeDef, unknown>;
711
+ /** @deprecated use `InvokeAgentRequestBody$outboundSchema` instead. */
712
+ const outboundSchema: z.ZodType<InvokeAgentRequestBody$Outbound, z.ZodTypeDef, InvokeAgentRequestBody>;
713
+ /** @deprecated use `InvokeAgentRequestBody$Outbound` instead. */
714
+ type Outbound = InvokeAgentRequestBody$Outbound;
715
+ }
716
+ export declare function invokeAgentRequestBodyToJSON(invokeAgentRequestBody: InvokeAgentRequestBody): string;
717
+ export declare function invokeAgentRequestBodyFromJSON(jsonString: string): SafeParseResult<InvokeAgentRequestBody, SDKValidationError>;
718
+ /** @internal */
719
+ export declare const InvokeAgentRequest$inboundSchema: z.ZodType<InvokeAgentRequest, z.ZodTypeDef, unknown>;
720
+ /** @internal */
721
+ export type InvokeAgentRequest$Outbound = {
722
+ key: string;
723
+ RequestBody?: InvokeAgentRequestBody$Outbound | undefined;
724
+ };
725
+ /** @internal */
726
+ export declare const InvokeAgentRequest$outboundSchema: z.ZodType<InvokeAgentRequest$Outbound, z.ZodTypeDef, InvokeAgentRequest>;
727
+ /**
728
+ * @internal
729
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
730
+ */
731
+ export declare namespace InvokeAgentRequest$ {
732
+ /** @deprecated use `InvokeAgentRequest$inboundSchema` instead. */
733
+ const inboundSchema: z.ZodType<InvokeAgentRequest, z.ZodTypeDef, unknown>;
734
+ /** @deprecated use `InvokeAgentRequest$outboundSchema` instead. */
735
+ const outboundSchema: z.ZodType<InvokeAgentRequest$Outbound, z.ZodTypeDef, InvokeAgentRequest>;
736
+ /** @deprecated use `InvokeAgentRequest$Outbound` instead. */
737
+ type Outbound = InvokeAgentRequest$Outbound;
738
+ }
739
+ export declare function invokeAgentRequestToJSON(invokeAgentRequest: InvokeAgentRequest): string;
740
+ export declare function invokeAgentRequestFromJSON(jsonString: string): SafeParseResult<InvokeAgentRequest, SDKValidationError>;
741
+ /** @internal */
742
+ export declare const InvokeAgentKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentKind>;
743
+ /** @internal */
744
+ export declare const InvokeAgentKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentKind>;
745
+ /**
746
+ * @internal
747
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
748
+ */
749
+ export declare namespace InvokeAgentKind$ {
750
+ /** @deprecated use `InvokeAgentKind$inboundSchema` instead. */
751
+ const inboundSchema: z.ZodNativeEnum<{
752
+ readonly Task: "task";
753
+ }>;
754
+ /** @deprecated use `InvokeAgentKind$outboundSchema` instead. */
755
+ const outboundSchema: z.ZodNativeEnum<{
756
+ readonly Task: "task";
757
+ }>;
758
+ }
759
+ /** @internal */
760
+ export declare const InvokeAgentState$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentState>;
761
+ /** @internal */
762
+ export declare const InvokeAgentState$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentState>;
763
+ /**
764
+ * @internal
765
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
766
+ */
767
+ export declare namespace InvokeAgentState$ {
768
+ /** @deprecated use `InvokeAgentState$inboundSchema` instead. */
769
+ const inboundSchema: z.ZodNativeEnum<{
770
+ readonly Submitted: "submitted";
771
+ readonly Working: "working";
772
+ readonly InputRequired: "input-required";
773
+ readonly Completed: "completed";
774
+ readonly Failed: "failed";
775
+ readonly Canceled: "canceled";
776
+ readonly Rejected: "rejected";
777
+ readonly AuthRequired: "auth-required";
778
+ readonly Unknown: "unknown";
779
+ }>;
780
+ /** @deprecated use `InvokeAgentState$outboundSchema` instead. */
781
+ const outboundSchema: z.ZodNativeEnum<{
782
+ readonly Submitted: "submitted";
783
+ readonly Working: "working";
784
+ readonly InputRequired: "input-required";
785
+ readonly Completed: "completed";
786
+ readonly Failed: "failed";
787
+ readonly Canceled: "canceled";
788
+ readonly Rejected: "rejected";
789
+ readonly AuthRequired: "auth-required";
790
+ readonly Unknown: "unknown";
791
+ }>;
792
+ }
793
+ /** @internal */
794
+ export declare const InvokeAgentAgentsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentAgentsKind>;
795
+ /** @internal */
796
+ export declare const InvokeAgentAgentsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentAgentsKind>;
797
+ /**
798
+ * @internal
799
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
800
+ */
801
+ export declare namespace InvokeAgentAgentsKind$ {
802
+ /** @deprecated use `InvokeAgentAgentsKind$inboundSchema` instead. */
803
+ const inboundSchema: z.ZodNativeEnum<{
804
+ readonly Message: "message";
805
+ }>;
806
+ /** @deprecated use `InvokeAgentAgentsKind$outboundSchema` instead. */
807
+ const outboundSchema: z.ZodNativeEnum<{
808
+ readonly Message: "message";
809
+ }>;
810
+ }
811
+ /** @internal */
812
+ export declare const InvokeAgentAgentsRole$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentAgentsRole>;
813
+ /** @internal */
814
+ export declare const InvokeAgentAgentsRole$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentAgentsRole>;
815
+ /**
816
+ * @internal
817
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
818
+ */
819
+ export declare namespace InvokeAgentAgentsRole$ {
820
+ /** @deprecated use `InvokeAgentAgentsRole$inboundSchema` instead. */
821
+ const inboundSchema: z.ZodNativeEnum<{
822
+ readonly User: "user";
823
+ readonly Agent: "agent";
824
+ readonly Tool: "tool";
825
+ readonly System: "system";
826
+ }>;
827
+ /** @deprecated use `InvokeAgentAgentsRole$outboundSchema` instead. */
828
+ const outboundSchema: z.ZodNativeEnum<{
829
+ readonly User: "user";
830
+ readonly Agent: "agent";
831
+ readonly Tool: "tool";
832
+ readonly System: "system";
833
+ }>;
834
+ }
835
+ /** @internal */
836
+ export declare const InvokeAgentMessage$inboundSchema: z.ZodType<InvokeAgentMessage, z.ZodTypeDef, unknown>;
837
+ /** @internal */
838
+ export type InvokeAgentMessage$Outbound = {
839
+ kind: string;
840
+ messageId: string;
841
+ role: string;
842
+ parts: Array<any>;
843
+ };
844
+ /** @internal */
845
+ export declare const InvokeAgentMessage$outboundSchema: z.ZodType<InvokeAgentMessage$Outbound, z.ZodTypeDef, InvokeAgentMessage>;
846
+ /**
847
+ * @internal
848
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
849
+ */
850
+ export declare namespace InvokeAgentMessage$ {
851
+ /** @deprecated use `InvokeAgentMessage$inboundSchema` instead. */
852
+ const inboundSchema: z.ZodType<InvokeAgentMessage, z.ZodTypeDef, unknown>;
853
+ /** @deprecated use `InvokeAgentMessage$outboundSchema` instead. */
854
+ const outboundSchema: z.ZodType<InvokeAgentMessage$Outbound, z.ZodTypeDef, InvokeAgentMessage>;
855
+ /** @deprecated use `InvokeAgentMessage$Outbound` instead. */
856
+ type Outbound = InvokeAgentMessage$Outbound;
857
+ }
858
+ export declare function invokeAgentMessageToJSON(invokeAgentMessage: InvokeAgentMessage): string;
859
+ export declare function invokeAgentMessageFromJSON(jsonString: string): SafeParseResult<InvokeAgentMessage, SDKValidationError>;
860
+ /** @internal */
861
+ export declare const InvokeAgentStatus$inboundSchema: z.ZodType<InvokeAgentStatus, z.ZodTypeDef, unknown>;
862
+ /** @internal */
863
+ export type InvokeAgentStatus$Outbound = {
864
+ state: string;
865
+ timestamp?: string | undefined;
866
+ message?: InvokeAgentMessage$Outbound | undefined;
867
+ };
868
+ /** @internal */
869
+ export declare const InvokeAgentStatus$outboundSchema: z.ZodType<InvokeAgentStatus$Outbound, z.ZodTypeDef, InvokeAgentStatus>;
870
+ /**
871
+ * @internal
872
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
873
+ */
874
+ export declare namespace InvokeAgentStatus$ {
875
+ /** @deprecated use `InvokeAgentStatus$inboundSchema` instead. */
876
+ const inboundSchema: z.ZodType<InvokeAgentStatus, z.ZodTypeDef, unknown>;
877
+ /** @deprecated use `InvokeAgentStatus$outboundSchema` instead. */
878
+ const outboundSchema: z.ZodType<InvokeAgentStatus$Outbound, z.ZodTypeDef, InvokeAgentStatus>;
879
+ /** @deprecated use `InvokeAgentStatus$Outbound` instead. */
880
+ type Outbound = InvokeAgentStatus$Outbound;
881
+ }
882
+ export declare function invokeAgentStatusToJSON(invokeAgentStatus: InvokeAgentStatus): string;
883
+ export declare function invokeAgentStatusFromJSON(jsonString: string): SafeParseResult<InvokeAgentStatus, SDKValidationError>;
884
+ /** @internal */
885
+ export declare const InvokeAgentResponseBody$inboundSchema: z.ZodType<InvokeAgentResponseBody, z.ZodTypeDef, unknown>;
886
+ /** @internal */
887
+ export type InvokeAgentResponseBody$Outbound = {
888
+ id: string;
889
+ contextId: string;
890
+ kind: string;
891
+ status: InvokeAgentStatus$Outbound;
892
+ metadata?: {
893
+ [k: string]: any;
894
+ } | undefined;
895
+ };
896
+ /** @internal */
897
+ export declare const InvokeAgentResponseBody$outboundSchema: z.ZodType<InvokeAgentResponseBody$Outbound, z.ZodTypeDef, InvokeAgentResponseBody>;
898
+ /**
899
+ * @internal
900
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
901
+ */
902
+ export declare namespace InvokeAgentResponseBody$ {
903
+ /** @deprecated use `InvokeAgentResponseBody$inboundSchema` instead. */
904
+ const inboundSchema: z.ZodType<InvokeAgentResponseBody, z.ZodTypeDef, unknown>;
905
+ /** @deprecated use `InvokeAgentResponseBody$outboundSchema` instead. */
906
+ const outboundSchema: z.ZodType<InvokeAgentResponseBody$Outbound, z.ZodTypeDef, InvokeAgentResponseBody>;
907
+ /** @deprecated use `InvokeAgentResponseBody$Outbound` instead. */
908
+ type Outbound = InvokeAgentResponseBody$Outbound;
909
+ }
910
+ export declare function invokeAgentResponseBodyToJSON(invokeAgentResponseBody: InvokeAgentResponseBody): string;
911
+ export declare function invokeAgentResponseBodyFromJSON(jsonString: string): SafeParseResult<InvokeAgentResponseBody, SDKValidationError>;
912
+ //# sourceMappingURL=invokeagent.d.ts.map