@orq-ai/node 4.0.0-rc.51 → 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.
- package/README.md +3 -4
- package/bin/mcp-server.js +1125 -606
- package/bin/mcp-server.js.map +50 -51
- package/docs/sdks/agents/README.md +80 -80
- package/examples/package-lock.json +1 -1
- package/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsListTasks.d.ts +1 -1
- package/funcs/agentsListTasks.d.ts.map +1 -1
- package/funcs/agentsListTasks.js +1 -1
- package/funcs/agentsListTasks.js.map +1 -1
- package/funcs/agentsRetrieveTask.d.ts +1 -1
- package/funcs/agentsRetrieveTask.d.ts.map +1 -1
- package/funcs/agentsRetrieveTask.js +1 -1
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/funcs/agentsRun.d.ts +1 -1
- package/funcs/agentsRun.d.ts.map +1 -1
- package/funcs/agentsRun.js +1 -1
- package/funcs/agentsRun.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +25 -25
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +41 -41
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +6 -6
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -9
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagenttask.d.ts +682 -108
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +635 -155
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/invokeagent.d.ts +143 -123
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +143 -146
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +680 -118
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +612 -144
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listchunks.d.ts +6 -6
- package/models/operations/listchunks.d.ts.map +1 -1
- package/models/operations/listchunks.js +9 -9
- package/models/operations/listchunks.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.d.ts +6 -6
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +12 -11
- package/models/operations/listdatasources.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +112 -98
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +120 -121
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +18 -12
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +13 -13
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +12 -12
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +15 -15
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +11 -8
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +13 -11
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/agents.d.ts +10 -10
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +9 -9
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +4 -4
- package/src/funcs/agentsListTasks.ts +4 -4
- package/src/funcs/agentsRetrieveTask.ts +8 -8
- package/src/funcs/agentsRun.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +76 -76
- package/src/models/operations/deploymentinvoke.ts +17 -24
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagenttask.ts +1873 -428
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/invokeagent.ts +319 -299
- package/src/models/operations/listagenttasks.ts +2029 -540
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listchunks.ts +14 -14
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +15 -22
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +264 -220
- package/src/models/operations/streamagent.ts +28 -22
- package/src/models/operations/streamrunagent.ts +24 -24
- package/src/models/operations/updateagent.ts +25 -18
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +20 -20
- package/models/errors/getagenttask.d.ts +0 -29
- package/models/errors/getagenttask.d.ts.map +0 -1
- package/models/errors/getagenttask.js +0 -74
- package/models/errors/getagenttask.js.map +0 -1
- 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
|
-
*
|
|
6
|
+
* Message containing tool execution results
|
|
7
7
|
*/
|
|
8
8
|
export declare const RoleToolMessage: {
|
|
9
9
|
readonly Tool: "tool";
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Message containing tool execution results
|
|
13
13
|
*/
|
|
14
14
|
export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Message from the end user
|
|
17
17
|
*/
|
|
18
18
|
export declare const RoleUserMessage: {
|
|
19
19
|
readonly User: "user";
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
258
|
-
export declare const
|
|
262
|
+
export type InvokeAgentExtendedMessageRole = ClosedEnum<typeof InvokeAgentExtendedMessageRole>;
|
|
263
|
+
export declare const InvokeAgentPartsAgentsResponse200Kind: {
|
|
259
264
|
readonly ToolResult: "tool_result";
|
|
260
265
|
};
|
|
261
|
-
export type
|
|
262
|
-
|
|
263
|
-
|
|
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
|
|
278
|
+
export declare const InvokeAgentPartsAgentsResponseKind: {
|
|
271
279
|
readonly ToolCall: "tool_call";
|
|
272
280
|
};
|
|
273
|
-
export type
|
|
274
|
-
|
|
275
|
-
|
|
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
|
|
296
|
+
export declare const InvokeAgentPartsAgentsKind: {
|
|
286
297
|
readonly File: "file";
|
|
287
298
|
};
|
|
288
|
-
export type
|
|
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
|
-
|
|
325
|
-
|
|
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
|
|
345
|
+
export declare const InvokeAgentPartsKind: {
|
|
332
346
|
readonly Data: "data";
|
|
333
347
|
};
|
|
334
|
-
export type
|
|
335
|
-
|
|
336
|
-
|
|
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
|
|
361
|
+
export declare const InvokeAgentPartsAgentsResponse200ApplicationJSONKind: {
|
|
345
362
|
readonly Text: "text";
|
|
346
363
|
};
|
|
347
|
-
export type
|
|
348
|
-
|
|
349
|
-
|
|
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 =
|
|
372
|
+
export type InvokeAgentParts = InvokeAgentPartsToolCallPart | InvokeAgentPartsTextPart | InvokeAgentPartsDataPart | InvokeAgentPartsFilePart | InvokeAgentPartsToolResultPart;
|
|
353
373
|
/**
|
|
354
|
-
* Optional
|
|
374
|
+
* Optional A2A message providing additional context about the current status
|
|
355
375
|
*/
|
|
356
|
-
export type
|
|
376
|
+
export type TaskStatusMessage = {
|
|
357
377
|
kind: InvokeAgentAgentsKind;
|
|
358
378
|
messageId: string;
|
|
359
379
|
/**
|
|
360
|
-
*
|
|
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:
|
|
363
|
-
parts: Array<
|
|
382
|
+
role: InvokeAgentExtendedMessageRole;
|
|
383
|
+
parts: Array<InvokeAgentPartsToolCallPart | InvokeAgentPartsTextPart | InvokeAgentPartsDataPart | InvokeAgentPartsFilePart | InvokeAgentPartsToolResultPart>;
|
|
364
384
|
};
|
|
365
385
|
/**
|
|
366
|
-
*
|
|
386
|
+
* Current task status information
|
|
367
387
|
*/
|
|
368
|
-
export type
|
|
388
|
+
export type TaskStatus = {
|
|
369
389
|
/**
|
|
370
|
-
* Current task
|
|
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:
|
|
392
|
+
state: TaskState;
|
|
373
393
|
/**
|
|
374
|
-
* ISO timestamp of status
|
|
394
|
+
* ISO 8601 timestamp of when the status was updated
|
|
375
395
|
*/
|
|
376
396
|
timestamp?: string | undefined;
|
|
377
397
|
/**
|
|
378
|
-
* Optional
|
|
398
|
+
* Optional A2A message providing additional context about the current status
|
|
379
399
|
*/
|
|
380
|
-
message?:
|
|
400
|
+
message?: TaskStatusMessage | undefined;
|
|
381
401
|
};
|
|
382
402
|
/**
|
|
383
|
-
* A2A
|
|
403
|
+
* Response format following the Agent-to-Agent (A2A) protocol. Returned when starting or continuing an agent task execution.
|
|
384
404
|
*/
|
|
385
|
-
export type
|
|
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
|
-
*
|
|
419
|
+
* Current task status information
|
|
400
420
|
*/
|
|
401
|
-
status:
|
|
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
|
|
538
|
+
export declare const A2AMessage$inboundSchema: z.ZodType<A2AMessage, z.ZodTypeDef, unknown>;
|
|
519
539
|
/** @internal */
|
|
520
|
-
export type
|
|
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
|
|
527
|
-
export declare function
|
|
528
|
-
export declare function
|
|
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:
|
|
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
|
|
623
|
+
export declare const TaskState$inboundSchema: z.ZodNativeEnum<typeof TaskState>;
|
|
604
624
|
/** @internal */
|
|
605
|
-
export declare const
|
|
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
|
|
631
|
+
export declare const InvokeAgentExtendedMessageRole$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentExtendedMessageRole>;
|
|
612
632
|
/** @internal */
|
|
613
|
-
export declare const
|
|
633
|
+
export declare const InvokeAgentExtendedMessageRole$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentExtendedMessageRole>;
|
|
614
634
|
/** @internal */
|
|
615
|
-
export declare const
|
|
635
|
+
export declare const InvokeAgentPartsAgentsResponse200Kind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200Kind>;
|
|
616
636
|
/** @internal */
|
|
617
|
-
export declare const
|
|
637
|
+
export declare const InvokeAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200Kind>;
|
|
618
638
|
/** @internal */
|
|
619
|
-
export declare const
|
|
639
|
+
export declare const InvokeAgentPartsToolResultPart$inboundSchema: z.ZodType<InvokeAgentPartsToolResultPart, z.ZodTypeDef, unknown>;
|
|
620
640
|
/** @internal */
|
|
621
|
-
export type
|
|
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
|
|
631
|
-
export declare function
|
|
632
|
-
export declare function
|
|
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
|
|
654
|
+
export declare const InvokeAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponseKind>;
|
|
635
655
|
/** @internal */
|
|
636
|
-
export declare const
|
|
656
|
+
export declare const InvokeAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponseKind>;
|
|
637
657
|
/** @internal */
|
|
638
|
-
export declare const
|
|
658
|
+
export declare const InvokeAgentPartsToolCallPart$inboundSchema: z.ZodType<InvokeAgentPartsToolCallPart, z.ZodTypeDef, unknown>;
|
|
639
659
|
/** @internal */
|
|
640
|
-
export type
|
|
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
|
|
653
|
-
export declare function
|
|
654
|
-
export declare function
|
|
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
|
|
676
|
+
export declare const InvokeAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsKind>;
|
|
657
677
|
/** @internal */
|
|
658
|
-
export declare const
|
|
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
|
|
712
|
+
export declare const InvokeAgentPartsFilePart$inboundSchema: z.ZodType<InvokeAgentPartsFilePart, z.ZodTypeDef, unknown>;
|
|
693
713
|
/** @internal */
|
|
694
|
-
export type
|
|
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
|
|
703
|
-
export declare function
|
|
704
|
-
export declare function
|
|
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
|
|
726
|
+
export declare const InvokeAgentPartsKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsKind>;
|
|
707
727
|
/** @internal */
|
|
708
|
-
export declare const
|
|
728
|
+
export declare const InvokeAgentPartsKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsKind>;
|
|
709
729
|
/** @internal */
|
|
710
|
-
export declare const
|
|
730
|
+
export declare const InvokeAgentPartsDataPart$inboundSchema: z.ZodType<InvokeAgentPartsDataPart, z.ZodTypeDef, unknown>;
|
|
711
731
|
/** @internal */
|
|
712
|
-
export type
|
|
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
|
|
723
|
-
export declare function
|
|
724
|
-
export declare function
|
|
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
|
|
746
|
+
export declare const InvokeAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind>;
|
|
727
747
|
/** @internal */
|
|
728
|
-
export declare const
|
|
748
|
+
export declare const InvokeAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema: z.ZodNativeEnum<typeof InvokeAgentPartsAgentsResponse200ApplicationJSONKind>;
|
|
729
749
|
/** @internal */
|
|
730
|
-
export declare const
|
|
750
|
+
export declare const InvokeAgentPartsTextPart$inboundSchema: z.ZodType<InvokeAgentPartsTextPart, z.ZodTypeDef, unknown>;
|
|
731
751
|
/** @internal */
|
|
732
|
-
export type
|
|
752
|
+
export type InvokeAgentPartsTextPart$Outbound = {
|
|
733
753
|
kind: string;
|
|
734
754
|
text: string;
|
|
735
755
|
};
|
|
736
756
|
/** @internal */
|
|
737
|
-
export declare const
|
|
738
|
-
export declare function
|
|
739
|
-
export declare function
|
|
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 =
|
|
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
|
|
769
|
+
export declare const TaskStatusMessage$inboundSchema: z.ZodType<TaskStatusMessage, z.ZodTypeDef, unknown>;
|
|
750
770
|
/** @internal */
|
|
751
|
-
export type
|
|
771
|
+
export type TaskStatusMessage$Outbound = {
|
|
752
772
|
kind: string;
|
|
753
773
|
messageId: string;
|
|
754
774
|
role: string;
|
|
755
|
-
parts: Array<
|
|
775
|
+
parts: Array<InvokeAgentPartsToolCallPart$Outbound | InvokeAgentPartsTextPart$Outbound | InvokeAgentPartsDataPart$Outbound | InvokeAgentPartsFilePart$Outbound | InvokeAgentPartsToolResultPart$Outbound>;
|
|
756
776
|
};
|
|
757
777
|
/** @internal */
|
|
758
|
-
export declare const
|
|
759
|
-
export declare function
|
|
760
|
-
export declare function
|
|
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
|
|
782
|
+
export declare const TaskStatus$inboundSchema: z.ZodType<TaskStatus, z.ZodTypeDef, unknown>;
|
|
763
783
|
/** @internal */
|
|
764
|
-
export type
|
|
784
|
+
export type TaskStatus$Outbound = {
|
|
765
785
|
state: string;
|
|
766
786
|
timestamp?: string | undefined;
|
|
767
|
-
message?:
|
|
787
|
+
message?: TaskStatusMessage$Outbound | undefined;
|
|
768
788
|
};
|
|
769
789
|
/** @internal */
|
|
770
|
-
export declare const
|
|
771
|
-
export declare function
|
|
772
|
-
export declare function
|
|
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
|
|
794
|
+
export declare const InvokeAgentA2ATaskResponse$inboundSchema: z.ZodType<InvokeAgentA2ATaskResponse, z.ZodTypeDef, unknown>;
|
|
775
795
|
/** @internal */
|
|
776
|
-
export type
|
|
796
|
+
export type InvokeAgentA2ATaskResponse$Outbound = {
|
|
777
797
|
id: string;
|
|
778
798
|
contextId: string;
|
|
779
799
|
kind: string;
|
|
780
|
-
status:
|
|
800
|
+
status: TaskStatus$Outbound;
|
|
781
801
|
metadata?: {
|
|
782
802
|
[k: string]: any;
|
|
783
803
|
} | undefined;
|
|
784
804
|
};
|
|
785
805
|
/** @internal */
|
|
786
|
-
export declare const
|
|
787
|
-
export declare function
|
|
788
|
-
export declare function
|
|
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
|