@orq-ai/node 4.0.0-rc.67 → 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
|
@@ -783,7 +783,7 @@ export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
|
|
|
783
783
|
/**
|
|
784
784
|
* 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.
|
|
785
785
|
*/
|
|
786
|
-
export type
|
|
786
|
+
export type RunAgentPublicMessagePartToolResultPart = {
|
|
787
787
|
kind: RunAgentPublicMessagePartAgentsRequestKind;
|
|
788
788
|
toolCallId: string;
|
|
789
789
|
result?: any | undefined;
|
|
@@ -800,7 +800,7 @@ export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<
|
|
|
800
800
|
/**
|
|
801
801
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
802
802
|
*/
|
|
803
|
-
export type
|
|
803
|
+
export type RunAgentFileFileInURIFormat = {
|
|
804
804
|
/**
|
|
805
805
|
* URL for the File content
|
|
806
806
|
*/
|
|
@@ -818,7 +818,7 @@ export type FileFileInURIFormat = {
|
|
|
818
818
|
/**
|
|
819
819
|
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
820
820
|
*/
|
|
821
|
-
export type
|
|
821
|
+
export type RunAgentFileBinaryFormat = {
|
|
822
822
|
/**
|
|
823
823
|
* base64 encoded content of the file
|
|
824
824
|
*/
|
|
@@ -834,15 +834,15 @@ export type FileBinaryFormat = {
|
|
|
834
834
|
};
|
|
835
835
|
|
|
836
836
|
export type RunAgentPublicMessagePartFile =
|
|
837
|
-
|
|
|
838
|
-
|
|
|
837
|
+
| RunAgentFileBinaryFormat
|
|
838
|
+
| RunAgentFileFileInURIFormat;
|
|
839
839
|
|
|
840
840
|
/**
|
|
841
841
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
842
842
|
*/
|
|
843
|
-
export type
|
|
843
|
+
export type RunAgentPublicMessagePartFilePart = {
|
|
844
844
|
kind: RunAgentPublicMessagePartAgentsKind;
|
|
845
|
-
file:
|
|
845
|
+
file: RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
|
|
846
846
|
metadata?: { [k: string]: any } | undefined;
|
|
847
847
|
};
|
|
848
848
|
|
|
@@ -856,7 +856,7 @@ export type RunAgentPublicMessagePartKind = ClosedEnum<
|
|
|
856
856
|
/**
|
|
857
857
|
* Text content part. Use this to send text messages to the agent.
|
|
858
858
|
*/
|
|
859
|
-
export type
|
|
859
|
+
export type RunAgentPublicMessagePartTextPart = {
|
|
860
860
|
kind: RunAgentPublicMessagePartKind;
|
|
861
861
|
text: string;
|
|
862
862
|
};
|
|
@@ -865,9 +865,9 @@ export type PublicMessagePartTextPart = {
|
|
|
865
865
|
* 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.
|
|
866
866
|
*/
|
|
867
867
|
export type RunAgentPublicMessagePart =
|
|
868
|
-
|
|
|
869
|
-
|
|
|
870
|
-
|
|
|
868
|
+
| RunAgentPublicMessagePartTextPart
|
|
869
|
+
| RunAgentPublicMessagePartFilePart
|
|
870
|
+
| RunAgentPublicMessagePartToolResultPart;
|
|
871
871
|
|
|
872
872
|
/**
|
|
873
873
|
* The A2A format message containing the task for the agent to perform.
|
|
@@ -885,9 +885,9 @@ export type RunAgentA2AMessage = {
|
|
|
885
885
|
* A2A message parts (text, file, or tool_result only)
|
|
886
886
|
*/
|
|
887
887
|
parts: Array<
|
|
888
|
-
|
|
|
889
|
-
|
|
|
890
|
-
|
|
|
888
|
+
| RunAgentPublicMessagePartTextPart
|
|
889
|
+
| RunAgentPublicMessagePartFilePart
|
|
890
|
+
| RunAgentPublicMessagePartToolResultPart
|
|
891
891
|
>;
|
|
892
892
|
};
|
|
893
893
|
|
|
@@ -1854,7 +1854,7 @@ export type RunAgentPartsAgentsResponseKind = ClosedEnum<
|
|
|
1854
1854
|
/**
|
|
1855
1855
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
1856
1856
|
*/
|
|
1857
|
-
export type
|
|
1857
|
+
export type RunAgentFileAgentsFileInURIFormat = {
|
|
1858
1858
|
/**
|
|
1859
1859
|
* URL for the File content
|
|
1860
1860
|
*/
|
|
@@ -1872,7 +1872,7 @@ export type RunAgentFileFileInURIFormat = {
|
|
|
1872
1872
|
/**
|
|
1873
1873
|
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
1874
1874
|
*/
|
|
1875
|
-
export type
|
|
1875
|
+
export type RunAgentFileAgentsBinaryFormat = {
|
|
1876
1876
|
/**
|
|
1877
1877
|
* base64 encoded content of the file
|
|
1878
1878
|
*/
|
|
@@ -1888,15 +1888,15 @@ export type RunAgentFileBinaryFormat = {
|
|
|
1888
1888
|
};
|
|
1889
1889
|
|
|
1890
1890
|
export type RunAgentPartsFile =
|
|
1891
|
-
|
|
|
1892
|
-
|
|
|
1891
|
+
| RunAgentFileAgentsBinaryFormat
|
|
1892
|
+
| RunAgentFileAgentsFileInURIFormat;
|
|
1893
1893
|
|
|
1894
1894
|
/**
|
|
1895
1895
|
* 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.
|
|
1896
1896
|
*/
|
|
1897
1897
|
export type RunAgentPartsFilePart = {
|
|
1898
1898
|
kind: RunAgentPartsAgentsResponseKind;
|
|
1899
|
-
file:
|
|
1899
|
+
file: RunAgentFileAgentsBinaryFormat | RunAgentFileAgentsFileInURIFormat;
|
|
1900
1900
|
metadata?: { [k: string]: any } | undefined;
|
|
1901
1901
|
};
|
|
1902
1902
|
|
|
@@ -4018,8 +4018,8 @@ export const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema:
|
|
|
4018
4018
|
RunAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
4019
4019
|
|
|
4020
4020
|
/** @internal */
|
|
4021
|
-
export const
|
|
4022
|
-
|
|
4021
|
+
export const RunAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<
|
|
4022
|
+
RunAgentPublicMessagePartToolResultPart,
|
|
4023
4023
|
z.ZodTypeDef,
|
|
4024
4024
|
unknown
|
|
4025
4025
|
> = z.object({
|
|
@@ -4033,7 +4033,7 @@ export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
|
|
|
4033
4033
|
});
|
|
4034
4034
|
});
|
|
4035
4035
|
/** @internal */
|
|
4036
|
-
export type
|
|
4036
|
+
export type RunAgentPublicMessagePartToolResultPart$Outbound = {
|
|
4037
4037
|
kind: string;
|
|
4038
4038
|
tool_call_id: string;
|
|
4039
4039
|
result?: any | undefined;
|
|
@@ -4041,10 +4041,10 @@ export type PublicMessagePartToolResultPart$Outbound = {
|
|
|
4041
4041
|
};
|
|
4042
4042
|
|
|
4043
4043
|
/** @internal */
|
|
4044
|
-
export const
|
|
4045
|
-
|
|
4044
|
+
export const RunAgentPublicMessagePartToolResultPart$outboundSchema: z.ZodType<
|
|
4045
|
+
RunAgentPublicMessagePartToolResultPart$Outbound,
|
|
4046
4046
|
z.ZodTypeDef,
|
|
4047
|
-
|
|
4047
|
+
RunAgentPublicMessagePartToolResultPart
|
|
4048
4048
|
> = z.object({
|
|
4049
4049
|
kind: RunAgentPublicMessagePartAgentsRequestKind$outboundSchema,
|
|
4050
4050
|
toolCallId: z.string(),
|
|
@@ -4056,22 +4056,29 @@ export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
|
|
|
4056
4056
|
});
|
|
4057
4057
|
});
|
|
4058
4058
|
|
|
4059
|
-
export function
|
|
4060
|
-
|
|
4059
|
+
export function runAgentPublicMessagePartToolResultPartToJSON(
|
|
4060
|
+
runAgentPublicMessagePartToolResultPart:
|
|
4061
|
+
RunAgentPublicMessagePartToolResultPart,
|
|
4061
4062
|
): string {
|
|
4062
4063
|
return JSON.stringify(
|
|
4063
|
-
|
|
4064
|
-
|
|
4064
|
+
RunAgentPublicMessagePartToolResultPart$outboundSchema.parse(
|
|
4065
|
+
runAgentPublicMessagePartToolResultPart,
|
|
4065
4066
|
),
|
|
4066
4067
|
);
|
|
4067
4068
|
}
|
|
4068
|
-
export function
|
|
4069
|
+
export function runAgentPublicMessagePartToolResultPartFromJSON(
|
|
4069
4070
|
jsonString: string,
|
|
4070
|
-
): SafeParseResult<
|
|
4071
|
+
): SafeParseResult<
|
|
4072
|
+
RunAgentPublicMessagePartToolResultPart,
|
|
4073
|
+
SDKValidationError
|
|
4074
|
+
> {
|
|
4071
4075
|
return safeParse(
|
|
4072
4076
|
jsonString,
|
|
4073
|
-
(x) =>
|
|
4074
|
-
|
|
4077
|
+
(x) =>
|
|
4078
|
+
RunAgentPublicMessagePartToolResultPart$inboundSchema.parse(
|
|
4079
|
+
JSON.parse(x),
|
|
4080
|
+
),
|
|
4081
|
+
`Failed to parse 'RunAgentPublicMessagePartToolResultPart' from JSON`,
|
|
4075
4082
|
);
|
|
4076
4083
|
}
|
|
4077
4084
|
|
|
@@ -4085,8 +4092,8 @@ export const RunAgentPublicMessagePartAgentsKind$outboundSchema:
|
|
|
4085
4092
|
RunAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
4086
4093
|
|
|
4087
4094
|
/** @internal */
|
|
4088
|
-
export const
|
|
4089
|
-
|
|
4095
|
+
export const RunAgentFileFileInURIFormat$inboundSchema: z.ZodType<
|
|
4096
|
+
RunAgentFileFileInURIFormat,
|
|
4090
4097
|
z.ZodTypeDef,
|
|
4091
4098
|
unknown
|
|
4092
4099
|
> = z.object({
|
|
@@ -4095,43 +4102,45 @@ export const FileFileInURIFormat$inboundSchema: z.ZodType<
|
|
|
4095
4102
|
name: z.string().optional(),
|
|
4096
4103
|
});
|
|
4097
4104
|
/** @internal */
|
|
4098
|
-
export type
|
|
4105
|
+
export type RunAgentFileFileInURIFormat$Outbound = {
|
|
4099
4106
|
uri: string;
|
|
4100
4107
|
mimeType?: string | undefined;
|
|
4101
4108
|
name?: string | undefined;
|
|
4102
4109
|
};
|
|
4103
4110
|
|
|
4104
4111
|
/** @internal */
|
|
4105
|
-
export const
|
|
4106
|
-
|
|
4112
|
+
export const RunAgentFileFileInURIFormat$outboundSchema: z.ZodType<
|
|
4113
|
+
RunAgentFileFileInURIFormat$Outbound,
|
|
4107
4114
|
z.ZodTypeDef,
|
|
4108
|
-
|
|
4115
|
+
RunAgentFileFileInURIFormat
|
|
4109
4116
|
> = z.object({
|
|
4110
4117
|
uri: z.string(),
|
|
4111
4118
|
mimeType: z.string().optional(),
|
|
4112
4119
|
name: z.string().optional(),
|
|
4113
4120
|
});
|
|
4114
4121
|
|
|
4115
|
-
export function
|
|
4116
|
-
|
|
4122
|
+
export function runAgentFileFileInURIFormatToJSON(
|
|
4123
|
+
runAgentFileFileInURIFormat: RunAgentFileFileInURIFormat,
|
|
4117
4124
|
): string {
|
|
4118
4125
|
return JSON.stringify(
|
|
4119
|
-
|
|
4126
|
+
RunAgentFileFileInURIFormat$outboundSchema.parse(
|
|
4127
|
+
runAgentFileFileInURIFormat,
|
|
4128
|
+
),
|
|
4120
4129
|
);
|
|
4121
4130
|
}
|
|
4122
|
-
export function
|
|
4131
|
+
export function runAgentFileFileInURIFormatFromJSON(
|
|
4123
4132
|
jsonString: string,
|
|
4124
|
-
): SafeParseResult<
|
|
4133
|
+
): SafeParseResult<RunAgentFileFileInURIFormat, SDKValidationError> {
|
|
4125
4134
|
return safeParse(
|
|
4126
4135
|
jsonString,
|
|
4127
|
-
(x) =>
|
|
4128
|
-
`Failed to parse '
|
|
4136
|
+
(x) => RunAgentFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
4137
|
+
`Failed to parse 'RunAgentFileFileInURIFormat' from JSON`,
|
|
4129
4138
|
);
|
|
4130
4139
|
}
|
|
4131
4140
|
|
|
4132
4141
|
/** @internal */
|
|
4133
|
-
export const
|
|
4134
|
-
|
|
4142
|
+
export const RunAgentFileBinaryFormat$inboundSchema: z.ZodType<
|
|
4143
|
+
RunAgentFileBinaryFormat,
|
|
4135
4144
|
z.ZodTypeDef,
|
|
4136
4145
|
unknown
|
|
4137
4146
|
> = z.object({
|
|
@@ -4140,37 +4149,37 @@ export const FileBinaryFormat$inboundSchema: z.ZodType<
|
|
|
4140
4149
|
name: z.string().optional(),
|
|
4141
4150
|
});
|
|
4142
4151
|
/** @internal */
|
|
4143
|
-
export type
|
|
4152
|
+
export type RunAgentFileBinaryFormat$Outbound = {
|
|
4144
4153
|
bytes: string;
|
|
4145
4154
|
mimeType?: string | undefined;
|
|
4146
4155
|
name?: string | undefined;
|
|
4147
4156
|
};
|
|
4148
4157
|
|
|
4149
4158
|
/** @internal */
|
|
4150
|
-
export const
|
|
4151
|
-
|
|
4159
|
+
export const RunAgentFileBinaryFormat$outboundSchema: z.ZodType<
|
|
4160
|
+
RunAgentFileBinaryFormat$Outbound,
|
|
4152
4161
|
z.ZodTypeDef,
|
|
4153
|
-
|
|
4162
|
+
RunAgentFileBinaryFormat
|
|
4154
4163
|
> = z.object({
|
|
4155
4164
|
bytes: z.string(),
|
|
4156
4165
|
mimeType: z.string().optional(),
|
|
4157
4166
|
name: z.string().optional(),
|
|
4158
4167
|
});
|
|
4159
4168
|
|
|
4160
|
-
export function
|
|
4161
|
-
|
|
4169
|
+
export function runAgentFileBinaryFormatToJSON(
|
|
4170
|
+
runAgentFileBinaryFormat: RunAgentFileBinaryFormat,
|
|
4162
4171
|
): string {
|
|
4163
4172
|
return JSON.stringify(
|
|
4164
|
-
|
|
4173
|
+
RunAgentFileBinaryFormat$outboundSchema.parse(runAgentFileBinaryFormat),
|
|
4165
4174
|
);
|
|
4166
4175
|
}
|
|
4167
|
-
export function
|
|
4176
|
+
export function runAgentFileBinaryFormatFromJSON(
|
|
4168
4177
|
jsonString: string,
|
|
4169
|
-
): SafeParseResult<
|
|
4178
|
+
): SafeParseResult<RunAgentFileBinaryFormat, SDKValidationError> {
|
|
4170
4179
|
return safeParse(
|
|
4171
4180
|
jsonString,
|
|
4172
|
-
(x) =>
|
|
4173
|
-
`Failed to parse '
|
|
4181
|
+
(x) => RunAgentFileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
4182
|
+
`Failed to parse 'RunAgentFileBinaryFormat' from JSON`,
|
|
4174
4183
|
);
|
|
4175
4184
|
}
|
|
4176
4185
|
|
|
@@ -4180,13 +4189,13 @@ export const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<
|
|
|
4180
4189
|
z.ZodTypeDef,
|
|
4181
4190
|
unknown
|
|
4182
4191
|
> = z.union([
|
|
4183
|
-
z.lazy(() =>
|
|
4184
|
-
z.lazy(() =>
|
|
4192
|
+
z.lazy(() => RunAgentFileBinaryFormat$inboundSchema),
|
|
4193
|
+
z.lazy(() => RunAgentFileFileInURIFormat$inboundSchema),
|
|
4185
4194
|
]);
|
|
4186
4195
|
/** @internal */
|
|
4187
4196
|
export type RunAgentPublicMessagePartFile$Outbound =
|
|
4188
|
-
|
|
|
4189
|
-
|
|
|
4197
|
+
| RunAgentFileBinaryFormat$Outbound
|
|
4198
|
+
| RunAgentFileFileInURIFormat$Outbound;
|
|
4190
4199
|
|
|
4191
4200
|
/** @internal */
|
|
4192
4201
|
export const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
@@ -4194,8 +4203,8 @@ export const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
|
4194
4203
|
z.ZodTypeDef,
|
|
4195
4204
|
RunAgentPublicMessagePartFile
|
|
4196
4205
|
> = z.union([
|
|
4197
|
-
z.lazy(() =>
|
|
4198
|
-
z.lazy(() =>
|
|
4206
|
+
z.lazy(() => RunAgentFileBinaryFormat$outboundSchema),
|
|
4207
|
+
z.lazy(() => RunAgentFileFileInURIFormat$outboundSchema),
|
|
4199
4208
|
]);
|
|
4200
4209
|
|
|
4201
4210
|
export function runAgentPublicMessagePartFileToJSON(
|
|
@@ -4218,53 +4227,57 @@ export function runAgentPublicMessagePartFileFromJSON(
|
|
|
4218
4227
|
}
|
|
4219
4228
|
|
|
4220
4229
|
/** @internal */
|
|
4221
|
-
export const
|
|
4222
|
-
|
|
4230
|
+
export const RunAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<
|
|
4231
|
+
RunAgentPublicMessagePartFilePart,
|
|
4223
4232
|
z.ZodTypeDef,
|
|
4224
4233
|
unknown
|
|
4225
4234
|
> = z.object({
|
|
4226
4235
|
kind: RunAgentPublicMessagePartAgentsKind$inboundSchema,
|
|
4227
4236
|
file: z.union([
|
|
4228
|
-
z.lazy(() =>
|
|
4229
|
-
z.lazy(() =>
|
|
4237
|
+
z.lazy(() => RunAgentFileBinaryFormat$inboundSchema),
|
|
4238
|
+
z.lazy(() => RunAgentFileFileInURIFormat$inboundSchema),
|
|
4230
4239
|
]),
|
|
4231
4240
|
metadata: z.record(z.any()).optional(),
|
|
4232
4241
|
});
|
|
4233
4242
|
/** @internal */
|
|
4234
|
-
export type
|
|
4243
|
+
export type RunAgentPublicMessagePartFilePart$Outbound = {
|
|
4235
4244
|
kind: string;
|
|
4236
|
-
file:
|
|
4245
|
+
file:
|
|
4246
|
+
| RunAgentFileBinaryFormat$Outbound
|
|
4247
|
+
| RunAgentFileFileInURIFormat$Outbound;
|
|
4237
4248
|
metadata?: { [k: string]: any } | undefined;
|
|
4238
4249
|
};
|
|
4239
4250
|
|
|
4240
4251
|
/** @internal */
|
|
4241
|
-
export const
|
|
4242
|
-
|
|
4252
|
+
export const RunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<
|
|
4253
|
+
RunAgentPublicMessagePartFilePart$Outbound,
|
|
4243
4254
|
z.ZodTypeDef,
|
|
4244
|
-
|
|
4255
|
+
RunAgentPublicMessagePartFilePart
|
|
4245
4256
|
> = z.object({
|
|
4246
4257
|
kind: RunAgentPublicMessagePartAgentsKind$outboundSchema,
|
|
4247
4258
|
file: z.union([
|
|
4248
|
-
z.lazy(() =>
|
|
4249
|
-
z.lazy(() =>
|
|
4259
|
+
z.lazy(() => RunAgentFileBinaryFormat$outboundSchema),
|
|
4260
|
+
z.lazy(() => RunAgentFileFileInURIFormat$outboundSchema),
|
|
4250
4261
|
]),
|
|
4251
4262
|
metadata: z.record(z.any()).optional(),
|
|
4252
4263
|
});
|
|
4253
4264
|
|
|
4254
|
-
export function
|
|
4255
|
-
|
|
4265
|
+
export function runAgentPublicMessagePartFilePartToJSON(
|
|
4266
|
+
runAgentPublicMessagePartFilePart: RunAgentPublicMessagePartFilePart,
|
|
4256
4267
|
): string {
|
|
4257
4268
|
return JSON.stringify(
|
|
4258
|
-
|
|
4269
|
+
RunAgentPublicMessagePartFilePart$outboundSchema.parse(
|
|
4270
|
+
runAgentPublicMessagePartFilePart,
|
|
4271
|
+
),
|
|
4259
4272
|
);
|
|
4260
4273
|
}
|
|
4261
|
-
export function
|
|
4274
|
+
export function runAgentPublicMessagePartFilePartFromJSON(
|
|
4262
4275
|
jsonString: string,
|
|
4263
|
-
): SafeParseResult<
|
|
4276
|
+
): SafeParseResult<RunAgentPublicMessagePartFilePart, SDKValidationError> {
|
|
4264
4277
|
return safeParse(
|
|
4265
4278
|
jsonString,
|
|
4266
|
-
(x) =>
|
|
4267
|
-
`Failed to parse '
|
|
4279
|
+
(x) => RunAgentPublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
|
|
4280
|
+
`Failed to parse 'RunAgentPublicMessagePartFilePart' from JSON`,
|
|
4268
4281
|
);
|
|
4269
4282
|
}
|
|
4270
4283
|
|
|
@@ -4278,8 +4291,8 @@ export const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
|
4278
4291
|
> = RunAgentPublicMessagePartKind$inboundSchema;
|
|
4279
4292
|
|
|
4280
4293
|
/** @internal */
|
|
4281
|
-
export const
|
|
4282
|
-
|
|
4294
|
+
export const RunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<
|
|
4295
|
+
RunAgentPublicMessagePartTextPart,
|
|
4283
4296
|
z.ZodTypeDef,
|
|
4284
4297
|
unknown
|
|
4285
4298
|
> = z.object({
|
|
@@ -4287,35 +4300,37 @@ export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
|
|
|
4287
4300
|
text: z.string(),
|
|
4288
4301
|
});
|
|
4289
4302
|
/** @internal */
|
|
4290
|
-
export type
|
|
4303
|
+
export type RunAgentPublicMessagePartTextPart$Outbound = {
|
|
4291
4304
|
kind: string;
|
|
4292
4305
|
text: string;
|
|
4293
4306
|
};
|
|
4294
4307
|
|
|
4295
4308
|
/** @internal */
|
|
4296
|
-
export const
|
|
4297
|
-
|
|
4309
|
+
export const RunAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<
|
|
4310
|
+
RunAgentPublicMessagePartTextPart$Outbound,
|
|
4298
4311
|
z.ZodTypeDef,
|
|
4299
|
-
|
|
4312
|
+
RunAgentPublicMessagePartTextPart
|
|
4300
4313
|
> = z.object({
|
|
4301
4314
|
kind: RunAgentPublicMessagePartKind$outboundSchema,
|
|
4302
4315
|
text: z.string(),
|
|
4303
4316
|
});
|
|
4304
4317
|
|
|
4305
|
-
export function
|
|
4306
|
-
|
|
4318
|
+
export function runAgentPublicMessagePartTextPartToJSON(
|
|
4319
|
+
runAgentPublicMessagePartTextPart: RunAgentPublicMessagePartTextPart,
|
|
4307
4320
|
): string {
|
|
4308
4321
|
return JSON.stringify(
|
|
4309
|
-
|
|
4322
|
+
RunAgentPublicMessagePartTextPart$outboundSchema.parse(
|
|
4323
|
+
runAgentPublicMessagePartTextPart,
|
|
4324
|
+
),
|
|
4310
4325
|
);
|
|
4311
4326
|
}
|
|
4312
|
-
export function
|
|
4327
|
+
export function runAgentPublicMessagePartTextPartFromJSON(
|
|
4313
4328
|
jsonString: string,
|
|
4314
|
-
): SafeParseResult<
|
|
4329
|
+
): SafeParseResult<RunAgentPublicMessagePartTextPart, SDKValidationError> {
|
|
4315
4330
|
return safeParse(
|
|
4316
4331
|
jsonString,
|
|
4317
|
-
(x) =>
|
|
4318
|
-
`Failed to parse '
|
|
4332
|
+
(x) => RunAgentPublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
|
|
4333
|
+
`Failed to parse 'RunAgentPublicMessagePartTextPart' from JSON`,
|
|
4319
4334
|
);
|
|
4320
4335
|
}
|
|
4321
4336
|
|
|
@@ -4325,15 +4340,15 @@ export const RunAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
|
4325
4340
|
z.ZodTypeDef,
|
|
4326
4341
|
unknown
|
|
4327
4342
|
> = z.union([
|
|
4328
|
-
z.lazy(() =>
|
|
4329
|
-
z.lazy(() =>
|
|
4330
|
-
z.lazy(() =>
|
|
4343
|
+
z.lazy(() => RunAgentPublicMessagePartTextPart$inboundSchema),
|
|
4344
|
+
z.lazy(() => RunAgentPublicMessagePartFilePart$inboundSchema),
|
|
4345
|
+
z.lazy(() => RunAgentPublicMessagePartToolResultPart$inboundSchema),
|
|
4331
4346
|
]);
|
|
4332
4347
|
/** @internal */
|
|
4333
4348
|
export type RunAgentPublicMessagePart$Outbound =
|
|
4334
|
-
|
|
|
4335
|
-
|
|
|
4336
|
-
|
|
|
4349
|
+
| RunAgentPublicMessagePartTextPart$Outbound
|
|
4350
|
+
| RunAgentPublicMessagePartFilePart$Outbound
|
|
4351
|
+
| RunAgentPublicMessagePartToolResultPart$Outbound;
|
|
4337
4352
|
|
|
4338
4353
|
/** @internal */
|
|
4339
4354
|
export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
@@ -4341,9 +4356,9 @@ export const RunAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
|
4341
4356
|
z.ZodTypeDef,
|
|
4342
4357
|
RunAgentPublicMessagePart
|
|
4343
4358
|
> = z.union([
|
|
4344
|
-
z.lazy(() =>
|
|
4345
|
-
z.lazy(() =>
|
|
4346
|
-
z.lazy(() =>
|
|
4359
|
+
z.lazy(() => RunAgentPublicMessagePartTextPart$outboundSchema),
|
|
4360
|
+
z.lazy(() => RunAgentPublicMessagePartFilePart$outboundSchema),
|
|
4361
|
+
z.lazy(() => RunAgentPublicMessagePartToolResultPart$outboundSchema),
|
|
4347
4362
|
]);
|
|
4348
4363
|
|
|
4349
4364
|
export function runAgentPublicMessagePartToJSON(
|
|
@@ -4376,9 +4391,9 @@ export const RunAgentA2AMessage$inboundSchema: z.ZodType<
|
|
|
4376
4391
|
]),
|
|
4377
4392
|
parts: z.array(
|
|
4378
4393
|
z.union([
|
|
4379
|
-
z.lazy(() =>
|
|
4380
|
-
z.lazy(() =>
|
|
4381
|
-
z.lazy(() =>
|
|
4394
|
+
z.lazy(() => RunAgentPublicMessagePartTextPart$inboundSchema),
|
|
4395
|
+
z.lazy(() => RunAgentPublicMessagePartFilePart$inboundSchema),
|
|
4396
|
+
z.lazy(() => RunAgentPublicMessagePartToolResultPart$inboundSchema),
|
|
4382
4397
|
]),
|
|
4383
4398
|
),
|
|
4384
4399
|
});
|
|
@@ -4387,9 +4402,9 @@ export type RunAgentA2AMessage$Outbound = {
|
|
|
4387
4402
|
messageId?: string | undefined;
|
|
4388
4403
|
role: string | string;
|
|
4389
4404
|
parts: Array<
|
|
4390
|
-
|
|
|
4391
|
-
|
|
|
4392
|
-
|
|
|
4405
|
+
| RunAgentPublicMessagePartTextPart$Outbound
|
|
4406
|
+
| RunAgentPublicMessagePartFilePart$Outbound
|
|
4407
|
+
| RunAgentPublicMessagePartToolResultPart$Outbound
|
|
4393
4408
|
>;
|
|
4394
4409
|
};
|
|
4395
4410
|
|
|
@@ -4406,9 +4421,9 @@ export const RunAgentA2AMessage$outboundSchema: z.ZodType<
|
|
|
4406
4421
|
]),
|
|
4407
4422
|
parts: z.array(
|
|
4408
4423
|
z.union([
|
|
4409
|
-
z.lazy(() =>
|
|
4410
|
-
z.lazy(() =>
|
|
4411
|
-
z.lazy(() =>
|
|
4424
|
+
z.lazy(() => RunAgentPublicMessagePartTextPart$outboundSchema),
|
|
4425
|
+
z.lazy(() => RunAgentPublicMessagePartFilePart$outboundSchema),
|
|
4426
|
+
z.lazy(() => RunAgentPublicMessagePartToolResultPart$outboundSchema),
|
|
4412
4427
|
]),
|
|
4413
4428
|
),
|
|
4414
4429
|
});
|
|
@@ -4775,7 +4790,7 @@ export function schemaFromJSON(
|
|
|
4775
4790
|
/** @internal */
|
|
4776
4791
|
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
4777
4792
|
.object({
|
|
4778
|
-
id: z.string().default("
|
|
4793
|
+
id: z.string().default("01KAPPHK6BF0YKV93QFZZSJKT9"),
|
|
4779
4794
|
name: z.string(),
|
|
4780
4795
|
description: z.string().optional(),
|
|
4781
4796
|
schema: z.lazy(() => Schema$inboundSchema),
|
|
@@ -4794,7 +4809,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4794
4809
|
z.ZodTypeDef,
|
|
4795
4810
|
Tools
|
|
4796
4811
|
> = z.object({
|
|
4797
|
-
id: z.string().default("
|
|
4812
|
+
id: z.string().default("01KAPPHK6BF0YKV93QFZZSJKT9"),
|
|
4798
4813
|
name: z.string(),
|
|
4799
4814
|
description: z.string().optional(),
|
|
4800
4815
|
schema: z.lazy(() => Schema$outboundSchema),
|
|
@@ -6683,7 +6698,7 @@ export const RunAgentSettings$inboundSchema: z.ZodType<
|
|
|
6683
6698
|
tool_approval_required: RunAgentToolApprovalRequired$inboundSchema.default(
|
|
6684
6699
|
"none",
|
|
6685
6700
|
),
|
|
6686
|
-
max_iterations: z.number().int().default(
|
|
6701
|
+
max_iterations: z.number().int().default(100),
|
|
6687
6702
|
max_execution_time: z.number().int().default(300),
|
|
6688
6703
|
evaluators: z.array(z.lazy(() => RunAgentEvaluators$inboundSchema))
|
|
6689
6704
|
.optional(),
|
|
@@ -6752,7 +6767,7 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
|
6752
6767
|
toolApprovalRequired: RunAgentToolApprovalRequired$outboundSchema.default(
|
|
6753
6768
|
"none",
|
|
6754
6769
|
),
|
|
6755
|
-
maxIterations: z.number().int().default(
|
|
6770
|
+
maxIterations: z.number().int().default(100),
|
|
6756
6771
|
maxExecutionTime: z.number().int().default(300),
|
|
6757
6772
|
evaluators: z.array(z.lazy(() => RunAgentEvaluators$outboundSchema))
|
|
6758
6773
|
.optional(),
|
|
@@ -7097,8 +7112,8 @@ export const RunAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<
|
|
|
7097
7112
|
> = RunAgentPartsAgentsResponseKind$inboundSchema;
|
|
7098
7113
|
|
|
7099
7114
|
/** @internal */
|
|
7100
|
-
export const
|
|
7101
|
-
|
|
7115
|
+
export const RunAgentFileAgentsFileInURIFormat$inboundSchema: z.ZodType<
|
|
7116
|
+
RunAgentFileAgentsFileInURIFormat,
|
|
7102
7117
|
z.ZodTypeDef,
|
|
7103
7118
|
unknown
|
|
7104
7119
|
> = z.object({
|
|
@@ -7107,45 +7122,45 @@ export const RunAgentFileFileInURIFormat$inboundSchema: z.ZodType<
|
|
|
7107
7122
|
name: z.string().optional(),
|
|
7108
7123
|
});
|
|
7109
7124
|
/** @internal */
|
|
7110
|
-
export type
|
|
7125
|
+
export type RunAgentFileAgentsFileInURIFormat$Outbound = {
|
|
7111
7126
|
uri: string;
|
|
7112
7127
|
mimeType?: string | undefined;
|
|
7113
7128
|
name?: string | undefined;
|
|
7114
7129
|
};
|
|
7115
7130
|
|
|
7116
7131
|
/** @internal */
|
|
7117
|
-
export const
|
|
7118
|
-
|
|
7132
|
+
export const RunAgentFileAgentsFileInURIFormat$outboundSchema: z.ZodType<
|
|
7133
|
+
RunAgentFileAgentsFileInURIFormat$Outbound,
|
|
7119
7134
|
z.ZodTypeDef,
|
|
7120
|
-
|
|
7135
|
+
RunAgentFileAgentsFileInURIFormat
|
|
7121
7136
|
> = z.object({
|
|
7122
7137
|
uri: z.string(),
|
|
7123
7138
|
mimeType: z.string().optional(),
|
|
7124
7139
|
name: z.string().optional(),
|
|
7125
7140
|
});
|
|
7126
7141
|
|
|
7127
|
-
export function
|
|
7128
|
-
|
|
7142
|
+
export function runAgentFileAgentsFileInURIFormatToJSON(
|
|
7143
|
+
runAgentFileAgentsFileInURIFormat: RunAgentFileAgentsFileInURIFormat,
|
|
7129
7144
|
): string {
|
|
7130
7145
|
return JSON.stringify(
|
|
7131
|
-
|
|
7132
|
-
|
|
7146
|
+
RunAgentFileAgentsFileInURIFormat$outboundSchema.parse(
|
|
7147
|
+
runAgentFileAgentsFileInURIFormat,
|
|
7133
7148
|
),
|
|
7134
7149
|
);
|
|
7135
7150
|
}
|
|
7136
|
-
export function
|
|
7151
|
+
export function runAgentFileAgentsFileInURIFormatFromJSON(
|
|
7137
7152
|
jsonString: string,
|
|
7138
|
-
): SafeParseResult<
|
|
7153
|
+
): SafeParseResult<RunAgentFileAgentsFileInURIFormat, SDKValidationError> {
|
|
7139
7154
|
return safeParse(
|
|
7140
7155
|
jsonString,
|
|
7141
|
-
(x) =>
|
|
7142
|
-
`Failed to parse '
|
|
7156
|
+
(x) => RunAgentFileAgentsFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
7157
|
+
`Failed to parse 'RunAgentFileAgentsFileInURIFormat' from JSON`,
|
|
7143
7158
|
);
|
|
7144
7159
|
}
|
|
7145
7160
|
|
|
7146
7161
|
/** @internal */
|
|
7147
|
-
export const
|
|
7148
|
-
|
|
7162
|
+
export const RunAgentFileAgentsBinaryFormat$inboundSchema: z.ZodType<
|
|
7163
|
+
RunAgentFileAgentsBinaryFormat,
|
|
7149
7164
|
z.ZodTypeDef,
|
|
7150
7165
|
unknown
|
|
7151
7166
|
> = z.object({
|
|
@@ -7154,37 +7169,39 @@ export const RunAgentFileBinaryFormat$inboundSchema: z.ZodType<
|
|
|
7154
7169
|
name: z.string().optional(),
|
|
7155
7170
|
});
|
|
7156
7171
|
/** @internal */
|
|
7157
|
-
export type
|
|
7172
|
+
export type RunAgentFileAgentsBinaryFormat$Outbound = {
|
|
7158
7173
|
bytes: string;
|
|
7159
7174
|
mimeType?: string | undefined;
|
|
7160
7175
|
name?: string | undefined;
|
|
7161
7176
|
};
|
|
7162
7177
|
|
|
7163
7178
|
/** @internal */
|
|
7164
|
-
export const
|
|
7165
|
-
|
|
7179
|
+
export const RunAgentFileAgentsBinaryFormat$outboundSchema: z.ZodType<
|
|
7180
|
+
RunAgentFileAgentsBinaryFormat$Outbound,
|
|
7166
7181
|
z.ZodTypeDef,
|
|
7167
|
-
|
|
7182
|
+
RunAgentFileAgentsBinaryFormat
|
|
7168
7183
|
> = z.object({
|
|
7169
7184
|
bytes: z.string(),
|
|
7170
7185
|
mimeType: z.string().optional(),
|
|
7171
7186
|
name: z.string().optional(),
|
|
7172
7187
|
});
|
|
7173
7188
|
|
|
7174
|
-
export function
|
|
7175
|
-
|
|
7189
|
+
export function runAgentFileAgentsBinaryFormatToJSON(
|
|
7190
|
+
runAgentFileAgentsBinaryFormat: RunAgentFileAgentsBinaryFormat,
|
|
7176
7191
|
): string {
|
|
7177
7192
|
return JSON.stringify(
|
|
7178
|
-
|
|
7193
|
+
RunAgentFileAgentsBinaryFormat$outboundSchema.parse(
|
|
7194
|
+
runAgentFileAgentsBinaryFormat,
|
|
7195
|
+
),
|
|
7179
7196
|
);
|
|
7180
7197
|
}
|
|
7181
|
-
export function
|
|
7198
|
+
export function runAgentFileAgentsBinaryFormatFromJSON(
|
|
7182
7199
|
jsonString: string,
|
|
7183
|
-
): SafeParseResult<
|
|
7200
|
+
): SafeParseResult<RunAgentFileAgentsBinaryFormat, SDKValidationError> {
|
|
7184
7201
|
return safeParse(
|
|
7185
7202
|
jsonString,
|
|
7186
|
-
(x) =>
|
|
7187
|
-
`Failed to parse '
|
|
7203
|
+
(x) => RunAgentFileAgentsBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
7204
|
+
`Failed to parse 'RunAgentFileAgentsBinaryFormat' from JSON`,
|
|
7188
7205
|
);
|
|
7189
7206
|
}
|
|
7190
7207
|
|
|
@@ -7194,13 +7211,13 @@ export const RunAgentPartsFile$inboundSchema: z.ZodType<
|
|
|
7194
7211
|
z.ZodTypeDef,
|
|
7195
7212
|
unknown
|
|
7196
7213
|
> = z.union([
|
|
7197
|
-
z.lazy(() =>
|
|
7198
|
-
z.lazy(() =>
|
|
7214
|
+
z.lazy(() => RunAgentFileAgentsBinaryFormat$inboundSchema),
|
|
7215
|
+
z.lazy(() => RunAgentFileAgentsFileInURIFormat$inboundSchema),
|
|
7199
7216
|
]);
|
|
7200
7217
|
/** @internal */
|
|
7201
7218
|
export type RunAgentPartsFile$Outbound =
|
|
7202
|
-
|
|
|
7203
|
-
|
|
|
7219
|
+
| RunAgentFileAgentsBinaryFormat$Outbound
|
|
7220
|
+
| RunAgentFileAgentsFileInURIFormat$Outbound;
|
|
7204
7221
|
|
|
7205
7222
|
/** @internal */
|
|
7206
7223
|
export const RunAgentPartsFile$outboundSchema: z.ZodType<
|
|
@@ -7208,8 +7225,8 @@ export const RunAgentPartsFile$outboundSchema: z.ZodType<
|
|
|
7208
7225
|
z.ZodTypeDef,
|
|
7209
7226
|
RunAgentPartsFile
|
|
7210
7227
|
> = z.union([
|
|
7211
|
-
z.lazy(() =>
|
|
7212
|
-
z.lazy(() =>
|
|
7228
|
+
z.lazy(() => RunAgentFileAgentsBinaryFormat$outboundSchema),
|
|
7229
|
+
z.lazy(() => RunAgentFileAgentsFileInURIFormat$outboundSchema),
|
|
7213
7230
|
]);
|
|
7214
7231
|
|
|
7215
7232
|
export function runAgentPartsFileToJSON(
|
|
@@ -7237,8 +7254,8 @@ export const RunAgentPartsFilePart$inboundSchema: z.ZodType<
|
|
|
7237
7254
|
> = z.object({
|
|
7238
7255
|
kind: RunAgentPartsAgentsResponseKind$inboundSchema,
|
|
7239
7256
|
file: z.union([
|
|
7240
|
-
z.lazy(() =>
|
|
7241
|
-
z.lazy(() =>
|
|
7257
|
+
z.lazy(() => RunAgentFileAgentsBinaryFormat$inboundSchema),
|
|
7258
|
+
z.lazy(() => RunAgentFileAgentsFileInURIFormat$inboundSchema),
|
|
7242
7259
|
]),
|
|
7243
7260
|
metadata: z.record(z.any()).optional(),
|
|
7244
7261
|
});
|
|
@@ -7246,8 +7263,8 @@ export const RunAgentPartsFilePart$inboundSchema: z.ZodType<
|
|
|
7246
7263
|
export type RunAgentPartsFilePart$Outbound = {
|
|
7247
7264
|
kind: string;
|
|
7248
7265
|
file:
|
|
7249
|
-
|
|
|
7250
|
-
|
|
|
7266
|
+
| RunAgentFileAgentsBinaryFormat$Outbound
|
|
7267
|
+
| RunAgentFileAgentsFileInURIFormat$Outbound;
|
|
7251
7268
|
metadata?: { [k: string]: any } | undefined;
|
|
7252
7269
|
};
|
|
7253
7270
|
|
|
@@ -7259,8 +7276,8 @@ export const RunAgentPartsFilePart$outboundSchema: z.ZodType<
|
|
|
7259
7276
|
> = z.object({
|
|
7260
7277
|
kind: RunAgentPartsAgentsResponseKind$outboundSchema,
|
|
7261
7278
|
file: z.union([
|
|
7262
|
-
z.lazy(() =>
|
|
7263
|
-
z.lazy(() =>
|
|
7279
|
+
z.lazy(() => RunAgentFileAgentsBinaryFormat$outboundSchema),
|
|
7280
|
+
z.lazy(() => RunAgentFileAgentsFileInURIFormat$outboundSchema),
|
|
7264
7281
|
]),
|
|
7265
7282
|
metadata: z.record(z.any()).optional(),
|
|
7266
7283
|
});
|