@orq-ai/node 4.1.0-rc.2 → 4.1.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +37427 -38283
- package/bin/mcp-server.js.map +72 -67
- package/docs/sdks/agents/README.md +10 -10
- package/docs/sdks/responses/README.md +5 -5
- package/examples/package-lock.json +1 -1
- package/funcs/agentsCreate.d.ts +1 -1
- package/funcs/agentsCreate.d.ts.map +1 -1
- package/funcs/agentsCreate.js +2 -4
- package/funcs/agentsCreate.js.map +1 -1
- package/funcs/agentsResponsesCreate.d.ts +1 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +4 -4
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/agentsRun.d.ts +1 -1
- package/funcs/agentsRun.d.ts.map +1 -1
- package/funcs/agentsRun.js +2 -4
- package/funcs/agentsRun.js.map +1 -1
- package/funcs/agentsStream.d.ts +1 -1
- package/funcs/agentsStream.d.ts.map +1 -1
- package/funcs/agentsStream.js +4 -4
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.d.ts +1 -1
- package/funcs/agentsStreamRun.d.ts.map +1 -1
- package/funcs/agentsStreamRun.js +2 -4
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/agentsUpdate.d.ts +1 -1
- package/funcs/agentsUpdate.d.ts.map +1 -1
- package/funcs/agentsUpdate.js +4 -4
- package/funcs/agentsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/agentsCreate.d.ts +1 -1
- package/mcp-server/tools/agentsCreate.js +1 -1
- package/mcp-server/tools/agentsCreate.js.map +1 -1
- package/mcp-server/tools/agentsResponsesCreate.d.ts +1 -1
- package/mcp-server/tools/agentsResponsesCreate.d.ts.map +1 -1
- package/mcp-server/tools/agentsResponsesCreate.js +2 -3
- package/mcp-server/tools/agentsResponsesCreate.js.map +1 -1
- package/mcp-server/tools/agentsRun.d.ts +1 -1
- package/mcp-server/tools/agentsRun.js +1 -1
- package/mcp-server/tools/agentsRun.js.map +1 -1
- package/mcp-server/tools/agentsStream.d.ts +1 -1
- package/mcp-server/tools/agentsStream.js +2 -2
- package/mcp-server/tools/agentsStream.js.map +1 -1
- package/mcp-server/tools/agentsStreamRun.d.ts +1 -1
- package/mcp-server/tools/agentsStreamRun.js +1 -1
- package/mcp-server/tools/agentsStreamRun.js.map +1 -1
- package/mcp-server/tools/agentsUpdate.d.ts +1 -1
- package/mcp-server/tools/agentsUpdate.d.ts.map +1 -1
- package/mcp-server/tools/agentsUpdate.js +2 -3
- package/mcp-server/tools/agentsUpdate.js.map +1 -1
- package/models/components/datapart.d.ts +41 -0
- package/models/components/datapart.d.ts.map +1 -0
- package/models/components/datapart.js +69 -0
- package/models/components/datapart.js.map +1 -0
- package/models/components/filepart.d.ts +104 -0
- package/models/components/filepart.d.ts.map +1 -0
- package/models/components/filepart.js +134 -0
- package/models/components/filepart.js.map +1 -0
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +8 -8
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +11 -12
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/textpart.d.ts +31 -0
- package/models/components/textpart.d.ts.map +1 -0
- package/models/components/textpart.js +67 -0
- package/models/components/textpart.js.map +1 -0
- package/models/components/toolcallpart.d.ts +45 -0
- package/models/components/toolcallpart.d.ts.map +1 -0
- package/models/components/toolcallpart.js +84 -0
- package/models/components/toolcallpart.js.map +1 -0
- package/models/components/toolresultpart.d.ts +39 -0
- package/models/components/toolresultpart.d.ts.map +1 -0
- package/models/components/toolresultpart.js +80 -0
- package/models/components/toolresultpart.js.map +1 -0
- package/models/operations/createagentresponserequest.d.ts +68 -44
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +92 -47
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createprompt.d.ts +9 -11
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +9 -11
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentinvoke.d.ts +9 -11
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -11
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +9 -11
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +9 -11
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +9 -11
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +9 -11
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +9 -11
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +9 -11
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +9 -11
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +9 -11
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +9 -11
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +9 -11
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/invokeagent.d.ts +63 -283
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +73 -293
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +9 -11
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +9 -11
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +59 -279
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +72 -292
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +214 -1005
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +229 -1019
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +215 -1006
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +236 -1026
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +2 -2
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +2 -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/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/sdk/agents.d.ts +5 -5
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +4 -4
- package/sdk/agents.js.map +1 -1
- package/sdk/responses.d.ts +1 -1
- package/sdk/responses.d.ts.map +1 -1
- package/sdk/responses.js +2 -2
- package/sdk/responses.js.map +1 -1
- package/src/funcs/agentsCreate.ts +4 -8
- package/src/funcs/agentsResponsesCreate.ts +4 -4
- package/src/funcs/agentsRun.ts +4 -7
- package/src/funcs/agentsStream.ts +4 -4
- package/src/funcs/agentsStreamRun.ts +4 -9
- package/src/funcs/agentsUpdate.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/agentsCreate.ts +1 -1
- package/src/mcp-server/tools/agentsResponsesCreate.ts +2 -3
- package/src/mcp-server/tools/agentsRun.ts +1 -1
- package/src/mcp-server/tools/agentsStream.ts +2 -2
- package/src/mcp-server/tools/agentsStreamRun.ts +1 -1
- package/src/mcp-server/tools/agentsUpdate.ts +2 -3
- package/src/models/components/datapart.ts +71 -0
- package/src/models/components/filepart.ts +231 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/invokedeploymentrequest.ts +34 -25
- package/src/models/components/textpart.ts +68 -0
- package/src/models/components/toolcallpart.ts +92 -0
- package/src/models/components/toolresultpart.ts +86 -0
- package/src/models/operations/createagentresponserequest.ts +194 -100
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createprompt.ts +9 -11
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentinvoke.ts +9 -11
- package/src/models/operations/deployments.ts +9 -11
- package/src/models/operations/deploymentstream.ts +9 -11
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +9 -11
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +9 -11
- package/src/models/operations/getpromptversion.ts +9 -11
- package/src/models/operations/invokeagent.ts +158 -682
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +9 -11
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +143 -697
- package/src/models/operations/streamagent.ts +2226 -4563
- package/src/models/operations/streamrunagent.ts +2189 -4615
- package/src/models/operations/updateagent.ts +4 -6
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatememorystore.ts +9 -20
- package/src/models/operations/updateprompt.ts +18 -22
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +7 -7
- package/src/sdk/responses.ts +2 -2
|
@@ -974,7 +974,7 @@ exports.RetrieveDatapointEvaluations3$inboundSchema = z.object({
|
|
|
974
974
|
source: exports.RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
975
975
|
.default("orq"),
|
|
976
976
|
reviewed_by_id: z.string(),
|
|
977
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-
|
|
977
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-25T12:44:38.531Z").transform(v => new Date(v)),
|
|
978
978
|
type: exports.RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
|
|
979
979
|
values: z.array(z.string()),
|
|
980
980
|
}).transform((v) => {
|
|
@@ -993,7 +993,7 @@ exports.RetrieveDatapointEvaluations3$outboundSchema = z.object({
|
|
|
993
993
|
source: exports.RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
994
994
|
.default("orq"),
|
|
995
995
|
reviewedById: z.string(),
|
|
996
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
996
|
+
reviewedAt: z.date().default(() => new Date("2025-11-25T12:44:38.531Z"))
|
|
997
997
|
.transform(v => v.toISOString()),
|
|
998
998
|
type: exports.RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
|
|
999
999
|
values: z.array(z.string()),
|
|
@@ -1033,7 +1033,7 @@ exports.RetrieveDatapointEvaluations2$inboundSchema = z.object({
|
|
|
1033
1033
|
human_review_id: z.string(),
|
|
1034
1034
|
source: exports.RetrieveDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
1035
1035
|
reviewed_by_id: z.string(),
|
|
1036
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-
|
|
1036
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-25T12:44:38.531Z").transform(v => new Date(v)),
|
|
1037
1037
|
type: exports.RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
|
|
1038
1038
|
value: z.number(),
|
|
1039
1039
|
}).transform((v) => {
|
|
@@ -1051,7 +1051,7 @@ exports.RetrieveDatapointEvaluations2$outboundSchema = z.object({
|
|
|
1051
1051
|
humanReviewId: z.string(),
|
|
1052
1052
|
source: exports.RetrieveDatapointEvaluationsDatasetsSource$outboundSchema.default("orq"),
|
|
1053
1053
|
reviewedById: z.string(),
|
|
1054
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
1054
|
+
reviewedAt: z.date().default(() => new Date("2025-11-25T12:44:38.531Z"))
|
|
1055
1055
|
.transform(v => v.toISOString()),
|
|
1056
1056
|
type: exports.RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
|
|
1057
1057
|
value: z.number(),
|
|
@@ -1089,7 +1089,7 @@ exports.RetrieveDatapointEvaluations1$inboundSchema = z.object({
|
|
|
1089
1089
|
human_review_id: z.string(),
|
|
1090
1090
|
source: exports.RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1091
1091
|
reviewed_by_id: z.string(),
|
|
1092
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-
|
|
1092
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2025-11-25T12:44:38.531Z").transform(v => new Date(v)),
|
|
1093
1093
|
type: exports.RetrieveDatapointEvaluationsType$inboundSchema,
|
|
1094
1094
|
value: z.string(),
|
|
1095
1095
|
}).transform((v) => {
|
|
@@ -1107,7 +1107,7 @@ exports.RetrieveDatapointEvaluations1$outboundSchema = z.object({
|
|
|
1107
1107
|
humanReviewId: z.string(),
|
|
1108
1108
|
source: exports.RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
1109
1109
|
reviewedById: z.string(),
|
|
1110
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
1110
|
+
reviewedAt: z.date().default(() => new Date("2025-11-25T12:44:38.531Z"))
|
|
1111
1111
|
.transform(v => v.toISOString()),
|
|
1112
1112
|
type: exports.RetrieveDatapointEvaluationsType$outboundSchema,
|
|
1113
1113
|
value: z.string(),
|
|
@@ -1167,7 +1167,7 @@ exports.RetrieveDatapointResponseBody$inboundSchema = z.object({
|
|
|
1167
1167
|
updated_by_id: z.string().optional(),
|
|
1168
1168
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1169
1169
|
.optional(),
|
|
1170
|
-
updated: z.string().datetime({ offset: true }).default("2025-11-
|
|
1170
|
+
updated: z.string().datetime({ offset: true }).default("2025-11-25T12:44:27.774Z").transform(v => new Date(v)),
|
|
1171
1171
|
}).transform((v) => {
|
|
1172
1172
|
return (0, primitives_js_1.remap)(v, {
|
|
1173
1173
|
"_id": "id",
|
|
@@ -1202,7 +1202,7 @@ exports.RetrieveDatapointResponseBody$outboundSchema = z.object({
|
|
|
1202
1202
|
createdById: z.string().optional(),
|
|
1203
1203
|
updatedById: z.string().optional(),
|
|
1204
1204
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1205
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
1205
|
+
updated: z.date().default(() => new Date("2025-11-25T12:44:27.774Z"))
|
|
1206
1206
|
.transform(v => v.toISOString()),
|
|
1207
1207
|
}).transform((v) => {
|
|
1208
1208
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -105,7 +105,7 @@ exports.RetrieveDatasetResponseBody$inboundSchema = z.object({
|
|
|
105
105
|
updated_by_id: z.string().optional(),
|
|
106
106
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
107
107
|
.optional(),
|
|
108
|
-
updated: z.string().datetime({ offset: true }).default("2025-11-
|
|
108
|
+
updated: z.string().datetime({ offset: true }).default("2025-11-25T12:44:27.774Z").transform(v => new Date(v)),
|
|
109
109
|
}).transform((v) => {
|
|
110
110
|
return (0, primitives_js_1.remap)(v, {
|
|
111
111
|
"_id": "id",
|
|
@@ -126,7 +126,7 @@ exports.RetrieveDatasetResponseBody$outboundSchema = z.object({
|
|
|
126
126
|
createdById: z.string().optional(),
|
|
127
127
|
updatedById: z.string().optional(),
|
|
128
128
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
129
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
129
|
+
updated: z.date().default(() => new Date("2025-11-25T12:44:27.774Z"))
|
|
130
130
|
.transform(v => v.toISOString()),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -83,7 +83,7 @@ exports.RetrieveDatasourceStatus$inboundSchema = z.nativeEnum(exports.RetrieveDa
|
|
|
83
83
|
exports.RetrieveDatasourceStatus$outboundSchema = exports.RetrieveDatasourceStatus$inboundSchema;
|
|
84
84
|
/** @internal */
|
|
85
85
|
exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
|
|
86
|
-
_id: z.string().default("
|
|
86
|
+
_id: z.string().default("01KAXGPT59GBDFGT1WCT9NCAWY"),
|
|
87
87
|
display_name: z.string(),
|
|
88
88
|
description: z.string().optional(),
|
|
89
89
|
status: exports.RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -107,7 +107,7 @@ exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
|
|
|
107
107
|
});
|
|
108
108
|
/** @internal */
|
|
109
109
|
exports.RetrieveDatasourceResponseBody$outboundSchema = z.object({
|
|
110
|
-
id: z.string().default("
|
|
110
|
+
id: z.string().default("01KAXGPT59GBDFGT1WCT9NCAWY"),
|
|
111
111
|
displayName: z.string(),
|
|
112
112
|
description: z.string().optional(),
|
|
113
113
|
status: exports.RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -273,7 +273,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
273
273
|
}
|
|
274
274
|
/** @internal */
|
|
275
275
|
exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
276
|
-
_id: z.string().default("
|
|
276
|
+
_id: z.string().default("tool_01KAXGPT1E022MQ6KVDFFHV52R"),
|
|
277
277
|
path: z.string(),
|
|
278
278
|
key: z.string(),
|
|
279
279
|
display_name: z.string().optional(),
|
|
@@ -303,7 +303,7 @@ exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
|
303
303
|
});
|
|
304
304
|
/** @internal */
|
|
305
305
|
exports.RetrieveToolResponseBodyCodeExecutionTool$outboundSchema = z.object({
|
|
306
|
-
id: z.string().default("
|
|
306
|
+
id: z.string().default("tool_01KAXGPT1E022MQ6KVDFFHV52R"),
|
|
307
307
|
path: z.string(),
|
|
308
308
|
key: z.string(),
|
|
309
309
|
displayName: z.string().optional(),
|
|
@@ -387,14 +387,14 @@ function retrieveToolResponseBodyToolsSchemaFromJSON(jsonString) {
|
|
|
387
387
|
}
|
|
388
388
|
/** @internal */
|
|
389
389
|
exports.RetrieveToolResponseBodyTools$inboundSchema = z.object({
|
|
390
|
-
id: z.string().default("
|
|
390
|
+
id: z.string().default("01KAXGPT1DPFMASR0P8J0T829X"),
|
|
391
391
|
name: z.string(),
|
|
392
392
|
description: z.string().optional(),
|
|
393
393
|
schema: z.lazy(() => exports.RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
394
394
|
});
|
|
395
395
|
/** @internal */
|
|
396
396
|
exports.RetrieveToolResponseBodyTools$outboundSchema = z.object({
|
|
397
|
-
id: z.string().default("
|
|
397
|
+
id: z.string().default("01KAXGPT1DPFMASR0P8J0T829X"),
|
|
398
398
|
name: z.string(),
|
|
399
399
|
description: z.string().optional(),
|
|
400
400
|
schema: z.lazy(() => exports.RetrieveToolResponseBodyToolsSchema$outboundSchema),
|
|
@@ -442,7 +442,7 @@ function retrieveToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
442
442
|
}
|
|
443
443
|
/** @internal */
|
|
444
444
|
exports.RetrieveToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
445
|
-
_id: z.string().default("
|
|
445
|
+
_id: z.string().default("tool_01KAXGPT1BA0PDVB1QXFJKPT10"),
|
|
446
446
|
path: z.string(),
|
|
447
447
|
key: z.string(),
|
|
448
448
|
display_name: z.string().optional(),
|
|
@@ -470,7 +470,7 @@ exports.RetrieveToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
|
470
470
|
});
|
|
471
471
|
/** @internal */
|
|
472
472
|
exports.RetrieveToolResponseBodyMCPTool$outboundSchema = z.object({
|
|
473
|
-
id: z.string().default("
|
|
473
|
+
id: z.string().default("tool_01KAXGPT1BA0PDVB1QXFJKPT10"),
|
|
474
474
|
path: z.string(),
|
|
475
475
|
key: z.string(),
|
|
476
476
|
displayName: z.string().optional(),
|
|
@@ -624,7 +624,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
624
624
|
}
|
|
625
625
|
/** @internal */
|
|
626
626
|
exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01KAXGPT17D19CXB1YHYPKDAZF"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -652,7 +652,7 @@ exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
|
652
652
|
});
|
|
653
653
|
/** @internal */
|
|
654
654
|
exports.RetrieveToolResponseBodyHTTPTool$outboundSchema = z.object({
|
|
655
|
-
id: z.string().default("
|
|
655
|
+
id: z.string().default("tool_01KAXGPT17D19CXB1YHYPKDAZF"),
|
|
656
656
|
path: z.string(),
|
|
657
657
|
key: z.string(),
|
|
658
658
|
displayName: z.string().optional(),
|
|
@@ -740,7 +740,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
740
740
|
}
|
|
741
741
|
/** @internal */
|
|
742
742
|
exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
743
|
-
_id: z.string().default("
|
|
743
|
+
_id: z.string().default("tool_01KAXGPT15XHYKEQYD7VXBDB6M"),
|
|
744
744
|
path: z.string(),
|
|
745
745
|
key: z.string(),
|
|
746
746
|
display_name: z.string().optional(),
|
|
@@ -769,7 +769,7 @@ exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
|
769
769
|
});
|
|
770
770
|
/** @internal */
|
|
771
771
|
exports.RetrieveToolResponseBodyJSONSchemaTool$outboundSchema = z.object({
|
|
772
|
-
id: z.string().default("
|
|
772
|
+
id: z.string().default("tool_01KAXGPT15XHYKEQYD7VXBDB6M"),
|
|
773
773
|
path: z.string(),
|
|
774
774
|
key: z.string(),
|
|
775
775
|
displayName: z.string().optional(),
|
|
@@ -864,7 +864,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
864
864
|
}
|
|
865
865
|
/** @internal */
|
|
866
866
|
exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
867
|
-
_id: z.string().default("
|
|
867
|
+
_id: z.string().default("tool_01KAXGPT131DNX71Y001BDQF1F"),
|
|
868
868
|
path: z.string(),
|
|
869
869
|
key: z.string(),
|
|
870
870
|
display_name: z.string().optional(),
|
|
@@ -892,7 +892,7 @@ exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
|
892
892
|
});
|
|
893
893
|
/** @internal */
|
|
894
894
|
exports.RetrieveToolResponseBodyFunctionTool$outboundSchema = z.object({
|
|
895
|
-
id: z.string().default("
|
|
895
|
+
id: z.string().default("tool_01KAXGPT131DNX71Y001BDQF1F"),
|
|
896
896
|
path: z.string(),
|
|
897
897
|
key: z.string(),
|
|
898
898
|
displayName: z.string().optional(),
|
|
@@ -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,25 +636,25 @@ 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
|
|
639
|
+
export declare const RunAgentPublicMessagePartAgentsKind: {
|
|
639
640
|
readonly ToolResult: "tool_result";
|
|
640
641
|
};
|
|
641
|
-
export type
|
|
642
|
+
export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
642
643
|
/**
|
|
643
644
|
* 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
|
*/
|
|
645
646
|
export type RunAgentPublicMessagePartToolResultPart = {
|
|
646
|
-
kind:
|
|
647
|
+
kind: RunAgentPublicMessagePartAgentsKind;
|
|
647
648
|
toolCallId: string;
|
|
648
649
|
result?: any | undefined;
|
|
649
650
|
metadata?: {
|
|
650
651
|
[k: string]: any;
|
|
651
652
|
} | undefined;
|
|
652
653
|
};
|
|
653
|
-
export declare const
|
|
654
|
+
export declare const RunAgentPublicMessagePartKind: {
|
|
654
655
|
readonly File: "file";
|
|
655
656
|
};
|
|
656
|
-
export type
|
|
657
|
+
export type RunAgentPublicMessagePartKind = ClosedEnum<typeof RunAgentPublicMessagePartKind>;
|
|
657
658
|
/**
|
|
658
659
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
659
660
|
*/
|
|
@@ -693,27 +694,16 @@ export type RunAgentPublicMessagePartFile = RunAgentFileBinaryFormat | RunAgentF
|
|
|
693
694
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
694
695
|
*/
|
|
695
696
|
export type RunAgentPublicMessagePartFilePart = {
|
|
696
|
-
kind:
|
|
697
|
+
kind: RunAgentPublicMessagePartKind;
|
|
697
698
|
file: RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
|
|
698
699
|
metadata?: {
|
|
699
700
|
[k: string]: any;
|
|
700
701
|
} | undefined;
|
|
701
702
|
};
|
|
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
703
|
/**
|
|
714
704
|
* 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
705
|
*/
|
|
716
|
-
export type RunAgentPublicMessagePart =
|
|
706
|
+
export type RunAgentPublicMessagePart = components.TextPart | RunAgentPublicMessagePartFilePart | RunAgentPublicMessagePartToolResultPart;
|
|
717
707
|
/**
|
|
718
708
|
* The A2A format message containing the task for the agent to perform.
|
|
719
709
|
*/
|
|
@@ -729,7 +719,7 @@ export type RunAgentA2AMessage = {
|
|
|
729
719
|
/**
|
|
730
720
|
* A2A message parts (text, file, or tool_result only)
|
|
731
721
|
*/
|
|
732
|
-
parts: Array<
|
|
722
|
+
parts: Array<components.TextPart | RunAgentPublicMessagePartFilePart | RunAgentPublicMessagePartToolResultPart>;
|
|
733
723
|
};
|
|
734
724
|
/**
|
|
735
725
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
@@ -1498,116 +1488,17 @@ export declare const RunAgentExtendedMessageRole: {
|
|
|
1498
1488
|
* 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
1489
|
*/
|
|
1500
1490
|
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;
|
|
1491
|
+
export type RunAgentParts = (components.ToolCallPart & {
|
|
1492
|
+
kind: "tool_call";
|
|
1493
|
+
}) | (components.TextPart & {
|
|
1494
|
+
kind: "text";
|
|
1495
|
+
}) | (components.DataPart & {
|
|
1496
|
+
kind: "data";
|
|
1497
|
+
}) | (components.FilePart & {
|
|
1498
|
+
kind: "file";
|
|
1499
|
+
}) | (components.ToolResultPart & {
|
|
1500
|
+
kind: "tool_result";
|
|
1501
|
+
});
|
|
1611
1502
|
/**
|
|
1612
1503
|
* Optional A2A message providing additional context about the current status
|
|
1613
1504
|
*/
|
|
@@ -1618,7 +1509,17 @@ export type RunAgentTaskStatusMessage = {
|
|
|
1618
1509
|
* 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
1510
|
*/
|
|
1620
1511
|
role: RunAgentExtendedMessageRole;
|
|
1621
|
-
parts: Array<
|
|
1512
|
+
parts: Array<(components.ToolCallPart & {
|
|
1513
|
+
kind: "tool_call";
|
|
1514
|
+
}) | (components.TextPart & {
|
|
1515
|
+
kind: "text";
|
|
1516
|
+
}) | (components.DataPart & {
|
|
1517
|
+
kind: "data";
|
|
1518
|
+
}) | (components.FilePart & {
|
|
1519
|
+
kind: "file";
|
|
1520
|
+
}) | (components.ToolResultPart & {
|
|
1521
|
+
kind: "tool_result";
|
|
1522
|
+
})>;
|
|
1622
1523
|
};
|
|
1623
1524
|
/**
|
|
1624
1525
|
* Current task status information
|
|
@@ -2115,9 +2016,9 @@ export declare const RunAgentRole$outboundSchema: z.ZodType<RunAgentRole$Outboun
|
|
|
2115
2016
|
export declare function runAgentRoleToJSON(runAgentRole: RunAgentRole): string;
|
|
2116
2017
|
export declare function runAgentRoleFromJSON(jsonString: string): SafeParseResult<RunAgentRole, SDKValidationError>;
|
|
2117
2018
|
/** @internal */
|
|
2118
|
-
export declare const
|
|
2019
|
+
export declare const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
2119
2020
|
/** @internal */
|
|
2120
|
-
export declare const
|
|
2021
|
+
export declare const RunAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
2121
2022
|
/** @internal */
|
|
2122
2023
|
export declare const RunAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<RunAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
|
|
2123
2024
|
/** @internal */
|
|
@@ -2134,9 +2035,9 @@ export declare const RunAgentPublicMessagePartToolResultPart$outboundSchema: z.Z
|
|
|
2134
2035
|
export declare function runAgentPublicMessagePartToolResultPartToJSON(runAgentPublicMessagePartToolResultPart: RunAgentPublicMessagePartToolResultPart): string;
|
|
2135
2036
|
export declare function runAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartToolResultPart, SDKValidationError>;
|
|
2136
2037
|
/** @internal */
|
|
2137
|
-
export declare const
|
|
2038
|
+
export declare const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2138
2039
|
/** @internal */
|
|
2139
|
-
export declare const
|
|
2040
|
+
export declare const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2140
2041
|
/** @internal */
|
|
2141
2042
|
export declare const RunAgentFileFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2142
2043
|
/** @internal */
|
|
@@ -2184,24 +2085,9 @@ export declare const RunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType
|
|
|
2184
2085
|
export declare function runAgentPublicMessagePartFilePartToJSON(runAgentPublicMessagePartFilePart: RunAgentPublicMessagePartFilePart): string;
|
|
2185
2086
|
export declare function runAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartFilePart, SDKValidationError>;
|
|
2186
2087
|
/** @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
2088
|
export declare const RunAgentPublicMessagePart$inboundSchema: z.ZodType<RunAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
2203
2089
|
/** @internal */
|
|
2204
|
-
export type RunAgentPublicMessagePart$Outbound =
|
|
2090
|
+
export type RunAgentPublicMessagePart$Outbound = components.TextPart$Outbound | RunAgentPublicMessagePartFilePart$Outbound | RunAgentPublicMessagePartToolResultPart$Outbound;
|
|
2205
2091
|
/** @internal */
|
|
2206
2092
|
export declare const RunAgentPublicMessagePart$outboundSchema: z.ZodType<RunAgentPublicMessagePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePart>;
|
|
2207
2093
|
export declare function runAgentPublicMessagePartToJSON(runAgentPublicMessagePart: RunAgentPublicMessagePart): string;
|
|
@@ -2212,7 +2098,7 @@ export declare const RunAgentA2AMessage$inboundSchema: z.ZodType<RunAgentA2AMess
|
|
|
2212
2098
|
export type RunAgentA2AMessage$Outbound = {
|
|
2213
2099
|
messageId?: string | undefined;
|
|
2214
2100
|
role: string | string;
|
|
2215
|
-
parts: Array<
|
|
2101
|
+
parts: Array<components.TextPart$Outbound | RunAgentPublicMessagePartFilePart$Outbound | RunAgentPublicMessagePartToolResultPart$Outbound>;
|
|
2216
2102
|
};
|
|
2217
2103
|
/** @internal */
|
|
2218
2104
|
export declare const RunAgentA2AMessage$outboundSchema: z.ZodType<RunAgentA2AMessage$Outbound, z.ZodTypeDef, RunAgentA2AMessage>;
|
|
@@ -2836,135 +2722,19 @@ export declare const RunAgentExtendedMessageRole$inboundSchema: z.ZodNativeEnum<
|
|
|
2836
2722
|
/** @internal */
|
|
2837
2723
|
export declare const RunAgentExtendedMessageRole$outboundSchema: z.ZodNativeEnum<typeof RunAgentExtendedMessageRole>;
|
|
2838
2724
|
/** @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
2725
|
export declare const RunAgentParts$inboundSchema: z.ZodType<RunAgentParts, z.ZodTypeDef, unknown>;
|
|
2966
2726
|
/** @internal */
|
|
2967
|
-
export type RunAgentParts$Outbound =
|
|
2727
|
+
export type RunAgentParts$Outbound = (components.ToolCallPart$Outbound & {
|
|
2728
|
+
kind: "tool_call";
|
|
2729
|
+
}) | (components.TextPart$Outbound & {
|
|
2730
|
+
kind: "text";
|
|
2731
|
+
}) | (components.DataPart$Outbound & {
|
|
2732
|
+
kind: "data";
|
|
2733
|
+
}) | (components.FilePart$Outbound & {
|
|
2734
|
+
kind: "file";
|
|
2735
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2736
|
+
kind: "tool_result";
|
|
2737
|
+
});
|
|
2968
2738
|
/** @internal */
|
|
2969
2739
|
export declare const RunAgentParts$outboundSchema: z.ZodType<RunAgentParts$Outbound, z.ZodTypeDef, RunAgentParts>;
|
|
2970
2740
|
export declare function runAgentPartsToJSON(runAgentParts: RunAgentParts): string;
|
|
@@ -2976,7 +2746,17 @@ export type RunAgentTaskStatusMessage$Outbound = {
|
|
|
2976
2746
|
kind: string;
|
|
2977
2747
|
messageId: string;
|
|
2978
2748
|
role: string;
|
|
2979
|
-
parts: Array<
|
|
2749
|
+
parts: Array<(components.ToolCallPart$Outbound & {
|
|
2750
|
+
kind: "tool_call";
|
|
2751
|
+
}) | (components.TextPart$Outbound & {
|
|
2752
|
+
kind: "text";
|
|
2753
|
+
}) | (components.DataPart$Outbound & {
|
|
2754
|
+
kind: "data";
|
|
2755
|
+
}) | (components.FilePart$Outbound & {
|
|
2756
|
+
kind: "file";
|
|
2757
|
+
}) | (components.ToolResultPart$Outbound & {
|
|
2758
|
+
kind: "tool_result";
|
|
2759
|
+
})>;
|
|
2980
2760
|
};
|
|
2981
2761
|
/** @internal */
|
|
2982
2762
|
export declare const RunAgentTaskStatusMessage$outboundSchema: z.ZodType<RunAgentTaskStatusMessage$Outbound, z.ZodTypeDef, RunAgentTaskStatusMessage>;
|