@orq-ai/node 4.1.0-rc.4 → 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 +25494 -27422
- package/bin/mcp-server.js.map +64 -47
- 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/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 +1 -1
- package/models/components/index.d.ts +17 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +17 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +13 -13
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +17 -17
- package/models/components/invokedeploymentrequest.js.map +1 -1
- 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/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 +1 -1
- package/models/operations/createagentresponserequest.d.ts +4 -137
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +9 -138
- 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/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/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/invokeagent.d.ts +14 -147
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +19 -148
- 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/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 +4 -137
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +17 -145
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +241 -2491
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +172 -2826
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +889 -3139
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +175 -2825
- 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/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/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 +1 -1
- package/src/models/components/index.ts +17 -0
- package/src/models/components/invokedeploymentrequest.ts +32 -27
- package/src/models/components/timeoutstreamingevent.ts +125 -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 +1 -1
- package/src/models/operations/createagentresponserequest.ts +20 -321
- 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/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/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +52 -287
- package/src/models/operations/invokeagent.ts +36 -373
- 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/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 +17 -365
- package/src/models/operations/streamagent.ts +794 -6985
- package/src/models/operations/streamrunagent.ts +3939 -9983
- 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/updatetool.ts +14 -14
|
@@ -774,86 +774,13 @@ export type RunAgentRoleUserMessage = ClosedEnum<
|
|
|
774
774
|
*/
|
|
775
775
|
export type RunAgentRole = RunAgentRoleUserMessage | RunAgentRoleToolMessage;
|
|
776
776
|
|
|
777
|
-
export const RunAgentPublicMessagePartAgentsKind = {
|
|
778
|
-
ToolResult: "tool_result",
|
|
779
|
-
} as const;
|
|
780
|
-
export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<
|
|
781
|
-
typeof RunAgentPublicMessagePartAgentsKind
|
|
782
|
-
>;
|
|
783
|
-
|
|
784
|
-
/**
|
|
785
|
-
* 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.
|
|
786
|
-
*/
|
|
787
|
-
export type RunAgentPublicMessagePartToolResultPart = {
|
|
788
|
-
kind: RunAgentPublicMessagePartAgentsKind;
|
|
789
|
-
toolCallId: string;
|
|
790
|
-
result?: any | undefined;
|
|
791
|
-
metadata?: { [k: string]: any } | undefined;
|
|
792
|
-
};
|
|
793
|
-
|
|
794
|
-
export const RunAgentPublicMessagePartKind = {
|
|
795
|
-
File: "file",
|
|
796
|
-
} as const;
|
|
797
|
-
export type RunAgentPublicMessagePartKind = ClosedEnum<
|
|
798
|
-
typeof RunAgentPublicMessagePartKind
|
|
799
|
-
>;
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
803
|
-
*/
|
|
804
|
-
export type RunAgentFileFileInURIFormat = {
|
|
805
|
-
/**
|
|
806
|
-
* URL for the File content
|
|
807
|
-
*/
|
|
808
|
-
uri: string;
|
|
809
|
-
/**
|
|
810
|
-
* Optional mimeType for the file
|
|
811
|
-
*/
|
|
812
|
-
mimeType?: string | undefined;
|
|
813
|
-
/**
|
|
814
|
-
* Optional name for the file
|
|
815
|
-
*/
|
|
816
|
-
name?: string | undefined;
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
/**
|
|
820
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
821
|
-
*/
|
|
822
|
-
export type RunAgentFileBinaryFormat = {
|
|
823
|
-
/**
|
|
824
|
-
* base64 encoded content of the file
|
|
825
|
-
*/
|
|
826
|
-
bytes: string;
|
|
827
|
-
/**
|
|
828
|
-
* Optional mimeType for the file
|
|
829
|
-
*/
|
|
830
|
-
mimeType?: string | undefined;
|
|
831
|
-
/**
|
|
832
|
-
* Optional name for the file
|
|
833
|
-
*/
|
|
834
|
-
name?: string | undefined;
|
|
835
|
-
};
|
|
836
|
-
|
|
837
|
-
export type RunAgentPublicMessagePartFile =
|
|
838
|
-
| RunAgentFileBinaryFormat
|
|
839
|
-
| RunAgentFileFileInURIFormat;
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
843
|
-
*/
|
|
844
|
-
export type RunAgentPublicMessagePartFilePart = {
|
|
845
|
-
kind: RunAgentPublicMessagePartKind;
|
|
846
|
-
file: RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
|
|
847
|
-
metadata?: { [k: string]: any } | undefined;
|
|
848
|
-
};
|
|
849
|
-
|
|
850
777
|
/**
|
|
851
778
|
* 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.
|
|
852
779
|
*/
|
|
853
780
|
export type RunAgentPublicMessagePart =
|
|
854
781
|
| components.TextPart
|
|
855
|
-
|
|
|
856
|
-
|
|
|
782
|
+
| components.FilePart
|
|
783
|
+
| components.ToolResultPart;
|
|
857
784
|
|
|
858
785
|
/**
|
|
859
786
|
* The A2A format message containing the task for the agent to perform.
|
|
@@ -871,9 +798,7 @@ export type RunAgentA2AMessage = {
|
|
|
871
798
|
* A2A message parts (text, file, or tool_result only)
|
|
872
799
|
*/
|
|
873
800
|
parts: Array<
|
|
874
|
-
| components.
|
|
875
|
-
| RunAgentPublicMessagePartFilePart
|
|
876
|
-
| RunAgentPublicMessagePartToolResultPart
|
|
801
|
+
components.TextPart | components.FilePart | components.ToolResultPart
|
|
877
802
|
>;
|
|
878
803
|
};
|
|
879
804
|
|
|
@@ -3874,279 +3799,6 @@ export function runAgentRoleFromJSON(
|
|
|
3874
3799
|
);
|
|
3875
3800
|
}
|
|
3876
3801
|
|
|
3877
|
-
/** @internal */
|
|
3878
|
-
export const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<
|
|
3879
|
-
typeof RunAgentPublicMessagePartAgentsKind
|
|
3880
|
-
> = z.nativeEnum(RunAgentPublicMessagePartAgentsKind);
|
|
3881
|
-
/** @internal */
|
|
3882
|
-
export const RunAgentPublicMessagePartAgentsKind$outboundSchema:
|
|
3883
|
-
z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind> =
|
|
3884
|
-
RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
3885
|
-
|
|
3886
|
-
/** @internal */
|
|
3887
|
-
export const RunAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<
|
|
3888
|
-
RunAgentPublicMessagePartToolResultPart,
|
|
3889
|
-
z.ZodTypeDef,
|
|
3890
|
-
unknown
|
|
3891
|
-
> = z.object({
|
|
3892
|
-
kind: RunAgentPublicMessagePartAgentsKind$inboundSchema,
|
|
3893
|
-
tool_call_id: z.string(),
|
|
3894
|
-
result: z.any().optional(),
|
|
3895
|
-
metadata: z.record(z.any()).optional(),
|
|
3896
|
-
}).transform((v) => {
|
|
3897
|
-
return remap$(v, {
|
|
3898
|
-
"tool_call_id": "toolCallId",
|
|
3899
|
-
});
|
|
3900
|
-
});
|
|
3901
|
-
/** @internal */
|
|
3902
|
-
export type RunAgentPublicMessagePartToolResultPart$Outbound = {
|
|
3903
|
-
kind: string;
|
|
3904
|
-
tool_call_id: string;
|
|
3905
|
-
result?: any | undefined;
|
|
3906
|
-
metadata?: { [k: string]: any } | undefined;
|
|
3907
|
-
};
|
|
3908
|
-
|
|
3909
|
-
/** @internal */
|
|
3910
|
-
export const RunAgentPublicMessagePartToolResultPart$outboundSchema: z.ZodType<
|
|
3911
|
-
RunAgentPublicMessagePartToolResultPart$Outbound,
|
|
3912
|
-
z.ZodTypeDef,
|
|
3913
|
-
RunAgentPublicMessagePartToolResultPart
|
|
3914
|
-
> = z.object({
|
|
3915
|
-
kind: RunAgentPublicMessagePartAgentsKind$outboundSchema,
|
|
3916
|
-
toolCallId: z.string(),
|
|
3917
|
-
result: z.any().optional(),
|
|
3918
|
-
metadata: z.record(z.any()).optional(),
|
|
3919
|
-
}).transform((v) => {
|
|
3920
|
-
return remap$(v, {
|
|
3921
|
-
toolCallId: "tool_call_id",
|
|
3922
|
-
});
|
|
3923
|
-
});
|
|
3924
|
-
|
|
3925
|
-
export function runAgentPublicMessagePartToolResultPartToJSON(
|
|
3926
|
-
runAgentPublicMessagePartToolResultPart:
|
|
3927
|
-
RunAgentPublicMessagePartToolResultPart,
|
|
3928
|
-
): string {
|
|
3929
|
-
return JSON.stringify(
|
|
3930
|
-
RunAgentPublicMessagePartToolResultPart$outboundSchema.parse(
|
|
3931
|
-
runAgentPublicMessagePartToolResultPart,
|
|
3932
|
-
),
|
|
3933
|
-
);
|
|
3934
|
-
}
|
|
3935
|
-
export function runAgentPublicMessagePartToolResultPartFromJSON(
|
|
3936
|
-
jsonString: string,
|
|
3937
|
-
): SafeParseResult<
|
|
3938
|
-
RunAgentPublicMessagePartToolResultPart,
|
|
3939
|
-
SDKValidationError
|
|
3940
|
-
> {
|
|
3941
|
-
return safeParse(
|
|
3942
|
-
jsonString,
|
|
3943
|
-
(x) =>
|
|
3944
|
-
RunAgentPublicMessagePartToolResultPart$inboundSchema.parse(
|
|
3945
|
-
JSON.parse(x),
|
|
3946
|
-
),
|
|
3947
|
-
`Failed to parse 'RunAgentPublicMessagePartToolResultPart' from JSON`,
|
|
3948
|
-
);
|
|
3949
|
-
}
|
|
3950
|
-
|
|
3951
|
-
/** @internal */
|
|
3952
|
-
export const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
3953
|
-
typeof RunAgentPublicMessagePartKind
|
|
3954
|
-
> = z.nativeEnum(RunAgentPublicMessagePartKind);
|
|
3955
|
-
/** @internal */
|
|
3956
|
-
export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
3957
|
-
typeof RunAgentPublicMessagePartKind
|
|
3958
|
-
> = RunAgentPublicMessagePartKind$inboundSchema;
|
|
3959
|
-
|
|
3960
|
-
/** @internal */
|
|
3961
|
-
export const RunAgentFileFileInURIFormat$inboundSchema: z.ZodType<
|
|
3962
|
-
RunAgentFileFileInURIFormat,
|
|
3963
|
-
z.ZodTypeDef,
|
|
3964
|
-
unknown
|
|
3965
|
-
> = z.object({
|
|
3966
|
-
uri: z.string(),
|
|
3967
|
-
mimeType: z.string().optional(),
|
|
3968
|
-
name: z.string().optional(),
|
|
3969
|
-
});
|
|
3970
|
-
/** @internal */
|
|
3971
|
-
export type RunAgentFileFileInURIFormat$Outbound = {
|
|
3972
|
-
uri: string;
|
|
3973
|
-
mimeType?: string | undefined;
|
|
3974
|
-
name?: string | undefined;
|
|
3975
|
-
};
|
|
3976
|
-
|
|
3977
|
-
/** @internal */
|
|
3978
|
-
export const RunAgentFileFileInURIFormat$outboundSchema: z.ZodType<
|
|
3979
|
-
RunAgentFileFileInURIFormat$Outbound,
|
|
3980
|
-
z.ZodTypeDef,
|
|
3981
|
-
RunAgentFileFileInURIFormat
|
|
3982
|
-
> = z.object({
|
|
3983
|
-
uri: z.string(),
|
|
3984
|
-
mimeType: z.string().optional(),
|
|
3985
|
-
name: z.string().optional(),
|
|
3986
|
-
});
|
|
3987
|
-
|
|
3988
|
-
export function runAgentFileFileInURIFormatToJSON(
|
|
3989
|
-
runAgentFileFileInURIFormat: RunAgentFileFileInURIFormat,
|
|
3990
|
-
): string {
|
|
3991
|
-
return JSON.stringify(
|
|
3992
|
-
RunAgentFileFileInURIFormat$outboundSchema.parse(
|
|
3993
|
-
runAgentFileFileInURIFormat,
|
|
3994
|
-
),
|
|
3995
|
-
);
|
|
3996
|
-
}
|
|
3997
|
-
export function runAgentFileFileInURIFormatFromJSON(
|
|
3998
|
-
jsonString: string,
|
|
3999
|
-
): SafeParseResult<RunAgentFileFileInURIFormat, SDKValidationError> {
|
|
4000
|
-
return safeParse(
|
|
4001
|
-
jsonString,
|
|
4002
|
-
(x) => RunAgentFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
4003
|
-
`Failed to parse 'RunAgentFileFileInURIFormat' from JSON`,
|
|
4004
|
-
);
|
|
4005
|
-
}
|
|
4006
|
-
|
|
4007
|
-
/** @internal */
|
|
4008
|
-
export const RunAgentFileBinaryFormat$inboundSchema: z.ZodType<
|
|
4009
|
-
RunAgentFileBinaryFormat,
|
|
4010
|
-
z.ZodTypeDef,
|
|
4011
|
-
unknown
|
|
4012
|
-
> = z.object({
|
|
4013
|
-
bytes: z.string(),
|
|
4014
|
-
mimeType: z.string().optional(),
|
|
4015
|
-
name: z.string().optional(),
|
|
4016
|
-
});
|
|
4017
|
-
/** @internal */
|
|
4018
|
-
export type RunAgentFileBinaryFormat$Outbound = {
|
|
4019
|
-
bytes: string;
|
|
4020
|
-
mimeType?: string | undefined;
|
|
4021
|
-
name?: string | undefined;
|
|
4022
|
-
};
|
|
4023
|
-
|
|
4024
|
-
/** @internal */
|
|
4025
|
-
export const RunAgentFileBinaryFormat$outboundSchema: z.ZodType<
|
|
4026
|
-
RunAgentFileBinaryFormat$Outbound,
|
|
4027
|
-
z.ZodTypeDef,
|
|
4028
|
-
RunAgentFileBinaryFormat
|
|
4029
|
-
> = z.object({
|
|
4030
|
-
bytes: z.string(),
|
|
4031
|
-
mimeType: z.string().optional(),
|
|
4032
|
-
name: z.string().optional(),
|
|
4033
|
-
});
|
|
4034
|
-
|
|
4035
|
-
export function runAgentFileBinaryFormatToJSON(
|
|
4036
|
-
runAgentFileBinaryFormat: RunAgentFileBinaryFormat,
|
|
4037
|
-
): string {
|
|
4038
|
-
return JSON.stringify(
|
|
4039
|
-
RunAgentFileBinaryFormat$outboundSchema.parse(runAgentFileBinaryFormat),
|
|
4040
|
-
);
|
|
4041
|
-
}
|
|
4042
|
-
export function runAgentFileBinaryFormatFromJSON(
|
|
4043
|
-
jsonString: string,
|
|
4044
|
-
): SafeParseResult<RunAgentFileBinaryFormat, SDKValidationError> {
|
|
4045
|
-
return safeParse(
|
|
4046
|
-
jsonString,
|
|
4047
|
-
(x) => RunAgentFileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
4048
|
-
`Failed to parse 'RunAgentFileBinaryFormat' from JSON`,
|
|
4049
|
-
);
|
|
4050
|
-
}
|
|
4051
|
-
|
|
4052
|
-
/** @internal */
|
|
4053
|
-
export const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
|
|
4054
|
-
RunAgentPublicMessagePartFile,
|
|
4055
|
-
z.ZodTypeDef,
|
|
4056
|
-
unknown
|
|
4057
|
-
> = z.union([
|
|
4058
|
-
z.lazy(() => RunAgentFileBinaryFormat$inboundSchema),
|
|
4059
|
-
z.lazy(() => RunAgentFileFileInURIFormat$inboundSchema),
|
|
4060
|
-
]);
|
|
4061
|
-
/** @internal */
|
|
4062
|
-
export type RunAgentPublicMessagePartFile$Outbound =
|
|
4063
|
-
| RunAgentFileBinaryFormat$Outbound
|
|
4064
|
-
| RunAgentFileFileInURIFormat$Outbound;
|
|
4065
|
-
|
|
4066
|
-
/** @internal */
|
|
4067
|
-
export const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
4068
|
-
RunAgentPublicMessagePartFile$Outbound,
|
|
4069
|
-
z.ZodTypeDef,
|
|
4070
|
-
RunAgentPublicMessagePartFile
|
|
4071
|
-
> = z.union([
|
|
4072
|
-
z.lazy(() => RunAgentFileBinaryFormat$outboundSchema),
|
|
4073
|
-
z.lazy(() => RunAgentFileFileInURIFormat$outboundSchema),
|
|
4074
|
-
]);
|
|
4075
|
-
|
|
4076
|
-
export function runAgentPublicMessagePartFileToJSON(
|
|
4077
|
-
runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile,
|
|
4078
|
-
): string {
|
|
4079
|
-
return JSON.stringify(
|
|
4080
|
-
RunAgentPublicMessagePartFile$outboundSchema.parse(
|
|
4081
|
-
runAgentPublicMessagePartFile,
|
|
4082
|
-
),
|
|
4083
|
-
);
|
|
4084
|
-
}
|
|
4085
|
-
export function runAgentPublicMessagePartFileFromJSON(
|
|
4086
|
-
jsonString: string,
|
|
4087
|
-
): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError> {
|
|
4088
|
-
return safeParse(
|
|
4089
|
-
jsonString,
|
|
4090
|
-
(x) => RunAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
|
|
4091
|
-
`Failed to parse 'RunAgentPublicMessagePartFile' from JSON`,
|
|
4092
|
-
);
|
|
4093
|
-
}
|
|
4094
|
-
|
|
4095
|
-
/** @internal */
|
|
4096
|
-
export const RunAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<
|
|
4097
|
-
RunAgentPublicMessagePartFilePart,
|
|
4098
|
-
z.ZodTypeDef,
|
|
4099
|
-
unknown
|
|
4100
|
-
> = z.object({
|
|
4101
|
-
kind: RunAgentPublicMessagePartKind$inboundSchema,
|
|
4102
|
-
file: z.union([
|
|
4103
|
-
z.lazy(() => RunAgentFileBinaryFormat$inboundSchema),
|
|
4104
|
-
z.lazy(() => RunAgentFileFileInURIFormat$inboundSchema),
|
|
4105
|
-
]),
|
|
4106
|
-
metadata: z.record(z.any()).optional(),
|
|
4107
|
-
});
|
|
4108
|
-
/** @internal */
|
|
4109
|
-
export type RunAgentPublicMessagePartFilePart$Outbound = {
|
|
4110
|
-
kind: string;
|
|
4111
|
-
file:
|
|
4112
|
-
| RunAgentFileBinaryFormat$Outbound
|
|
4113
|
-
| RunAgentFileFileInURIFormat$Outbound;
|
|
4114
|
-
metadata?: { [k: string]: any } | undefined;
|
|
4115
|
-
};
|
|
4116
|
-
|
|
4117
|
-
/** @internal */
|
|
4118
|
-
export const RunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<
|
|
4119
|
-
RunAgentPublicMessagePartFilePart$Outbound,
|
|
4120
|
-
z.ZodTypeDef,
|
|
4121
|
-
RunAgentPublicMessagePartFilePart
|
|
4122
|
-
> = z.object({
|
|
4123
|
-
kind: RunAgentPublicMessagePartKind$outboundSchema,
|
|
4124
|
-
file: z.union([
|
|
4125
|
-
z.lazy(() => RunAgentFileBinaryFormat$outboundSchema),
|
|
4126
|
-
z.lazy(() => RunAgentFileFileInURIFormat$outboundSchema),
|
|
4127
|
-
]),
|
|
4128
|
-
metadata: z.record(z.any()).optional(),
|
|
4129
|
-
});
|
|
4130
|
-
|
|
4131
|
-
export function runAgentPublicMessagePartFilePartToJSON(
|
|
4132
|
-
runAgentPublicMessagePartFilePart: RunAgentPublicMessagePartFilePart,
|
|
4133
|
-
): string {
|
|
4134
|
-
return JSON.stringify(
|
|
4135
|
-
RunAgentPublicMessagePartFilePart$outboundSchema.parse(
|
|
4136
|
-
runAgentPublicMessagePartFilePart,
|
|
4137
|
-
),
|
|
4138
|
-
);
|
|
4139
|
-
}
|
|
4140
|
-
export function runAgentPublicMessagePartFilePartFromJSON(
|
|
4141
|
-
jsonString: string,
|
|
4142
|
-
): SafeParseResult<RunAgentPublicMessagePartFilePart, SDKValidationError> {
|
|
4143
|
-
return safeParse(
|
|
4144
|
-
jsonString,
|
|
4145
|
-
(x) => RunAgentPublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
|
|
4146
|
-
`Failed to parse 'RunAgentPublicMessagePartFilePart' from JSON`,
|
|
4147
|
-
);
|
|
4148
|
-
}
|
|
4149
|
-
|
|
4150
3802
|
/** @internal */
|
|
4151
3803
|
export const RunAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
4152
3804
|
RunAgentPublicMessagePart,
|
|
@@ -4154,14 +3806,14 @@ export const RunAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
|
4154
3806
|
unknown
|
|
4155
3807
|
> = z.union([
|
|
4156
3808
|
components.TextPart$inboundSchema,
|
|
4157
|
-
|
|
4158
|
-
|
|
3809
|
+
components.FilePart$inboundSchema,
|
|
3810
|
+
components.ToolResultPart$inboundSchema,
|
|
4159
3811
|
]);
|
|
4160
3812
|
/** @internal */
|
|
4161
3813
|
export type RunAgentPublicMessagePart$Outbound =
|
|
4162
3814
|
| components.TextPart$Outbound
|
|
4163
|
-
|
|
|
4164
|
-
|
|
|
3815
|
+
| components.FilePart$Outbound
|
|
3816
|
+
| components.ToolResultPart$Outbound;
|
|
4165
3817
|
|
|
4166
3818
|
/** @internal */
|
|
4167
3819
|
export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
@@ -4170,8 +3822,8 @@ export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
|
4170
3822
|
RunAgentPublicMessagePart
|
|
4171
3823
|
> = z.union([
|
|
4172
3824
|
components.TextPart$outboundSchema,
|
|
4173
|
-
|
|
4174
|
-
|
|
3825
|
+
components.FilePart$outboundSchema,
|
|
3826
|
+
components.ToolResultPart$outboundSchema,
|
|
4175
3827
|
]);
|
|
4176
3828
|
|
|
4177
3829
|
export function runAgentPublicMessagePartToJSON(
|
|
@@ -4205,8 +3857,8 @@ export const RunAgentA2AMessage$inboundSchema: z.ZodType<
|
|
|
4205
3857
|
parts: z.array(
|
|
4206
3858
|
z.union([
|
|
4207
3859
|
components.TextPart$inboundSchema,
|
|
4208
|
-
|
|
4209
|
-
|
|
3860
|
+
components.FilePart$inboundSchema,
|
|
3861
|
+
components.ToolResultPart$inboundSchema,
|
|
4210
3862
|
]),
|
|
4211
3863
|
),
|
|
4212
3864
|
});
|
|
@@ -4216,8 +3868,8 @@ export type RunAgentA2AMessage$Outbound = {
|
|
|
4216
3868
|
role: string | string;
|
|
4217
3869
|
parts: Array<
|
|
4218
3870
|
| components.TextPart$Outbound
|
|
4219
|
-
|
|
|
4220
|
-
|
|
|
3871
|
+
| components.FilePart$Outbound
|
|
3872
|
+
| components.ToolResultPart$Outbound
|
|
4221
3873
|
>;
|
|
4222
3874
|
};
|
|
4223
3875
|
|
|
@@ -4235,8 +3887,8 @@ export const RunAgentA2AMessage$outboundSchema: z.ZodType<
|
|
|
4235
3887
|
parts: z.array(
|
|
4236
3888
|
z.union([
|
|
4237
3889
|
components.TextPart$outboundSchema,
|
|
4238
|
-
|
|
4239
|
-
|
|
3890
|
+
components.FilePart$outboundSchema,
|
|
3891
|
+
components.ToolResultPart$outboundSchema,
|
|
4240
3892
|
]),
|
|
4241
3893
|
),
|
|
4242
3894
|
});
|
|
@@ -4603,7 +4255,7 @@ export function schemaFromJSON(
|
|
|
4603
4255
|
/** @internal */
|
|
4604
4256
|
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
4605
4257
|
.object({
|
|
4606
|
-
id: z.string().default("
|
|
4258
|
+
id: z.string().default("01KAXXWAVCJE3AZ7BYS51PDTJY"),
|
|
4607
4259
|
name: z.string(),
|
|
4608
4260
|
description: z.string().optional(),
|
|
4609
4261
|
schema: z.lazy(() => Schema$inboundSchema),
|
|
@@ -4622,7 +4274,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4622
4274
|
z.ZodTypeDef,
|
|
4623
4275
|
Tools
|
|
4624
4276
|
> = z.object({
|
|
4625
|
-
id: z.string().default("
|
|
4277
|
+
id: z.string().default("01KAXXWAVCJE3AZ7BYS51PDTJY"),
|
|
4626
4278
|
name: z.string(),
|
|
4627
4279
|
description: z.string().optional(),
|
|
4628
4280
|
schema: z.lazy(() => Schema$outboundSchema),
|