@orq-ai/node 4.1.0-rc.3 → 4.1.0-rc.4
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/bin/mcp-server.js +37458 -38314
- package/bin/mcp-server.js.map +59 -54
- package/examples/package-lock.json +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 +1 -1
- package/models/components/datapart.d.ts +41 -0
- package/models/components/datapart.d.ts.map +1 -0
- package/models/components/datapart.js +69 -0
- package/models/components/datapart.js.map +1 -0
- package/models/components/filepart.d.ts +104 -0
- package/models/components/filepart.d.ts.map +1 -0
- package/models/components/filepart.js +134 -0
- package/models/components/filepart.js.map +1 -0
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +8 -8
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +11 -12
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/textpart.d.ts +31 -0
- package/models/components/textpart.d.ts.map +1 -0
- package/models/components/textpart.js +67 -0
- package/models/components/textpart.js.map +1 -0
- package/models/components/toolcallpart.d.ts +45 -0
- package/models/components/toolcallpart.d.ts.map +1 -0
- package/models/components/toolcallpart.js +84 -0
- package/models/components/toolcallpart.js.map +1 -0
- package/models/components/toolresultpart.d.ts +39 -0
- package/models/components/toolresultpart.d.ts.map +1 -0
- package/models/components/toolresultpart.js +80 -0
- package/models/components/toolresultpart.js.map +1 -0
- package/models/operations/createagentresponserequest.d.ts +66 -42
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +90 -44
- package/models/operations/createagentresponserequest.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/createprompt.d.ts +9 -11
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +9 -11
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentinvoke.d.ts +9 -11
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -11
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +9 -11
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +9 -11
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +9 -11
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +9 -11
- package/models/operations/deploymentstream.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/getallprompts.d.ts +9 -11
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +9 -11
- package/models/operations/getallprompts.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/getoneprompt.d.ts +9 -11
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +9 -11
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +9 -11
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +9 -11
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/invokeagent.d.ts +63 -283
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +73 -293
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- 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.js +2 -2
- package/models/operations/listpromptversions.d.ts +9 -11
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +9 -11
- package/models/operations/listpromptversions.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 +59 -279
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +72 -292
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +212 -1003
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +227 -1017
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +215 -1006
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +236 -1026
- package/models/operations/streamrunagent.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/updatememorystore.d.ts +9 -20
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +9 -14
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +18 -22
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +18 -22
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/datapart.ts +71 -0
- package/src/models/components/filepart.ts +231 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/invokedeploymentrequest.ts +34 -25
- package/src/models/components/textpart.ts +68 -0
- package/src/models/components/toolcallpart.ts +92 -0
- package/src/models/components/toolresultpart.ts +86 -0
- package/src/models/operations/createagentresponserequest.ts +188 -95
- 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/createprompt.ts +9 -11
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentinvoke.ts +9 -11
- package/src/models/operations/deployments.ts +9 -11
- package/src/models/operations/deploymentstream.ts +9 -11
- 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/getallprompts.ts +9 -11
- 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/getoneprompt.ts +9 -11
- package/src/models/operations/getpromptversion.ts +9 -11
- package/src/models/operations/invokeagent.ts +158 -682
- package/src/models/operations/listbudgets.ts +2 -2
- 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 +2 -2
- package/src/models/operations/listpromptversions.ts +9 -11
- 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 +143 -697
- package/src/models/operations/streamagent.ts +2222 -4559
- package/src/models/operations/streamrunagent.ts +2189 -4615
- 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/updatememorystore.ts +9 -20
- package/src/models/operations/updateprompt.ts +18 -22
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import * as components from "../components/index.js";
|
|
4
5
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
6
|
/**
|
|
6
7
|
* Message containing tool execution results
|
|
@@ -26,25 +27,25 @@ export type StreamAgentRoleUserMessage = ClosedEnum<typeof StreamAgentRoleUserMe
|
|
|
26
27
|
* Message role (user or tool for continuing executions)
|
|
27
28
|
*/
|
|
28
29
|
export type StreamAgentRole = StreamAgentRoleUserMessage | StreamAgentRoleToolMessage;
|
|
29
|
-
export declare const
|
|
30
|
+
export declare const StreamAgentPublicMessagePartAgentsKind: {
|
|
30
31
|
readonly ToolResult: "tool_result";
|
|
31
32
|
};
|
|
32
|
-
export type
|
|
33
|
+
export type StreamAgentPublicMessagePartAgentsKind = ClosedEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
|
|
33
34
|
/**
|
|
34
35
|
* 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
|
*/
|
|
36
37
|
export type StreamAgentPublicMessagePartToolResultPart = {
|
|
37
|
-
kind:
|
|
38
|
+
kind: StreamAgentPublicMessagePartAgentsKind;
|
|
38
39
|
toolCallId: string;
|
|
39
40
|
result?: any | undefined;
|
|
40
41
|
metadata?: {
|
|
41
42
|
[k: string]: any;
|
|
42
43
|
} | undefined;
|
|
43
44
|
};
|
|
44
|
-
export declare const
|
|
45
|
+
export declare const StreamAgentPublicMessagePartKind: {
|
|
45
46
|
readonly File: "file";
|
|
46
47
|
};
|
|
47
|
-
export type
|
|
48
|
+
export type StreamAgentPublicMessagePartKind = ClosedEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
48
49
|
/**
|
|
49
50
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
50
51
|
*/
|
|
@@ -84,27 +85,16 @@ export type StreamAgentPublicMessagePartFile = StreamAgentFileBinaryFormat | Str
|
|
|
84
85
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
85
86
|
*/
|
|
86
87
|
export type StreamAgentPublicMessagePartFilePart = {
|
|
87
|
-
kind:
|
|
88
|
+
kind: StreamAgentPublicMessagePartKind;
|
|
88
89
|
file: StreamAgentFileBinaryFormat | StreamAgentFileFileInURIFormat;
|
|
89
90
|
metadata?: {
|
|
90
91
|
[k: string]: any;
|
|
91
92
|
} | undefined;
|
|
92
93
|
};
|
|
93
|
-
export declare const StreamAgentPublicMessagePartKind: {
|
|
94
|
-
readonly Text: "text";
|
|
95
|
-
};
|
|
96
|
-
export type StreamAgentPublicMessagePartKind = ClosedEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
97
|
-
/**
|
|
98
|
-
* Text content part. Use this to send text messages to the agent.
|
|
99
|
-
*/
|
|
100
|
-
export type StreamAgentPublicMessagePartTextPart = {
|
|
101
|
-
kind: StreamAgentPublicMessagePartKind;
|
|
102
|
-
text: string;
|
|
103
|
-
};
|
|
104
94
|
/**
|
|
105
95
|
* 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
96
|
*/
|
|
107
|
-
export type StreamAgentPublicMessagePart =
|
|
97
|
+
export type StreamAgentPublicMessagePart = components.TextPart | StreamAgentPublicMessagePartFilePart | StreamAgentPublicMessagePartToolResultPart;
|
|
108
98
|
/**
|
|
109
99
|
* The A2A message to send to the agent (user input or tool results)
|
|
110
100
|
*/
|
|
@@ -120,7 +110,7 @@ export type StreamAgentA2AMessage = {
|
|
|
120
110
|
/**
|
|
121
111
|
* A2A message parts (text, file, or tool_result only)
|
|
122
112
|
*/
|
|
123
|
-
parts: Array<
|
|
113
|
+
parts: Array<components.TextPart | StreamAgentPublicMessagePartFilePart | StreamAgentPublicMessagePartToolResultPart>;
|
|
124
114
|
};
|
|
125
115
|
/**
|
|
126
116
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
@@ -305,6 +295,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data =
|
|
|
305
295
|
actionType: string;
|
|
306
296
|
toolExecutionContext: StreamAgentDataAgentsResponseToolExecutionContext;
|
|
307
297
|
responseId?: string | undefined;
|
|
298
|
+
workflowRunId: string;
|
|
308
299
|
};
|
|
309
300
|
export type Data15 = {
|
|
310
301
|
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type;
|
|
@@ -364,6 +355,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data =
|
|
|
364
355
|
actionType: string;
|
|
365
356
|
toolExecutionContext: StreamAgentDataAgentsToolExecutionContext;
|
|
366
357
|
responseId?: string | undefined;
|
|
358
|
+
workflowRunId: string;
|
|
367
359
|
};
|
|
368
360
|
export type Data14 = {
|
|
369
361
|
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type;
|
|
@@ -428,6 +420,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data =
|
|
|
428
420
|
};
|
|
429
421
|
toolExecutionContext: StreamAgentDataToolExecutionContext;
|
|
430
422
|
responseId?: string | undefined;
|
|
423
|
+
workflowRunId: string;
|
|
431
424
|
};
|
|
432
425
|
export type Data13 = {
|
|
433
426
|
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type;
|
|
@@ -446,120 +439,31 @@ export declare const StreamAgentDataAgentsResponse200Role: {
|
|
|
446
439
|
readonly Tool: "tool";
|
|
447
440
|
};
|
|
448
441
|
export type StreamAgentDataAgentsResponse200Role = ClosedEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
449
|
-
export
|
|
450
|
-
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
metadata?: {
|
|
461
|
-
[k: string]: any;
|
|
462
|
-
} | undefined;
|
|
463
|
-
};
|
|
464
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind: {
|
|
465
|
-
readonly ToolCall: "tool_call";
|
|
466
|
-
};
|
|
467
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
468
|
-
/**
|
|
469
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
470
|
-
*/
|
|
471
|
-
export type StreamAgentPartsAgentsResponse200ToolCallPart = {
|
|
472
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind;
|
|
473
|
-
toolName: string;
|
|
474
|
-
toolCallId: string;
|
|
475
|
-
arguments: {
|
|
476
|
-
[k: string]: any;
|
|
477
|
-
};
|
|
478
|
-
metadata?: {
|
|
479
|
-
[k: string]: any;
|
|
480
|
-
} | undefined;
|
|
481
|
-
};
|
|
482
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind: {
|
|
483
|
-
readonly File: "file";
|
|
484
|
-
};
|
|
485
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
486
|
-
/**
|
|
487
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
488
|
-
*/
|
|
489
|
-
export type StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat = {
|
|
490
|
-
/**
|
|
491
|
-
* URL for the File content
|
|
492
|
-
*/
|
|
493
|
-
uri: string;
|
|
494
|
-
/**
|
|
495
|
-
* Optional mimeType for the file
|
|
496
|
-
*/
|
|
497
|
-
mimeType?: string | undefined;
|
|
498
|
-
/**
|
|
499
|
-
* Optional name for the file
|
|
500
|
-
*/
|
|
501
|
-
name?: string | undefined;
|
|
502
|
-
};
|
|
503
|
-
/**
|
|
504
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
505
|
-
*/
|
|
506
|
-
export type StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat = {
|
|
507
|
-
/**
|
|
508
|
-
* base64 encoded content of the file
|
|
509
|
-
*/
|
|
510
|
-
bytes: string;
|
|
511
|
-
/**
|
|
512
|
-
* Optional mimeType for the file
|
|
513
|
-
*/
|
|
514
|
-
mimeType?: string | undefined;
|
|
515
|
-
/**
|
|
516
|
-
* Optional name for the file
|
|
517
|
-
*/
|
|
518
|
-
name?: string | undefined;
|
|
519
|
-
};
|
|
520
|
-
export type StreamAgentPartsAgentsResponse200File = StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat | StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat;
|
|
521
|
-
/**
|
|
522
|
-
* 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.
|
|
523
|
-
*/
|
|
524
|
-
export type StreamAgentPartsAgentsResponse200FilePart = {
|
|
525
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind;
|
|
526
|
-
file: StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat | StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat;
|
|
527
|
-
metadata?: {
|
|
528
|
-
[k: string]: any;
|
|
529
|
-
} | undefined;
|
|
530
|
-
};
|
|
531
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind: {
|
|
532
|
-
readonly Data: "data";
|
|
533
|
-
};
|
|
534
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
535
|
-
/**
|
|
536
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
537
|
-
*/
|
|
538
|
-
export type StreamAgentPartsAgentsResponse200DataPart = {
|
|
539
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind;
|
|
540
|
-
data: {
|
|
541
|
-
[k: string]: any;
|
|
542
|
-
};
|
|
543
|
-
metadata?: {
|
|
544
|
-
[k: string]: any;
|
|
545
|
-
} | undefined;
|
|
546
|
-
};
|
|
547
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind: {
|
|
548
|
-
readonly Text: "text";
|
|
549
|
-
};
|
|
550
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
551
|
-
/**
|
|
552
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
553
|
-
*/
|
|
554
|
-
export type StreamAgentPartsAgentsResponse200TextPart = {
|
|
555
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind;
|
|
556
|
-
text: string;
|
|
557
|
-
};
|
|
558
|
-
export type StreamAgentDataAgentsResponse200Parts = StreamAgentPartsAgentsResponse200ToolCallPart | StreamAgentPartsAgentsResponse200TextPart | StreamAgentPartsAgentsResponse200DataPart | StreamAgentPartsAgentsResponse200FilePart | StreamAgentPartsAgentsResponse200ToolResultPart;
|
|
442
|
+
export type StreamAgentDataAgentsResponse200Parts = (components.ToolCallPart & {
|
|
443
|
+
kind: "tool_call";
|
|
444
|
+
}) | (components.TextPart & {
|
|
445
|
+
kind: "text";
|
|
446
|
+
}) | (components.DataPart & {
|
|
447
|
+
kind: "data";
|
|
448
|
+
}) | (components.FilePart & {
|
|
449
|
+
kind: "file";
|
|
450
|
+
}) | (components.ToolResultPart & {
|
|
451
|
+
kind: "tool_result";
|
|
452
|
+
});
|
|
559
453
|
export type StreamAgentDataMessage = {
|
|
560
454
|
messageId?: string | undefined;
|
|
561
455
|
role: StreamAgentDataAgentsResponse200Role;
|
|
562
|
-
parts: Array<
|
|
456
|
+
parts: Array<(components.ToolCallPart & {
|
|
457
|
+
kind: "tool_call";
|
|
458
|
+
}) | (components.TextPart & {
|
|
459
|
+
kind: "text";
|
|
460
|
+
}) | (components.DataPart & {
|
|
461
|
+
kind: "data";
|
|
462
|
+
}) | (components.FilePart & {
|
|
463
|
+
kind: "file";
|
|
464
|
+
}) | (components.ToolResultPart & {
|
|
465
|
+
kind: "tool_result";
|
|
466
|
+
})>;
|
|
563
467
|
metadata?: {
|
|
564
468
|
[k: string]: any;
|
|
565
469
|
} | undefined;
|
|
@@ -655,6 +559,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data = {
|
|
|
655
559
|
} | undefined;
|
|
656
560
|
reviewSource?: string | undefined;
|
|
657
561
|
reviewedById?: string | undefined;
|
|
562
|
+
workflowRunId: string;
|
|
658
563
|
};
|
|
659
564
|
export type Data7 = {
|
|
660
565
|
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Type;
|
|
@@ -738,6 +643,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamData = {
|
|
|
738
643
|
* ID of the response tracking this execution
|
|
739
644
|
*/
|
|
740
645
|
responseId?: string | undefined;
|
|
646
|
+
workflowRunId: string;
|
|
741
647
|
};
|
|
742
648
|
export type Data5 = {
|
|
743
649
|
type: StreamAgentDataAgentsResponse200TextEventStreamType;
|
|
@@ -764,116 +670,17 @@ export declare const StreamAgentDataAgentsResponseRole: {
|
|
|
764
670
|
* Extended A2A message role
|
|
765
671
|
*/
|
|
766
672
|
export type StreamAgentDataAgentsResponseRole = ClosedEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
767
|
-
export
|
|
768
|
-
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
metadata?: {
|
|
779
|
-
[k: string]: any;
|
|
780
|
-
} | undefined;
|
|
781
|
-
};
|
|
782
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind: {
|
|
783
|
-
readonly ToolCall: "tool_call";
|
|
784
|
-
};
|
|
785
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind>;
|
|
786
|
-
/**
|
|
787
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
788
|
-
*/
|
|
789
|
-
export type StreamAgentPartsAgentsResponseToolCallPart = {
|
|
790
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind;
|
|
791
|
-
toolName: string;
|
|
792
|
-
toolCallId: string;
|
|
793
|
-
arguments: {
|
|
794
|
-
[k: string]: any;
|
|
795
|
-
};
|
|
796
|
-
metadata?: {
|
|
797
|
-
[k: string]: any;
|
|
798
|
-
} | undefined;
|
|
799
|
-
};
|
|
800
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind: {
|
|
801
|
-
readonly File: "file";
|
|
802
|
-
};
|
|
803
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind>;
|
|
804
|
-
/**
|
|
805
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
806
|
-
*/
|
|
807
|
-
export type StreamAgentFileAgentsResponse200FileInURIFormat = {
|
|
808
|
-
/**
|
|
809
|
-
* URL for the File content
|
|
810
|
-
*/
|
|
811
|
-
uri: string;
|
|
812
|
-
/**
|
|
813
|
-
* Optional mimeType for the file
|
|
814
|
-
*/
|
|
815
|
-
mimeType?: string | undefined;
|
|
816
|
-
/**
|
|
817
|
-
* Optional name for the file
|
|
818
|
-
*/
|
|
819
|
-
name?: string | undefined;
|
|
820
|
-
};
|
|
821
|
-
/**
|
|
822
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
823
|
-
*/
|
|
824
|
-
export type StreamAgentFileAgentsResponse200BinaryFormat = {
|
|
825
|
-
/**
|
|
826
|
-
* base64 encoded content of the file
|
|
827
|
-
*/
|
|
828
|
-
bytes: string;
|
|
829
|
-
/**
|
|
830
|
-
* Optional mimeType for the file
|
|
831
|
-
*/
|
|
832
|
-
mimeType?: string | undefined;
|
|
833
|
-
/**
|
|
834
|
-
* Optional name for the file
|
|
835
|
-
*/
|
|
836
|
-
name?: string | undefined;
|
|
837
|
-
};
|
|
838
|
-
export type StreamAgentPartsAgentsResponseFile = StreamAgentFileAgentsResponse200BinaryFormat | StreamAgentFileAgentsResponse200FileInURIFormat;
|
|
839
|
-
/**
|
|
840
|
-
* 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.
|
|
841
|
-
*/
|
|
842
|
-
export type StreamAgentPartsAgentsResponseFilePart = {
|
|
843
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind;
|
|
844
|
-
file: StreamAgentFileAgentsResponse200BinaryFormat | StreamAgentFileAgentsResponse200FileInURIFormat;
|
|
845
|
-
metadata?: {
|
|
846
|
-
[k: string]: any;
|
|
847
|
-
} | undefined;
|
|
848
|
-
};
|
|
849
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind: {
|
|
850
|
-
readonly Data: "data";
|
|
851
|
-
};
|
|
852
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind>;
|
|
853
|
-
/**
|
|
854
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
855
|
-
*/
|
|
856
|
-
export type StreamAgentPartsAgentsResponseDataPart = {
|
|
857
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind;
|
|
858
|
-
data: {
|
|
859
|
-
[k: string]: any;
|
|
860
|
-
};
|
|
861
|
-
metadata?: {
|
|
862
|
-
[k: string]: any;
|
|
863
|
-
} | undefined;
|
|
864
|
-
};
|
|
865
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind: {
|
|
866
|
-
readonly Text: "text";
|
|
867
|
-
};
|
|
868
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind>;
|
|
869
|
-
/**
|
|
870
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
871
|
-
*/
|
|
872
|
-
export type StreamAgentPartsAgentsResponseTextPart = {
|
|
873
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind;
|
|
874
|
-
text: string;
|
|
875
|
-
};
|
|
876
|
-
export type StreamAgentDataAgentsResponseParts = StreamAgentPartsAgentsResponseToolCallPart | StreamAgentPartsAgentsResponseTextPart | StreamAgentPartsAgentsResponseDataPart | StreamAgentPartsAgentsResponseFilePart | StreamAgentPartsAgentsResponseToolResultPart;
|
|
673
|
+
export type StreamAgentDataAgentsResponseParts = (components.ToolCallPart & {
|
|
674
|
+
kind: "tool_call";
|
|
675
|
+
}) | (components.TextPart & {
|
|
676
|
+
kind: "text";
|
|
677
|
+
}) | (components.DataPart & {
|
|
678
|
+
kind: "data";
|
|
679
|
+
}) | (components.FilePart & {
|
|
680
|
+
kind: "file";
|
|
681
|
+
}) | (components.ToolResultPart & {
|
|
682
|
+
kind: "tool_result";
|
|
683
|
+
});
|
|
877
684
|
/**
|
|
878
685
|
* Full last message in A2A format (for backwards compatibility)
|
|
879
686
|
*/
|
|
@@ -883,7 +690,17 @@ export type DataLastMessageFull = {
|
|
|
883
690
|
* Extended A2A message role
|
|
884
691
|
*/
|
|
885
692
|
role: StreamAgentDataAgentsResponseRole;
|
|
886
|
-
parts: Array<
|
|
693
|
+
parts: Array<(components.ToolCallPart & {
|
|
694
|
+
kind: "tool_call";
|
|
695
|
+
}) | (components.TextPart & {
|
|
696
|
+
kind: "text";
|
|
697
|
+
}) | (components.DataPart & {
|
|
698
|
+
kind: "data";
|
|
699
|
+
}) | (components.FilePart & {
|
|
700
|
+
kind: "file";
|
|
701
|
+
}) | (components.ToolResultPart & {
|
|
702
|
+
kind: "tool_result";
|
|
703
|
+
})>;
|
|
887
704
|
metadata?: {
|
|
888
705
|
[k: string]: any;
|
|
889
706
|
} | undefined;
|
|
@@ -970,6 +787,7 @@ export type StreamAgentDataAgentsResponse200Data = {
|
|
|
970
787
|
* Token usage from the last agent message
|
|
971
788
|
*/
|
|
972
789
|
usage?: StreamAgentDataAgentsUsage | undefined;
|
|
790
|
+
workflowRunId: string;
|
|
973
791
|
/**
|
|
974
792
|
* ID of the response tracking this execution
|
|
975
793
|
*/
|
|
@@ -994,120 +812,31 @@ export declare const StreamAgentDataAgentsRole: {
|
|
|
994
812
|
readonly System: "system";
|
|
995
813
|
};
|
|
996
814
|
export type StreamAgentDataAgentsRole = ClosedEnum<typeof StreamAgentDataAgentsRole>;
|
|
997
|
-
export
|
|
998
|
-
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
metadata?: {
|
|
1009
|
-
[k: string]: any;
|
|
1010
|
-
} | undefined;
|
|
1011
|
-
};
|
|
1012
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind: {
|
|
1013
|
-
readonly ToolCall: "tool_call";
|
|
1014
|
-
};
|
|
1015
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind>;
|
|
1016
|
-
/**
|
|
1017
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
1018
|
-
*/
|
|
1019
|
-
export type StreamAgentPartsAgentsToolCallPart = {
|
|
1020
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind;
|
|
1021
|
-
toolName: string;
|
|
1022
|
-
toolCallId: string;
|
|
1023
|
-
arguments: {
|
|
1024
|
-
[k: string]: any;
|
|
1025
|
-
};
|
|
1026
|
-
metadata?: {
|
|
1027
|
-
[k: string]: any;
|
|
1028
|
-
} | undefined;
|
|
1029
|
-
};
|
|
1030
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind: {
|
|
1031
|
-
readonly File: "file";
|
|
1032
|
-
};
|
|
1033
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind>;
|
|
1034
|
-
/**
|
|
1035
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
1036
|
-
*/
|
|
1037
|
-
export type StreamAgentFileAgentsResponseFileInURIFormat = {
|
|
1038
|
-
/**
|
|
1039
|
-
* URL for the File content
|
|
1040
|
-
*/
|
|
1041
|
-
uri: string;
|
|
1042
|
-
/**
|
|
1043
|
-
* Optional mimeType for the file
|
|
1044
|
-
*/
|
|
1045
|
-
mimeType?: string | undefined;
|
|
1046
|
-
/**
|
|
1047
|
-
* Optional name for the file
|
|
1048
|
-
*/
|
|
1049
|
-
name?: string | undefined;
|
|
1050
|
-
};
|
|
1051
|
-
/**
|
|
1052
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
1053
|
-
*/
|
|
1054
|
-
export type StreamAgentFileAgentsResponseBinaryFormat = {
|
|
1055
|
-
/**
|
|
1056
|
-
* base64 encoded content of the file
|
|
1057
|
-
*/
|
|
1058
|
-
bytes: string;
|
|
1059
|
-
/**
|
|
1060
|
-
* Optional mimeType for the file
|
|
1061
|
-
*/
|
|
1062
|
-
mimeType?: string | undefined;
|
|
1063
|
-
/**
|
|
1064
|
-
* Optional name for the file
|
|
1065
|
-
*/
|
|
1066
|
-
name?: string | undefined;
|
|
1067
|
-
};
|
|
1068
|
-
export type StreamAgentPartsAgentsFile = StreamAgentFileAgentsResponseBinaryFormat | StreamAgentFileAgentsResponseFileInURIFormat;
|
|
1069
|
-
/**
|
|
1070
|
-
* 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.
|
|
1071
|
-
*/
|
|
1072
|
-
export type StreamAgentPartsAgentsFilePart = {
|
|
1073
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind;
|
|
1074
|
-
file: StreamAgentFileAgentsResponseBinaryFormat | StreamAgentFileAgentsResponseFileInURIFormat;
|
|
1075
|
-
metadata?: {
|
|
1076
|
-
[k: string]: any;
|
|
1077
|
-
} | undefined;
|
|
1078
|
-
};
|
|
1079
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind: {
|
|
1080
|
-
readonly Data: "data";
|
|
1081
|
-
};
|
|
1082
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind>;
|
|
1083
|
-
/**
|
|
1084
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
1085
|
-
*/
|
|
1086
|
-
export type StreamAgentPartsAgentsDataPart = {
|
|
1087
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind;
|
|
1088
|
-
data: {
|
|
1089
|
-
[k: string]: any;
|
|
1090
|
-
};
|
|
1091
|
-
metadata?: {
|
|
1092
|
-
[k: string]: any;
|
|
1093
|
-
} | undefined;
|
|
1094
|
-
};
|
|
1095
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind: {
|
|
1096
|
-
readonly Text: "text";
|
|
1097
|
-
};
|
|
1098
|
-
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind>;
|
|
1099
|
-
/**
|
|
1100
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
1101
|
-
*/
|
|
1102
|
-
export type StreamAgentPartsAgentsTextPart = {
|
|
1103
|
-
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind;
|
|
1104
|
-
text: string;
|
|
1105
|
-
};
|
|
1106
|
-
export type StreamAgentDataAgentsParts = StreamAgentPartsAgentsToolCallPart | StreamAgentPartsAgentsTextPart | StreamAgentPartsAgentsDataPart | StreamAgentPartsAgentsFilePart | StreamAgentPartsAgentsToolResultPart;
|
|
815
|
+
export type StreamAgentDataAgentsParts = (components.ToolCallPart & {
|
|
816
|
+
kind: "tool_call";
|
|
817
|
+
}) | (components.TextPart & {
|
|
818
|
+
kind: "text";
|
|
819
|
+
}) | (components.DataPart & {
|
|
820
|
+
kind: "data";
|
|
821
|
+
}) | (components.FilePart & {
|
|
822
|
+
kind: "file";
|
|
823
|
+
}) | (components.ToolResultPart & {
|
|
824
|
+
kind: "tool_result";
|
|
825
|
+
});
|
|
1107
826
|
export type DataMessageDifference = {
|
|
1108
827
|
messageId: string;
|
|
1109
828
|
role: StreamAgentDataAgentsRole;
|
|
1110
|
-
parts: Array<
|
|
829
|
+
parts: Array<(components.ToolCallPart & {
|
|
830
|
+
kind: "tool_call";
|
|
831
|
+
}) | (components.TextPart & {
|
|
832
|
+
kind: "text";
|
|
833
|
+
}) | (components.DataPart & {
|
|
834
|
+
kind: "data";
|
|
835
|
+
}) | (components.FilePart & {
|
|
836
|
+
kind: "file";
|
|
837
|
+
}) | (components.ToolResultPart & {
|
|
838
|
+
kind: "tool_result";
|
|
839
|
+
})>;
|
|
1111
840
|
metadata?: {
|
|
1112
841
|
[k: string]: any;
|
|
1113
842
|
} | undefined;
|
|
@@ -1356,129 +1085,40 @@ export declare const StreamAgentDataRole: {
|
|
|
1356
1085
|
* Extended A2A message role
|
|
1357
1086
|
*/
|
|
1358
1087
|
export type StreamAgentDataRole = ClosedEnum<typeof StreamAgentDataRole>;
|
|
1359
|
-
export
|
|
1360
|
-
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1088
|
+
export type StreamAgentDataParts = (components.ToolCallPart & {
|
|
1089
|
+
kind: "tool_call";
|
|
1090
|
+
}) | (components.TextPart & {
|
|
1091
|
+
kind: "text";
|
|
1092
|
+
}) | (components.DataPart & {
|
|
1093
|
+
kind: "data";
|
|
1094
|
+
}) | (components.FilePart & {
|
|
1095
|
+
kind: "file";
|
|
1096
|
+
}) | (components.ToolResultPart & {
|
|
1097
|
+
kind: "tool_result";
|
|
1098
|
+
});
|
|
1099
|
+
export type DataInputMessage = {
|
|
1100
|
+
messageId?: string | undefined;
|
|
1101
|
+
/**
|
|
1102
|
+
* Extended A2A message role
|
|
1103
|
+
*/
|
|
1104
|
+
role: StreamAgentDataRole;
|
|
1105
|
+
parts: Array<(components.ToolCallPart & {
|
|
1106
|
+
kind: "tool_call";
|
|
1107
|
+
}) | (components.TextPart & {
|
|
1108
|
+
kind: "text";
|
|
1109
|
+
}) | (components.DataPart & {
|
|
1110
|
+
kind: "data";
|
|
1111
|
+
}) | (components.FilePart & {
|
|
1112
|
+
kind: "file";
|
|
1113
|
+
}) | (components.ToolResultPart & {
|
|
1114
|
+
kind: "tool_result";
|
|
1115
|
+
})>;
|
|
1370
1116
|
metadata?: {
|
|
1371
1117
|
[k: string]: any;
|
|
1372
1118
|
} | undefined;
|
|
1373
1119
|
};
|
|
1374
|
-
export declare const StreamAgentPartsAgentsResponse200Kind: {
|
|
1375
|
-
readonly ToolCall: "tool_call";
|
|
1376
|
-
};
|
|
1377
|
-
export type StreamAgentPartsAgentsResponse200Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200Kind>;
|
|
1378
1120
|
/**
|
|
1379
|
-
*
|
|
1380
|
-
*/
|
|
1381
|
-
export type StreamAgentPartsToolCallPart = {
|
|
1382
|
-
kind: StreamAgentPartsAgentsResponse200Kind;
|
|
1383
|
-
toolName: string;
|
|
1384
|
-
toolCallId: string;
|
|
1385
|
-
arguments: {
|
|
1386
|
-
[k: string]: any;
|
|
1387
|
-
};
|
|
1388
|
-
metadata?: {
|
|
1389
|
-
[k: string]: any;
|
|
1390
|
-
} | undefined;
|
|
1391
|
-
};
|
|
1392
|
-
export declare const StreamAgentPartsAgentsResponseKind: {
|
|
1393
|
-
readonly File: "file";
|
|
1394
|
-
};
|
|
1395
|
-
export type StreamAgentPartsAgentsResponseKind = ClosedEnum<typeof StreamAgentPartsAgentsResponseKind>;
|
|
1396
|
-
/**
|
|
1397
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
1398
|
-
*/
|
|
1399
|
-
export type StreamAgentFileAgentsFileInURIFormat = {
|
|
1400
|
-
/**
|
|
1401
|
-
* URL for the File content
|
|
1402
|
-
*/
|
|
1403
|
-
uri: string;
|
|
1404
|
-
/**
|
|
1405
|
-
* Optional mimeType for the file
|
|
1406
|
-
*/
|
|
1407
|
-
mimeType?: string | undefined;
|
|
1408
|
-
/**
|
|
1409
|
-
* Optional name for the file
|
|
1410
|
-
*/
|
|
1411
|
-
name?: string | undefined;
|
|
1412
|
-
};
|
|
1413
|
-
/**
|
|
1414
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
1415
|
-
*/
|
|
1416
|
-
export type StreamAgentFileAgentsBinaryFormat = {
|
|
1417
|
-
/**
|
|
1418
|
-
* base64 encoded content of the file
|
|
1419
|
-
*/
|
|
1420
|
-
bytes: string;
|
|
1421
|
-
/**
|
|
1422
|
-
* Optional mimeType for the file
|
|
1423
|
-
*/
|
|
1424
|
-
mimeType?: string | undefined;
|
|
1425
|
-
/**
|
|
1426
|
-
* Optional name for the file
|
|
1427
|
-
*/
|
|
1428
|
-
name?: string | undefined;
|
|
1429
|
-
};
|
|
1430
|
-
export type StreamAgentPartsFile = StreamAgentFileAgentsBinaryFormat | StreamAgentFileAgentsFileInURIFormat;
|
|
1431
|
-
/**
|
|
1432
|
-
* 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.
|
|
1433
|
-
*/
|
|
1434
|
-
export type StreamAgentPartsFilePart = {
|
|
1435
|
-
kind: StreamAgentPartsAgentsResponseKind;
|
|
1436
|
-
file: StreamAgentFileAgentsBinaryFormat | StreamAgentFileAgentsFileInURIFormat;
|
|
1437
|
-
metadata?: {
|
|
1438
|
-
[k: string]: any;
|
|
1439
|
-
} | undefined;
|
|
1440
|
-
};
|
|
1441
|
-
export declare const StreamAgentPartsAgentsKind: {
|
|
1442
|
-
readonly Data: "data";
|
|
1443
|
-
};
|
|
1444
|
-
export type StreamAgentPartsAgentsKind = ClosedEnum<typeof StreamAgentPartsAgentsKind>;
|
|
1445
|
-
/**
|
|
1446
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
1447
|
-
*/
|
|
1448
|
-
export type StreamAgentPartsDataPart = {
|
|
1449
|
-
kind: StreamAgentPartsAgentsKind;
|
|
1450
|
-
data: {
|
|
1451
|
-
[k: string]: any;
|
|
1452
|
-
};
|
|
1453
|
-
metadata?: {
|
|
1454
|
-
[k: string]: any;
|
|
1455
|
-
} | undefined;
|
|
1456
|
-
};
|
|
1457
|
-
export declare const StreamAgentPartsKind: {
|
|
1458
|
-
readonly Text: "text";
|
|
1459
|
-
};
|
|
1460
|
-
export type StreamAgentPartsKind = ClosedEnum<typeof StreamAgentPartsKind>;
|
|
1461
|
-
/**
|
|
1462
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
1463
|
-
*/
|
|
1464
|
-
export type StreamAgentPartsTextPart = {
|
|
1465
|
-
kind: StreamAgentPartsKind;
|
|
1466
|
-
text: string;
|
|
1467
|
-
};
|
|
1468
|
-
export type StreamAgentDataParts = StreamAgentPartsToolCallPart | StreamAgentPartsTextPart | StreamAgentPartsDataPart | StreamAgentPartsFilePart | StreamAgentPartsToolResultPart;
|
|
1469
|
-
export type DataInputMessage = {
|
|
1470
|
-
messageId?: string | undefined;
|
|
1471
|
-
/**
|
|
1472
|
-
* Extended A2A message role
|
|
1473
|
-
*/
|
|
1474
|
-
role: StreamAgentDataRole;
|
|
1475
|
-
parts: Array<StreamAgentPartsToolCallPart | StreamAgentPartsTextPart | StreamAgentPartsDataPart | StreamAgentPartsFilePart | StreamAgentPartsToolResultPart>;
|
|
1476
|
-
metadata?: {
|
|
1477
|
-
[k: string]: any;
|
|
1478
|
-
} | undefined;
|
|
1479
|
-
};
|
|
1480
|
-
/**
|
|
1481
|
-
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1121
|
+
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1482
1122
|
*/
|
|
1483
1123
|
export declare const StreamAgentDataToolApprovalRequired: {
|
|
1484
1124
|
readonly All: "all";
|
|
@@ -1603,6 +1243,7 @@ export type StreamAgentDataSettings = {
|
|
|
1603
1243
|
guardrails?: Array<StreamAgentDataGuardrails> | undefined;
|
|
1604
1244
|
};
|
|
1605
1245
|
export type StreamAgentDataAgentsData = {
|
|
1246
|
+
workflowRunId: string;
|
|
1606
1247
|
integrationId?: string | undefined;
|
|
1607
1248
|
inputMessage: DataInputMessage;
|
|
1608
1249
|
modelId: string;
|
|
@@ -1677,9 +1318,9 @@ export declare const StreamAgentRole$outboundSchema: z.ZodType<StreamAgentRole$O
|
|
|
1677
1318
|
export declare function streamAgentRoleToJSON(streamAgentRole: StreamAgentRole): string;
|
|
1678
1319
|
export declare function streamAgentRoleFromJSON(jsonString: string): SafeParseResult<StreamAgentRole, SDKValidationError>;
|
|
1679
1320
|
/** @internal */
|
|
1680
|
-
export declare const
|
|
1321
|
+
export declare const StreamAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
|
|
1681
1322
|
/** @internal */
|
|
1682
|
-
export declare const
|
|
1323
|
+
export declare const StreamAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind>;
|
|
1683
1324
|
/** @internal */
|
|
1684
1325
|
export declare const StreamAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
|
|
1685
1326
|
/** @internal */
|
|
@@ -1696,9 +1337,9 @@ export declare const StreamAgentPublicMessagePartToolResultPart$outboundSchema:
|
|
|
1696
1337
|
export declare function streamAgentPublicMessagePartToolResultPartToJSON(streamAgentPublicMessagePartToolResultPart: StreamAgentPublicMessagePartToolResultPart): string;
|
|
1697
1338
|
export declare function streamAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartToolResultPart, SDKValidationError>;
|
|
1698
1339
|
/** @internal */
|
|
1699
|
-
export declare const
|
|
1340
|
+
export declare const StreamAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
1700
1341
|
/** @internal */
|
|
1701
|
-
export declare const
|
|
1342
|
+
export declare const StreamAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
1702
1343
|
/** @internal */
|
|
1703
1344
|
export declare const StreamAgentFileFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
1704
1345
|
/** @internal */
|
|
@@ -1746,24 +1387,9 @@ export declare const StreamAgentPublicMessagePartFilePart$outboundSchema: z.ZodT
|
|
|
1746
1387
|
export declare function streamAgentPublicMessagePartFilePartToJSON(streamAgentPublicMessagePartFilePart: StreamAgentPublicMessagePartFilePart): string;
|
|
1747
1388
|
export declare function streamAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartFilePart, SDKValidationError>;
|
|
1748
1389
|
/** @internal */
|
|
1749
|
-
export declare const StreamAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
1750
|
-
/** @internal */
|
|
1751
|
-
export declare const StreamAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPublicMessagePartKind>;
|
|
1752
|
-
/** @internal */
|
|
1753
|
-
export declare const StreamAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
|
|
1754
|
-
/** @internal */
|
|
1755
|
-
export type StreamAgentPublicMessagePartTextPart$Outbound = {
|
|
1756
|
-
kind: string;
|
|
1757
|
-
text: string;
|
|
1758
|
-
};
|
|
1759
|
-
/** @internal */
|
|
1760
|
-
export declare const StreamAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<StreamAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePartTextPart>;
|
|
1761
|
-
export declare function streamAgentPublicMessagePartTextPartToJSON(streamAgentPublicMessagePartTextPart: StreamAgentPublicMessagePartTextPart): string;
|
|
1762
|
-
export declare function streamAgentPublicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPublicMessagePartTextPart, SDKValidationError>;
|
|
1763
|
-
/** @internal */
|
|
1764
1390
|
export declare const StreamAgentPublicMessagePart$inboundSchema: z.ZodType<StreamAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
1765
1391
|
/** @internal */
|
|
1766
|
-
export type StreamAgentPublicMessagePart$Outbound =
|
|
1392
|
+
export type StreamAgentPublicMessagePart$Outbound = components.TextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound;
|
|
1767
1393
|
/** @internal */
|
|
1768
1394
|
export declare const StreamAgentPublicMessagePart$outboundSchema: z.ZodType<StreamAgentPublicMessagePart$Outbound, z.ZodTypeDef, StreamAgentPublicMessagePart>;
|
|
1769
1395
|
export declare function streamAgentPublicMessagePartToJSON(streamAgentPublicMessagePart: StreamAgentPublicMessagePart): string;
|
|
@@ -1774,7 +1400,7 @@ export declare const StreamAgentA2AMessage$inboundSchema: z.ZodType<StreamAgentA
|
|
|
1774
1400
|
export type StreamAgentA2AMessage$Outbound = {
|
|
1775
1401
|
messageId?: string | undefined;
|
|
1776
1402
|
role: string | string;
|
|
1777
|
-
parts: Array<
|
|
1403
|
+
parts: Array<components.TextPart$Outbound | StreamAgentPublicMessagePartFilePart$Outbound | StreamAgentPublicMessagePartToolResultPart$Outbound>;
|
|
1778
1404
|
};
|
|
1779
1405
|
/** @internal */
|
|
1780
1406
|
export declare const StreamAgentA2AMessage$outboundSchema: z.ZodType<StreamAgentA2AMessage$Outbound, z.ZodTypeDef, StreamAgentA2AMessage>;
|
|
@@ -1957,6 +1583,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Ou
|
|
|
1957
1583
|
action_type: string;
|
|
1958
1584
|
tool_execution_context: StreamAgentDataAgentsResponseToolExecutionContext$Outbound;
|
|
1959
1585
|
responseId?: string | undefined;
|
|
1586
|
+
workflowRunId: string;
|
|
1960
1587
|
};
|
|
1961
1588
|
/** @internal */
|
|
1962
1589
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data>;
|
|
@@ -2017,6 +1644,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Ou
|
|
|
2017
1644
|
action_type: string;
|
|
2018
1645
|
tool_execution_context: StreamAgentDataAgentsToolExecutionContext$Outbound;
|
|
2019
1646
|
responseId?: string | undefined;
|
|
1647
|
+
workflowRunId: string;
|
|
2020
1648
|
};
|
|
2021
1649
|
/** @internal */
|
|
2022
1650
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data>;
|
|
@@ -2082,6 +1710,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Ou
|
|
|
2082
1710
|
};
|
|
2083
1711
|
tool_execution_context: StreamAgentDataToolExecutionContext$Outbound;
|
|
2084
1712
|
responseId?: string | undefined;
|
|
1713
|
+
workflowRunId: string;
|
|
2085
1714
|
};
|
|
2086
1715
|
/** @internal */
|
|
2087
1716
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data>;
|
|
@@ -2108,135 +1737,19 @@ export declare const StreamAgentDataAgentsResponse200Role$inboundSchema: z.ZodNa
|
|
|
2108
1737
|
/** @internal */
|
|
2109
1738
|
export declare const StreamAgentDataAgentsResponse200Role$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
2110
1739
|
/** @internal */
|
|
2111
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind>;
|
|
2112
|
-
/** @internal */
|
|
2113
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind>;
|
|
2114
|
-
/** @internal */
|
|
2115
|
-
export declare const StreamAgentPartsAgentsResponse200ToolResultPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200ToolResultPart, z.ZodTypeDef, unknown>;
|
|
2116
|
-
/** @internal */
|
|
2117
|
-
export type StreamAgentPartsAgentsResponse200ToolResultPart$Outbound = {
|
|
2118
|
-
kind: string;
|
|
2119
|
-
tool_call_id: string;
|
|
2120
|
-
result?: any | undefined;
|
|
2121
|
-
metadata?: {
|
|
2122
|
-
[k: string]: any;
|
|
2123
|
-
} | undefined;
|
|
2124
|
-
};
|
|
2125
|
-
/** @internal */
|
|
2126
|
-
export declare const StreamAgentPartsAgentsResponse200ToolResultPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200ToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponse200ToolResultPart>;
|
|
2127
|
-
export declare function streamAgentPartsAgentsResponse200ToolResultPartToJSON(streamAgentPartsAgentsResponse200ToolResultPart: StreamAgentPartsAgentsResponse200ToolResultPart): string;
|
|
2128
|
-
export declare function streamAgentPartsAgentsResponse200ToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponse200ToolResultPart, SDKValidationError>;
|
|
2129
|
-
/** @internal */
|
|
2130
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
2131
|
-
/** @internal */
|
|
2132
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
2133
|
-
/** @internal */
|
|
2134
|
-
export declare const StreamAgentPartsAgentsResponse200ToolCallPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200ToolCallPart, z.ZodTypeDef, unknown>;
|
|
2135
|
-
/** @internal */
|
|
2136
|
-
export type StreamAgentPartsAgentsResponse200ToolCallPart$Outbound = {
|
|
2137
|
-
kind: string;
|
|
2138
|
-
tool_name: string;
|
|
2139
|
-
tool_call_id: string;
|
|
2140
|
-
arguments: {
|
|
2141
|
-
[k: string]: any;
|
|
2142
|
-
};
|
|
2143
|
-
metadata?: {
|
|
2144
|
-
[k: string]: any;
|
|
2145
|
-
} | undefined;
|
|
2146
|
-
};
|
|
2147
|
-
/** @internal */
|
|
2148
|
-
export declare const StreamAgentPartsAgentsResponse200ToolCallPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200ToolCallPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponse200ToolCallPart>;
|
|
2149
|
-
export declare function streamAgentPartsAgentsResponse200ToolCallPartToJSON(streamAgentPartsAgentsResponse200ToolCallPart: StreamAgentPartsAgentsResponse200ToolCallPart): string;
|
|
2150
|
-
export declare function streamAgentPartsAgentsResponse200ToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponse200ToolCallPart, SDKValidationError>;
|
|
2151
|
-
/** @internal */
|
|
2152
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
2153
|
-
/** @internal */
|
|
2154
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
2155
|
-
/** @internal */
|
|
2156
|
-
export declare const StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2157
|
-
/** @internal */
|
|
2158
|
-
export type StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound = {
|
|
2159
|
-
uri: string;
|
|
2160
|
-
mimeType?: string | undefined;
|
|
2161
|
-
name?: string | undefined;
|
|
2162
|
-
};
|
|
2163
|
-
/** @internal */
|
|
2164
|
-
export declare const StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat>;
|
|
2165
|
-
export declare function streamAgentFileAgentsResponse200TextEventStreamFileInURIFormatToJSON(streamAgentFileAgentsResponse200TextEventStreamFileInURIFormat: StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat): string;
|
|
2166
|
-
export declare function streamAgentFileAgentsResponse200TextEventStreamFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat, SDKValidationError>;
|
|
2167
|
-
/** @internal */
|
|
2168
|
-
export declare const StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat, z.ZodTypeDef, unknown>;
|
|
2169
|
-
/** @internal */
|
|
2170
|
-
export type StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound = {
|
|
2171
|
-
bytes: string;
|
|
2172
|
-
mimeType?: string | undefined;
|
|
2173
|
-
name?: string | undefined;
|
|
2174
|
-
};
|
|
2175
|
-
/** @internal */
|
|
2176
|
-
export declare const StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat>;
|
|
2177
|
-
export declare function streamAgentFileAgentsResponse200TextEventStreamBinaryFormatToJSON(streamAgentFileAgentsResponse200TextEventStreamBinaryFormat: StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat): string;
|
|
2178
|
-
export declare function streamAgentFileAgentsResponse200TextEventStreamBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat, SDKValidationError>;
|
|
2179
|
-
/** @internal */
|
|
2180
|
-
export declare const StreamAgentPartsAgentsResponse200File$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200File, z.ZodTypeDef, unknown>;
|
|
2181
|
-
/** @internal */
|
|
2182
|
-
export type StreamAgentPartsAgentsResponse200File$Outbound = StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound | StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound;
|
|
2183
|
-
/** @internal */
|
|
2184
|
-
export declare const StreamAgentPartsAgentsResponse200File$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200File$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponse200File>;
|
|
2185
|
-
export declare function streamAgentPartsAgentsResponse200FileToJSON(streamAgentPartsAgentsResponse200File: StreamAgentPartsAgentsResponse200File): string;
|
|
2186
|
-
export declare function streamAgentPartsAgentsResponse200FileFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponse200File, SDKValidationError>;
|
|
2187
|
-
/** @internal */
|
|
2188
|
-
export declare const StreamAgentPartsAgentsResponse200FilePart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200FilePart, z.ZodTypeDef, unknown>;
|
|
2189
|
-
/** @internal */
|
|
2190
|
-
export type StreamAgentPartsAgentsResponse200FilePart$Outbound = {
|
|
2191
|
-
kind: string;
|
|
2192
|
-
file: StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound | StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound;
|
|
2193
|
-
metadata?: {
|
|
2194
|
-
[k: string]: any;
|
|
2195
|
-
} | undefined;
|
|
2196
|
-
};
|
|
2197
|
-
/** @internal */
|
|
2198
|
-
export declare const StreamAgentPartsAgentsResponse200FilePart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200FilePart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponse200FilePart>;
|
|
2199
|
-
export declare function streamAgentPartsAgentsResponse200FilePartToJSON(streamAgentPartsAgentsResponse200FilePart: StreamAgentPartsAgentsResponse200FilePart): string;
|
|
2200
|
-
export declare function streamAgentPartsAgentsResponse200FilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponse200FilePart, SDKValidationError>;
|
|
2201
|
-
/** @internal */
|
|
2202
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
2203
|
-
/** @internal */
|
|
2204
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
2205
|
-
/** @internal */
|
|
2206
|
-
export declare const StreamAgentPartsAgentsResponse200DataPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200DataPart, z.ZodTypeDef, unknown>;
|
|
2207
|
-
/** @internal */
|
|
2208
|
-
export type StreamAgentPartsAgentsResponse200DataPart$Outbound = {
|
|
2209
|
-
kind: string;
|
|
2210
|
-
data: {
|
|
2211
|
-
[k: string]: any;
|
|
2212
|
-
};
|
|
2213
|
-
metadata?: {
|
|
2214
|
-
[k: string]: any;
|
|
2215
|
-
} | undefined;
|
|
2216
|
-
};
|
|
2217
|
-
/** @internal */
|
|
2218
|
-
export declare const StreamAgentPartsAgentsResponse200DataPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200DataPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponse200DataPart>;
|
|
2219
|
-
export declare function streamAgentPartsAgentsResponse200DataPartToJSON(streamAgentPartsAgentsResponse200DataPart: StreamAgentPartsAgentsResponse200DataPart): string;
|
|
2220
|
-
export declare function streamAgentPartsAgentsResponse200DataPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponse200DataPart, SDKValidationError>;
|
|
2221
|
-
/** @internal */
|
|
2222
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
2223
|
-
/** @internal */
|
|
2224
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
2225
|
-
/** @internal */
|
|
2226
|
-
export declare const StreamAgentPartsAgentsResponse200TextPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200TextPart, z.ZodTypeDef, unknown>;
|
|
2227
|
-
/** @internal */
|
|
2228
|
-
export type StreamAgentPartsAgentsResponse200TextPart$Outbound = {
|
|
2229
|
-
kind: string;
|
|
2230
|
-
text: string;
|
|
2231
|
-
};
|
|
2232
|
-
/** @internal */
|
|
2233
|
-
export declare const StreamAgentPartsAgentsResponse200TextPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200TextPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponse200TextPart>;
|
|
2234
|
-
export declare function streamAgentPartsAgentsResponse200TextPartToJSON(streamAgentPartsAgentsResponse200TextPart: StreamAgentPartsAgentsResponse200TextPart): string;
|
|
2235
|
-
export declare function streamAgentPartsAgentsResponse200TextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponse200TextPart, SDKValidationError>;
|
|
2236
|
-
/** @internal */
|
|
2237
1740
|
export declare const StreamAgentDataAgentsResponse200Parts$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Parts, z.ZodTypeDef, unknown>;
|
|
2238
1741
|
/** @internal */
|
|
2239
|
-
export type StreamAgentDataAgentsResponse200Parts$Outbound =
|
|
1742
|
+
export type StreamAgentDataAgentsResponse200Parts$Outbound = (components.ToolCallPart$Outbound & {
|
|
1743
|
+
kind: "tool_call";
|
|
1744
|
+
}) | (components.TextPart$Outbound & {
|
|
1745
|
+
kind: "text";
|
|
1746
|
+
}) | (components.DataPart$Outbound & {
|
|
1747
|
+
kind: "data";
|
|
1748
|
+
}) | (components.FilePart$Outbound & {
|
|
1749
|
+
kind: "file";
|
|
1750
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
1751
|
+
kind: "tool_result";
|
|
1752
|
+
});
|
|
2240
1753
|
/** @internal */
|
|
2241
1754
|
export declare const StreamAgentDataAgentsResponse200Parts$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Parts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200Parts>;
|
|
2242
1755
|
export declare function streamAgentDataAgentsResponse200PartsToJSON(streamAgentDataAgentsResponse200Parts: StreamAgentDataAgentsResponse200Parts): string;
|
|
@@ -2247,7 +1760,17 @@ export declare const StreamAgentDataMessage$inboundSchema: z.ZodType<StreamAgent
|
|
|
2247
1760
|
export type StreamAgentDataMessage$Outbound = {
|
|
2248
1761
|
messageId?: string | undefined;
|
|
2249
1762
|
role: string;
|
|
2250
|
-
parts: Array<
|
|
1763
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
1764
|
+
kind: "tool_call";
|
|
1765
|
+
}) | (components.TextPart$Outbound & {
|
|
1766
|
+
kind: "text";
|
|
1767
|
+
}) | (components.DataPart$Outbound & {
|
|
1768
|
+
kind: "data";
|
|
1769
|
+
}) | (components.FilePart$Outbound & {
|
|
1770
|
+
kind: "file";
|
|
1771
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
1772
|
+
kind: "tool_result";
|
|
1773
|
+
})>;
|
|
2251
1774
|
metadata?: {
|
|
2252
1775
|
[k: string]: any;
|
|
2253
1776
|
} | undefined;
|
|
@@ -2404,6 +1927,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$Out
|
|
|
2404
1927
|
} | undefined;
|
|
2405
1928
|
review_source?: string | undefined;
|
|
2406
1929
|
reviewed_by_id?: string | undefined;
|
|
1930
|
+
workflowRunId: string;
|
|
2407
1931
|
};
|
|
2408
1932
|
/** @internal */
|
|
2409
1933
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody7Data>;
|
|
@@ -2496,6 +2020,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamData$Outbound = {
|
|
|
2496
2020
|
error: string;
|
|
2497
2021
|
code: number;
|
|
2498
2022
|
responseId?: string | undefined;
|
|
2023
|
+
workflowRunId: string;
|
|
2499
2024
|
};
|
|
2500
2025
|
/** @internal */
|
|
2501
2026
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamData>;
|
|
@@ -2522,135 +2047,19 @@ export declare const StreamAgentDataAgentsResponseRole$inboundSchema: z.ZodNativ
|
|
|
2522
2047
|
/** @internal */
|
|
2523
2048
|
export declare const StreamAgentDataAgentsResponseRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
2524
2049
|
/** @internal */
|
|
2525
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind>;
|
|
2526
|
-
/** @internal */
|
|
2527
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind>;
|
|
2528
|
-
/** @internal */
|
|
2529
|
-
export declare const StreamAgentPartsAgentsResponseToolResultPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseToolResultPart, z.ZodTypeDef, unknown>;
|
|
2530
|
-
/** @internal */
|
|
2531
|
-
export type StreamAgentPartsAgentsResponseToolResultPart$Outbound = {
|
|
2532
|
-
kind: string;
|
|
2533
|
-
tool_call_id: string;
|
|
2534
|
-
result?: any | undefined;
|
|
2535
|
-
metadata?: {
|
|
2536
|
-
[k: string]: any;
|
|
2537
|
-
} | undefined;
|
|
2538
|
-
};
|
|
2539
|
-
/** @internal */
|
|
2540
|
-
export declare const StreamAgentPartsAgentsResponseToolResultPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseToolResultPart>;
|
|
2541
|
-
export declare function streamAgentPartsAgentsResponseToolResultPartToJSON(streamAgentPartsAgentsResponseToolResultPart: StreamAgentPartsAgentsResponseToolResultPart): string;
|
|
2542
|
-
export declare function streamAgentPartsAgentsResponseToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseToolResultPart, SDKValidationError>;
|
|
2543
|
-
/** @internal */
|
|
2544
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind>;
|
|
2545
|
-
/** @internal */
|
|
2546
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull4Kind>;
|
|
2547
|
-
/** @internal */
|
|
2548
|
-
export declare const StreamAgentPartsAgentsResponseToolCallPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseToolCallPart, z.ZodTypeDef, unknown>;
|
|
2549
|
-
/** @internal */
|
|
2550
|
-
export type StreamAgentPartsAgentsResponseToolCallPart$Outbound = {
|
|
2551
|
-
kind: string;
|
|
2552
|
-
tool_name: string;
|
|
2553
|
-
tool_call_id: string;
|
|
2554
|
-
arguments: {
|
|
2555
|
-
[k: string]: any;
|
|
2556
|
-
};
|
|
2557
|
-
metadata?: {
|
|
2558
|
-
[k: string]: any;
|
|
2559
|
-
} | undefined;
|
|
2560
|
-
};
|
|
2561
|
-
/** @internal */
|
|
2562
|
-
export declare const StreamAgentPartsAgentsResponseToolCallPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseToolCallPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseToolCallPart>;
|
|
2563
|
-
export declare function streamAgentPartsAgentsResponseToolCallPartToJSON(streamAgentPartsAgentsResponseToolCallPart: StreamAgentPartsAgentsResponseToolCallPart): string;
|
|
2564
|
-
export declare function streamAgentPartsAgentsResponseToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseToolCallPart, SDKValidationError>;
|
|
2565
|
-
/** @internal */
|
|
2566
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind>;
|
|
2567
|
-
/** @internal */
|
|
2568
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFullKind>;
|
|
2569
|
-
/** @internal */
|
|
2570
|
-
export declare const StreamAgentFileAgentsResponse200FileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponse200FileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2571
|
-
/** @internal */
|
|
2572
|
-
export type StreamAgentFileAgentsResponse200FileInURIFormat$Outbound = {
|
|
2573
|
-
uri: string;
|
|
2574
|
-
mimeType?: string | undefined;
|
|
2575
|
-
name?: string | undefined;
|
|
2576
|
-
};
|
|
2577
|
-
/** @internal */
|
|
2578
|
-
export declare const StreamAgentFileAgentsResponse200FileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponse200FileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponse200FileInURIFormat>;
|
|
2579
|
-
export declare function streamAgentFileAgentsResponse200FileInURIFormatToJSON(streamAgentFileAgentsResponse200FileInURIFormat: StreamAgentFileAgentsResponse200FileInURIFormat): string;
|
|
2580
|
-
export declare function streamAgentFileAgentsResponse200FileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponse200FileInURIFormat, SDKValidationError>;
|
|
2581
|
-
/** @internal */
|
|
2582
|
-
export declare const StreamAgentFileAgentsResponse200BinaryFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponse200BinaryFormat, z.ZodTypeDef, unknown>;
|
|
2583
|
-
/** @internal */
|
|
2584
|
-
export type StreamAgentFileAgentsResponse200BinaryFormat$Outbound = {
|
|
2585
|
-
bytes: string;
|
|
2586
|
-
mimeType?: string | undefined;
|
|
2587
|
-
name?: string | undefined;
|
|
2588
|
-
};
|
|
2589
|
-
/** @internal */
|
|
2590
|
-
export declare const StreamAgentFileAgentsResponse200BinaryFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponse200BinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponse200BinaryFormat>;
|
|
2591
|
-
export declare function streamAgentFileAgentsResponse200BinaryFormatToJSON(streamAgentFileAgentsResponse200BinaryFormat: StreamAgentFileAgentsResponse200BinaryFormat): string;
|
|
2592
|
-
export declare function streamAgentFileAgentsResponse200BinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponse200BinaryFormat, SDKValidationError>;
|
|
2593
|
-
/** @internal */
|
|
2594
|
-
export declare const StreamAgentPartsAgentsResponseFile$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseFile, z.ZodTypeDef, unknown>;
|
|
2595
|
-
/** @internal */
|
|
2596
|
-
export type StreamAgentPartsAgentsResponseFile$Outbound = StreamAgentFileAgentsResponse200BinaryFormat$Outbound | StreamAgentFileAgentsResponse200FileInURIFormat$Outbound;
|
|
2597
|
-
/** @internal */
|
|
2598
|
-
export declare const StreamAgentPartsAgentsResponseFile$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseFile$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseFile>;
|
|
2599
|
-
export declare function streamAgentPartsAgentsResponseFileToJSON(streamAgentPartsAgentsResponseFile: StreamAgentPartsAgentsResponseFile): string;
|
|
2600
|
-
export declare function streamAgentPartsAgentsResponseFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseFile, SDKValidationError>;
|
|
2601
|
-
/** @internal */
|
|
2602
|
-
export declare const StreamAgentPartsAgentsResponseFilePart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseFilePart, z.ZodTypeDef, unknown>;
|
|
2603
|
-
/** @internal */
|
|
2604
|
-
export type StreamAgentPartsAgentsResponseFilePart$Outbound = {
|
|
2605
|
-
kind: string;
|
|
2606
|
-
file: StreamAgentFileAgentsResponse200BinaryFormat$Outbound | StreamAgentFileAgentsResponse200FileInURIFormat$Outbound;
|
|
2607
|
-
metadata?: {
|
|
2608
|
-
[k: string]: any;
|
|
2609
|
-
} | undefined;
|
|
2610
|
-
};
|
|
2611
|
-
/** @internal */
|
|
2612
|
-
export declare const StreamAgentPartsAgentsResponseFilePart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseFilePart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseFilePart>;
|
|
2613
|
-
export declare function streamAgentPartsAgentsResponseFilePartToJSON(streamAgentPartsAgentsResponseFilePart: StreamAgentPartsAgentsResponseFilePart): string;
|
|
2614
|
-
export declare function streamAgentPartsAgentsResponseFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseFilePart, SDKValidationError>;
|
|
2615
|
-
/** @internal */
|
|
2616
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind>;
|
|
2617
|
-
/** @internal */
|
|
2618
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataKind>;
|
|
2619
|
-
/** @internal */
|
|
2620
|
-
export declare const StreamAgentPartsAgentsResponseDataPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseDataPart, z.ZodTypeDef, unknown>;
|
|
2621
|
-
/** @internal */
|
|
2622
|
-
export type StreamAgentPartsAgentsResponseDataPart$Outbound = {
|
|
2623
|
-
kind: string;
|
|
2624
|
-
data: {
|
|
2625
|
-
[k: string]: any;
|
|
2626
|
-
};
|
|
2627
|
-
metadata?: {
|
|
2628
|
-
[k: string]: any;
|
|
2629
|
-
} | undefined;
|
|
2630
|
-
};
|
|
2631
|
-
/** @internal */
|
|
2632
|
-
export declare const StreamAgentPartsAgentsResponseDataPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseDataPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseDataPart>;
|
|
2633
|
-
export declare function streamAgentPartsAgentsResponseDataPartToJSON(streamAgentPartsAgentsResponseDataPart: StreamAgentPartsAgentsResponseDataPart): string;
|
|
2634
|
-
export declare function streamAgentPartsAgentsResponseDataPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseDataPart, SDKValidationError>;
|
|
2635
|
-
/** @internal */
|
|
2636
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind>;
|
|
2637
|
-
/** @internal */
|
|
2638
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4Kind>;
|
|
2639
|
-
/** @internal */
|
|
2640
|
-
export declare const StreamAgentPartsAgentsResponseTextPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponseTextPart, z.ZodTypeDef, unknown>;
|
|
2641
|
-
/** @internal */
|
|
2642
|
-
export type StreamAgentPartsAgentsResponseTextPart$Outbound = {
|
|
2643
|
-
kind: string;
|
|
2644
|
-
text: string;
|
|
2645
|
-
};
|
|
2646
|
-
/** @internal */
|
|
2647
|
-
export declare const StreamAgentPartsAgentsResponseTextPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsResponseTextPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsResponseTextPart>;
|
|
2648
|
-
export declare function streamAgentPartsAgentsResponseTextPartToJSON(streamAgentPartsAgentsResponseTextPart: StreamAgentPartsAgentsResponseTextPart): string;
|
|
2649
|
-
export declare function streamAgentPartsAgentsResponseTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsResponseTextPart, SDKValidationError>;
|
|
2650
|
-
/** @internal */
|
|
2651
2050
|
export declare const StreamAgentDataAgentsResponseParts$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseParts, z.ZodTypeDef, unknown>;
|
|
2652
2051
|
/** @internal */
|
|
2653
|
-
export type StreamAgentDataAgentsResponseParts$Outbound =
|
|
2052
|
+
export type StreamAgentDataAgentsResponseParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
2053
|
+
kind: "tool_call";
|
|
2054
|
+
}) | (components.TextPart$Outbound & {
|
|
2055
|
+
kind: "text";
|
|
2056
|
+
}) | (components.DataPart$Outbound & {
|
|
2057
|
+
kind: "data";
|
|
2058
|
+
}) | (components.FilePart$Outbound & {
|
|
2059
|
+
kind: "file";
|
|
2060
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2061
|
+
kind: "tool_result";
|
|
2062
|
+
});
|
|
2654
2063
|
/** @internal */
|
|
2655
2064
|
export declare const StreamAgentDataAgentsResponseParts$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseParts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseParts>;
|
|
2656
2065
|
export declare function streamAgentDataAgentsResponsePartsToJSON(streamAgentDataAgentsResponseParts: StreamAgentDataAgentsResponseParts): string;
|
|
@@ -2661,7 +2070,17 @@ export declare const DataLastMessageFull$inboundSchema: z.ZodType<DataLastMessag
|
|
|
2661
2070
|
export type DataLastMessageFull$Outbound = {
|
|
2662
2071
|
messageId?: string | undefined;
|
|
2663
2072
|
role: string;
|
|
2664
|
-
parts: Array<
|
|
2073
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
2074
|
+
kind: "tool_call";
|
|
2075
|
+
}) | (components.TextPart$Outbound & {
|
|
2076
|
+
kind: "text";
|
|
2077
|
+
}) | (components.DataPart$Outbound & {
|
|
2078
|
+
kind: "data";
|
|
2079
|
+
}) | (components.FilePart$Outbound & {
|
|
2080
|
+
kind: "file";
|
|
2081
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2082
|
+
kind: "tool_result";
|
|
2083
|
+
})>;
|
|
2665
2084
|
metadata?: {
|
|
2666
2085
|
[k: string]: any;
|
|
2667
2086
|
} | undefined;
|
|
@@ -2748,6 +2167,7 @@ export type StreamAgentDataAgentsResponse200Data$Outbound = {
|
|
|
2748
2167
|
finish_reason: string;
|
|
2749
2168
|
pending_tool_calls?: Array<DataPendingToolCalls$Outbound> | undefined;
|
|
2750
2169
|
usage?: StreamAgentDataAgentsUsage$Outbound | undefined;
|
|
2170
|
+
workflowRunId: string;
|
|
2751
2171
|
responseId?: string | undefined;
|
|
2752
2172
|
};
|
|
2753
2173
|
/** @internal */
|
|
@@ -2775,135 +2195,19 @@ export declare const StreamAgentDataAgentsRole$inboundSchema: z.ZodNativeEnum<ty
|
|
|
2775
2195
|
/** @internal */
|
|
2776
2196
|
export declare const StreamAgentDataAgentsRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsRole>;
|
|
2777
2197
|
/** @internal */
|
|
2778
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind>;
|
|
2779
|
-
/** @internal */
|
|
2780
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataMessageDifferenceKind>;
|
|
2781
|
-
/** @internal */
|
|
2782
|
-
export declare const StreamAgentPartsAgentsToolResultPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsToolResultPart, z.ZodTypeDef, unknown>;
|
|
2783
|
-
/** @internal */
|
|
2784
|
-
export type StreamAgentPartsAgentsToolResultPart$Outbound = {
|
|
2785
|
-
kind: string;
|
|
2786
|
-
tool_call_id: string;
|
|
2787
|
-
result?: any | undefined;
|
|
2788
|
-
metadata?: {
|
|
2789
|
-
[k: string]: any;
|
|
2790
|
-
} | undefined;
|
|
2791
|
-
};
|
|
2792
|
-
/** @internal */
|
|
2793
|
-
export declare const StreamAgentPartsAgentsToolResultPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsToolResultPart>;
|
|
2794
|
-
export declare function streamAgentPartsAgentsToolResultPartToJSON(streamAgentPartsAgentsToolResultPart: StreamAgentPartsAgentsToolResultPart): string;
|
|
2795
|
-
export declare function streamAgentPartsAgentsToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsToolResultPart, SDKValidationError>;
|
|
2796
|
-
/** @internal */
|
|
2797
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind>;
|
|
2798
|
-
/** @internal */
|
|
2799
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3DataKind>;
|
|
2800
|
-
/** @internal */
|
|
2801
|
-
export declare const StreamAgentPartsAgentsToolCallPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsToolCallPart, z.ZodTypeDef, unknown>;
|
|
2802
|
-
/** @internal */
|
|
2803
|
-
export type StreamAgentPartsAgentsToolCallPart$Outbound = {
|
|
2804
|
-
kind: string;
|
|
2805
|
-
tool_name: string;
|
|
2806
|
-
tool_call_id: string;
|
|
2807
|
-
arguments: {
|
|
2808
|
-
[k: string]: any;
|
|
2809
|
-
};
|
|
2810
|
-
metadata?: {
|
|
2811
|
-
[k: string]: any;
|
|
2812
|
-
} | undefined;
|
|
2813
|
-
};
|
|
2814
|
-
/** @internal */
|
|
2815
|
-
export declare const StreamAgentPartsAgentsToolCallPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsToolCallPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsToolCallPart>;
|
|
2816
|
-
export declare function streamAgentPartsAgentsToolCallPartToJSON(streamAgentPartsAgentsToolCallPart: StreamAgentPartsAgentsToolCallPart): string;
|
|
2817
|
-
export declare function streamAgentPartsAgentsToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsToolCallPart, SDKValidationError>;
|
|
2818
|
-
/** @internal */
|
|
2819
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind>;
|
|
2820
|
-
/** @internal */
|
|
2821
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData3Kind>;
|
|
2822
|
-
/** @internal */
|
|
2823
|
-
export declare const StreamAgentFileAgentsResponseFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponseFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2824
|
-
/** @internal */
|
|
2825
|
-
export type StreamAgentFileAgentsResponseFileInURIFormat$Outbound = {
|
|
2826
|
-
uri: string;
|
|
2827
|
-
mimeType?: string | undefined;
|
|
2828
|
-
name?: string | undefined;
|
|
2829
|
-
};
|
|
2830
|
-
/** @internal */
|
|
2831
|
-
export declare const StreamAgentFileAgentsResponseFileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponseFileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponseFileInURIFormat>;
|
|
2832
|
-
export declare function streamAgentFileAgentsResponseFileInURIFormatToJSON(streamAgentFileAgentsResponseFileInURIFormat: StreamAgentFileAgentsResponseFileInURIFormat): string;
|
|
2833
|
-
export declare function streamAgentFileAgentsResponseFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponseFileInURIFormat, SDKValidationError>;
|
|
2834
|
-
/** @internal */
|
|
2835
|
-
export declare const StreamAgentFileAgentsResponseBinaryFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponseBinaryFormat, z.ZodTypeDef, unknown>;
|
|
2836
|
-
/** @internal */
|
|
2837
|
-
export type StreamAgentFileAgentsResponseBinaryFormat$Outbound = {
|
|
2838
|
-
bytes: string;
|
|
2839
|
-
mimeType?: string | undefined;
|
|
2840
|
-
name?: string | undefined;
|
|
2841
|
-
};
|
|
2842
|
-
/** @internal */
|
|
2843
|
-
export declare const StreamAgentFileAgentsResponseBinaryFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsResponseBinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsResponseBinaryFormat>;
|
|
2844
|
-
export declare function streamAgentFileAgentsResponseBinaryFormatToJSON(streamAgentFileAgentsResponseBinaryFormat: StreamAgentFileAgentsResponseBinaryFormat): string;
|
|
2845
|
-
export declare function streamAgentFileAgentsResponseBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsResponseBinaryFormat, SDKValidationError>;
|
|
2846
|
-
/** @internal */
|
|
2847
|
-
export declare const StreamAgentPartsAgentsFile$inboundSchema: z.ZodType<StreamAgentPartsAgentsFile, z.ZodTypeDef, unknown>;
|
|
2848
|
-
/** @internal */
|
|
2849
|
-
export type StreamAgentPartsAgentsFile$Outbound = StreamAgentFileAgentsResponseBinaryFormat$Outbound | StreamAgentFileAgentsResponseFileInURIFormat$Outbound;
|
|
2850
|
-
/** @internal */
|
|
2851
|
-
export declare const StreamAgentPartsAgentsFile$outboundSchema: z.ZodType<StreamAgentPartsAgentsFile$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsFile>;
|
|
2852
|
-
export declare function streamAgentPartsAgentsFileToJSON(streamAgentPartsAgentsFile: StreamAgentPartsAgentsFile): string;
|
|
2853
|
-
export declare function streamAgentPartsAgentsFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsFile, SDKValidationError>;
|
|
2854
|
-
/** @internal */
|
|
2855
|
-
export declare const StreamAgentPartsAgentsFilePart$inboundSchema: z.ZodType<StreamAgentPartsAgentsFilePart, z.ZodTypeDef, unknown>;
|
|
2856
|
-
/** @internal */
|
|
2857
|
-
export type StreamAgentPartsAgentsFilePart$Outbound = {
|
|
2858
|
-
kind: string;
|
|
2859
|
-
file: StreamAgentFileAgentsResponseBinaryFormat$Outbound | StreamAgentFileAgentsResponseFileInURIFormat$Outbound;
|
|
2860
|
-
metadata?: {
|
|
2861
|
-
[k: string]: any;
|
|
2862
|
-
} | undefined;
|
|
2863
|
-
};
|
|
2864
|
-
/** @internal */
|
|
2865
|
-
export declare const StreamAgentPartsAgentsFilePart$outboundSchema: z.ZodType<StreamAgentPartsAgentsFilePart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsFilePart>;
|
|
2866
|
-
export declare function streamAgentPartsAgentsFilePartToJSON(streamAgentPartsAgentsFilePart: StreamAgentPartsAgentsFilePart): string;
|
|
2867
|
-
export declare function streamAgentPartsAgentsFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsFilePart, SDKValidationError>;
|
|
2868
|
-
/** @internal */
|
|
2869
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind>;
|
|
2870
|
-
/** @internal */
|
|
2871
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyDataKind>;
|
|
2872
|
-
/** @internal */
|
|
2873
|
-
export declare const StreamAgentPartsAgentsDataPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsDataPart, z.ZodTypeDef, unknown>;
|
|
2874
|
-
/** @internal */
|
|
2875
|
-
export type StreamAgentPartsAgentsDataPart$Outbound = {
|
|
2876
|
-
kind: string;
|
|
2877
|
-
data: {
|
|
2878
|
-
[k: string]: any;
|
|
2879
|
-
};
|
|
2880
|
-
metadata?: {
|
|
2881
|
-
[k: string]: any;
|
|
2882
|
-
} | undefined;
|
|
2883
|
-
};
|
|
2884
|
-
/** @internal */
|
|
2885
|
-
export declare const StreamAgentPartsAgentsDataPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsDataPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsDataPart>;
|
|
2886
|
-
export declare function streamAgentPartsAgentsDataPartToJSON(streamAgentPartsAgentsDataPart: StreamAgentPartsAgentsDataPart): string;
|
|
2887
|
-
export declare function streamAgentPartsAgentsDataPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsDataPart, SDKValidationError>;
|
|
2888
|
-
/** @internal */
|
|
2889
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind>;
|
|
2890
|
-
/** @internal */
|
|
2891
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyKind>;
|
|
2892
|
-
/** @internal */
|
|
2893
|
-
export declare const StreamAgentPartsAgentsTextPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsTextPart, z.ZodTypeDef, unknown>;
|
|
2894
|
-
/** @internal */
|
|
2895
|
-
export type StreamAgentPartsAgentsTextPart$Outbound = {
|
|
2896
|
-
kind: string;
|
|
2897
|
-
text: string;
|
|
2898
|
-
};
|
|
2899
|
-
/** @internal */
|
|
2900
|
-
export declare const StreamAgentPartsAgentsTextPart$outboundSchema: z.ZodType<StreamAgentPartsAgentsTextPart$Outbound, z.ZodTypeDef, StreamAgentPartsAgentsTextPart>;
|
|
2901
|
-
export declare function streamAgentPartsAgentsTextPartToJSON(streamAgentPartsAgentsTextPart: StreamAgentPartsAgentsTextPart): string;
|
|
2902
|
-
export declare function streamAgentPartsAgentsTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsAgentsTextPart, SDKValidationError>;
|
|
2903
|
-
/** @internal */
|
|
2904
2198
|
export declare const StreamAgentDataAgentsParts$inboundSchema: z.ZodType<StreamAgentDataAgentsParts, z.ZodTypeDef, unknown>;
|
|
2905
2199
|
/** @internal */
|
|
2906
|
-
export type StreamAgentDataAgentsParts$Outbound =
|
|
2200
|
+
export type StreamAgentDataAgentsParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
2201
|
+
kind: "tool_call";
|
|
2202
|
+
}) | (components.TextPart$Outbound & {
|
|
2203
|
+
kind: "text";
|
|
2204
|
+
}) | (components.DataPart$Outbound & {
|
|
2205
|
+
kind: "data";
|
|
2206
|
+
}) | (components.FilePart$Outbound & {
|
|
2207
|
+
kind: "file";
|
|
2208
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2209
|
+
kind: "tool_result";
|
|
2210
|
+
});
|
|
2907
2211
|
/** @internal */
|
|
2908
2212
|
export declare const StreamAgentDataAgentsParts$outboundSchema: z.ZodType<StreamAgentDataAgentsParts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsParts>;
|
|
2909
2213
|
export declare function streamAgentDataAgentsPartsToJSON(streamAgentDataAgentsParts: StreamAgentDataAgentsParts): string;
|
|
@@ -2914,7 +2218,17 @@ export declare const DataMessageDifference$inboundSchema: z.ZodType<DataMessageD
|
|
|
2914
2218
|
export type DataMessageDifference$Outbound = {
|
|
2915
2219
|
messageId: string;
|
|
2916
2220
|
role: string;
|
|
2917
|
-
parts: Array<
|
|
2221
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
2222
|
+
kind: "tool_call";
|
|
2223
|
+
}) | (components.TextPart$Outbound & {
|
|
2224
|
+
kind: "text";
|
|
2225
|
+
}) | (components.DataPart$Outbound & {
|
|
2226
|
+
kind: "data";
|
|
2227
|
+
}) | (components.FilePart$Outbound & {
|
|
2228
|
+
kind: "file";
|
|
2229
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2230
|
+
kind: "tool_result";
|
|
2231
|
+
})>;
|
|
2918
2232
|
metadata?: {
|
|
2919
2233
|
[k: string]: any;
|
|
2920
2234
|
} | undefined;
|
|
@@ -3143,135 +2457,19 @@ export declare const StreamAgentDataRole$inboundSchema: z.ZodNativeEnum<typeof S
|
|
|
3143
2457
|
/** @internal */
|
|
3144
2458
|
export declare const StreamAgentDataRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataRole>;
|
|
3145
2459
|
/** @internal */
|
|
3146
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamKind>;
|
|
3147
|
-
/** @internal */
|
|
3148
|
-
export declare const StreamAgentPartsAgentsResponse200TextEventStreamKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamKind>;
|
|
3149
|
-
/** @internal */
|
|
3150
|
-
export declare const StreamAgentPartsToolResultPart$inboundSchema: z.ZodType<StreamAgentPartsToolResultPart, z.ZodTypeDef, unknown>;
|
|
3151
|
-
/** @internal */
|
|
3152
|
-
export type StreamAgentPartsToolResultPart$Outbound = {
|
|
3153
|
-
kind: string;
|
|
3154
|
-
tool_call_id: string;
|
|
3155
|
-
result?: any | undefined;
|
|
3156
|
-
metadata?: {
|
|
3157
|
-
[k: string]: any;
|
|
3158
|
-
} | undefined;
|
|
3159
|
-
};
|
|
3160
|
-
/** @internal */
|
|
3161
|
-
export declare const StreamAgentPartsToolResultPart$outboundSchema: z.ZodType<StreamAgentPartsToolResultPart$Outbound, z.ZodTypeDef, StreamAgentPartsToolResultPart>;
|
|
3162
|
-
export declare function streamAgentPartsToolResultPartToJSON(streamAgentPartsToolResultPart: StreamAgentPartsToolResultPart): string;
|
|
3163
|
-
export declare function streamAgentPartsToolResultPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsToolResultPart, SDKValidationError>;
|
|
3164
|
-
/** @internal */
|
|
3165
|
-
export declare const StreamAgentPartsAgentsResponse200Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200Kind>;
|
|
3166
|
-
/** @internal */
|
|
3167
|
-
export declare const StreamAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200Kind>;
|
|
3168
|
-
/** @internal */
|
|
3169
|
-
export declare const StreamAgentPartsToolCallPart$inboundSchema: z.ZodType<StreamAgentPartsToolCallPart, z.ZodTypeDef, unknown>;
|
|
3170
|
-
/** @internal */
|
|
3171
|
-
export type StreamAgentPartsToolCallPart$Outbound = {
|
|
3172
|
-
kind: string;
|
|
3173
|
-
tool_name: string;
|
|
3174
|
-
tool_call_id: string;
|
|
3175
|
-
arguments: {
|
|
3176
|
-
[k: string]: any;
|
|
3177
|
-
};
|
|
3178
|
-
metadata?: {
|
|
3179
|
-
[k: string]: any;
|
|
3180
|
-
} | undefined;
|
|
3181
|
-
};
|
|
3182
|
-
/** @internal */
|
|
3183
|
-
export declare const StreamAgentPartsToolCallPart$outboundSchema: z.ZodType<StreamAgentPartsToolCallPart$Outbound, z.ZodTypeDef, StreamAgentPartsToolCallPart>;
|
|
3184
|
-
export declare function streamAgentPartsToolCallPartToJSON(streamAgentPartsToolCallPart: StreamAgentPartsToolCallPart): string;
|
|
3185
|
-
export declare function streamAgentPartsToolCallPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsToolCallPart, SDKValidationError>;
|
|
3186
|
-
/** @internal */
|
|
3187
|
-
export declare const StreamAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponseKind>;
|
|
3188
|
-
/** @internal */
|
|
3189
|
-
export declare const StreamAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponseKind>;
|
|
3190
|
-
/** @internal */
|
|
3191
|
-
export declare const StreamAgentFileAgentsFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
3192
|
-
/** @internal */
|
|
3193
|
-
export type StreamAgentFileAgentsFileInURIFormat$Outbound = {
|
|
3194
|
-
uri: string;
|
|
3195
|
-
mimeType?: string | undefined;
|
|
3196
|
-
name?: string | undefined;
|
|
3197
|
-
};
|
|
3198
|
-
/** @internal */
|
|
3199
|
-
export declare const StreamAgentFileAgentsFileInURIFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsFileInURIFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsFileInURIFormat>;
|
|
3200
|
-
export declare function streamAgentFileAgentsFileInURIFormatToJSON(streamAgentFileAgentsFileInURIFormat: StreamAgentFileAgentsFileInURIFormat): string;
|
|
3201
|
-
export declare function streamAgentFileAgentsFileInURIFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsFileInURIFormat, SDKValidationError>;
|
|
3202
|
-
/** @internal */
|
|
3203
|
-
export declare const StreamAgentFileAgentsBinaryFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsBinaryFormat, z.ZodTypeDef, unknown>;
|
|
3204
|
-
/** @internal */
|
|
3205
|
-
export type StreamAgentFileAgentsBinaryFormat$Outbound = {
|
|
3206
|
-
bytes: string;
|
|
3207
|
-
mimeType?: string | undefined;
|
|
3208
|
-
name?: string | undefined;
|
|
3209
|
-
};
|
|
3210
|
-
/** @internal */
|
|
3211
|
-
export declare const StreamAgentFileAgentsBinaryFormat$outboundSchema: z.ZodType<StreamAgentFileAgentsBinaryFormat$Outbound, z.ZodTypeDef, StreamAgentFileAgentsBinaryFormat>;
|
|
3212
|
-
export declare function streamAgentFileAgentsBinaryFormatToJSON(streamAgentFileAgentsBinaryFormat: StreamAgentFileAgentsBinaryFormat): string;
|
|
3213
|
-
export declare function streamAgentFileAgentsBinaryFormatFromJSON(jsonString: string): SafeParseResult<StreamAgentFileAgentsBinaryFormat, SDKValidationError>;
|
|
3214
|
-
/** @internal */
|
|
3215
|
-
export declare const StreamAgentPartsFile$inboundSchema: z.ZodType<StreamAgentPartsFile, z.ZodTypeDef, unknown>;
|
|
3216
|
-
/** @internal */
|
|
3217
|
-
export type StreamAgentPartsFile$Outbound = StreamAgentFileAgentsBinaryFormat$Outbound | StreamAgentFileAgentsFileInURIFormat$Outbound;
|
|
3218
|
-
/** @internal */
|
|
3219
|
-
export declare const StreamAgentPartsFile$outboundSchema: z.ZodType<StreamAgentPartsFile$Outbound, z.ZodTypeDef, StreamAgentPartsFile>;
|
|
3220
|
-
export declare function streamAgentPartsFileToJSON(streamAgentPartsFile: StreamAgentPartsFile): string;
|
|
3221
|
-
export declare function streamAgentPartsFileFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsFile, SDKValidationError>;
|
|
3222
|
-
/** @internal */
|
|
3223
|
-
export declare const StreamAgentPartsFilePart$inboundSchema: z.ZodType<StreamAgentPartsFilePart, z.ZodTypeDef, unknown>;
|
|
3224
|
-
/** @internal */
|
|
3225
|
-
export type StreamAgentPartsFilePart$Outbound = {
|
|
3226
|
-
kind: string;
|
|
3227
|
-
file: StreamAgentFileAgentsBinaryFormat$Outbound | StreamAgentFileAgentsFileInURIFormat$Outbound;
|
|
3228
|
-
metadata?: {
|
|
3229
|
-
[k: string]: any;
|
|
3230
|
-
} | undefined;
|
|
3231
|
-
};
|
|
3232
|
-
/** @internal */
|
|
3233
|
-
export declare const StreamAgentPartsFilePart$outboundSchema: z.ZodType<StreamAgentPartsFilePart$Outbound, z.ZodTypeDef, StreamAgentPartsFilePart>;
|
|
3234
|
-
export declare function streamAgentPartsFilePartToJSON(streamAgentPartsFilePart: StreamAgentPartsFilePart): string;
|
|
3235
|
-
export declare function streamAgentPartsFilePartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsFilePart, SDKValidationError>;
|
|
3236
|
-
/** @internal */
|
|
3237
|
-
export declare const StreamAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsKind>;
|
|
3238
|
-
/** @internal */
|
|
3239
|
-
export declare const StreamAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsKind>;
|
|
3240
|
-
/** @internal */
|
|
3241
|
-
export declare const StreamAgentPartsDataPart$inboundSchema: z.ZodType<StreamAgentPartsDataPart, z.ZodTypeDef, unknown>;
|
|
3242
|
-
/** @internal */
|
|
3243
|
-
export type StreamAgentPartsDataPart$Outbound = {
|
|
3244
|
-
kind: string;
|
|
3245
|
-
data: {
|
|
3246
|
-
[k: string]: any;
|
|
3247
|
-
};
|
|
3248
|
-
metadata?: {
|
|
3249
|
-
[k: string]: any;
|
|
3250
|
-
} | undefined;
|
|
3251
|
-
};
|
|
3252
|
-
/** @internal */
|
|
3253
|
-
export declare const StreamAgentPartsDataPart$outboundSchema: z.ZodType<StreamAgentPartsDataPart$Outbound, z.ZodTypeDef, StreamAgentPartsDataPart>;
|
|
3254
|
-
export declare function streamAgentPartsDataPartToJSON(streamAgentPartsDataPart: StreamAgentPartsDataPart): string;
|
|
3255
|
-
export declare function streamAgentPartsDataPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsDataPart, SDKValidationError>;
|
|
3256
|
-
/** @internal */
|
|
3257
|
-
export declare const StreamAgentPartsKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsKind>;
|
|
3258
|
-
/** @internal */
|
|
3259
|
-
export declare const StreamAgentPartsKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsKind>;
|
|
3260
|
-
/** @internal */
|
|
3261
|
-
export declare const StreamAgentPartsTextPart$inboundSchema: z.ZodType<StreamAgentPartsTextPart, z.ZodTypeDef, unknown>;
|
|
3262
|
-
/** @internal */
|
|
3263
|
-
export type StreamAgentPartsTextPart$Outbound = {
|
|
3264
|
-
kind: string;
|
|
3265
|
-
text: string;
|
|
3266
|
-
};
|
|
3267
|
-
/** @internal */
|
|
3268
|
-
export declare const StreamAgentPartsTextPart$outboundSchema: z.ZodType<StreamAgentPartsTextPart$Outbound, z.ZodTypeDef, StreamAgentPartsTextPart>;
|
|
3269
|
-
export declare function streamAgentPartsTextPartToJSON(streamAgentPartsTextPart: StreamAgentPartsTextPart): string;
|
|
3270
|
-
export declare function streamAgentPartsTextPartFromJSON(jsonString: string): SafeParseResult<StreamAgentPartsTextPart, SDKValidationError>;
|
|
3271
|
-
/** @internal */
|
|
3272
2460
|
export declare const StreamAgentDataParts$inboundSchema: z.ZodType<StreamAgentDataParts, z.ZodTypeDef, unknown>;
|
|
3273
2461
|
/** @internal */
|
|
3274
|
-
export type StreamAgentDataParts$Outbound =
|
|
2462
|
+
export type StreamAgentDataParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
2463
|
+
kind: "tool_call";
|
|
2464
|
+
}) | (components.TextPart$Outbound & {
|
|
2465
|
+
kind: "text";
|
|
2466
|
+
}) | (components.DataPart$Outbound & {
|
|
2467
|
+
kind: "data";
|
|
2468
|
+
}) | (components.FilePart$Outbound & {
|
|
2469
|
+
kind: "file";
|
|
2470
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2471
|
+
kind: "tool_result";
|
|
2472
|
+
});
|
|
3275
2473
|
/** @internal */
|
|
3276
2474
|
export declare const StreamAgentDataParts$outboundSchema: z.ZodType<StreamAgentDataParts$Outbound, z.ZodTypeDef, StreamAgentDataParts>;
|
|
3277
2475
|
export declare function streamAgentDataPartsToJSON(streamAgentDataParts: StreamAgentDataParts): string;
|
|
@@ -3282,7 +2480,17 @@ export declare const DataInputMessage$inboundSchema: z.ZodType<DataInputMessage,
|
|
|
3282
2480
|
export type DataInputMessage$Outbound = {
|
|
3283
2481
|
messageId?: string | undefined;
|
|
3284
2482
|
role: string;
|
|
3285
|
-
parts: Array<
|
|
2483
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
2484
|
+
kind: "tool_call";
|
|
2485
|
+
}) | (components.TextPart$Outbound & {
|
|
2486
|
+
kind: "text";
|
|
2487
|
+
}) | (components.DataPart$Outbound & {
|
|
2488
|
+
kind: "data";
|
|
2489
|
+
}) | (components.FilePart$Outbound & {
|
|
2490
|
+
kind: "file";
|
|
2491
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2492
|
+
kind: "tool_result";
|
|
2493
|
+
})>;
|
|
3286
2494
|
metadata?: {
|
|
3287
2495
|
[k: string]: any;
|
|
3288
2496
|
} | undefined;
|
|
@@ -3376,6 +2584,7 @@ export declare function streamAgentDataSettingsFromJSON(jsonString: string): Saf
|
|
|
3376
2584
|
export declare const StreamAgentDataAgentsData$inboundSchema: z.ZodType<StreamAgentDataAgentsData, z.ZodTypeDef, unknown>;
|
|
3377
2585
|
/** @internal */
|
|
3378
2586
|
export type StreamAgentDataAgentsData$Outbound = {
|
|
2587
|
+
workflowRunId: string;
|
|
3379
2588
|
integration_id?: string | undefined;
|
|
3380
2589
|
inputMessage: DataInputMessage$Outbound;
|
|
3381
2590
|
modelId: string;
|