@orq-ai/node 4.0.0-rc.50 → 4.0.0-rc.52

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 (161) hide show
  1. package/README.md +3 -4
  2. package/bin/mcp-server.js +1125 -606
  3. package/bin/mcp-server.js.map +50 -51
  4. package/docs/sdks/agents/README.md +80 -80
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsInvoke.d.ts +1 -1
  7. package/funcs/agentsInvoke.d.ts.map +1 -1
  8. package/funcs/agentsInvoke.js +1 -1
  9. package/funcs/agentsInvoke.js.map +1 -1
  10. package/funcs/agentsListTasks.d.ts +1 -1
  11. package/funcs/agentsListTasks.d.ts.map +1 -1
  12. package/funcs/agentsListTasks.js +1 -1
  13. package/funcs/agentsListTasks.js.map +1 -1
  14. package/funcs/agentsRetrieveTask.d.ts +1 -1
  15. package/funcs/agentsRetrieveTask.d.ts.map +1 -1
  16. package/funcs/agentsRetrieveTask.js +1 -1
  17. package/funcs/agentsRetrieveTask.js.map +1 -1
  18. package/funcs/agentsRun.d.ts +1 -1
  19. package/funcs/agentsRun.d.ts.map +1 -1
  20. package/funcs/agentsRun.js +1 -1
  21. package/funcs/agentsRun.js.map +1 -1
  22. package/jsr.json +1 -1
  23. package/lib/config.d.ts +2 -2
  24. package/lib/config.js +2 -2
  25. package/mcp-server/mcp-server.js +1 -1
  26. package/mcp-server/server.js +2 -2
  27. package/mcp-server/server.js.map +1 -1
  28. package/models/errors/index.d.ts +0 -1
  29. package/models/errors/index.d.ts.map +1 -1
  30. package/models/errors/index.js +0 -1
  31. package/models/errors/index.js.map +1 -1
  32. package/models/operations/createbudget.js +2 -2
  33. package/models/operations/createcontact.js +2 -2
  34. package/models/operations/createdataset.js +2 -2
  35. package/models/operations/createdatasetitem.js +8 -8
  36. package/models/operations/createdatasource.js +2 -2
  37. package/models/operations/createeval.js +28 -28
  38. package/models/operations/createtool.d.ts +25 -25
  39. package/models/operations/createtool.d.ts.map +1 -1
  40. package/models/operations/createtool.js +41 -41
  41. package/models/operations/createtool.js.map +1 -1
  42. package/models/operations/deploymentinvoke.d.ts +6 -6
  43. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  44. package/models/operations/deploymentinvoke.js +9 -9
  45. package/models/operations/deploymentinvoke.js.map +1 -1
  46. package/models/operations/fileget.js +2 -2
  47. package/models/operations/filelist.js +2 -2
  48. package/models/operations/fileupload.js +2 -2
  49. package/models/operations/getagenttask.d.ts +682 -108
  50. package/models/operations/getagenttask.d.ts.map +1 -1
  51. package/models/operations/getagenttask.js +635 -155
  52. package/models/operations/getagenttask.js.map +1 -1
  53. package/models/operations/getalltools.js +12 -12
  54. package/models/operations/getbudget.js +2 -2
  55. package/models/operations/getevals.js +28 -28
  56. package/models/operations/invokeagent.d.ts +143 -123
  57. package/models/operations/invokeagent.d.ts.map +1 -1
  58. package/models/operations/invokeagent.js +143 -146
  59. package/models/operations/invokeagent.js.map +1 -1
  60. package/models/operations/listagenttasks.d.ts +680 -118
  61. package/models/operations/listagenttasks.d.ts.map +1 -1
  62. package/models/operations/listagenttasks.js +612 -144
  63. package/models/operations/listagenttasks.js.map +1 -1
  64. package/models/operations/listbudgets.js +2 -2
  65. package/models/operations/listchunks.d.ts +6 -6
  66. package/models/operations/listchunks.d.ts.map +1 -1
  67. package/models/operations/listchunks.js +9 -9
  68. package/models/operations/listchunks.js.map +1 -1
  69. package/models/operations/listcontacts.js +2 -2
  70. package/models/operations/listdatasetdatapoints.js +8 -8
  71. package/models/operations/listdatasets.js +2 -2
  72. package/models/operations/listdatasources.d.ts +6 -6
  73. package/models/operations/listdatasources.d.ts.map +1 -1
  74. package/models/operations/listdatasources.js +12 -11
  75. package/models/operations/listdatasources.js.map +1 -1
  76. package/models/operations/retrievecontact.js +2 -2
  77. package/models/operations/retrievedatapoint.js +8 -8
  78. package/models/operations/retrievedataset.js +2 -2
  79. package/models/operations/retrievedatasource.js +2 -2
  80. package/models/operations/retrievetool.js +12 -12
  81. package/models/operations/runagent.d.ts +112 -98
  82. package/models/operations/runagent.d.ts.map +1 -1
  83. package/models/operations/runagent.js +120 -121
  84. package/models/operations/runagent.js.map +1 -1
  85. package/models/operations/streamagent.d.ts +18 -12
  86. package/models/operations/streamagent.d.ts.map +1 -1
  87. package/models/operations/streamagent.js +13 -13
  88. package/models/operations/streamagent.js.map +1 -1
  89. package/models/operations/streamrunagent.d.ts +12 -12
  90. package/models/operations/streamrunagent.d.ts.map +1 -1
  91. package/models/operations/streamrunagent.js +15 -15
  92. package/models/operations/streamrunagent.js.map +1 -1
  93. package/models/operations/updateagent.d.ts +11 -8
  94. package/models/operations/updateagent.d.ts.map +1 -1
  95. package/models/operations/updateagent.js +13 -11
  96. package/models/operations/updateagent.js.map +1 -1
  97. package/models/operations/updatebudget.js +2 -2
  98. package/models/operations/updatecontact.js +2 -2
  99. package/models/operations/updatedatapoint.js +8 -8
  100. package/models/operations/updatedataset.js +2 -2
  101. package/models/operations/updatedatasource.js +2 -2
  102. package/models/operations/updateeval.js +28 -28
  103. package/models/operations/updatetool.js +14 -14
  104. package/package.json +1 -1
  105. package/sdk/agents.d.ts +10 -10
  106. package/sdk/agents.d.ts.map +1 -1
  107. package/sdk/agents.js +9 -9
  108. package/sdk/agents.js.map +1 -1
  109. package/src/funcs/agentsInvoke.ts +4 -4
  110. package/src/funcs/agentsListTasks.ts +4 -4
  111. package/src/funcs/agentsRetrieveTask.ts +8 -8
  112. package/src/funcs/agentsRun.ts +4 -4
  113. package/src/lib/config.ts +2 -2
  114. package/src/mcp-server/mcp-server.ts +1 -1
  115. package/src/mcp-server/server.ts +2 -2
  116. package/src/models/errors/index.ts +0 -1
  117. package/src/models/operations/createbudget.ts +2 -2
  118. package/src/models/operations/createcontact.ts +2 -2
  119. package/src/models/operations/createdataset.ts +2 -2
  120. package/src/models/operations/createdatasetitem.ts +8 -8
  121. package/src/models/operations/createdatasource.ts +2 -2
  122. package/src/models/operations/createeval.ts +28 -28
  123. package/src/models/operations/createtool.ts +76 -76
  124. package/src/models/operations/deploymentinvoke.ts +17 -24
  125. package/src/models/operations/fileget.ts +2 -2
  126. package/src/models/operations/filelist.ts +2 -2
  127. package/src/models/operations/fileupload.ts +2 -2
  128. package/src/models/operations/getagenttask.ts +1873 -428
  129. package/src/models/operations/getalltools.ts +12 -12
  130. package/src/models/operations/getbudget.ts +2 -2
  131. package/src/models/operations/getevals.ts +28 -28
  132. package/src/models/operations/invokeagent.ts +319 -299
  133. package/src/models/operations/listagenttasks.ts +2029 -540
  134. package/src/models/operations/listbudgets.ts +2 -2
  135. package/src/models/operations/listchunks.ts +14 -14
  136. package/src/models/operations/listcontacts.ts +2 -2
  137. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  138. package/src/models/operations/listdatasets.ts +2 -2
  139. package/src/models/operations/listdatasources.ts +15 -22
  140. package/src/models/operations/retrievecontact.ts +2 -2
  141. package/src/models/operations/retrievedatapoint.ts +8 -8
  142. package/src/models/operations/retrievedataset.ts +2 -2
  143. package/src/models/operations/retrievedatasource.ts +2 -2
  144. package/src/models/operations/retrievetool.ts +12 -12
  145. package/src/models/operations/runagent.ts +264 -220
  146. package/src/models/operations/streamagent.ts +28 -22
  147. package/src/models/operations/streamrunagent.ts +24 -24
  148. package/src/models/operations/updateagent.ts +25 -18
  149. package/src/models/operations/updatebudget.ts +2 -2
  150. package/src/models/operations/updatecontact.ts +2 -2
  151. package/src/models/operations/updatedatapoint.ts +8 -8
  152. package/src/models/operations/updatedataset.ts +2 -2
  153. package/src/models/operations/updatedatasource.ts +2 -2
  154. package/src/models/operations/updateeval.ts +28 -28
  155. package/src/models/operations/updatetool.ts +14 -14
  156. package/src/sdk/agents.ts +20 -20
  157. package/models/errors/getagenttask.d.ts +0 -29
  158. package/models/errors/getagenttask.d.ts.map +0 -1
  159. package/models/errors/getagenttask.js +0 -74
  160. package/models/errors/getagenttask.js.map +0 -1
  161. package/src/models/errors/getagenttask.ts +0 -67
