@orq-ai/node 4.0.0-rc.66 → 4.0.0-rc.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -18
- package/bin/mcp-server.js +2320 -1152
- package/bin/mcp-server.js.map +49 -46
- package/docs/sdks/responses/README.md +139 -0
- package/examples/package-lock.json +1 -1
- package/funcs/agentsResponsesCreate.d.ts +17 -0
- package/funcs/agentsResponsesCreate.d.ts.map +1 -0
- package/funcs/agentsResponsesCreate.js +120 -0
- package/funcs/agentsResponsesCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsResponsesCreate.d.ts +8 -0
- package/mcp-server/tools/agentsResponsesCreate.d.ts.map +1 -0
- package/mcp-server/tools/agentsResponsesCreate.js +64 -0
- package/mcp-server/tools/agentsResponsesCreate.js.map +1 -0
- package/models/operations/createagent.js +4 -4
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createagentresponse.d.ts +564 -0
- package/models/operations/createagentresponse.d.ts.map +1 -0
- package/models/operations/createagentresponse.js +605 -0
- package/models/operations/createagentresponse.js.map +1 -0
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.js +2 -2
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getagenttask.d.ts +32 -32
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +50 -50
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +95 -95
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +143 -134
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.js +2 -2
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +54 -54
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +90 -90
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +541 -68
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +649 -118
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +541 -68
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +657 -127
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.js +4 -4
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/agents.d.ts +3 -0
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +4 -0
- package/sdk/agents.js.map +1 -1
- package/sdk/responses.d.ts +12 -0
- package/sdk/responses.d.ts.map +1 -0
- package/sdk/responses.js +22 -0
- package/sdk/responses.js.map +1 -0
- package/src/funcs/agentsResponsesCreate.ts +168 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/agentsResponsesCreate.ts +37 -0
- package/src/models/operations/createagent.ts +4 -4
- package/src/models/operations/createagentresponse.ts +1339 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +2 -2
- package/src/models/operations/getagenttask.ts +94 -94
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/invokeagent.ts +322 -246
- package/src/models/operations/listagents.ts +2 -2
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +174 -157
- package/src/models/operations/streamagent.ts +1739 -297
- package/src/models/operations/streamrunagent.ts +1742 -307
- package/src/models/operations/updateagent.ts +4 -4
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/agents.ts +6 -0
- package/src/sdk/responses.ts +27 -0
|
@@ -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-22T21:11:58.464Z").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-22T21:11:58.464Z"))
|
|
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-22T21:11:58.464Z").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-22T21:11:58.464Z"))
|
|
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-22T21:11:58.463Z").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-22T21:11:58.463Z"))
|
|
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-22T21:11:48.435Z").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-22T21:11:48.435Z"))
|
|
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-22T21:11:48.435Z").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-22T21:11:48.435Z"))
|
|
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("01KAPPHKNSEVW72RZTPFQX40KR"),
|
|
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("01KAPPHKNSEVW72RZTPFQX40KR"),
|
|
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_01KAPPHKJ952AWAPVNNQKJK2XS"),
|
|
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_01KAPPHKJ952AWAPVNNQKJK2XS"),
|
|
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("01KAPPHKJ85GCNWY1ZBSRSJ1VH"),
|
|
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("01KAPPHKJ85GCNWY1ZBSRSJ1VH"),
|
|
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_01KAPPHKJ6SBG8Z93QHKWXM6X8"),
|
|
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_01KAPPHKJ6SBG8Z93QHKWXM6X8"),
|
|
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_01KAPPHKJ36PPT2085SHJK0E9W"),
|
|
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_01KAPPHKJ36PPT2085SHJK0E9W"),
|
|
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_01KAPPHKJ170KV7AM46BYC2QAH"),
|
|
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_01KAPPHKJ170KV7AM46BYC2QAH"),
|
|
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_01KAPPHKHZ0606K018JSXFZ8ZA"),
|
|
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_01KAPPHKHZ0606K018JSXFZ8ZA"),
|
|
896
896
|
path: z.string(),
|
|
897
897
|
key: z.string(),
|
|
898
898
|
displayName: z.string().optional(),
|
|
@@ -642,7 +642,7 @@ export type RunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<typeof RunAg
|
|
|
642
642
|
/**
|
|
643
643
|
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
644
644
|
*/
|
|
645
|
-
export type
|
|
645
|
+
export type RunAgentPublicMessagePartToolResultPart = {
|
|
646
646
|
kind: RunAgentPublicMessagePartAgentsRequestKind;
|
|
647
647
|
toolCallId: string;
|
|
648
648
|
result?: any | undefined;
|
|
@@ -657,7 +657,7 @@ export type RunAgentPublicMessagePartAgentsKind = ClosedEnum<typeof RunAgentPubl
|
|
|
657
657
|
/**
|
|
658
658
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
659
659
|
*/
|
|
660
|
-
export type
|
|
660
|
+
export type RunAgentFileFileInURIFormat = {
|
|
661
661
|
/**
|
|
662
662
|
* URL for the File content
|
|
663
663
|
*/
|
|
@@ -674,7 +674,7 @@ export type FileFileInURIFormat = {
|
|
|
674
674
|
/**
|
|
675
675
|
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
676
676
|
*/
|
|
677
|
-
export type
|
|
677
|
+
export type RunAgentFileBinaryFormat = {
|
|
678
678
|
/**
|
|
679
679
|
* base64 encoded content of the file
|
|
680
680
|
*/
|
|
@@ -688,13 +688,13 @@ export type FileBinaryFormat = {
|
|
|
688
688
|
*/
|
|
689
689
|
name?: string | undefined;
|
|
690
690
|
};
|
|
691
|
-
export type RunAgentPublicMessagePartFile =
|
|
691
|
+
export type RunAgentPublicMessagePartFile = RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
|
|
692
692
|
/**
|
|
693
693
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
694
694
|
*/
|
|
695
|
-
export type
|
|
695
|
+
export type RunAgentPublicMessagePartFilePart = {
|
|
696
696
|
kind: RunAgentPublicMessagePartAgentsKind;
|
|
697
|
-
file:
|
|
697
|
+
file: RunAgentFileBinaryFormat | RunAgentFileFileInURIFormat;
|
|
698
698
|
metadata?: {
|
|
699
699
|
[k: string]: any;
|
|
700
700
|
} | undefined;
|
|
@@ -706,14 +706,14 @@ export type RunAgentPublicMessagePartKind = ClosedEnum<typeof RunAgentPublicMess
|
|
|
706
706
|
/**
|
|
707
707
|
* Text content part. Use this to send text messages to the agent.
|
|
708
708
|
*/
|
|
709
|
-
export type
|
|
709
|
+
export type RunAgentPublicMessagePartTextPart = {
|
|
710
710
|
kind: RunAgentPublicMessagePartKind;
|
|
711
711
|
text: string;
|
|
712
712
|
};
|
|
713
713
|
/**
|
|
714
714
|
* 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
715
|
*/
|
|
716
|
-
export type RunAgentPublicMessagePart =
|
|
716
|
+
export type RunAgentPublicMessagePart = RunAgentPublicMessagePartTextPart | RunAgentPublicMessagePartFilePart | RunAgentPublicMessagePartToolResultPart;
|
|
717
717
|
/**
|
|
718
718
|
* The A2A format message containing the task for the agent to perform.
|
|
719
719
|
*/
|
|
@@ -729,7 +729,7 @@ export type RunAgentA2AMessage = {
|
|
|
729
729
|
/**
|
|
730
730
|
* A2A message parts (text, file, or tool_result only)
|
|
731
731
|
*/
|
|
732
|
-
parts: Array<
|
|
732
|
+
parts: Array<RunAgentPublicMessagePartTextPart | RunAgentPublicMessagePartFilePart | RunAgentPublicMessagePartToolResultPart>;
|
|
733
733
|
};
|
|
734
734
|
/**
|
|
735
735
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
@@ -1538,7 +1538,7 @@ export type RunAgentPartsAgentsResponseKind = ClosedEnum<typeof RunAgentPartsAge
|
|
|
1538
1538
|
/**
|
|
1539
1539
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
1540
1540
|
*/
|
|
1541
|
-
export type
|
|
1541
|
+
export type RunAgentFileAgentsFileInURIFormat = {
|
|
1542
1542
|
/**
|
|
1543
1543
|
* URL for the File content
|
|
1544
1544
|
*/
|
|
@@ -1555,7 +1555,7 @@ export type RunAgentFileFileInURIFormat = {
|
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
1557
1557
|
*/
|
|
1558
|
-
export type
|
|
1558
|
+
export type RunAgentFileAgentsBinaryFormat = {
|
|
1559
1559
|
/**
|
|
1560
1560
|
* base64 encoded content of the file
|
|
1561
1561
|
*/
|
|
@@ -1569,13 +1569,13 @@ export type RunAgentFileBinaryFormat = {
|
|
|
1569
1569
|
*/
|
|
1570
1570
|
name?: string | undefined;
|
|
1571
1571
|
};
|
|
1572
|
-
export type RunAgentPartsFile =
|
|
1572
|
+
export type RunAgentPartsFile = RunAgentFileAgentsBinaryFormat | RunAgentFileAgentsFileInURIFormat;
|
|
1573
1573
|
/**
|
|
1574
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
1575
|
*/
|
|
1576
1576
|
export type RunAgentPartsFilePart = {
|
|
1577
1577
|
kind: RunAgentPartsAgentsResponseKind;
|
|
1578
|
-
file:
|
|
1578
|
+
file: RunAgentFileAgentsBinaryFormat | RunAgentFileAgentsFileInURIFormat;
|
|
1579
1579
|
metadata?: {
|
|
1580
1580
|
[k: string]: any;
|
|
1581
1581
|
} | undefined;
|
|
@@ -2119,9 +2119,9 @@ export declare const RunAgentPublicMessagePartAgentsRequestKind$inboundSchema: z
|
|
|
2119
2119
|
/** @internal */
|
|
2120
2120
|
export declare const RunAgentPublicMessagePartAgentsRequestKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsRequestKind>;
|
|
2121
2121
|
/** @internal */
|
|
2122
|
-
export declare const
|
|
2122
|
+
export declare const RunAgentPublicMessagePartToolResultPart$inboundSchema: z.ZodType<RunAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown>;
|
|
2123
2123
|
/** @internal */
|
|
2124
|
-
export type
|
|
2124
|
+
export type RunAgentPublicMessagePartToolResultPart$Outbound = {
|
|
2125
2125
|
kind: string;
|
|
2126
2126
|
tool_call_id: string;
|
|
2127
2127
|
result?: any | undefined;
|
|
@@ -2130,78 +2130,78 @@ export type PublicMessagePartToolResultPart$Outbound = {
|
|
|
2130
2130
|
} | undefined;
|
|
2131
2131
|
};
|
|
2132
2132
|
/** @internal */
|
|
2133
|
-
export declare const
|
|
2134
|
-
export declare function
|
|
2135
|
-
export declare function
|
|
2133
|
+
export declare const RunAgentPublicMessagePartToolResultPart$outboundSchema: z.ZodType<RunAgentPublicMessagePartToolResultPart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartToolResultPart>;
|
|
2134
|
+
export declare function runAgentPublicMessagePartToolResultPartToJSON(runAgentPublicMessagePartToolResultPart: RunAgentPublicMessagePartToolResultPart): string;
|
|
2135
|
+
export declare function runAgentPublicMessagePartToolResultPartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartToolResultPart, SDKValidationError>;
|
|
2136
2136
|
/** @internal */
|
|
2137
2137
|
export declare const RunAgentPublicMessagePartAgentsKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
2138
2138
|
/** @internal */
|
|
2139
2139
|
export declare const RunAgentPublicMessagePartAgentsKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartAgentsKind>;
|
|
2140
2140
|
/** @internal */
|
|
2141
|
-
export declare const
|
|
2141
|
+
export declare const RunAgentFileFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2142
2142
|
/** @internal */
|
|
2143
|
-
export type
|
|
2143
|
+
export type RunAgentFileFileInURIFormat$Outbound = {
|
|
2144
2144
|
uri: string;
|
|
2145
2145
|
mimeType?: string | undefined;
|
|
2146
2146
|
name?: string | undefined;
|
|
2147
2147
|
};
|
|
2148
2148
|
/** @internal */
|
|
2149
|
-
export declare const
|
|
2150
|
-
export declare function
|
|
2151
|
-
export declare function
|
|
2149
|
+
export declare const RunAgentFileFileInURIFormat$outboundSchema: z.ZodType<RunAgentFileFileInURIFormat$Outbound, z.ZodTypeDef, RunAgentFileFileInURIFormat>;
|
|
2150
|
+
export declare function runAgentFileFileInURIFormatToJSON(runAgentFileFileInURIFormat: RunAgentFileFileInURIFormat): string;
|
|
2151
|
+
export declare function runAgentFileFileInURIFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileFileInURIFormat, SDKValidationError>;
|
|
2152
2152
|
/** @internal */
|
|
2153
|
-
export declare const
|
|
2153
|
+
export declare const RunAgentFileBinaryFormat$inboundSchema: z.ZodType<RunAgentFileBinaryFormat, z.ZodTypeDef, unknown>;
|
|
2154
2154
|
/** @internal */
|
|
2155
|
-
export type
|
|
2155
|
+
export type RunAgentFileBinaryFormat$Outbound = {
|
|
2156
2156
|
bytes: string;
|
|
2157
2157
|
mimeType?: string | undefined;
|
|
2158
2158
|
name?: string | undefined;
|
|
2159
2159
|
};
|
|
2160
2160
|
/** @internal */
|
|
2161
|
-
export declare const
|
|
2162
|
-
export declare function
|
|
2163
|
-
export declare function
|
|
2161
|
+
export declare const RunAgentFileBinaryFormat$outboundSchema: z.ZodType<RunAgentFileBinaryFormat$Outbound, z.ZodTypeDef, RunAgentFileBinaryFormat>;
|
|
2162
|
+
export declare function runAgentFileBinaryFormatToJSON(runAgentFileBinaryFormat: RunAgentFileBinaryFormat): string;
|
|
2163
|
+
export declare function runAgentFileBinaryFormatFromJSON(jsonString: string): SafeParseResult<RunAgentFileBinaryFormat, SDKValidationError>;
|
|
2164
2164
|
/** @internal */
|
|
2165
2165
|
export declare const RunAgentPublicMessagePartFile$inboundSchema: z.ZodType<RunAgentPublicMessagePartFile, z.ZodTypeDef, unknown>;
|
|
2166
2166
|
/** @internal */
|
|
2167
|
-
export type RunAgentPublicMessagePartFile$Outbound =
|
|
2167
|
+
export type RunAgentPublicMessagePartFile$Outbound = RunAgentFileBinaryFormat$Outbound | RunAgentFileFileInURIFormat$Outbound;
|
|
2168
2168
|
/** @internal */
|
|
2169
2169
|
export declare const RunAgentPublicMessagePartFile$outboundSchema: z.ZodType<RunAgentPublicMessagePartFile$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartFile>;
|
|
2170
2170
|
export declare function runAgentPublicMessagePartFileToJSON(runAgentPublicMessagePartFile: RunAgentPublicMessagePartFile): string;
|
|
2171
2171
|
export declare function runAgentPublicMessagePartFileFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartFile, SDKValidationError>;
|
|
2172
2172
|
/** @internal */
|
|
2173
|
-
export declare const
|
|
2173
|
+
export declare const RunAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<RunAgentPublicMessagePartFilePart, z.ZodTypeDef, unknown>;
|
|
2174
2174
|
/** @internal */
|
|
2175
|
-
export type
|
|
2175
|
+
export type RunAgentPublicMessagePartFilePart$Outbound = {
|
|
2176
2176
|
kind: string;
|
|
2177
|
-
file:
|
|
2177
|
+
file: RunAgentFileBinaryFormat$Outbound | RunAgentFileFileInURIFormat$Outbound;
|
|
2178
2178
|
metadata?: {
|
|
2179
2179
|
[k: string]: any;
|
|
2180
2180
|
} | undefined;
|
|
2181
2181
|
};
|
|
2182
2182
|
/** @internal */
|
|
2183
|
-
export declare const
|
|
2184
|
-
export declare function
|
|
2185
|
-
export declare function
|
|
2183
|
+
export declare const RunAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<RunAgentPublicMessagePartFilePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePartFilePart>;
|
|
2184
|
+
export declare function runAgentPublicMessagePartFilePartToJSON(runAgentPublicMessagePartFilePart: RunAgentPublicMessagePartFilePart): string;
|
|
2185
|
+
export declare function runAgentPublicMessagePartFilePartFromJSON(jsonString: string): SafeParseResult<RunAgentPublicMessagePartFilePart, SDKValidationError>;
|
|
2186
2186
|
/** @internal */
|
|
2187
2187
|
export declare const RunAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2188
2188
|
/** @internal */
|
|
2189
2189
|
export declare const RunAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPublicMessagePartKind>;
|
|
2190
2190
|
/** @internal */
|
|
2191
|
-
export declare const
|
|
2191
|
+
export declare const RunAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<RunAgentPublicMessagePartTextPart, z.ZodTypeDef, unknown>;
|
|
2192
2192
|
/** @internal */
|
|
2193
|
-
export type
|
|
2193
|
+
export type RunAgentPublicMessagePartTextPart$Outbound = {
|
|
2194
2194
|
kind: string;
|
|
2195
2195
|
text: string;
|
|
2196
2196
|
};
|
|
2197
2197
|
/** @internal */
|
|
2198
|
-
export declare const
|
|
2199
|
-
export declare function
|
|
2200
|
-
export declare function
|
|
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
2201
|
/** @internal */
|
|
2202
2202
|
export declare const RunAgentPublicMessagePart$inboundSchema: z.ZodType<RunAgentPublicMessagePart, z.ZodTypeDef, unknown>;
|
|
2203
2203
|
/** @internal */
|
|
2204
|
-
export type RunAgentPublicMessagePart$Outbound =
|
|
2204
|
+
export type RunAgentPublicMessagePart$Outbound = RunAgentPublicMessagePartTextPart$Outbound | RunAgentPublicMessagePartFilePart$Outbound | RunAgentPublicMessagePartToolResultPart$Outbound;
|
|
2205
2205
|
/** @internal */
|
|
2206
2206
|
export declare const RunAgentPublicMessagePart$outboundSchema: z.ZodType<RunAgentPublicMessagePart$Outbound, z.ZodTypeDef, RunAgentPublicMessagePart>;
|
|
2207
2207
|
export declare function runAgentPublicMessagePartToJSON(runAgentPublicMessagePart: RunAgentPublicMessagePart): string;
|
|
@@ -2212,7 +2212,7 @@ export declare const RunAgentA2AMessage$inboundSchema: z.ZodType<RunAgentA2AMess
|
|
|
2212
2212
|
export type RunAgentA2AMessage$Outbound = {
|
|
2213
2213
|
messageId?: string | undefined;
|
|
2214
2214
|
role: string | string;
|
|
2215
|
-
parts: Array<
|
|
2215
|
+
parts: Array<RunAgentPublicMessagePartTextPart$Outbound | RunAgentPublicMessagePartFilePart$Outbound | RunAgentPublicMessagePartToolResultPart$Outbound>;
|
|
2216
2216
|
};
|
|
2217
2217
|
/** @internal */
|
|
2218
2218
|
export declare const RunAgentA2AMessage$outboundSchema: z.ZodType<RunAgentA2AMessage$Outbound, z.ZodTypeDef, RunAgentA2AMessage>;
|
|
@@ -2881,33 +2881,33 @@ export declare const RunAgentPartsAgentsResponseKind$inboundSchema: z.ZodNativeE
|
|
|
2881
2881
|
/** @internal */
|
|
2882
2882
|
export declare const RunAgentPartsAgentsResponseKind$outboundSchema: z.ZodNativeEnum<typeof RunAgentPartsAgentsResponseKind>;
|
|
2883
2883
|
/** @internal */
|
|
2884
|
-
export declare const
|
|
2884
|
+
export declare const RunAgentFileAgentsFileInURIFormat$inboundSchema: z.ZodType<RunAgentFileAgentsFileInURIFormat, z.ZodTypeDef, unknown>;
|
|
2885
2885
|
/** @internal */
|
|
2886
|
-
export type
|
|
2886
|
+
export type RunAgentFileAgentsFileInURIFormat$Outbound = {
|
|
2887
2887
|
uri: string;
|
|
2888
2888
|
mimeType?: string | undefined;
|
|
2889
2889
|
name?: string | undefined;
|
|
2890
2890
|
};
|
|
2891
2891
|
/** @internal */
|
|
2892
|
-
export declare const
|
|
2893
|
-
export declare function
|
|
2894
|
-
export declare function
|
|
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
2895
|
/** @internal */
|
|
2896
|
-
export declare const
|
|
2896
|
+
export declare const RunAgentFileAgentsBinaryFormat$inboundSchema: z.ZodType<RunAgentFileAgentsBinaryFormat, z.ZodTypeDef, unknown>;
|
|
2897
2897
|
/** @internal */
|
|
2898
|
-
export type
|
|
2898
|
+
export type RunAgentFileAgentsBinaryFormat$Outbound = {
|
|
2899
2899
|
bytes: string;
|
|
2900
2900
|
mimeType?: string | undefined;
|
|
2901
2901
|
name?: string | undefined;
|
|
2902
2902
|
};
|
|
2903
2903
|
/** @internal */
|
|
2904
|
-
export declare const
|
|
2905
|
-
export declare function
|
|
2906
|
-
export declare function
|
|
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
2907
|
/** @internal */
|
|
2908
2908
|
export declare const RunAgentPartsFile$inboundSchema: z.ZodType<RunAgentPartsFile, z.ZodTypeDef, unknown>;
|
|
2909
2909
|
/** @internal */
|
|
2910
|
-
export type RunAgentPartsFile$Outbound =
|
|
2910
|
+
export type RunAgentPartsFile$Outbound = RunAgentFileAgentsBinaryFormat$Outbound | RunAgentFileAgentsFileInURIFormat$Outbound;
|
|
2911
2911
|
/** @internal */
|
|
2912
2912
|
export declare const RunAgentPartsFile$outboundSchema: z.ZodType<RunAgentPartsFile$Outbound, z.ZodTypeDef, RunAgentPartsFile>;
|
|
2913
2913
|
export declare function runAgentPartsFileToJSON(runAgentPartsFile: RunAgentPartsFile): string;
|
|
@@ -2917,7 +2917,7 @@ export declare const RunAgentPartsFilePart$inboundSchema: z.ZodType<RunAgentPart
|
|
|
2917
2917
|
/** @internal */
|
|
2918
2918
|
export type RunAgentPartsFilePart$Outbound = {
|
|
2919
2919
|
kind: string;
|
|
2920
|
-
file:
|
|
2920
|
+
file: RunAgentFileAgentsBinaryFormat$Outbound | RunAgentFileAgentsFileInURIFormat$Outbound;
|
|
2921
2921
|
metadata?: {
|
|
2922
2922
|
[k: string]: any;
|
|
2923
2923
|
} | undefined;
|