@orq-ai/node 4.1.0-rc.3 → 4.1.0-rc.5
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 +34865 -37649
- package/bin/mcp-server.js.map +77 -55
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/actionreviewedstreamingevent.d.ts +76 -0
- package/models/components/actionreviewedstreamingevent.d.ts.map +1 -0
- package/models/components/actionreviewedstreamingevent.js +127 -0
- package/models/components/actionreviewedstreamingevent.js.map +1 -0
- package/models/components/actionreviewrequestedstreamingevent.d.ts +135 -0
- package/models/components/actionreviewrequestedstreamingevent.d.ts.map +1 -0
- package/models/components/actionreviewrequestedstreamingevent.js +180 -0
- package/models/components/actionreviewrequestedstreamingevent.js.map +1 -0
- package/models/components/agenterroredstreamingevent.d.ts +58 -0
- package/models/components/agenterroredstreamingevent.d.ts.map +1 -0
- package/models/components/agenterroredstreamingevent.js +91 -0
- package/models/components/agenterroredstreamingevent.js.map +1 -0
- package/models/components/agentexecutionstartedstreamingevent.d.ts +62 -0
- package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -0
- package/models/components/agentexecutionstartedstreamingevent.js +103 -0
- package/models/components/agentexecutionstartedstreamingevent.js.map +1 -0
- package/models/components/agenthandedoffstreamingevent.d.ts +51 -0
- package/models/components/agenthandedoffstreamingevent.d.ts.map +1 -0
- package/models/components/agenthandedoffstreamingevent.js +96 -0
- package/models/components/agenthandedoffstreamingevent.js.map +1 -0
- package/models/components/agentinactivestreamingevent.d.ts +309 -0
- package/models/components/agentinactivestreamingevent.d.ts.map +1 -0
- package/models/components/agentinactivestreamingevent.js +385 -0
- package/models/components/agentinactivestreamingevent.js.map +1 -0
- package/models/components/agentmessagecreatedstreamingevent.d.ts +141 -0
- package/models/components/agentmessagecreatedstreamingevent.d.ts.map +1 -0
- package/models/components/agentmessagecreatedstreamingevent.js +190 -0
- package/models/components/agentmessagecreatedstreamingevent.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +382 -0
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -0
- package/models/components/agentstartedstreamingevent.js +441 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -0
- package/models/components/agentthoughtstreamingevent.d.ts +542 -0
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -0
- package/models/components/agentthoughtstreamingevent.js +626 -0
- package/models/components/agentthoughtstreamingevent.js.map +1 -0
- 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/errorstreamingevent.d.ts +51 -0
- package/models/components/errorstreamingevent.d.ts.map +1 -0
- package/models/components/errorstreamingevent.js +87 -0
- package/models/components/errorstreamingevent.js.map +1 -0
- package/models/components/executionnamedstreamingevent.d.ts +51 -0
- package/models/components/executionnamedstreamingevent.d.ts.map +1 -0
- package/models/components/executionnamedstreamingevent.js +96 -0
- package/models/components/executionnamedstreamingevent.js.map +1 -0
- package/models/components/executionreviewedstreamingevent.d.ts +45 -0
- package/models/components/executionreviewedstreamingevent.d.ts.map +1 -0
- package/models/components/executionreviewedstreamingevent.js +81 -0
- package/models/components/executionreviewedstreamingevent.js.map +1 -0
- package/models/components/executionreviewrequiredstreamingevent.d.ts +45 -0
- package/models/components/executionreviewrequiredstreamingevent.d.ts.map +1 -0
- package/models/components/executionreviewrequiredstreamingevent.js +82 -0
- package/models/components/executionreviewrequiredstreamingevent.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 +22 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +22 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +21 -21
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +27 -28
- 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/timeoutstreamingevent.d.ts +49 -0
- package/models/components/timeoutstreamingevent.d.ts.map +1 -0
- package/models/components/timeoutstreamingevent.js +85 -0
- package/models/components/timeoutstreamingevent.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/toolexecutionfailedstreamingevent.d.ts +144 -0
- package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -0
- package/models/components/toolexecutionfailedstreamingevent.js +223 -0
- package/models/components/toolexecutionfailedstreamingevent.js.map +1 -0
- package/models/components/toolexecutionfinishedstreamingevent.d.ts +129 -0
- package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -0
- package/models/components/toolexecutionfinishedstreamingevent.js +205 -0
- package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts +139 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -0
- package/models/components/toolexecutionstartedstreamingevent.js +217 -0
- package/models/components/toolexecutionstartedstreamingevent.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 +56 -165
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +87 -170
- 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.d.ts +80 -145
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +190 -266
- package/models/operations/createeval.js.map +1 -1
- 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.d.ts +14 -79
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +49 -132
- package/models/operations/getevals.js.map +1 -1
- 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 -416
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +80 -429
- 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/listknowledgebases.d.ts +16 -16
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +27 -25
- package/models/operations/listknowledgebases.js.map +1 -1
- 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 +49 -402
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +70 -418
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +238 -3279
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +158 -3602
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +888 -3929
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +165 -3605
- 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.d.ts +14 -79
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +51 -134
- package/models/operations/updateeval.js.map +1 -1
- 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 +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/actionreviewedstreamingevent.ts +189 -0
- package/src/models/components/actionreviewrequestedstreamingevent.ts +326 -0
- package/src/models/components/agenterroredstreamingevent.ts +142 -0
- package/src/models/components/agentexecutionstartedstreamingevent.ts +145 -0
- package/src/models/components/agenthandedoffstreamingevent.ts +142 -0
- package/src/models/components/agentinactivestreamingevent.ts +857 -0
- package/src/models/components/agentmessagecreatedstreamingevent.ts +396 -0
- package/src/models/components/agentstartedstreamingevent.ts +909 -0
- package/src/models/components/agentthoughtstreamingevent.ts +1419 -0
- package/src/models/components/datapart.ts +71 -0
- package/src/models/components/errorstreamingevent.ts +129 -0
- package/src/models/components/executionnamedstreamingevent.ts +142 -0
- package/src/models/components/executionreviewedstreamingevent.ts +122 -0
- package/src/models/components/executionreviewrequiredstreamingevent.ts +130 -0
- package/src/models/components/filepart.ts +231 -0
- package/src/models/components/index.ts +22 -0
- package/src/models/components/invokedeploymentrequest.ts +66 -52
- package/src/models/components/textpart.ts +68 -0
- package/src/models/components/timeoutstreamingevent.ts +125 -0
- package/src/models/components/toolcallpart.ts +92 -0
- package/src/models/components/toolexecutionfailedstreamingevent.ts +406 -0
- package/src/models/components/toolexecutionfinishedstreamingevent.ts +373 -0
- package/src/models/components/toolexecutionstartedstreamingevent.ts +350 -0
- package/src/models/components/toolresultpart.ts +86 -0
- package/src/models/operations/createagentresponserequest.ts +184 -392
- 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 +318 -615
- 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 +52 -287
- package/src/models/operations/getoneprompt.ts +9 -11
- package/src/models/operations/getpromptversion.ts +9 -11
- package/src/models/operations/invokeagent.ts +180 -1041
- 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/listknowledgebases.ts +82 -102
- 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 +238 -1140
- package/src/models/operations/streamagent.ts +777 -9305
- package/src/models/operations/streamrunagent.ts +3839 -12309
- 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 +52 -287
- 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
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
@@ -635,85 +636,10 @@ export type RunAgentRoleUserMessage = ClosedEnum<typeof RunAgentRoleUserMessage>
|
|
|
635
636
|
* Message role (user or tool for continuing executions)
|
|
636
637
|
*/
|
|
637
638
|
export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
638
|
-
export declare const RunAgentPublicMessagePartAgentsRequestKind: {
|
|
639
|
-
readonly ToolResult: "tool_result";
|
|
640
|
-
};
|
|
641
|
-
export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<typeof RunAgentPublicMessagePartAgentsRequestKind>;
|
|
642
|
-
/**
|
|
643
|
-
* 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.
|
|
644
|
-
*/
|
|
645
|
-
export type RunAgentPublicMessagePartToolResultPart = {
|
|
646
|
-
kind: RunAgentPublicMessagePartAgentsRequestKind;
|
|
647
|
-
toolCallId: string;
|
|
648
|
-
result?: any | undefined;
|
|
649
|
-
metadata?: {
|
|
650
|
-
[k: string]: any;
|
|
651
|
-
} | undefined;
|
|
652
|
-
};
|
|
653
|
-
export declare const RunAgentPublicMessagePartAgentsKind: {
|
|
654
|
-
readonly File: "file";
|
|
655
|
-
};
|
|
656
|
-
export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
657
|
-
/**
|
|
658
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
659
|
-
*/
|
|
660
|
-
export type RunAgentFileFileInURIFormat = {
|
|
661
|
-
/**
|
|
662
|
-
* URL for the File content
|
|
663
|
-
*/
|
|
664
|
-
uri: string;
|
|
665
|
-
/**
|
|
666
|
-
* Optional mimeType for the file
|
|
667
|
-
*/
|
|
668
|
-
mimeType?: string | undefined;
|
|
669
|
-
/**
|
|
670
|
-
* Optional name for the file
|
|
671
|
-
*/
|
|
672
|
-
name?: string | undefined;
|
|
673
|
-
};
|
|
674
|
-
/**
|
|
675
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
676
|
-
*/
|
|
677
|
-
export type RunAgentFileBinaryFormat = {
|
|
678
|
-
/**
|
|
679
|
-
* base64 encoded content of the file
|
|
680
|
-
*/
|
|
681
|
-
bytes: string;
|
|
682
|
-
/**
|
|
683
|
-
* Optional mimeType for the file
|
|
684
|
-
*/
|
|
685
|
-
mimeType?: string | undefined;
|
|
686
|
-
/**
|
|
687
|
-
* Optional name for the file
|
|
688
|
-
*/
|
|
689
|
-
name?: string | undefined;
|
|
690
|
-
};
|
|
691
|
-
export type RunAgentPublicMessagePartFile = RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
|
|
692
|
-
/**
|
|
693
|
-
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
694
|
-
*/
|
|
695
|
-
export type RunAgentPublicMessagePartFilePart = {
|
|
696
|
-
kind: RunAgentPublicMessagePartAgentsKind;
|
|
697
|
-
file: RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
|
|
698
|
-
metadata?: {
|
|
699
|
-
[k: string]: any;
|
|
700
|
-
} | undefined;
|
|
701
|
-
};
|
|
702
|
-
export declare const RunAgentPublicMessagePartKind: {
|
|
703
|
-
readonly Text: "text";
|
|
704
|
-
};
|
|
705
|
-
export type RunAgentPublicMessagePartKind = ClosedEnum<typeof RunAgentPublicMessagePartKind>;
|
|
706
|
-
/**
|
|
707
|
-
* Text content part. Use this to send text messages to the agent.
|
|
708
|
-
*/
|
|
709
|
-
export type RunAgentPublicMessagePartTextPart = {
|
|
710
|
-
kind: RunAgentPublicMessagePartKind;
|
|
711
|
-
text: string;
|
|
712
|
-
};
|
|
713
639
|
/**
|
|
714
640
|
* 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.
|
|
715
641
|
*/
|
|
716
|
-
export type RunAgentPublicMessagePart =
|
|
642
|
+
export type RunAgentPublicMessagePart = components.TextPart | components.FilePart | components.ToolResultPart;
|
|
717
643
|
/**
|
|
718
644
|
* The A2A format message containing the task for the agent to perform.
|
|
719
645
|
*/
|
|
@@ -729,7 +655,7 @@ export type RunAgentA2AMessage = {
|
|
|
729
655
|
/**
|
|
730
656
|
* A2A message parts (text, file, or tool_result only)
|
|
731
657
|
*/
|
|
732
|
-
parts: Array<
|
|
658
|
+
parts: Array<components.TextPart | components.FilePart | components.ToolResultPart>;
|
|
733
659
|
};
|
|
734
660
|
/**
|
|
735
661
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
@@ -1498,116 +1424,17 @@ export declare const RunAgentExtendedMessageRole: {
|
|
|
1498
1424
|
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
1499
1425
|
*/
|
|
1500
1426
|
export type RunAgentExtendedMessageRole = ClosedEnum<typeof RunAgentExtendedMessageRole>;
|
|
1501
|
-
export
|
|
1502
|
-
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
metadata?: {
|
|
1513
|
-
[k: string]: any;
|
|
1514
|
-
} | undefined;
|
|
1515
|
-
};
|
|
1516
|
-
export declare const RunAgentPartsAgentsResponse200Kind: {
|
|
1517
|
-
readonly ToolCall: "tool_call";
|
|
1518
|
-
};
|
|
1519
|
-
export type RunAgentPartsAgentsResponse200Kind = ClosedEnum<typeof RunAgentPartsAgentsResponse200Kind>;
|
|
1520
|
-
/**
|
|
1521
|
-
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
1522
|
-
*/
|
|
1523
|
-
export type PartsToolCallPart = {
|
|
1524
|
-
kind: RunAgentPartsAgentsResponse200Kind;
|
|
1525
|
-
toolName: string;
|
|
1526
|
-
toolCallId: string;
|
|
1527
|
-
arguments: {
|
|
1528
|
-
[k: string]: any;
|
|
1529
|
-
};
|
|
1530
|
-
metadata?: {
|
|
1531
|
-
[k: string]: any;
|
|
1532
|
-
} | undefined;
|
|
1533
|
-
};
|
|
1534
|
-
export declare const RunAgentPartsAgentsResponseKind: {
|
|
1535
|
-
readonly File: "file";
|
|
1536
|
-
};
|
|
1537
|
-
export type RunAgentPartsAgentsResponseKind = ClosedEnum<typeof RunAgentPartsAgentsResponseKind>;
|
|
1538
|
-
/**
|
|
1539
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
1540
|
-
*/
|
|
1541
|
-
export type RunAgentFileAgentsFileInURIFormat = {
|
|
1542
|
-
/**
|
|
1543
|
-
* URL for the File content
|
|
1544
|
-
*/
|
|
1545
|
-
uri: string;
|
|
1546
|
-
/**
|
|
1547
|
-
* Optional mimeType for the file
|
|
1548
|
-
*/
|
|
1549
|
-
mimeType?: string | undefined;
|
|
1550
|
-
/**
|
|
1551
|
-
* Optional name for the file
|
|
1552
|
-
*/
|
|
1553
|
-
name?: string | undefined;
|
|
1554
|
-
};
|
|
1555
|
-
/**
|
|
1556
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
1557
|
-
*/
|
|
1558
|
-
export type RunAgentFileAgentsBinaryFormat = {
|
|
1559
|
-
/**
|
|
1560
|
-
* base64 encoded content of the file
|
|
1561
|
-
*/
|
|
1562
|
-
bytes: string;
|
|
1563
|
-
/**
|
|
1564
|
-
* Optional mimeType for the file
|
|
1565
|
-
*/
|
|
1566
|
-
mimeType?: string | undefined;
|
|
1567
|
-
/**
|
|
1568
|
-
* Optional name for the file
|
|
1569
|
-
*/
|
|
1570
|
-
name?: string | undefined;
|
|
1571
|
-
};
|
|
1572
|
-
export type RunAgentPartsFile = RunAgentFileAgentsBinaryFormat | RunAgentFileAgentsFileInURIFormat;
|
|
1573
|
-
/**
|
|
1574
|
-
* 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.
|
|
1575
|
-
*/
|
|
1576
|
-
export type RunAgentPartsFilePart = {
|
|
1577
|
-
kind: RunAgentPartsAgentsResponseKind;
|
|
1578
|
-
file: RunAgentFileAgentsBinaryFormat | RunAgentFileAgentsFileInURIFormat;
|
|
1579
|
-
metadata?: {
|
|
1580
|
-
[k: string]: any;
|
|
1581
|
-
} | undefined;
|
|
1582
|
-
};
|
|
1583
|
-
export declare const RunAgentPartsAgentsKind: {
|
|
1584
|
-
readonly Data: "data";
|
|
1585
|
-
};
|
|
1586
|
-
export type RunAgentPartsAgentsKind = ClosedEnum<typeof RunAgentPartsAgentsKind>;
|
|
1587
|
-
/**
|
|
1588
|
-
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
1589
|
-
*/
|
|
1590
|
-
export type PartsDataPart = {
|
|
1591
|
-
kind: RunAgentPartsAgentsKind;
|
|
1592
|
-
data: {
|
|
1593
|
-
[k: string]: any;
|
|
1594
|
-
};
|
|
1595
|
-
metadata?: {
|
|
1596
|
-
[k: string]: any;
|
|
1597
|
-
} | undefined;
|
|
1598
|
-
};
|
|
1599
|
-
export declare const RunAgentPartsKind: {
|
|
1600
|
-
readonly Text: "text";
|
|
1601
|
-
};
|
|
1602
|
-
export type RunAgentPartsKind = ClosedEnum<typeof RunAgentPartsKind>;
|
|
1603
|
-
/**
|
|
1604
|
-
* A text content part containing plain text or markdown. Used for agent messages, user input, and text-based responses.
|
|
1605
|
-
*/
|
|
1606
|
-
export type RunAgentPartsTextPart = {
|
|
1607
|
-
kind: RunAgentPartsKind;
|
|
1608
|
-
text: string;
|
|
1609
|
-
};
|
|
1610
|
-
export type RunAgentParts = PartsToolCallPart | RunAgentPartsTextPart | PartsDataPart | RunAgentPartsFilePart | RunAgentPartsToolResultPart;
|
|
1427
|
+
export type RunAgentParts = (components.ToolCallPart & {
|
|
1428
|
+
kind: "tool_call";
|
|
1429
|
+
}) | (components.TextPart & {
|
|
1430
|
+
kind: "text";
|
|
1431
|
+
}) | (components.DataPart & {
|
|
1432
|
+
kind: "data";
|
|
1433
|
+
}) | (components.FilePart & {
|
|
1434
|
+
kind: "file";
|
|
1435
|
+
}) | (components.ToolResultPart & {
|
|
1436
|
+
kind: "tool_result";
|
|
1437
|
+
});
|
|
1611
1438
|
/**
|
|
1612
1439
|
* Optional A2A message providing additional context about the current status
|
|
1613
1440
|
*/
|
|
@@ -1618,7 +1445,17 @@ export type RunAgentTaskStatusMessage = {
|
|
|
1618
1445
|
* Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
|
|
1619
1446
|
*/
|
|
1620
1447
|
role: RunAgentExtendedMessageRole;
|
|
1621
|
-
parts: Array<
|
|
1448
|
+
parts: Array<(components.ToolCallPart & {
|
|
1449
|
+
kind: "tool_call";
|
|
1450
|
+
}) | (components.TextPart & {
|
|
1451
|
+
kind: "text";
|
|
1452
|
+
}) | (components.DataPart & {
|
|
1453
|
+
kind: "data";
|
|
1454
|
+
}) | (components.FilePart & {
|
|
1455
|
+
kind: "file";
|
|
1456
|
+
}) | (components.ToolResultPart & {
|
|
1457
|
+
kind: "tool_result";
|
|
1458
|
+
})>;
|
|
1622
1459
|
};
|
|
1623
1460
|
/**
|
|
1624
1461
|
* Current task status information
|
|
@@ -2115,93 +1952,9 @@ export declare const RunAgentRole$outboundSchema: z.ZodType<RunAgentRole$Outboun
|
|
|
2115
1952
|
export declare function runAgentRoleToJSON(runAgentRole: RunAgentRole): string;
|
|
2116
1953
|
export declare function runAgentRoleFromJSON(jsonString: string): SafeParseResult<RunAgentRole, SDKValidationError>;
|
|
2117
1954
|
/** @internal */
|
|
2118
|
-
export declare const RunAgentPublicMessagePartAgentsRequestKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind>;
|
|
2119
|
-
/** @internal */
|
|
2120
|
-
export declare const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind>;
|
|
2121
|
-
/** @internal */
|
|
2122
|
-
export declare const RunAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<RunAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
|
|
2123
|
-
/** @internal */
|
|
2124
|
-
export type RunAgentPublicMessagePartToolResultPart$Outbound = {
|
|
2125
|
-
kind: string;
|
|
2126
|
-
tool_call_id: string;
|
|
2127
|
-
result?: any | undefined;
|
|
2128
|
-
metadata?: {
|
|
2129
|
-
[k: string]: any;
|
|
2130
|
-
} | undefined;
|
|
2131
|
-
};
|
|
2132
|
-
/** @internal */
|
|
2133
|
-
export declare const RunAgentPublicMessagePartToolResultPart$outboundSchema: z.ZodType<RunAgentPublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartToolResultPart>;
|
|
2134
|
-
export declare function runAgentPublicMessagePartToolResultPartToJSON(runAgentPublicMessagePartToolResultPart: RunAgentPublicMessagePartToolResultPart): string;
|
|
2135
|
-
export declare function runAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartToolResultPart, SDKValidationError>;
|
|
2136
|
-
/** @internal */
|
|
2137
|
-
export declare const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
2138
|
-
/** @internal */
|
|
2139
|
-
export declare const RunAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
2140
|
-
/** @internal */
|
|
2141
|
-
export declare const RunAgentFileFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2142
|
-
/** @internal */
|
|
2143
|
-
export type RunAgentFileFileInURIFormat$Outbound = {
|
|
2144
|
-
uri: string;
|
|
2145
|
-
mimeType?: string | undefined;
|
|
2146
|
-
name?: string | undefined;
|
|
2147
|
-
};
|
|
2148
|
-
/** @internal */
|
|
2149
|
-
export declare const RunAgentFileFileInURIFormat$outboundSchema: z.ZodType<RunAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, RunAgentFileFileInURIFormat>;
|
|
2150
|
-
export declare function runAgentFileFileInURIFormatToJSON(runAgentFileFileInURIFormat: RunAgentFileFileInURIFormat): string;
|
|
2151
|
-
export declare function runAgentFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileFileInURIFormat, SDKValidationError>;
|
|
2152
|
-
/** @internal */
|
|
2153
|
-
export declare const RunAgentFileBinaryFormat$inboundSchema: z.ZodType<RunAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
|
|
2154
|
-
/** @internal */
|
|
2155
|
-
export type RunAgentFileBinaryFormat$Outbound = {
|
|
2156
|
-
bytes: string;
|
|
2157
|
-
mimeType?: string | undefined;
|
|
2158
|
-
name?: string | undefined;
|
|
2159
|
-
};
|
|
2160
|
-
/** @internal */
|
|
2161
|
-
export declare const RunAgentFileBinaryFormat$outboundSchema: z.ZodType<RunAgentFileBinaryFormat$Outbound, z.ZodTypeDef, RunAgentFileBinaryFormat>;
|
|
2162
|
-
export declare function runAgentFileBinaryFormatToJSON(runAgentFileBinaryFormat: RunAgentFileBinaryFormat): string;
|
|
2163
|
-
export declare function runAgentFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileBinaryFormat, SDKValidationError>;
|
|
2164
|
-
/** @internal */
|
|
2165
|
-
export declare const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<RunAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
|
|
2166
|
-
/** @internal */
|
|
2167
|
-
export type RunAgentPublicMessagePartFile$Outbound = RunAgentFileBinaryFormat$Outbound | RunAgentFileFileInURIFormat$Outbound;
|
|
2168
|
-
/** @internal */
|
|
2169
|
-
export declare const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<RunAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartFile>;
|
|
2170
|
-
export declare function runAgentPublicMessagePartFileToJSON(runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile): string;
|
|
2171
|
-
export declare function runAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError>;
|
|
2172
|
-
/** @internal */
|
|
2173
|
-
export declare const RunAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<RunAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
|
|
2174
|
-
/** @internal */
|
|
2175
|
-
export type RunAgentPublicMessagePartFilePart$Outbound = {
|
|
2176
|
-
kind: string;
|
|
2177
|
-
file: RunAgentFileBinaryFormat$Outbound | RunAgentFileFileInURIFormat$Outbound;
|
|
2178
|
-
metadata?: {
|
|
2179
|
-
[k: string]: any;
|
|
2180
|
-
} | undefined;
|
|
2181
|
-
};
|
|
2182
|
-
/** @internal */
|
|
2183
|
-
export declare const RunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<RunAgentPublicMessagePartFilePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartFilePart>;
|
|
2184
|
-
export declare function runAgentPublicMessagePartFilePartToJSON(runAgentPublicMessagePartFilePart: RunAgentPublicMessagePartFilePart): string;
|
|
2185
|
-
export declare function runAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartFilePart, SDKValidationError>;
|
|
2186
|
-
/** @internal */
|
|
2187
|
-
export declare const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2188
|
-
/** @internal */
|
|
2189
|
-
export declare const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2190
|
-
/** @internal */
|
|
2191
|
-
export declare const RunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<RunAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
|
|
2192
|
-
/** @internal */
|
|
2193
|
-
export type RunAgentPublicMessagePartTextPart$Outbound = {
|
|
2194
|
-
kind: string;
|
|
2195
|
-
text: string;
|
|
2196
|
-
};
|
|
2197
|
-
/** @internal */
|
|
2198
|
-
export declare const RunAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<RunAgentPublicMessagePartTextPart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartTextPart>;
|
|
2199
|
-
export declare function runAgentPublicMessagePartTextPartToJSON(runAgentPublicMessagePartTextPart: RunAgentPublicMessagePartTextPart): string;
|
|
2200
|
-
export declare function runAgentPublicMessagePartTextPartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartTextPart, SDKValidationError>;
|
|
2201
|
-
/** @internal */
|
|
2202
1955
|
export declare const RunAgentPublicMessagePart$inboundSchema: z.ZodType<RunAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
2203
1956
|
/** @internal */
|
|
2204
|
-
export type RunAgentPublicMessagePart$Outbound =
|
|
1957
|
+
export type RunAgentPublicMessagePart$Outbound = components.TextPart$Outbound | components.FilePart$Outbound | components.ToolResultPart$Outbound;
|
|
2205
1958
|
/** @internal */
|
|
2206
1959
|
export declare const RunAgentPublicMessagePart$outboundSchema: z.ZodType<RunAgentPublicMessagePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePart>;
|
|
2207
1960
|
export declare function runAgentPublicMessagePartToJSON(runAgentPublicMessagePart: RunAgentPublicMessagePart): string;
|
|
@@ -2212,7 +1965,7 @@ export declare const RunAgentA2AMessage$inboundSchema: z.ZodType<RunAgentA2AMess
|
|
|
2212
1965
|
export type RunAgentA2AMessage$Outbound = {
|
|
2213
1966
|
messageId?: string | undefined;
|
|
2214
1967
|
role: string | string;
|
|
2215
|
-
parts: Array<
|
|
1968
|
+
parts: Array<components.TextPart$Outbound | components.FilePart$Outbound | components.ToolResultPart$Outbound>;
|
|
2216
1969
|
};
|
|
2217
1970
|
/** @internal */
|
|
2218
1971
|
export declare const RunAgentA2AMessage$outboundSchema: z.ZodType<RunAgentA2AMessage$Outbound, z.ZodTypeDef, RunAgentA2AMessage>;
|
|
@@ -2836,135 +2589,19 @@ export declare const RunAgentExtendedMessageRole$inboundSchema: z.ZodNativeEnum<
|
|
|
2836
2589
|
/** @internal */
|
|
2837
2590
|
export declare const RunAgentExtendedMessageRole$outboundSchema: z.ZodNativeEnum<typeof RunAgentExtendedMessageRole>;
|
|
2838
2591
|
/** @internal */
|
|
2839
|
-
export declare const RunAgentPartsAgentsResponse200ApplicationJSONKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponse200ApplicationJSONKind>;
|
|
2840
|
-
/** @internal */
|
|
2841
|
-
export declare const RunAgentPartsAgentsResponse200ApplicationJSONKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponse200ApplicationJSONKind>;
|
|
2842
|
-
/** @internal */
|
|
2843
|
-
export declare const RunAgentPartsToolResultPart$inboundSchema: z.ZodType<RunAgentPartsToolResultPart, z.ZodTypeDef, unknown>;
|
|
2844
|
-
/** @internal */
|
|
2845
|
-
export type RunAgentPartsToolResultPart$Outbound = {
|
|
2846
|
-
kind: string;
|
|
2847
|
-
tool_call_id: string;
|
|
2848
|
-
result?: any | undefined;
|
|
2849
|
-
metadata?: {
|
|
2850
|
-
[k: string]: any;
|
|
2851
|
-
} | undefined;
|
|
2852
|
-
};
|
|
2853
|
-
/** @internal */
|
|
2854
|
-
export declare const RunAgentPartsToolResultPart$outboundSchema: z.ZodType<RunAgentPartsToolResultPart$Outbound, z.ZodTypeDef, RunAgentPartsToolResultPart>;
|
|
2855
|
-
export declare function runAgentPartsToolResultPartToJSON(runAgentPartsToolResultPart: RunAgentPartsToolResultPart): string;
|
|
2856
|
-
export declare function runAgentPartsToolResultPartFromJSON(jsonString: string): SafeParseResult<RunAgentPartsToolResultPart, SDKValidationError>;
|
|
2857
|
-
/** @internal */
|
|
2858
|
-
export declare const RunAgentPartsAgentsResponse200Kind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponse200Kind>;
|
|
2859
|
-
/** @internal */
|
|
2860
|
-
export declare const RunAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponse200Kind>;
|
|
2861
|
-
/** @internal */
|
|
2862
|
-
export declare const PartsToolCallPart$inboundSchema: z.ZodType<PartsToolCallPart, z.ZodTypeDef, unknown>;
|
|
2863
|
-
/** @internal */
|
|
2864
|
-
export type PartsToolCallPart$Outbound = {
|
|
2865
|
-
kind: string;
|
|
2866
|
-
tool_name: string;
|
|
2867
|
-
tool_call_id: string;
|
|
2868
|
-
arguments: {
|
|
2869
|
-
[k: string]: any;
|
|
2870
|
-
};
|
|
2871
|
-
metadata?: {
|
|
2872
|
-
[k: string]: any;
|
|
2873
|
-
} | undefined;
|
|
2874
|
-
};
|
|
2875
|
-
/** @internal */
|
|
2876
|
-
export declare const PartsToolCallPart$outboundSchema: z.ZodType<PartsToolCallPart$Outbound, z.ZodTypeDef, PartsToolCallPart>;
|
|
2877
|
-
export declare function partsToolCallPartToJSON(partsToolCallPart: PartsToolCallPart): string;
|
|
2878
|
-
export declare function partsToolCallPartFromJSON(jsonString: string): SafeParseResult<PartsToolCallPart, SDKValidationError>;
|
|
2879
|
-
/** @internal */
|
|
2880
|
-
export declare const RunAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponseKind>;
|
|
2881
|
-
/** @internal */
|
|
2882
|
-
export declare const RunAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponseKind>;
|
|
2883
|
-
/** @internal */
|
|
2884
|
-
export declare const RunAgentFileAgentsFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileAgentsFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2885
|
-
/** @internal */
|
|
2886
|
-
export type RunAgentFileAgentsFileInURIFormat$Outbound = {
|
|
2887
|
-
uri: string;
|
|
2888
|
-
mimeType?: string | undefined;
|
|
2889
|
-
name?: string | undefined;
|
|
2890
|
-
};
|
|
2891
|
-
/** @internal */
|
|
2892
|
-
export declare const RunAgentFileAgentsFileInURIFormat$outboundSchema: z.ZodType<RunAgentFileAgentsFileInURIFormat$Outbound, z.ZodTypeDef, RunAgentFileAgentsFileInURIFormat>;
|
|
2893
|
-
export declare function runAgentFileAgentsFileInURIFormatToJSON(runAgentFileAgentsFileInURIFormat: RunAgentFileAgentsFileInURIFormat): string;
|
|
2894
|
-
export declare function runAgentFileAgentsFileInURIFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileAgentsFileInURIFormat, SDKValidationError>;
|
|
2895
|
-
/** @internal */
|
|
2896
|
-
export declare const RunAgentFileAgentsBinaryFormat$inboundSchema: z.ZodType<RunAgentFileAgentsBinaryFormat, z.ZodTypeDef, unknown>;
|
|
2897
|
-
/** @internal */
|
|
2898
|
-
export type RunAgentFileAgentsBinaryFormat$Outbound = {
|
|
2899
|
-
bytes: string;
|
|
2900
|
-
mimeType?: string | undefined;
|
|
2901
|
-
name?: string | undefined;
|
|
2902
|
-
};
|
|
2903
|
-
/** @internal */
|
|
2904
|
-
export declare const RunAgentFileAgentsBinaryFormat$outboundSchema: z.ZodType<RunAgentFileAgentsBinaryFormat$Outbound, z.ZodTypeDef, RunAgentFileAgentsBinaryFormat>;
|
|
2905
|
-
export declare function runAgentFileAgentsBinaryFormatToJSON(runAgentFileAgentsBinaryFormat: RunAgentFileAgentsBinaryFormat): string;
|
|
2906
|
-
export declare function runAgentFileAgentsBinaryFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileAgentsBinaryFormat, SDKValidationError>;
|
|
2907
|
-
/** @internal */
|
|
2908
|
-
export declare const RunAgentPartsFile$inboundSchema: z.ZodType<RunAgentPartsFile, z.ZodTypeDef, unknown>;
|
|
2909
|
-
/** @internal */
|
|
2910
|
-
export type RunAgentPartsFile$Outbound = RunAgentFileAgentsBinaryFormat$Outbound | RunAgentFileAgentsFileInURIFormat$Outbound;
|
|
2911
|
-
/** @internal */
|
|
2912
|
-
export declare const RunAgentPartsFile$outboundSchema: z.ZodType<RunAgentPartsFile$Outbound, z.ZodTypeDef, RunAgentPartsFile>;
|
|
2913
|
-
export declare function runAgentPartsFileToJSON(runAgentPartsFile: RunAgentPartsFile): string;
|
|
2914
|
-
export declare function runAgentPartsFileFromJSON(jsonString: string): SafeParseResult<RunAgentPartsFile, SDKValidationError>;
|
|
2915
|
-
/** @internal */
|
|
2916
|
-
export declare const RunAgentPartsFilePart$inboundSchema: z.ZodType<RunAgentPartsFilePart, z.ZodTypeDef, unknown>;
|
|
2917
|
-
/** @internal */
|
|
2918
|
-
export type RunAgentPartsFilePart$Outbound = {
|
|
2919
|
-
kind: string;
|
|
2920
|
-
file: RunAgentFileAgentsBinaryFormat$Outbound | RunAgentFileAgentsFileInURIFormat$Outbound;
|
|
2921
|
-
metadata?: {
|
|
2922
|
-
[k: string]: any;
|
|
2923
|
-
} | undefined;
|
|
2924
|
-
};
|
|
2925
|
-
/** @internal */
|
|
2926
|
-
export declare const RunAgentPartsFilePart$outboundSchema: z.ZodType<RunAgentPartsFilePart$Outbound, z.ZodTypeDef, RunAgentPartsFilePart>;
|
|
2927
|
-
export declare function runAgentPartsFilePartToJSON(runAgentPartsFilePart: RunAgentPartsFilePart): string;
|
|
2928
|
-
export declare function runAgentPartsFilePartFromJSON(jsonString: string): SafeParseResult<RunAgentPartsFilePart, SDKValidationError>;
|
|
2929
|
-
/** @internal */
|
|
2930
|
-
export declare const RunAgentPartsAgentsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsKind>;
|
|
2931
|
-
/** @internal */
|
|
2932
|
-
export declare const RunAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsKind>;
|
|
2933
|
-
/** @internal */
|
|
2934
|
-
export declare const PartsDataPart$inboundSchema: z.ZodType<PartsDataPart, z.ZodTypeDef, unknown>;
|
|
2935
|
-
/** @internal */
|
|
2936
|
-
export type PartsDataPart$Outbound = {
|
|
2937
|
-
kind: string;
|
|
2938
|
-
data: {
|
|
2939
|
-
[k: string]: any;
|
|
2940
|
-
};
|
|
2941
|
-
metadata?: {
|
|
2942
|
-
[k: string]: any;
|
|
2943
|
-
} | undefined;
|
|
2944
|
-
};
|
|
2945
|
-
/** @internal */
|
|
2946
|
-
export declare const PartsDataPart$outboundSchema: z.ZodType<PartsDataPart$Outbound, z.ZodTypeDef, PartsDataPart>;
|
|
2947
|
-
export declare function partsDataPartToJSON(partsDataPart: PartsDataPart): string;
|
|
2948
|
-
export declare function partsDataPartFromJSON(jsonString: string): SafeParseResult<PartsDataPart, SDKValidationError>;
|
|
2949
|
-
/** @internal */
|
|
2950
|
-
export declare const RunAgentPartsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPartsKind>;
|
|
2951
|
-
/** @internal */
|
|
2952
|
-
export declare const RunAgentPartsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsKind>;
|
|
2953
|
-
/** @internal */
|
|
2954
|
-
export declare const RunAgentPartsTextPart$inboundSchema: z.ZodType<RunAgentPartsTextPart, z.ZodTypeDef, unknown>;
|
|
2955
|
-
/** @internal */
|
|
2956
|
-
export type RunAgentPartsTextPart$Outbound = {
|
|
2957
|
-
kind: string;
|
|
2958
|
-
text: string;
|
|
2959
|
-
};
|
|
2960
|
-
/** @internal */
|
|
2961
|
-
export declare const RunAgentPartsTextPart$outboundSchema: z.ZodType<RunAgentPartsTextPart$Outbound, z.ZodTypeDef, RunAgentPartsTextPart>;
|
|
2962
|
-
export declare function runAgentPartsTextPartToJSON(runAgentPartsTextPart: RunAgentPartsTextPart): string;
|
|
2963
|
-
export declare function runAgentPartsTextPartFromJSON(jsonString: string): SafeParseResult<RunAgentPartsTextPart, SDKValidationError>;
|
|
2964
|
-
/** @internal */
|
|
2965
2592
|
export declare const RunAgentParts$inboundSchema: z.ZodType<RunAgentParts, z.ZodTypeDef, unknown>;
|
|
2966
2593
|
/** @internal */
|
|
2967
|
-
export type RunAgentParts$Outbound =
|
|
2594
|
+
export type RunAgentParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
2595
|
+
kind: "tool_call";
|
|
2596
|
+
}) | (components.TextPart$Outbound & {
|
|
2597
|
+
kind: "text";
|
|
2598
|
+
}) | (components.DataPart$Outbound & {
|
|
2599
|
+
kind: "data";
|
|
2600
|
+
}) | (components.FilePart$Outbound & {
|
|
2601
|
+
kind: "file";
|
|
2602
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2603
|
+
kind: "tool_result";
|
|
2604
|
+
});
|
|
2968
2605
|
/** @internal */
|
|
2969
2606
|
export declare const RunAgentParts$outboundSchema: z.ZodType<RunAgentParts$Outbound, z.ZodTypeDef, RunAgentParts>;
|
|
2970
2607
|
export declare function runAgentPartsToJSON(runAgentParts: RunAgentParts): string;
|
|
@@ -2976,7 +2613,17 @@ export type RunAgentTaskStatusMessage$Outbound = {
|
|
|
2976
2613
|
kind: string;
|
|
2977
2614
|
messageId: string;
|
|
2978
2615
|
role: string;
|
|
2979
|
-
parts: Array<
|
|
2616
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
2617
|
+
kind: "tool_call";
|
|
2618
|
+
}) | (components.TextPart$Outbound & {
|
|
2619
|
+
kind: "text";
|
|
2620
|
+
}) | (components.DataPart$Outbound & {
|
|
2621
|
+
kind: "data";
|
|
2622
|
+
}) | (components.FilePart$Outbound & {
|
|
2623
|
+
kind: "file";
|
|
2624
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2625
|
+
kind: "tool_result";
|
|
2626
|
+
})>;
|
|
2980
2627
|
};
|
|
2981
2628
|
/** @internal */
|
|
2982
2629
|
export declare const RunAgentTaskStatusMessage$outboundSchema: z.ZodType<RunAgentTaskStatusMessage$Outbound, z.ZodTypeDef, RunAgentTaskStatusMessage>;
|