@orq-ai/node 4.0.0-rc.66 → 4.0.0-rc.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -18
- package/bin/mcp-server.js +2320 -1152
- package/bin/mcp-server.js.map +49 -46
- package/docs/sdks/responses/README.md +139 -0
- package/examples/package-lock.json +1 -1
- package/funcs/agentsResponsesCreate.d.ts +17 -0
- package/funcs/agentsResponsesCreate.d.ts.map +1 -0
- package/funcs/agentsResponsesCreate.js +120 -0
- package/funcs/agentsResponsesCreate.js.map +1 -0
- 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.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsResponsesCreate.d.ts +8 -0
- package/mcp-server/tools/agentsResponsesCreate.d.ts.map +1 -0
- package/mcp-server/tools/agentsResponsesCreate.js +64 -0
- package/mcp-server/tools/agentsResponsesCreate.js.map +1 -0
- package/models/operations/createagent.js +4 -4
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createagentresponse.d.ts +564 -0
- package/models/operations/createagentresponse.d.ts.map +1 -0
- package/models/operations/createagentresponse.js +605 -0
- package/models/operations/createagentresponse.js.map +1 -0
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.js +2 -2
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getagenttask.d.ts +32 -32
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +50 -50
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +95 -95
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +143 -134
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.js +2 -2
- package/models/operations/listagents.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/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 +54 -54
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +90 -90
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +541 -68
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +649 -118
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +541 -68
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +657 -127
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.js +4 -4
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/agents.d.ts +3 -0
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +4 -0
- package/sdk/agents.js.map +1 -1
- package/sdk/responses.d.ts +12 -0
- package/sdk/responses.d.ts.map +1 -0
- package/sdk/responses.js +22 -0
- package/sdk/responses.js.map +1 -0
- package/src/funcs/agentsResponsesCreate.ts +168 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/agentsResponsesCreate.ts +37 -0
- package/src/models/operations/createagent.ts +4 -4
- package/src/models/operations/createagentresponse.ts +1339 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- 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/getagent.ts +2 -2
- package/src/models/operations/getagenttask.ts +94 -94
- 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/index.ts +1 -0
- package/src/models/operations/invokeagent.ts +322 -246
- package/src/models/operations/listagents.ts +2 -2
- 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/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 +174 -157
- package/src/models/operations/streamagent.ts +1739 -297
- package/src/models/operations/streamrunagent.ts +1742 -307
- package/src/models/operations/updateagent.ts +4 -4
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +6 -0
- package/src/sdk/responses.ts +27 -0
|
@@ -304,6 +304,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data =
|
|
|
304
304
|
error: DataError;
|
|
305
305
|
actionType: string;
|
|
306
306
|
toolExecutionContext: StreamAgentDataAgentsResponseToolExecutionContext;
|
|
307
|
+
responseId?: string | undefined;
|
|
307
308
|
};
|
|
308
309
|
export type Data15 = {
|
|
309
310
|
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Type;
|
|
@@ -362,6 +363,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data =
|
|
|
362
363
|
result?: any | undefined;
|
|
363
364
|
actionType: string;
|
|
364
365
|
toolExecutionContext: StreamAgentDataAgentsToolExecutionContext;
|
|
366
|
+
responseId?: string | undefined;
|
|
365
367
|
};
|
|
366
368
|
export type Data14 = {
|
|
367
369
|
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Type;
|
|
@@ -425,6 +427,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data =
|
|
|
425
427
|
[k: string]: any;
|
|
426
428
|
};
|
|
427
429
|
toolExecutionContext: StreamAgentDataToolExecutionContext;
|
|
430
|
+
responseId?: string | undefined;
|
|
428
431
|
};
|
|
429
432
|
export type Data13 = {
|
|
430
433
|
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Type;
|
|
@@ -438,11 +441,11 @@ export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody
|
|
|
438
441
|
readonly EventAgentsMessageCreated: "event.agents.message-created";
|
|
439
442
|
};
|
|
440
443
|
export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type>;
|
|
441
|
-
export declare const
|
|
444
|
+
export declare const StreamAgentDataAgentsResponse200Role: {
|
|
442
445
|
readonly User: "user";
|
|
443
446
|
readonly Tool: "tool";
|
|
444
447
|
};
|
|
445
|
-
export type
|
|
448
|
+
export type StreamAgentDataAgentsResponse200Role = ClosedEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
446
449
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind: {
|
|
447
450
|
readonly ToolResult: "tool_result";
|
|
448
451
|
};
|
|
@@ -450,7 +453,7 @@ export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Da
|
|
|
450
453
|
/**
|
|
451
454
|
* The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
|
|
452
455
|
*/
|
|
453
|
-
export type
|
|
456
|
+
export type StreamAgentPartsAgentsResponse200ToolResultPart = {
|
|
454
457
|
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind;
|
|
455
458
|
toolCallId: string;
|
|
456
459
|
result?: any | undefined;
|
|
@@ -465,7 +468,7 @@ export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Da
|
|
|
465
468
|
/**
|
|
466
469
|
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
467
470
|
*/
|
|
468
|
-
export type
|
|
471
|
+
export type StreamAgentPartsAgentsResponse200ToolCallPart = {
|
|
469
472
|
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind;
|
|
470
473
|
toolName: string;
|
|
471
474
|
toolCallId: string;
|
|
@@ -483,7 +486,7 @@ export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Da
|
|
|
483
486
|
/**
|
|
484
487
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
485
488
|
*/
|
|
486
|
-
export type
|
|
489
|
+
export type StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat = {
|
|
487
490
|
/**
|
|
488
491
|
* URL for the File content
|
|
489
492
|
*/
|
|
@@ -500,7 +503,7 @@ export type StreamAgentFileAgentsResponse200FileInURIFormat = {
|
|
|
500
503
|
/**
|
|
501
504
|
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
502
505
|
*/
|
|
503
|
-
export type
|
|
506
|
+
export type StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat = {
|
|
504
507
|
/**
|
|
505
508
|
* base64 encoded content of the file
|
|
506
509
|
*/
|
|
@@ -514,13 +517,13 @@ export type StreamAgentFileAgentsResponse200BinaryFormat = {
|
|
|
514
517
|
*/
|
|
515
518
|
name?: string | undefined;
|
|
516
519
|
};
|
|
517
|
-
export type
|
|
520
|
+
export type StreamAgentPartsAgentsResponse200File = StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat | StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat;
|
|
518
521
|
/**
|
|
519
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.
|
|
520
523
|
*/
|
|
521
|
-
export type
|
|
524
|
+
export type StreamAgentPartsAgentsResponse200FilePart = {
|
|
522
525
|
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind;
|
|
523
|
-
file:
|
|
526
|
+
file: StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat | StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat;
|
|
524
527
|
metadata?: {
|
|
525
528
|
[k: string]: any;
|
|
526
529
|
} | undefined;
|
|
@@ -532,7 +535,7 @@ export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Da
|
|
|
532
535
|
/**
|
|
533
536
|
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
534
537
|
*/
|
|
535
|
-
export type
|
|
538
|
+
export type StreamAgentPartsAgentsResponse200DataPart = {
|
|
536
539
|
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind;
|
|
537
540
|
data: {
|
|
538
541
|
[k: string]: any;
|
|
@@ -548,15 +551,15 @@ export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Ki
|
|
|
548
551
|
/**
|
|
549
552
|
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
550
553
|
*/
|
|
551
|
-
export type
|
|
554
|
+
export type StreamAgentPartsAgentsResponse200TextPart = {
|
|
552
555
|
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind;
|
|
553
556
|
text: string;
|
|
554
557
|
};
|
|
555
|
-
export type
|
|
558
|
+
export type StreamAgentDataAgentsResponse200Parts = StreamAgentPartsAgentsResponse200ToolCallPart | StreamAgentPartsAgentsResponse200TextPart | StreamAgentPartsAgentsResponse200DataPart | StreamAgentPartsAgentsResponse200FilePart | StreamAgentPartsAgentsResponse200ToolResultPart;
|
|
556
559
|
export type StreamAgentDataMessage = {
|
|
557
560
|
messageId?: string | undefined;
|
|
558
|
-
role:
|
|
559
|
-
parts: Array<
|
|
561
|
+
role: StreamAgentDataAgentsResponse200Role;
|
|
562
|
+
parts: Array<StreamAgentPartsAgentsResponse200ToolCallPart | StreamAgentPartsAgentsResponse200TextPart | StreamAgentPartsAgentsResponse200DataPart | StreamAgentPartsAgentsResponse200FilePart | StreamAgentPartsAgentsResponse200ToolResultPart>;
|
|
560
563
|
metadata?: {
|
|
561
564
|
[k: string]: any;
|
|
562
565
|
} | undefined;
|
|
@@ -714,6 +717,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData = {
|
|
|
714
717
|
[k: string]: any;
|
|
715
718
|
};
|
|
716
719
|
agentToolCallId: string;
|
|
720
|
+
responseId?: string | undefined;
|
|
717
721
|
};
|
|
718
722
|
export type Data6 = {
|
|
719
723
|
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBodyType;
|
|
@@ -730,6 +734,10 @@ export type StreamAgentDataAgentsResponse200TextEventStreamType = ClosedEnum<typ
|
|
|
730
734
|
export type StreamAgentDataAgentsResponse200TextEventStreamData = {
|
|
731
735
|
error: string;
|
|
732
736
|
code: number;
|
|
737
|
+
/**
|
|
738
|
+
* ID of the response tracking this execution
|
|
739
|
+
*/
|
|
740
|
+
responseId?: string | undefined;
|
|
733
741
|
};
|
|
734
742
|
export type Data5 = {
|
|
735
743
|
type: StreamAgentDataAgentsResponse200TextEventStreamType;
|
|
@@ -743,6 +751,143 @@ export declare const StreamAgentDataAgentsResponse200Type: {
|
|
|
743
751
|
readonly EventAgentsInactive: "event.agents.inactive";
|
|
744
752
|
};
|
|
745
753
|
export type StreamAgentDataAgentsResponse200Type = ClosedEnum<typeof StreamAgentDataAgentsResponse200Type>;
|
|
754
|
+
/**
|
|
755
|
+
* Extended A2A message role
|
|
756
|
+
*/
|
|
757
|
+
export declare const StreamAgentDataAgentsResponseRole: {
|
|
758
|
+
readonly User: "user";
|
|
759
|
+
readonly Agent: "agent";
|
|
760
|
+
readonly Tool: "tool";
|
|
761
|
+
readonly System: "system";
|
|
762
|
+
};
|
|
763
|
+
/**
|
|
764
|
+
* Extended A2A message role
|
|
765
|
+
*/
|
|
766
|
+
export type StreamAgentDataAgentsResponseRole = ClosedEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
767
|
+
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind: {
|
|
768
|
+
readonly ToolResult: "tool_result";
|
|
769
|
+
};
|
|
770
|
+
export type StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind = ClosedEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind>;
|
|
771
|
+
/**
|
|
772
|
+
* The result of a tool execution. Contains the tool call ID for correlation and the result data from the tool invocation.
|
|
773
|
+
*/
|
|
774
|
+
export type StreamAgentPartsAgentsResponseToolResultPart = {
|
|
775
|
+
kind: StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData4DataLastMessageFull5Kind;
|
|
776
|
+
toolCallId: string;
|
|
777
|
+
result?: any | undefined;
|
|
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;
|
|
877
|
+
/**
|
|
878
|
+
* Full last message in A2A format (for backwards compatibility)
|
|
879
|
+
*/
|
|
880
|
+
export type DataLastMessageFull = {
|
|
881
|
+
messageId?: string | undefined;
|
|
882
|
+
/**
|
|
883
|
+
* Extended A2A message role
|
|
884
|
+
*/
|
|
885
|
+
role: StreamAgentDataAgentsResponseRole;
|
|
886
|
+
parts: Array<StreamAgentPartsAgentsResponseToolCallPart | StreamAgentPartsAgentsResponseTextPart | StreamAgentPartsAgentsResponseDataPart | StreamAgentPartsAgentsResponseFilePart | StreamAgentPartsAgentsResponseToolResultPart>;
|
|
887
|
+
metadata?: {
|
|
888
|
+
[k: string]: any;
|
|
889
|
+
} | undefined;
|
|
890
|
+
};
|
|
746
891
|
/**
|
|
747
892
|
* The reason why the agent execution became inactive
|
|
748
893
|
*/
|
|
@@ -772,8 +917,47 @@ export type DataPendingToolCalls = {
|
|
|
772
917
|
type: StreamAgentDataAgentsResponse200TextEventStreamResponseBody4Type;
|
|
773
918
|
function: StreamAgentDataFunction;
|
|
774
919
|
};
|
|
920
|
+
export type StreamAgentDataAgentsPromptTokensDetails = {
|
|
921
|
+
cachedTokens?: number | null | undefined;
|
|
922
|
+
/**
|
|
923
|
+
* The number of audio input tokens consumed by the request.
|
|
924
|
+
*/
|
|
925
|
+
audioTokens?: number | null | undefined;
|
|
926
|
+
};
|
|
927
|
+
export type StreamAgentDataAgentsCompletionTokensDetails = {
|
|
928
|
+
reasoningTokens?: number | null | undefined;
|
|
929
|
+
acceptedPredictionTokens?: number | null | undefined;
|
|
930
|
+
rejectedPredictionTokens?: number | null | undefined;
|
|
931
|
+
/**
|
|
932
|
+
* The number of audio output tokens produced by the response.
|
|
933
|
+
*/
|
|
934
|
+
audioTokens?: number | null | undefined;
|
|
935
|
+
};
|
|
936
|
+
/**
|
|
937
|
+
* Token usage from the last agent message
|
|
938
|
+
*/
|
|
939
|
+
export type StreamAgentDataAgentsUsage = {
|
|
940
|
+
/**
|
|
941
|
+
* Number of tokens in the generated completion.
|
|
942
|
+
*/
|
|
943
|
+
completionTokens?: number | undefined;
|
|
944
|
+
/**
|
|
945
|
+
* Number of tokens in the prompt.
|
|
946
|
+
*/
|
|
947
|
+
promptTokens?: number | undefined;
|
|
948
|
+
/**
|
|
949
|
+
* Total number of tokens used in the request (prompt + completion).
|
|
950
|
+
*/
|
|
951
|
+
totalTokens?: number | undefined;
|
|
952
|
+
promptTokensDetails?: StreamAgentDataAgentsPromptTokensDetails | null | undefined;
|
|
953
|
+
completionTokensDetails?: StreamAgentDataAgentsCompletionTokensDetails | null | undefined;
|
|
954
|
+
};
|
|
775
955
|
export type StreamAgentDataAgentsResponse200Data = {
|
|
776
956
|
lastMessage: string;
|
|
957
|
+
/**
|
|
958
|
+
* Full last message in A2A format (for backwards compatibility)
|
|
959
|
+
*/
|
|
960
|
+
lastMessageFull?: DataLastMessageFull | undefined;
|
|
777
961
|
/**
|
|
778
962
|
* The reason why the agent execution became inactive
|
|
779
963
|
*/
|
|
@@ -782,6 +966,14 @@ export type StreamAgentDataAgentsResponse200Data = {
|
|
|
782
966
|
* Tool calls that are pending user response (for function_call finish reason)
|
|
783
967
|
*/
|
|
784
968
|
pendingToolCalls?: Array<DataPendingToolCalls> | undefined;
|
|
969
|
+
/**
|
|
970
|
+
* Token usage from the last agent message
|
|
971
|
+
*/
|
|
972
|
+
usage?: StreamAgentDataAgentsUsage | undefined;
|
|
973
|
+
/**
|
|
974
|
+
* ID of the response tracking this execution
|
|
975
|
+
*/
|
|
976
|
+
responseId?: string | undefined;
|
|
785
977
|
};
|
|
786
978
|
export type StreamAgentData4 = {
|
|
787
979
|
type: StreamAgentDataAgentsResponse200Type;
|
|
@@ -956,10 +1148,10 @@ export type StreamAgentDataToolCalls = {
|
|
|
956
1148
|
type?: StreamAgentDataAgentsResponse200TextEventStreamResponseBody3Type | undefined;
|
|
957
1149
|
function?: StreamAgentDataAgentsFunction | undefined;
|
|
958
1150
|
};
|
|
959
|
-
export declare const
|
|
1151
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamRole: {
|
|
960
1152
|
readonly Assistant: "assistant";
|
|
961
1153
|
};
|
|
962
|
-
export type
|
|
1154
|
+
export type StreamAgentDataAgentsResponse200TextEventStreamRole = ClosedEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamRole>;
|
|
963
1155
|
/**
|
|
964
1156
|
* If the audio output modality is requested, this object contains data about the audio response from the model.
|
|
965
1157
|
*/
|
|
@@ -976,7 +1168,7 @@ export type StreamAgentDataAgentsMessage = {
|
|
|
976
1168
|
content?: string | null | undefined;
|
|
977
1169
|
refusal?: string | null | undefined;
|
|
978
1170
|
toolCalls?: Array<StreamAgentDataToolCalls> | undefined;
|
|
979
|
-
role?:
|
|
1171
|
+
role?: StreamAgentDataAgentsResponse200TextEventStreamRole | undefined;
|
|
980
1172
|
/**
|
|
981
1173
|
* Internal thought process of the model
|
|
982
1174
|
*/
|
|
@@ -1089,6 +1281,41 @@ export type DataChoice = {
|
|
|
1089
1281
|
*/
|
|
1090
1282
|
logprobs?: DataLogprobs | null | undefined;
|
|
1091
1283
|
};
|
|
1284
|
+
export type StreamAgentDataPromptTokensDetails = {
|
|
1285
|
+
cachedTokens?: number | null | undefined;
|
|
1286
|
+
/**
|
|
1287
|
+
* The number of audio input tokens consumed by the request.
|
|
1288
|
+
*/
|
|
1289
|
+
audioTokens?: number | null | undefined;
|
|
1290
|
+
};
|
|
1291
|
+
export type StreamAgentDataCompletionTokensDetails = {
|
|
1292
|
+
reasoningTokens?: number | null | undefined;
|
|
1293
|
+
acceptedPredictionTokens?: number | null | undefined;
|
|
1294
|
+
rejectedPredictionTokens?: number | null | undefined;
|
|
1295
|
+
/**
|
|
1296
|
+
* The number of audio output tokens produced by the response.
|
|
1297
|
+
*/
|
|
1298
|
+
audioTokens?: number | null | undefined;
|
|
1299
|
+
};
|
|
1300
|
+
/**
|
|
1301
|
+
* Usage statistics for the completion request.
|
|
1302
|
+
*/
|
|
1303
|
+
export type StreamAgentDataUsage = {
|
|
1304
|
+
/**
|
|
1305
|
+
* Number of tokens in the generated completion.
|
|
1306
|
+
*/
|
|
1307
|
+
completionTokens?: number | undefined;
|
|
1308
|
+
/**
|
|
1309
|
+
* Number of tokens in the prompt.
|
|
1310
|
+
*/
|
|
1311
|
+
promptTokens?: number | undefined;
|
|
1312
|
+
/**
|
|
1313
|
+
* Total number of tokens used in the request (prompt + completion).
|
|
1314
|
+
*/
|
|
1315
|
+
totalTokens?: number | undefined;
|
|
1316
|
+
promptTokensDetails?: StreamAgentDataPromptTokensDetails | null | undefined;
|
|
1317
|
+
completionTokensDetails?: StreamAgentDataCompletionTokensDetails | null | undefined;
|
|
1318
|
+
};
|
|
1092
1319
|
export type StreamAgentDataAgentsResponseData = {
|
|
1093
1320
|
agentId: string;
|
|
1094
1321
|
messageDifference: {
|
|
@@ -1098,6 +1325,11 @@ export type StreamAgentDataAgentsResponseData = {
|
|
|
1098
1325
|
choiceIndex?: number | undefined;
|
|
1099
1326
|
iteration: number;
|
|
1100
1327
|
accumulatedExecutionTime: number;
|
|
1328
|
+
responseId?: string | undefined;
|
|
1329
|
+
/**
|
|
1330
|
+
* Usage statistics for the completion request.
|
|
1331
|
+
*/
|
|
1332
|
+
usage?: StreamAgentDataUsage | undefined;
|
|
1101
1333
|
};
|
|
1102
1334
|
export type StreamAgentData3 = {
|
|
1103
1335
|
type: StreamAgentDataAgentsResponseType;
|
|
@@ -1385,6 +1617,7 @@ export type StreamAgentDataAgentsData = {
|
|
|
1385
1617
|
toolExecutionId?: string | undefined;
|
|
1386
1618
|
isContinuation?: boolean | undefined;
|
|
1387
1619
|
stream?: boolean | undefined;
|
|
1620
|
+
responseId?: string | undefined;
|
|
1388
1621
|
};
|
|
1389
1622
|
export type StreamAgentData2 = {
|
|
1390
1623
|
type: StreamAgentDataAgentsType;
|
|
@@ -1723,6 +1956,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Ou
|
|
|
1723
1956
|
error: DataError$Outbound;
|
|
1724
1957
|
action_type: string;
|
|
1725
1958
|
tool_execution_context: StreamAgentDataAgentsResponseToolExecutionContext$Outbound;
|
|
1959
|
+
responseId?: string | undefined;
|
|
1726
1960
|
};
|
|
1727
1961
|
/** @internal */
|
|
1728
1962
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody15Data>;
|
|
@@ -1782,6 +2016,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Ou
|
|
|
1782
2016
|
result?: any | undefined;
|
|
1783
2017
|
action_type: string;
|
|
1784
2018
|
tool_execution_context: StreamAgentDataAgentsToolExecutionContext$Outbound;
|
|
2019
|
+
responseId?: string | undefined;
|
|
1785
2020
|
};
|
|
1786
2021
|
/** @internal */
|
|
1787
2022
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody14Data>;
|
|
@@ -1846,6 +2081,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Ou
|
|
|
1846
2081
|
[k: string]: any;
|
|
1847
2082
|
};
|
|
1848
2083
|
tool_execution_context: StreamAgentDataToolExecutionContext$Outbound;
|
|
2084
|
+
responseId?: string | undefined;
|
|
1849
2085
|
};
|
|
1850
2086
|
/** @internal */
|
|
1851
2087
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBody13Data>;
|
|
@@ -1868,17 +2104,17 @@ export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody
|
|
|
1868
2104
|
/** @internal */
|
|
1869
2105
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamResponseBody12Type>;
|
|
1870
2106
|
/** @internal */
|
|
1871
|
-
export declare const
|
|
2107
|
+
export declare const StreamAgentDataAgentsResponse200Role$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
1872
2108
|
/** @internal */
|
|
1873
|
-
export declare const
|
|
2109
|
+
export declare const StreamAgentDataAgentsResponse200Role$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Role>;
|
|
1874
2110
|
/** @internal */
|
|
1875
2111
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind>;
|
|
1876
2112
|
/** @internal */
|
|
1877
2113
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage5Kind>;
|
|
1878
2114
|
/** @internal */
|
|
1879
|
-
export declare const
|
|
2115
|
+
export declare const StreamAgentPartsAgentsResponse200ToolResultPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200ToolResultPart, z.ZodTypeDef, unknown>;
|
|
1880
2116
|
/** @internal */
|
|
1881
|
-
export type
|
|
2117
|
+
export type StreamAgentPartsAgentsResponse200ToolResultPart$Outbound = {
|
|
1882
2118
|
kind: string;
|
|
1883
2119
|
tool_call_id: string;
|
|
1884
2120
|
result?: any | undefined;
|
|
@@ -1887,17 +2123,17 @@ export type StreamAgentPartsAgentsResponseToolResultPart$Outbound = {
|
|
|
1887
2123
|
} | undefined;
|
|
1888
2124
|
};
|
|
1889
2125
|
/** @internal */
|
|
1890
|
-
export declare const
|
|
1891
|
-
export declare function
|
|
1892
|
-
export declare function
|
|
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>;
|
|
1893
2129
|
/** @internal */
|
|
1894
2130
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
1895
2131
|
/** @internal */
|
|
1896
2132
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessage4Kind>;
|
|
1897
2133
|
/** @internal */
|
|
1898
|
-
export declare const
|
|
2134
|
+
export declare const StreamAgentPartsAgentsResponse200ToolCallPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200ToolCallPart, z.ZodTypeDef, unknown>;
|
|
1899
2135
|
/** @internal */
|
|
1900
|
-
export type
|
|
2136
|
+
export type StreamAgentPartsAgentsResponse200ToolCallPart$Outbound = {
|
|
1901
2137
|
kind: string;
|
|
1902
2138
|
tool_name: string;
|
|
1903
2139
|
tool_call_id: string;
|
|
@@ -1909,67 +2145,67 @@ export type StreamAgentPartsAgentsResponseToolCallPart$Outbound = {
|
|
|
1909
2145
|
} | undefined;
|
|
1910
2146
|
};
|
|
1911
2147
|
/** @internal */
|
|
1912
|
-
export declare const
|
|
1913
|
-
export declare function
|
|
1914
|
-
export declare function
|
|
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>;
|
|
1915
2151
|
/** @internal */
|
|
1916
2152
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
1917
2153
|
/** @internal */
|
|
1918
2154
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataMessageKind>;
|
|
1919
2155
|
/** @internal */
|
|
1920
|
-
export declare const
|
|
2156
|
+
export declare const StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
1921
2157
|
/** @internal */
|
|
1922
|
-
export type
|
|
2158
|
+
export type StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound = {
|
|
1923
2159
|
uri: string;
|
|
1924
2160
|
mimeType?: string | undefined;
|
|
1925
2161
|
name?: string | undefined;
|
|
1926
2162
|
};
|
|
1927
2163
|
/** @internal */
|
|
1928
|
-
export declare const
|
|
1929
|
-
export declare function
|
|
1930
|
-
export declare function
|
|
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>;
|
|
1931
2167
|
/** @internal */
|
|
1932
|
-
export declare const
|
|
2168
|
+
export declare const StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$inboundSchema: z.ZodType<StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat, z.ZodTypeDef, unknown>;
|
|
1933
2169
|
/** @internal */
|
|
1934
|
-
export type
|
|
2170
|
+
export type StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound = {
|
|
1935
2171
|
bytes: string;
|
|
1936
2172
|
mimeType?: string | undefined;
|
|
1937
2173
|
name?: string | undefined;
|
|
1938
2174
|
};
|
|
1939
2175
|
/** @internal */
|
|
1940
|
-
export declare const
|
|
1941
|
-
export declare function
|
|
1942
|
-
export declare function
|
|
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>;
|
|
1943
2179
|
/** @internal */
|
|
1944
|
-
export declare const
|
|
2180
|
+
export declare const StreamAgentPartsAgentsResponse200File$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200File, z.ZodTypeDef, unknown>;
|
|
1945
2181
|
/** @internal */
|
|
1946
|
-
export type
|
|
2182
|
+
export type StreamAgentPartsAgentsResponse200File$Outbound = StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound | StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound;
|
|
1947
2183
|
/** @internal */
|
|
1948
|
-
export declare const
|
|
1949
|
-
export declare function
|
|
1950
|
-
export declare function
|
|
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>;
|
|
1951
2187
|
/** @internal */
|
|
1952
|
-
export declare const
|
|
2188
|
+
export declare const StreamAgentPartsAgentsResponse200FilePart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200FilePart, z.ZodTypeDef, unknown>;
|
|
1953
2189
|
/** @internal */
|
|
1954
|
-
export type
|
|
2190
|
+
export type StreamAgentPartsAgentsResponse200FilePart$Outbound = {
|
|
1955
2191
|
kind: string;
|
|
1956
|
-
file:
|
|
2192
|
+
file: StreamAgentFileAgentsResponse200TextEventStreamBinaryFormat$Outbound | StreamAgentFileAgentsResponse200TextEventStreamFileInURIFormat$Outbound;
|
|
1957
2193
|
metadata?: {
|
|
1958
2194
|
[k: string]: any;
|
|
1959
2195
|
} | undefined;
|
|
1960
2196
|
};
|
|
1961
2197
|
/** @internal */
|
|
1962
|
-
export declare const
|
|
1963
|
-
export declare function
|
|
1964
|
-
export declare function
|
|
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>;
|
|
1965
2201
|
/** @internal */
|
|
1966
2202
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
1967
2203
|
/** @internal */
|
|
1968
2204
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12DataKind>;
|
|
1969
2205
|
/** @internal */
|
|
1970
|
-
export declare const
|
|
2206
|
+
export declare const StreamAgentPartsAgentsResponse200DataPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200DataPart, z.ZodTypeDef, unknown>;
|
|
1971
2207
|
/** @internal */
|
|
1972
|
-
export type
|
|
2208
|
+
export type StreamAgentPartsAgentsResponse200DataPart$Outbound = {
|
|
1973
2209
|
kind: string;
|
|
1974
2210
|
data: {
|
|
1975
2211
|
[k: string]: any;
|
|
@@ -1979,39 +2215,39 @@ export type StreamAgentPartsAgentsResponseDataPart$Outbound = {
|
|
|
1979
2215
|
} | undefined;
|
|
1980
2216
|
};
|
|
1981
2217
|
/** @internal */
|
|
1982
|
-
export declare const
|
|
1983
|
-
export declare function
|
|
1984
|
-
export declare function
|
|
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>;
|
|
1985
2221
|
/** @internal */
|
|
1986
2222
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind$inboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
1987
2223
|
/** @internal */
|
|
1988
2224
|
export declare const StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind$outboundSchema: z.ZodNativeEnum<typeof StreamAgentPartsAgentsResponse200TextEventStreamResponseBodyData12Kind>;
|
|
1989
2225
|
/** @internal */
|
|
1990
|
-
export declare const
|
|
2226
|
+
export declare const StreamAgentPartsAgentsResponse200TextPart$inboundSchema: z.ZodType<StreamAgentPartsAgentsResponse200TextPart, z.ZodTypeDef, unknown>;
|
|
1991
2227
|
/** @internal */
|
|
1992
|
-
export type
|
|
2228
|
+
export type StreamAgentPartsAgentsResponse200TextPart$Outbound = {
|
|
1993
2229
|
kind: string;
|
|
1994
2230
|
text: string;
|
|
1995
2231
|
};
|
|
1996
2232
|
/** @internal */
|
|
1997
|
-
export declare const
|
|
1998
|
-
export declare function
|
|
1999
|
-
export declare function
|
|
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>;
|
|
2000
2236
|
/** @internal */
|
|
2001
|
-
export declare const
|
|
2237
|
+
export declare const StreamAgentDataAgentsResponse200Parts$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Parts, z.ZodTypeDef, unknown>;
|
|
2002
2238
|
/** @internal */
|
|
2003
|
-
export type
|
|
2239
|
+
export type StreamAgentDataAgentsResponse200Parts$Outbound = StreamAgentPartsAgentsResponse200ToolCallPart$Outbound | StreamAgentPartsAgentsResponse200TextPart$Outbound | StreamAgentPartsAgentsResponse200DataPart$Outbound | StreamAgentPartsAgentsResponse200FilePart$Outbound | StreamAgentPartsAgentsResponse200ToolResultPart$Outbound;
|
|
2004
2240
|
/** @internal */
|
|
2005
|
-
export declare const
|
|
2006
|
-
export declare function
|
|
2007
|
-
export declare function
|
|
2241
|
+
export declare const StreamAgentDataAgentsResponse200Parts$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Parts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200Parts>;
|
|
2242
|
+
export declare function streamAgentDataAgentsResponse200PartsToJSON(streamAgentDataAgentsResponse200Parts: StreamAgentDataAgentsResponse200Parts): string;
|
|
2243
|
+
export declare function streamAgentDataAgentsResponse200PartsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponse200Parts, SDKValidationError>;
|
|
2008
2244
|
/** @internal */
|
|
2009
2245
|
export declare const StreamAgentDataMessage$inboundSchema: z.ZodType<StreamAgentDataMessage, z.ZodTypeDef, unknown>;
|
|
2010
2246
|
/** @internal */
|
|
2011
2247
|
export type StreamAgentDataMessage$Outbound = {
|
|
2012
2248
|
messageId?: string | undefined;
|
|
2013
2249
|
role: string;
|
|
2014
|
-
parts: Array<
|
|
2250
|
+
parts: Array<StreamAgentPartsAgentsResponse200ToolCallPart$Outbound | StreamAgentPartsAgentsResponse200TextPart$Outbound | StreamAgentPartsAgentsResponse200DataPart$Outbound | StreamAgentPartsAgentsResponse200FilePart$Outbound | StreamAgentPartsAgentsResponse200ToolResultPart$Outbound>;
|
|
2015
2251
|
metadata?: {
|
|
2016
2252
|
[k: string]: any;
|
|
2017
2253
|
} | undefined;
|
|
@@ -2231,6 +2467,7 @@ export type StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$Outb
|
|
|
2231
2467
|
[k: string]: any;
|
|
2232
2468
|
};
|
|
2233
2469
|
agent_tool_call_id: string;
|
|
2470
|
+
responseId?: string | undefined;
|
|
2234
2471
|
};
|
|
2235
2472
|
/** @internal */
|
|
2236
2473
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamResponseBodyData>;
|
|
@@ -2258,6 +2495,7 @@ export declare const StreamAgentDataAgentsResponse200TextEventStreamData$inbound
|
|
|
2258
2495
|
export type StreamAgentDataAgentsResponse200TextEventStreamData$Outbound = {
|
|
2259
2496
|
error: string;
|
|
2260
2497
|
code: number;
|
|
2498
|
+
responseId?: string | undefined;
|
|
2261
2499
|
};
|
|
2262
2500
|
/** @internal */
|
|
2263
2501
|
export declare const StreamAgentDataAgentsResponse200TextEventStreamData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200TextEventStreamData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200TextEventStreamData>;
|
|
@@ -2280,6 +2518,159 @@ export declare const StreamAgentDataAgentsResponse200Type$inboundSchema: z.ZodNa
|
|
|
2280
2518
|
/** @internal */
|
|
2281
2519
|
export declare const StreamAgentDataAgentsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200Type>;
|
|
2282
2520
|
/** @internal */
|
|
2521
|
+
export declare const StreamAgentDataAgentsResponseRole$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
2522
|
+
/** @internal */
|
|
2523
|
+
export declare const StreamAgentDataAgentsResponseRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponseRole>;
|
|
2524
|
+
/** @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
|
+
export declare const StreamAgentDataAgentsResponseParts$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseParts, z.ZodTypeDef, unknown>;
|
|
2652
|
+
/** @internal */
|
|
2653
|
+
export type StreamAgentDataAgentsResponseParts$Outbound = StreamAgentPartsAgentsResponseToolCallPart$Outbound | StreamAgentPartsAgentsResponseTextPart$Outbound | StreamAgentPartsAgentsResponseDataPart$Outbound | StreamAgentPartsAgentsResponseFilePart$Outbound | StreamAgentPartsAgentsResponseToolResultPart$Outbound;
|
|
2654
|
+
/** @internal */
|
|
2655
|
+
export declare const StreamAgentDataAgentsResponseParts$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseParts$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseParts>;
|
|
2656
|
+
export declare function streamAgentDataAgentsResponsePartsToJSON(streamAgentDataAgentsResponseParts: StreamAgentDataAgentsResponseParts): string;
|
|
2657
|
+
export declare function streamAgentDataAgentsResponsePartsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsResponseParts, SDKValidationError>;
|
|
2658
|
+
/** @internal */
|
|
2659
|
+
export declare const DataLastMessageFull$inboundSchema: z.ZodType<DataLastMessageFull, z.ZodTypeDef, unknown>;
|
|
2660
|
+
/** @internal */
|
|
2661
|
+
export type DataLastMessageFull$Outbound = {
|
|
2662
|
+
messageId?: string | undefined;
|
|
2663
|
+
role: string;
|
|
2664
|
+
parts: Array<StreamAgentPartsAgentsResponseToolCallPart$Outbound | StreamAgentPartsAgentsResponseTextPart$Outbound | StreamAgentPartsAgentsResponseDataPart$Outbound | StreamAgentPartsAgentsResponseFilePart$Outbound | StreamAgentPartsAgentsResponseToolResultPart$Outbound>;
|
|
2665
|
+
metadata?: {
|
|
2666
|
+
[k: string]: any;
|
|
2667
|
+
} | undefined;
|
|
2668
|
+
};
|
|
2669
|
+
/** @internal */
|
|
2670
|
+
export declare const DataLastMessageFull$outboundSchema: z.ZodType<DataLastMessageFull$Outbound, z.ZodTypeDef, DataLastMessageFull>;
|
|
2671
|
+
export declare function dataLastMessageFullToJSON(dataLastMessageFull: DataLastMessageFull): string;
|
|
2672
|
+
export declare function dataLastMessageFullFromJSON(jsonString: string): SafeParseResult<DataLastMessageFull, SDKValidationError>;
|
|
2673
|
+
/** @internal */
|
|
2283
2674
|
export declare const DataFinishReason$inboundSchema: z.ZodNativeEnum<typeof DataFinishReason>;
|
|
2284
2675
|
/** @internal */
|
|
2285
2676
|
export declare const DataFinishReason$outboundSchema: z.ZodNativeEnum<typeof DataFinishReason>;
|
|
@@ -2311,12 +2702,53 @@ export declare const DataPendingToolCalls$outboundSchema: z.ZodType<DataPendingT
|
|
|
2311
2702
|
export declare function dataPendingToolCallsToJSON(dataPendingToolCalls: DataPendingToolCalls): string;
|
|
2312
2703
|
export declare function dataPendingToolCallsFromJSON(jsonString: string): SafeParseResult<DataPendingToolCalls, SDKValidationError>;
|
|
2313
2704
|
/** @internal */
|
|
2705
|
+
export declare const StreamAgentDataAgentsPromptTokensDetails$inboundSchema: z.ZodType<StreamAgentDataAgentsPromptTokensDetails, z.ZodTypeDef, unknown>;
|
|
2706
|
+
/** @internal */
|
|
2707
|
+
export type StreamAgentDataAgentsPromptTokensDetails$Outbound = {
|
|
2708
|
+
cached_tokens?: number | null | undefined;
|
|
2709
|
+
audio_tokens?: number | null | undefined;
|
|
2710
|
+
};
|
|
2711
|
+
/** @internal */
|
|
2712
|
+
export declare const StreamAgentDataAgentsPromptTokensDetails$outboundSchema: z.ZodType<StreamAgentDataAgentsPromptTokensDetails$Outbound, z.ZodTypeDef, StreamAgentDataAgentsPromptTokensDetails>;
|
|
2713
|
+
export declare function streamAgentDataAgentsPromptTokensDetailsToJSON(streamAgentDataAgentsPromptTokensDetails: StreamAgentDataAgentsPromptTokensDetails): string;
|
|
2714
|
+
export declare function streamAgentDataAgentsPromptTokensDetailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsPromptTokensDetails, SDKValidationError>;
|
|
2715
|
+
/** @internal */
|
|
2716
|
+
export declare const StreamAgentDataAgentsCompletionTokensDetails$inboundSchema: z.ZodType<StreamAgentDataAgentsCompletionTokensDetails, z.ZodTypeDef, unknown>;
|
|
2717
|
+
/** @internal */
|
|
2718
|
+
export type StreamAgentDataAgentsCompletionTokensDetails$Outbound = {
|
|
2719
|
+
reasoning_tokens?: number | null | undefined;
|
|
2720
|
+
accepted_prediction_tokens?: number | null | undefined;
|
|
2721
|
+
rejected_prediction_tokens?: number | null | undefined;
|
|
2722
|
+
audio_tokens?: number | null | undefined;
|
|
2723
|
+
};
|
|
2724
|
+
/** @internal */
|
|
2725
|
+
export declare const StreamAgentDataAgentsCompletionTokensDetails$outboundSchema: z.ZodType<StreamAgentDataAgentsCompletionTokensDetails$Outbound, z.ZodTypeDef, StreamAgentDataAgentsCompletionTokensDetails>;
|
|
2726
|
+
export declare function streamAgentDataAgentsCompletionTokensDetailsToJSON(streamAgentDataAgentsCompletionTokensDetails: StreamAgentDataAgentsCompletionTokensDetails): string;
|
|
2727
|
+
export declare function streamAgentDataAgentsCompletionTokensDetailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsCompletionTokensDetails, SDKValidationError>;
|
|
2728
|
+
/** @internal */
|
|
2729
|
+
export declare const StreamAgentDataAgentsUsage$inboundSchema: z.ZodType<StreamAgentDataAgentsUsage, z.ZodTypeDef, unknown>;
|
|
2730
|
+
/** @internal */
|
|
2731
|
+
export type StreamAgentDataAgentsUsage$Outbound = {
|
|
2732
|
+
completion_tokens?: number | undefined;
|
|
2733
|
+
prompt_tokens?: number | undefined;
|
|
2734
|
+
total_tokens?: number | undefined;
|
|
2735
|
+
prompt_tokens_details?: StreamAgentDataAgentsPromptTokensDetails$Outbound | null | undefined;
|
|
2736
|
+
completion_tokens_details?: StreamAgentDataAgentsCompletionTokensDetails$Outbound | null | undefined;
|
|
2737
|
+
};
|
|
2738
|
+
/** @internal */
|
|
2739
|
+
export declare const StreamAgentDataAgentsUsage$outboundSchema: z.ZodType<StreamAgentDataAgentsUsage$Outbound, z.ZodTypeDef, StreamAgentDataAgentsUsage>;
|
|
2740
|
+
export declare function streamAgentDataAgentsUsageToJSON(streamAgentDataAgentsUsage: StreamAgentDataAgentsUsage): string;
|
|
2741
|
+
export declare function streamAgentDataAgentsUsageFromJSON(jsonString: string): SafeParseResult<StreamAgentDataAgentsUsage, SDKValidationError>;
|
|
2742
|
+
/** @internal */
|
|
2314
2743
|
export declare const StreamAgentDataAgentsResponse200Data$inboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Data, z.ZodTypeDef, unknown>;
|
|
2315
2744
|
/** @internal */
|
|
2316
2745
|
export type StreamAgentDataAgentsResponse200Data$Outbound = {
|
|
2317
2746
|
last_message: string;
|
|
2747
|
+
last_message_full?: DataLastMessageFull$Outbound | undefined;
|
|
2318
2748
|
finish_reason: string;
|
|
2319
2749
|
pending_tool_calls?: Array<DataPendingToolCalls$Outbound> | undefined;
|
|
2750
|
+
usage?: StreamAgentDataAgentsUsage$Outbound | undefined;
|
|
2751
|
+
responseId?: string | undefined;
|
|
2320
2752
|
};
|
|
2321
2753
|
/** @internal */
|
|
2322
2754
|
export declare const StreamAgentDataAgentsResponse200Data$outboundSchema: z.ZodType<StreamAgentDataAgentsResponse200Data$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponse200Data>;
|
|
@@ -2526,9 +2958,9 @@ export declare const StreamAgentDataToolCalls$outboundSchema: z.ZodType<StreamAg
|
|
|
2526
2958
|
export declare function streamAgentDataToolCallsToJSON(streamAgentDataToolCalls: StreamAgentDataToolCalls): string;
|
|
2527
2959
|
export declare function streamAgentDataToolCallsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataToolCalls, SDKValidationError>;
|
|
2528
2960
|
/** @internal */
|
|
2529
|
-
export declare const
|
|
2961
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamRole$inboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamRole>;
|
|
2530
2962
|
/** @internal */
|
|
2531
|
-
export declare const
|
|
2963
|
+
export declare const StreamAgentDataAgentsResponse200TextEventStreamRole$outboundSchema: z.ZodNativeEnum<typeof StreamAgentDataAgentsResponse200TextEventStreamRole>;
|
|
2532
2964
|
/** @internal */
|
|
2533
2965
|
export declare const StreamAgentDataAudio$inboundSchema: z.ZodType<StreamAgentDataAudio, z.ZodTypeDef, unknown>;
|
|
2534
2966
|
/** @internal */
|
|
@@ -2634,6 +3066,44 @@ export declare const DataChoice$outboundSchema: z.ZodType<DataChoice$Outbound, z
|
|
|
2634
3066
|
export declare function dataChoiceToJSON(dataChoice: DataChoice): string;
|
|
2635
3067
|
export declare function dataChoiceFromJSON(jsonString: string): SafeParseResult<DataChoice, SDKValidationError>;
|
|
2636
3068
|
/** @internal */
|
|
3069
|
+
export declare const StreamAgentDataPromptTokensDetails$inboundSchema: z.ZodType<StreamAgentDataPromptTokensDetails, z.ZodTypeDef, unknown>;
|
|
3070
|
+
/** @internal */
|
|
3071
|
+
export type StreamAgentDataPromptTokensDetails$Outbound = {
|
|
3072
|
+
cached_tokens?: number | null | undefined;
|
|
3073
|
+
audio_tokens?: number | null | undefined;
|
|
3074
|
+
};
|
|
3075
|
+
/** @internal */
|
|
3076
|
+
export declare const StreamAgentDataPromptTokensDetails$outboundSchema: z.ZodType<StreamAgentDataPromptTokensDetails$Outbound, z.ZodTypeDef, StreamAgentDataPromptTokensDetails>;
|
|
3077
|
+
export declare function streamAgentDataPromptTokensDetailsToJSON(streamAgentDataPromptTokensDetails: StreamAgentDataPromptTokensDetails): string;
|
|
3078
|
+
export declare function streamAgentDataPromptTokensDetailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataPromptTokensDetails, SDKValidationError>;
|
|
3079
|
+
/** @internal */
|
|
3080
|
+
export declare const StreamAgentDataCompletionTokensDetails$inboundSchema: z.ZodType<StreamAgentDataCompletionTokensDetails, z.ZodTypeDef, unknown>;
|
|
3081
|
+
/** @internal */
|
|
3082
|
+
export type StreamAgentDataCompletionTokensDetails$Outbound = {
|
|
3083
|
+
reasoning_tokens?: number | null | undefined;
|
|
3084
|
+
accepted_prediction_tokens?: number | null | undefined;
|
|
3085
|
+
rejected_prediction_tokens?: number | null | undefined;
|
|
3086
|
+
audio_tokens?: number | null | undefined;
|
|
3087
|
+
};
|
|
3088
|
+
/** @internal */
|
|
3089
|
+
export declare const StreamAgentDataCompletionTokensDetails$outboundSchema: z.ZodType<StreamAgentDataCompletionTokensDetails$Outbound, z.ZodTypeDef, StreamAgentDataCompletionTokensDetails>;
|
|
3090
|
+
export declare function streamAgentDataCompletionTokensDetailsToJSON(streamAgentDataCompletionTokensDetails: StreamAgentDataCompletionTokensDetails): string;
|
|
3091
|
+
export declare function streamAgentDataCompletionTokensDetailsFromJSON(jsonString: string): SafeParseResult<StreamAgentDataCompletionTokensDetails, SDKValidationError>;
|
|
3092
|
+
/** @internal */
|
|
3093
|
+
export declare const StreamAgentDataUsage$inboundSchema: z.ZodType<StreamAgentDataUsage, z.ZodTypeDef, unknown>;
|
|
3094
|
+
/** @internal */
|
|
3095
|
+
export type StreamAgentDataUsage$Outbound = {
|
|
3096
|
+
completion_tokens?: number | undefined;
|
|
3097
|
+
prompt_tokens?: number | undefined;
|
|
3098
|
+
total_tokens?: number | undefined;
|
|
3099
|
+
prompt_tokens_details?: StreamAgentDataPromptTokensDetails$Outbound | null | undefined;
|
|
3100
|
+
completion_tokens_details?: StreamAgentDataCompletionTokensDetails$Outbound | null | undefined;
|
|
3101
|
+
};
|
|
3102
|
+
/** @internal */
|
|
3103
|
+
export declare const StreamAgentDataUsage$outboundSchema: z.ZodType<StreamAgentDataUsage$Outbound, z.ZodTypeDef, StreamAgentDataUsage>;
|
|
3104
|
+
export declare function streamAgentDataUsageToJSON(streamAgentDataUsage: StreamAgentDataUsage): string;
|
|
3105
|
+
export declare function streamAgentDataUsageFromJSON(jsonString: string): SafeParseResult<StreamAgentDataUsage, SDKValidationError>;
|
|
3106
|
+
/** @internal */
|
|
2637
3107
|
export declare const StreamAgentDataAgentsResponseData$inboundSchema: z.ZodType<StreamAgentDataAgentsResponseData, z.ZodTypeDef, unknown>;
|
|
2638
3108
|
/** @internal */
|
|
2639
3109
|
export type StreamAgentDataAgentsResponseData$Outbound = {
|
|
@@ -2645,6 +3115,8 @@ export type StreamAgentDataAgentsResponseData$Outbound = {
|
|
|
2645
3115
|
choiceIndex?: number | undefined;
|
|
2646
3116
|
iteration: number;
|
|
2647
3117
|
accumulated_execution_time: number;
|
|
3118
|
+
responseId?: string | undefined;
|
|
3119
|
+
usage?: StreamAgentDataUsage$Outbound | undefined;
|
|
2648
3120
|
};
|
|
2649
3121
|
/** @internal */
|
|
2650
3122
|
export declare const StreamAgentDataAgentsResponseData$outboundSchema: z.ZodType<StreamAgentDataAgentsResponseData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsResponseData>;
|
|
@@ -2918,6 +3390,7 @@ export type StreamAgentDataAgentsData$Outbound = {
|
|
|
2918
3390
|
tool_execution_id?: string | undefined;
|
|
2919
3391
|
is_continuation?: boolean | undefined;
|
|
2920
3392
|
stream?: boolean | undefined;
|
|
3393
|
+
responseId?: string | undefined;
|
|
2921
3394
|
};
|
|
2922
3395
|
/** @internal */
|
|
2923
3396
|
export declare const StreamAgentDataAgentsData$outboundSchema: z.ZodType<StreamAgentDataAgentsData$Outbound, z.ZodTypeDef, StreamAgentDataAgentsData>;
|