@@ -3,23 +3,23 @@ import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  /**
6
- * Tool message
6
+ * Message containing tool execution results
7
7
  */
8
8
  export declare const RoleToolMessage: {
9
9
  readonly Tool: "tool";
10
10
  };
11
11
  /**
12
- * Tool message
12
+ * Message containing tool execution results
13
13
  */
14
14
  export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
15
15
  /**
16
- * User message
16
+ * Message from the end user
17
17
  */
18
18
  export declare const RoleUserMessage: {
19
19
  readonly User: "user";
20
20
  };
21
21
  /**
22
- * User message
22
+ * Message from the end user
23
23
  */
24
24
  export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
25
25
  /**
@@ -105,7 +105,10 @@ export type TextPart = {
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
107
  export type PublicMessagePart = TextPart | FilePart | ToolResultPart;
108
- export type Message = {
108
+ /**
109
+ * The A2A message to send to the agent (user input or tool results)
110
+ */
111
+ export type A2AMessage = {
109
112
  /**
110
113
  * Optional A2A message ID in ULID format
111
114
  */
@@ -177,7 +180,10 @@ export type InvokeAgentRequestBody = {
177
180
  * 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
181
  */
179
182
  taskId?: string | undefined;
180
- message: Message;
183
+ /**
184
+ * The A2A message to send to the agent (user input or tool results)
185
+ */
186
+ message: A2AMessage;
181
187
  /**
182
188
  * Optional variables for template replacement in system prompt, instructions, and messages
183
189
  */
@@ -211,68 +217,73 @@ export type InvokeAgentRequest = {
211
217
  requestBody?: InvokeAgentRequestBody | undefined;
212
218
  };
213
219
  /**
214
- * A2A entity type
220
+ * A2A entity type identifier
215
221
  */
216
222
  export declare const InvokeAgentKind: {
217
223
  readonly Task: "task";
218
224
  };
219
225
  /**
220
- * A2A entity type
226
+ * A2A entity type identifier
221
227
  */
222
228
  export type InvokeAgentKind = ClosedEnum<typeof InvokeAgentKind>;
223
229
  /**
224
- * Current task state
230
+ * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
225
231
  */
226
- export declare const InvokeAgentState: {
232
+ export declare const TaskState: {
227
233
  readonly Submitted: "submitted";
228
234
  readonly Working: "working";
229
235
  readonly InputRequired: "input-required";
236
+ readonly AuthRequired: "auth-required";
230
237
  readonly Completed: "completed";
231
238
  readonly Failed: "failed";
232
239
  readonly Canceled: "canceled";
233
240
  readonly Rejected: "rejected";
234
- readonly AuthRequired: "auth-required";
235
- readonly Unknown: "unknown";
236
241
  };
237
242
  /**
238
- * Current task state
243
+ * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
239
244
  */
240
- export type InvokeAgentState = ClosedEnum<typeof InvokeAgentState>;
245
+ export type TaskState = ClosedEnum<typeof TaskState>;
241
246
  export declare const InvokeAgentAgentsKind: {
242
247
  readonly Message: "message";
243
248
  };
244
249
  export type InvokeAgentAgentsKind = ClosedEnum<typeof InvokeAgentAgentsKind>;
245
250
  /**
246
- * Extended A2A message role
251
+ * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
247
252
  */
248
- export declare const InvokeAgentAgentsRole: {
253
+ export declare const InvokeAgentExtendedMessageRole: {
249
254
  readonly User: "user";
250
255
  readonly Agent: "agent";
251
256
  readonly Tool: "tool";
252
257
  readonly System: "system";
253
258
  };
254
259
  /**
255
- * Extended A2A message role
260
+ * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
256
261
  */
257
- export type InvokeAgentAgentsRole = ClosedEnum<typeof InvokeAgentAgentsRole>;
258
- export declare const InvokeAgentPartsAgentsResponse200ApplicationJSONKind: {
262
+ export type InvokeAgentExtendedMessageRole = ClosedEnum<typeof InvokeAgentExtendedMessageRole>;
263
+ export declare const InvokeAgentPartsAgentsResponse200Kind: {
259
264
  readonly ToolResult: "tool_result";
260
265
  };
261
- export type InvokeAgentPartsAgentsResponse200ApplicationJSONKind = ClosedEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind>;
262
- export type InvokeAgentParts5 = {
263
- kind: InvokeAgentPartsAgentsResponse200ApplicationJSONKind;
266
+ export type InvokeAgentPartsAgentsResponse200Kind = ClosedEnum<typeof InvokeAgentPartsAgentsResponse200Kind>;
267
+ /**
268
+ * The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
269
+ */
270
+ export type InvokeAgentPartsToolResultPart = {
271
+ kind: InvokeAgentPartsAgentsResponse200Kind;
264
272
  toolCallId: string;
265
273
  result?: any | undefined;
266
274
  metadata?: {
267
275
  [k: string]: any;
268
276
  } | undefined;
269
277
  };
270
- export declare const InvokeAgentPartsAgentsResponse200Kind: {
278
+ export declare const InvokeAgentPartsAgentsResponseKind: {
271
279
  readonly ToolCall: "tool_call";
272
280
  };
273
- export type InvokeAgentPartsAgentsResponse200Kind = ClosedEnum<typeof InvokeAgentPartsAgentsResponse200Kind>;
274
- export type InvokeAgentParts4 = {
275
- kind: InvokeAgentPartsAgentsResponse200Kind;
281
+ export type InvokeAgentPartsAgentsResponseKind = ClosedEnum<typeof InvokeAgentPartsAgentsResponseKind>;
282
+ /**
283
+ * A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
284
+ */
285
+ export type InvokeAgentPartsToolCallPart = {
286
+ kind: InvokeAgentPartsAgentsResponseKind;
276
287
  toolName: string;
277
288
  toolCallId: string;
278
289
  arguments: {
@@ -282,10 +293,10 @@ export type InvokeAgentParts4 = {
282
293
  [k: string]: any;
283
294
  } | undefined;
284
295
  };
285
- export declare const InvokeAgentPartsAgentsResponseKind: {
296
+ export declare const InvokeAgentPartsAgentsKind: {
286
297
  readonly File: "file";
287
298
  };
288
- export type InvokeAgentPartsAgentsResponseKind = ClosedEnum<typeof InvokeAgentPartsAgentsResponseKind>;
299
+ export type InvokeAgentPartsAgentsKind = ClosedEnum<typeof InvokeAgentPartsAgentsKind>;
289
300
  /**
290
301
  * File in URI format. Check in the model's documentation for the supported mime types for the URI format
291
302
  */
@@ -321,19 +332,25 @@ export type InvokeAgentFileBinaryFormat = {
321
332
  name?: string | undefined;
322
333
  };
323
334
  export type InvokeAgentPartsFile = InvokeAgentFileBinaryFormat | InvokeAgentFileFileInURIFormat;
324
- export type InvokeAgentParts3 = {
325
- kind: InvokeAgentPartsAgentsResponseKind;
335
+ /**
336
+ * A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
337
+ */
338
+ export type InvokeAgentPartsFilePart = {
339
+ kind: InvokeAgentPartsAgentsKind;
326
340
  file: InvokeAgentFileBinaryFormat | InvokeAgentFileFileInURIFormat;
327
341
  metadata?: {
328
342
  [k: string]: any;
329
343
  } | undefined;
330
344
  };
331
- export declare const InvokeAgentPartsAgentsKind: {
345
+ export declare const InvokeAgentPartsKind: {
332
346
  readonly Data: "data";
333
347
  };
334
- export type InvokeAgentPartsAgentsKind = ClosedEnum<typeof InvokeAgentPartsAgentsKind>;
335
- export type InvokeAgentParts2 = {
336
- kind: InvokeAgentPartsAgentsKind;
348
+ export type InvokeAgentPartsKind = ClosedEnum<typeof InvokeAgentPartsKind>;
349
+ /**
350
+ * A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
351
+ */
352
+ export type InvokeAgentPartsDataPart = {
353
+ kind: InvokeAgentPartsKind;
337
354
  data: {
338
355
  [k: string]: any;
339
356
  };
@@ -341,66 +358,69 @@ export type InvokeAgentParts2 = {
341
358
  [k: string]: any;
342
359
  } | undefined;
343
360
  };
344
- export declare const InvokeAgentPartsKind: {
361
+ export declare const InvokeAgentPartsAgentsResponse200ApplicationJSONKind: {
345
362
  readonly Text: "text";
346
363
  };
347
- export type InvokeAgentPartsKind = ClosedEnum<typeof InvokeAgentPartsKind>;
348
- export type InvokeAgentParts1 = {
349
- kind: InvokeAgentPartsKind;
364
+ export type InvokeAgentPartsAgentsResponse200ApplicationJSONKind = ClosedEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind>;
365
+ /**
366
+ * A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
367
+ */
368
+ export type InvokeAgentPartsTextPart = {
369
+ kind: InvokeAgentPartsAgentsResponse200ApplicationJSONKind;
350
370
  text: string;
351
371
  };
352
- export type InvokeAgentParts = InvokeAgentParts4 | InvokeAgentParts1 | InvokeAgentParts2 | InvokeAgentParts3 | InvokeAgentParts5;
372
+ export type InvokeAgentParts = InvokeAgentPartsToolCallPart | InvokeAgentPartsTextPart | InvokeAgentPartsDataPart | InvokeAgentPartsFilePart | InvokeAgentPartsToolResultPart;
353
373
  /**
354
- * Optional status message
374
+ * Optional A2A message providing additional context about the current status
355
375
  */
356
- export type InvokeAgentMessage = {
376
+ export type TaskStatusMessage = {
357
377
  kind: InvokeAgentAgentsKind;
358
378
  messageId: string;
359
379
  /**
360
- * Extended A2A message role
380
+ * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
361
381
  */
362
- role: InvokeAgentAgentsRole;
363
- parts: Array<InvokeAgentParts4 | InvokeAgentParts1 | InvokeAgentParts2 | InvokeAgentParts3 | InvokeAgentParts5>;
382
+ role: InvokeAgentExtendedMessageRole;
383
+ parts: Array<InvokeAgentPartsToolCallPart | InvokeAgentPartsTextPart | InvokeAgentPartsDataPart | InvokeAgentPartsFilePart | InvokeAgentPartsToolResultPart>;
364
384
  };
365
385
  /**
366
- * Task status information
386
+ * Current task status information
367
387
  */
368
- export type InvokeAgentStatus = {
388
+ export type TaskStatus = {
369
389
  /**
370
- * Current task state
390
+ * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
371
391
  */
372
- state: InvokeAgentState;
392
+ state: TaskState;
373
393
  /**
374
- * ISO timestamp of status update
394
+ * ISO 8601 timestamp of when the status was updated
375
395
  */
376
396
  timestamp?: string | undefined;
377
397
  /**
378
- * Optional status message
398
+ * Optional A2A message providing additional context about the current status
379
399
  */
380
- message?: InvokeAgentMessage | undefined;
400
+ message?: TaskStatusMessage | undefined;
381
401
  };
382
402
  /**
383
- * A2A Task response format
403
+ * Response format following the Agent-to-Agent (A2A) protocol. Returned when starting or continuing an agent task execution.
384
404
  */
385
- export type InvokeAgentResponseBody = {
405
+ export type InvokeAgentA2ATaskResponse = {
386
406
  /**
387
- * The ID of the created agent execution task
407
+ * The unique ID of the created agent execution task
388
408
  */
389
409
  id: string;
390
410
  /**
391
- * The correlation ID for this execution
411
+ * The correlation ID for this execution (used for tracking)
392
412
  */
393
413
  contextId: string;
394
414
  /**
395
- * A2A entity type
415
+ * A2A entity type identifier
396
416
  */
397
417
  kind: InvokeAgentKind;
398
418
  /**
399
- * Task status information
419
+ * Current task status information
400
420
  */
401
- status: InvokeAgentStatus;
421
+ status: TaskStatus;
402
422
  /**
403
- * Task metadata containing workspace_id and trace_id for feedback
423
+ * Task metadata containing workspace_id and trace_id for feedback and tracking
404
424
  */
405
425
  metadata?: {
406
426
  [k: string]: any;
@@ -515,17 +535,17 @@ export declare const PublicMessagePart$outboundSchema: z.ZodType<PublicMessagePa
515
535
  export declare function publicMessagePartToJSON(publicMessagePart: PublicMessagePart): string;
516
536
  export declare function publicMessagePartFromJSON(jsonString: string): SafeParseResult<PublicMessagePart, SDKValidationError>;
517
537
  /** @internal */
518
- export declare const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown>;
538
+ export declare const A2AMessage$inboundSchema: z.ZodType<A2AMessage, z.ZodTypeDef, unknown>;
519
539
  /** @internal */
520
- export type Message$Outbound = {
540
+ export type A2AMessage$Outbound = {
521
541
  messageId?: string | undefined;
522
542
  role: string | string;
523
543
  parts: Array<TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound>;
524
544
  };
525
545
  /** @internal */
526
- export declare const Message$outboundSchema: z.ZodType<Message$Outbound, z.ZodTypeDef, Message>;
527
- export declare function messageToJSON(message: Message): string;
528
- export declare function messageFromJSON(jsonString: string): SafeParseResult<Message, SDKValidationError>;
546
+ export declare const A2AMessage$outboundSchema: z.ZodType<A2AMessage$Outbound, z.ZodTypeDef, A2AMessage>;
547
+ export declare function a2AMessageToJSON(a2AMessage: A2AMessage): string;
548
+ export declare function a2AMessageFromJSON(jsonString: string): SafeParseResult<A2AMessage, SDKValidationError>;
529
549
  /** @internal */
530
550
  export declare const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown>;
531
551
  /** @internal */
@@ -569,7 +589,7 @@ export declare const InvokeAgentRequestBody$inboundSchema: z.ZodType<InvokeAgent
569
589
  /** @internal */
570
590
  export type InvokeAgentRequestBody$Outbound = {
571
591
  task_id?: string | undefined;
572
- message: Message$Outbound;
592
+ message: A2AMessage$Outbound;
573
593
  variables?: {
574
594
  [k: string]: any;
575
595
  } | undefined;
@@ -600,25 +620,25 @@ export declare const InvokeAgentKind$inboundSchema: z.ZodNativeEnum<typeof Invok
600
620
  /** @internal */
601
621
  export declare const InvokeAgentKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentKind>;
602
622
  /** @internal */
603
- export declare const InvokeAgentState$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentState>;
623
+ export declare const TaskState$inboundSchema: z.ZodNativeEnum<typeof TaskState>;
604
624
  /** @internal */
605
- export declare const InvokeAgentState$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentState>;
625
+ export declare const TaskState$outboundSchema: z.ZodNativeEnum<typeof TaskState>;
606
626
  /** @internal */
607
627
  export declare const InvokeAgentAgentsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentAgentsKind>;
608
628
  /** @internal */
609
629
  export declare const InvokeAgentAgentsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentAgentsKind>;
610
630
  /** @internal */
611
- export declare const InvokeAgentAgentsRole$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentAgentsRole>;
631
+ export declare const InvokeAgentExtendedMessageRole$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentExtendedMessageRole>;
612
632
  /** @internal */
613
- export declare const InvokeAgentAgentsRole$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentAgentsRole>;
633
+ export declare const InvokeAgentExtendedMessageRole$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentExtendedMessageRole>;
614
634
  /** @internal */
615
- export declare const InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind>;
635
+ export declare const InvokeAgentPartsAgentsResponse200Kind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200Kind>;
616
636
  /** @internal */
617
- export declare const InvokeAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind>;
637
+ export declare const InvokeAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200Kind>;
618
638
  /** @internal */
619
- export declare const InvokeAgentParts5$inboundSchema: z.ZodType<InvokeAgentParts5, z.ZodTypeDef, unknown>;
639
+ export declare const InvokeAgentPartsToolResultPart$inboundSchema: z.ZodType<InvokeAgentPartsToolResultPart, z.ZodTypeDef, unknown>;
620
640
  /** @internal */
621
- export type InvokeAgentParts5$Outbound = {
641
+ export type InvokeAgentPartsToolResultPart$Outbound = {
622
642
  kind: string;
623
643
  tool_call_id: string;
624
644
  result?: any | undefined;
@@ -627,17 +647,17 @@ export type InvokeAgentParts5$Outbound = {
627
647
  } | undefined;
628
648
  };
629
649
  /** @internal */
630
- export declare const InvokeAgentParts5$outboundSchema: z.ZodType<InvokeAgentParts5$Outbound, z.ZodTypeDef, InvokeAgentParts5>;
631
- export declare function invokeAgentParts5ToJSON(invokeAgentParts5: InvokeAgentParts5): string;
632
- export declare function invokeAgentParts5FromJSON(jsonString: string): SafeParseResult<InvokeAgentParts5, SDKValidationError>;
650
+ export declare const InvokeAgentPartsToolResultPart$outboundSchema: z.ZodType<InvokeAgentPartsToolResultPart$Outbound, z.ZodTypeDef, InvokeAgentPartsToolResultPart>;
651
+ export declare function invokeAgentPartsToolResultPartToJSON(invokeAgentPartsToolResultPart: InvokeAgentPartsToolResultPart): string;
652
+ export declare function invokeAgentPartsToolResultPartFromJSON(jsonString: string): SafeParseResult<InvokeAgentPartsToolResultPart, SDKValidationError>;
633
653
  /** @internal */
634
- export declare const InvokeAgentPartsAgentsResponse200Kind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200Kind>;
654
+ export declare const InvokeAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponseKind>;
635
655
  /** @internal */
636
- export declare const InvokeAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200Kind>;
656
+ export declare const InvokeAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponseKind>;
637
657
  /** @internal */
638
- export declare const InvokeAgentParts4$inboundSchema: z.ZodType<InvokeAgentParts4, z.ZodTypeDef, unknown>;
658
+ export declare const InvokeAgentPartsToolCallPart$inboundSchema: z.ZodType<InvokeAgentPartsToolCallPart, z.ZodTypeDef, unknown>;
639
659
  /** @internal */
640
- export type InvokeAgentParts4$Outbound = {
660
+ export type InvokeAgentPartsToolCallPart$Outbound = {
641
661
  kind: string;
642
662
  tool_name: string;
643
663
  tool_call_id: string;
@@ -649,13 +669,13 @@ export type InvokeAgentParts4$Outbound = {
649
669
  } | undefined;
650
670
  };
651
671
  /** @internal */
652
- export declare const InvokeAgentParts4$outboundSchema: z.ZodType<InvokeAgentParts4$Outbound, z.ZodTypeDef, InvokeAgentParts4>;
653
- export declare function invokeAgentParts4ToJSON(invokeAgentParts4: InvokeAgentParts4): string;
654
- export declare function invokeAgentParts4FromJSON(jsonString: string): SafeParseResult<InvokeAgentParts4, SDKValidationError>;
672
+ export declare const InvokeAgentPartsToolCallPart$outboundSchema: z.ZodType<InvokeAgentPartsToolCallPart$Outbound, z.ZodTypeDef, InvokeAgentPartsToolCallPart>;
673
+ export declare function invokeAgentPartsToolCallPartToJSON(invokeAgentPartsToolCallPart: InvokeAgentPartsToolCallPart): string;
674
+ export declare function invokeAgentPartsToolCallPartFromJSON(jsonString: string): SafeParseResult<InvokeAgentPartsToolCallPart, SDKValidationError>;
655
675
  /** @internal */
656
- export declare const InvokeAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponseKind>;
676
+ export declare const InvokeAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsKind>;
657
677
  /** @internal */
658
- export declare const InvokeAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponseKind>;
678
+ export declare const InvokeAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsKind>;
659
679
  /** @internal */
660
680
  export declare const InvokeAgentFileFileInURIFormat$inboundSchema: z.ZodType<InvokeAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
661
681
  /** @internal */
@@ -689,9 +709,9 @@ export declare const InvokeAgentPartsFile$outboundSchema: z.ZodType<InvokeAgentP
689
709
  export declare function invokeAgentPartsFileToJSON(invokeAgentPartsFile: InvokeAgentPartsFile): string;
690
710
  export declare function invokeAgentPartsFileFromJSON(jsonString: string): SafeParseResult<InvokeAgentPartsFile, SDKValidationError>;
691
711
  /** @internal */
692
- export declare const InvokeAgentParts3$inboundSchema: z.ZodType<InvokeAgentParts3, z.ZodTypeDef, unknown>;
712
+ export declare const InvokeAgentPartsFilePart$inboundSchema: z.ZodType<InvokeAgentPartsFilePart, z.ZodTypeDef, unknown>;
693
713
  /** @internal */
694
- export type InvokeAgentParts3$Outbound = {
714
+ export type InvokeAgentPartsFilePart$Outbound = {
695
715
  kind: string;
696
716
  file: InvokeAgentFileBinaryFormat$Outbound | InvokeAgentFileFileInURIFormat$Outbound;
697
717
  metadata?: {
@@ -699,17 +719,17 @@ export type InvokeAgentParts3$Outbound = {
699
719
  } | undefined;
700
720
  };
701
721
  /** @internal */
702
- export declare const InvokeAgentParts3$outboundSchema: z.ZodType<InvokeAgentParts3$Outbound, z.ZodTypeDef, InvokeAgentParts3>;
703
- export declare function invokeAgentParts3ToJSON(invokeAgentParts3: InvokeAgentParts3): string;
704
- export declare function invokeAgentParts3FromJSON(jsonString: string): SafeParseResult<InvokeAgentParts3, SDKValidationError>;
722
+ export declare const InvokeAgentPartsFilePart$outboundSchema: z.ZodType<InvokeAgentPartsFilePart$Outbound, z.ZodTypeDef, InvokeAgentPartsFilePart>;
723
+ export declare function invokeAgentPartsFilePartToJSON(invokeAgentPartsFilePart: InvokeAgentPartsFilePart): string;
724
+ export declare function invokeAgentPartsFilePartFromJSON(jsonString: string): SafeParseResult<InvokeAgentPartsFilePart, SDKValidationError>;
705
725
  /** @internal */
706
- export declare const InvokeAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsKind>;
726
+ export declare const InvokeAgentPartsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsKind>;
707
727
  /** @internal */
708
- export declare const InvokeAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsKind>;
728
+ export declare const InvokeAgentPartsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsKind>;
709
729
  /** @internal */
710
- export declare const InvokeAgentParts2$inboundSchema: z.ZodType<InvokeAgentParts2, z.ZodTypeDef, unknown>;
730
+ export declare const InvokeAgentPartsDataPart$inboundSchema: z.ZodType<InvokeAgentPartsDataPart, z.ZodTypeDef, unknown>;
711
731
  /** @internal */
712
- export type InvokeAgentParts2$Outbound = {
732
+ export type InvokeAgentPartsDataPart$Outbound = {
713
733
  kind: string;
714
734
  data: {
715
735
  [k: string]: any;
@@ -719,71 +739,71 @@ export type InvokeAgentParts2$Outbound = {
719
739
  } | undefined;
720
740
  };
721
741
  /** @internal */
722
- export declare const InvokeAgentParts2$outboundSchema: z.ZodType<InvokeAgentParts2$Outbound, z.ZodTypeDef, InvokeAgentParts2>;
723
- export declare function invokeAgentParts2ToJSON(invokeAgentParts2: InvokeAgentParts2): string;
724
- export declare function invokeAgentParts2FromJSON(jsonString: string): SafeParseResult<InvokeAgentParts2, SDKValidationError>;
742
+ export declare const InvokeAgentPartsDataPart$outboundSchema: z.ZodType<InvokeAgentPartsDataPart$Outbound, z.ZodTypeDef, InvokeAgentPartsDataPart>;
743
+ export declare function invokeAgentPartsDataPartToJSON(invokeAgentPartsDataPart: InvokeAgentPartsDataPart): string;
744
+ export declare function invokeAgentPartsDataPartFromJSON(jsonString: string): SafeParseResult<InvokeAgentPartsDataPart, SDKValidationError>;
725
745
  /** @internal */
726
- export declare const InvokeAgentPartsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsKind>;
746
+ export declare const InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind>;
727
747
  /** @internal */
728
- export declare const InvokeAgentPartsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsKind>;
748
+ export declare const InvokeAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind>;
729
749
  /** @internal */
730
- export declare const InvokeAgentParts1$inboundSchema: z.ZodType<InvokeAgentParts1, z.ZodTypeDef, unknown>;
750
+ export declare const InvokeAgentPartsTextPart$inboundSchema: z.ZodType<InvokeAgentPartsTextPart, z.ZodTypeDef, unknown>;
731
751
  /** @internal */
732
- export type InvokeAgentParts1$Outbound = {
752
+ export type InvokeAgentPartsTextPart$Outbound = {
733
753
  kind: string;
734
754
  text: string;
735
755
  };
736
756
  /** @internal */
737
- export declare const InvokeAgentParts1$outboundSchema: z.ZodType<InvokeAgentParts1$Outbound, z.ZodTypeDef, InvokeAgentParts1>;
738
- export declare function invokeAgentParts1ToJSON(invokeAgentParts1: InvokeAgentParts1): string;
739
- export declare function invokeAgentParts1FromJSON(jsonString: string): SafeParseResult<InvokeAgentParts1, SDKValidationError>;
757
+ export declare const InvokeAgentPartsTextPart$outboundSchema: z.ZodType<InvokeAgentPartsTextPart$Outbound, z.ZodTypeDef, InvokeAgentPartsTextPart>;
758
+ export declare function invokeAgentPartsTextPartToJSON(invokeAgentPartsTextPart: InvokeAgentPartsTextPart): string;
759
+ export declare function invokeAgentPartsTextPartFromJSON(jsonString: string): SafeParseResult<InvokeAgentPartsTextPart, SDKValidationError>;
740
760
  /** @internal */
741
761
  export declare const InvokeAgentParts$inboundSchema: z.ZodType<InvokeAgentParts, z.ZodTypeDef, unknown>;
742
762
  /** @internal */
743
- export type InvokeAgentParts$Outbound = InvokeAgentParts4$Outbound | InvokeAgentParts1$Outbound | InvokeAgentParts2$Outbound | InvokeAgentParts3$Outbound | InvokeAgentParts5$Outbound;
763
+ export type InvokeAgentParts$Outbound = InvokeAgentPartsToolCallPart$Outbound | InvokeAgentPartsTextPart$Outbound | InvokeAgentPartsDataPart$Outbound | InvokeAgentPartsFilePart$Outbound | InvokeAgentPartsToolResultPart$Outbound;
744
764
  /** @internal */
745
765
  export declare const InvokeAgentParts$outboundSchema: z.ZodType<InvokeAgentParts$Outbound, z.ZodTypeDef, InvokeAgentParts>;
746
766
  export declare function invokeAgentPartsToJSON(invokeAgentParts: InvokeAgentParts): string;
747
767
  export declare function invokeAgentPartsFromJSON(jsonString: string): SafeParseResult<InvokeAgentParts, SDKValidationError>;
748
768
  /** @internal */
749
- export declare const InvokeAgentMessage$inboundSchema: z.ZodType<InvokeAgentMessage, z.ZodTypeDef, unknown>;
769
+ export declare const TaskStatusMessage$inboundSchema: z.ZodType<TaskStatusMessage, z.ZodTypeDef, unknown>;
750
770
  /** @internal */
751
- export type InvokeAgentMessage$Outbound = {
771
+ export type TaskStatusMessage$Outbound = {
752
772
  kind: string;
753
773
  messageId: string;
754
774
  role: string;
755
- parts: Array<InvokeAgentParts4$Outbound | InvokeAgentParts1$Outbound | InvokeAgentParts2$Outbound | InvokeAgentParts3$Outbound | InvokeAgentParts5$Outbound>;
775
+ parts: Array<InvokeAgentPartsToolCallPart$Outbound | InvokeAgentPartsTextPart$Outbound | InvokeAgentPartsDataPart$Outbound | InvokeAgentPartsFilePart$Outbound | InvokeAgentPartsToolResultPart$Outbound>;
756
776
  };
757
777
  /** @internal */
758
- export declare const InvokeAgentMessage$outboundSchema: z.ZodType<InvokeAgentMessage$Outbound, z.ZodTypeDef, InvokeAgentMessage>;
759
- export declare function invokeAgentMessageToJSON(invokeAgentMessage: InvokeAgentMessage): string;
760
- export declare function invokeAgentMessageFromJSON(jsonString: string): SafeParseResult<InvokeAgentMessage, SDKValidationError>;
778
+ export declare const TaskStatusMessage$outboundSchema: z.ZodType<TaskStatusMessage$Outbound, z.ZodTypeDef, TaskStatusMessage>;
779
+ export declare function taskStatusMessageToJSON(taskStatusMessage: TaskStatusMessage): string;
780
+ export declare function taskStatusMessageFromJSON(jsonString: string): SafeParseResult<TaskStatusMessage, SDKValidationError>;
761
781
  /** @internal */
762
- export declare const InvokeAgentStatus$inboundSchema: z.ZodType<InvokeAgentStatus, z.ZodTypeDef, unknown>;
782
+ export declare const TaskStatus$inboundSchema: z.ZodType<TaskStatus, z.ZodTypeDef, unknown>;
763
783
  /** @internal */
764
- export type InvokeAgentStatus$Outbound = {
784
+ export type TaskStatus$Outbound = {
765
785
  state: string;
766
786
  timestamp?: string | undefined;
767
- message?: InvokeAgentMessage$Outbound | undefined;
787
+ message?: TaskStatusMessage$Outbound | undefined;
768
788
  };
769
789
  /** @internal */
770
- export declare const InvokeAgentStatus$outboundSchema: z.ZodType<InvokeAgentStatus$Outbound, z.ZodTypeDef, InvokeAgentStatus>;
771
- export declare function invokeAgentStatusToJSON(invokeAgentStatus: InvokeAgentStatus): string;
772
- export declare function invokeAgentStatusFromJSON(jsonString: string): SafeParseResult<InvokeAgentStatus, SDKValidationError>;
790
+ export declare const TaskStatus$outboundSchema: z.ZodType<TaskStatus$Outbound, z.ZodTypeDef, TaskStatus>;
791
+ export declare function taskStatusToJSON(taskStatus: TaskStatus): string;
792
+ export declare function taskStatusFromJSON(jsonString: string): SafeParseResult<TaskStatus, SDKValidationError>;
773
793
  /** @internal */
774
- export declare const InvokeAgentResponseBody$inboundSchema: z.ZodType<InvokeAgentResponseBody, z.ZodTypeDef, unknown>;
794
+ export declare const InvokeAgentA2ATaskResponse$inboundSchema: z.ZodType<InvokeAgentA2ATaskResponse, z.ZodTypeDef, unknown>;
775
795
  /** @internal */
776
- export type InvokeAgentResponseBody$Outbound = {
796
+ export type InvokeAgentA2ATaskResponse$Outbound = {
777
797
  id: string;
778
798
  contextId: string;
779
799
  kind: string;
780
- status: InvokeAgentStatus$Outbound;
800
+ status: TaskStatus$Outbound;
781
801
  metadata?: {
782
802
  [k: string]: any;
783
803
  } | undefined;
784
804
  };
785
805
  /** @internal */
786
- export declare const InvokeAgentResponseBody$outboundSchema: z.ZodType<InvokeAgentResponseBody$Outbound, z.ZodTypeDef, InvokeAgentResponseBody>;
787
- export declare function invokeAgentResponseBodyToJSON(invokeAgentResponseBody: InvokeAgentResponseBody): string;
788
- export declare function invokeAgentResponseBodyFromJSON(jsonString: string): SafeParseResult<InvokeAgentResponseBody, SDKValidationError>;
806
+ export declare const InvokeAgentA2ATaskResponse$outboundSchema: z.ZodType<InvokeAgentA2ATaskResponse$Outbound, z.ZodTypeDef, InvokeAgentA2ATaskResponse>;
807
+ export declare function invokeAgentA2ATaskResponseToJSON(invokeAgentA2ATaskResponse: InvokeAgentA2ATaskResponse): string;
808
+ export declare function invokeAgentA2ATaskResponseFromJSON(jsonString: string): SafeParseResult<InvokeAgentA2ATaskResponse, SDKValidationError>;
789
809
  //# sourceMappingURL=invokeagent.d.ts.map