@orq-ai/node 4.0.2 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +213 -213
- package/bin/mcp-server.js.map +36 -36
- package/examples/package-lock.json +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/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/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- 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.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- 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/packages/orq-rc/README.md +38 -47
- package/packages/orq-rc/docs/sdks/agents/README.md +230 -529
- package/packages/orq-rc/docs/sdks/responses/README.md +60 -65
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsCreate.ts +16 -14
- package/packages/orq-rc/src/funcs/agentsDelete.ts +10 -6
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +16 -6
- package/packages/orq-rc/src/funcs/agentsList.ts +18 -6
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +23 -12
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +21 -16
- package/packages/orq-rc/src/funcs/agentsRun.ts +4 -2
- package/packages/orq-rc/src/funcs/agentsStream.ts +16 -6
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -2
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +14 -6
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -9
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +3 -3
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +5 -5
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +7 -4
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +9 -5
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +8 -4
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +5 -5
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +7 -4
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +8 -4
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +67 -0
- package/packages/orq-rc/src/models/errors/deleteagent.ts +2 -2
- package/packages/orq-rc/src/models/errors/index.ts +2 -3
- package/packages/orq-rc/src/models/errors/{listagenttasks.ts → retrieveagentrequest.ts} +15 -15
- package/packages/orq-rc/src/models/errors/updateagent.ts +2 -2
- package/packages/orq-rc/src/models/operations/{createagent.ts → createagentrequest.ts} +1643 -1485
- package/packages/orq-rc/src/models/operations/{createagentresponse.ts → createagentresponserequest.ts} +141 -127
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +3 -7
- package/packages/orq-rc/src/models/operations/invokeagent.ts +153 -190
- package/packages/orq-rc/src/models/operations/listagents.ts +9 -21
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3741 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
- package/packages/orq-rc/src/models/operations/runagent.ts +53 -57
- package/packages/orq-rc/src/models/operations/streamagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +68 -82
- package/packages/orq-rc/src/models/operations/updateagent.ts +17 -17
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/src/sdk/agents.ts +51 -99
- package/packages/orq-rc/src/sdk/responses.ts +7 -5
- 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/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/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- 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 +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- 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/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
- package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
- package/packages/orq-rc/src/models/errors/createagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/getagent.ts +0 -67
- package/packages/orq-rc/src/models/operations/getagent.ts +0 -3480
- package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -2389
- package/packages/orq-rc/src/models/operations/listactions.ts +0 -427
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -2614
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -354
|
@@ -112,7 +112,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
|
|
|
112
112
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
113
113
|
.optional(),
|
|
114
114
|
updated: z.string().datetime({ offset: true }).default(
|
|
115
|
-
"2025-11-
|
|
115
|
+
"2025-11-24T07:10:58.070Z",
|
|
116
116
|
).transform(v => new Date(v)),
|
|
117
117
|
}).transform((v) => {
|
|
118
118
|
return remap$(v, {
|
|
@@ -149,7 +149,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
|
|
|
149
149
|
tags: z.array(z.string()).optional(),
|
|
150
150
|
metadata: z.record(z.any()).optional(),
|
|
151
151
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
152
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
152
|
+
updated: z.date().default(() => new Date("2025-11-24T07:10:58.070Z"))
|
|
153
153
|
.transform(v => v.toISOString()),
|
|
154
154
|
}).transform((v) => {
|
|
155
155
|
return remap$(v, {
|
|
@@ -2511,7 +2511,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2511
2511
|
.default("orq"),
|
|
2512
2512
|
reviewed_by_id: z.string(),
|
|
2513
2513
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2514
|
-
"2025-11-
|
|
2514
|
+
"2025-11-24T07:11:09.600Z",
|
|
2515
2515
|
).transform(v => new Date(v)),
|
|
2516
2516
|
type: RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
|
|
2517
2517
|
values: z.array(z.string()),
|
|
@@ -2548,7 +2548,7 @@ export const RetrieveDatapointEvaluations3$outboundSchema: z.ZodType<
|
|
|
2548
2548
|
source: RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
2549
2549
|
.default("orq"),
|
|
2550
2550
|
reviewedById: z.string(),
|
|
2551
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
2551
|
+
reviewedAt: z.date().default(() => new Date("2025-11-24T07:11:09.600Z"))
|
|
2552
2552
|
.transform(v => v.toISOString()),
|
|
2553
2553
|
type: RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
|
|
2554
2554
|
values: z.array(z.string()),
|
|
@@ -2622,7 +2622,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2622
2622
|
),
|
|
2623
2623
|
reviewed_by_id: z.string(),
|
|
2624
2624
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2625
|
-
"2025-11-
|
|
2625
|
+
"2025-11-24T07:11:09.599Z",
|
|
2626
2626
|
).transform(v => new Date(v)),
|
|
2627
2627
|
type: RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
|
|
2628
2628
|
value: z.number(),
|
|
@@ -2660,7 +2660,7 @@ export const RetrieveDatapointEvaluations2$outboundSchema: z.ZodType<
|
|
|
2660
2660
|
"orq",
|
|
2661
2661
|
),
|
|
2662
2662
|
reviewedById: z.string(),
|
|
2663
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
2663
|
+
reviewedAt: z.date().default(() => new Date("2025-11-24T07:11:09.599Z"))
|
|
2664
2664
|
.transform(v => v.toISOString()),
|
|
2665
2665
|
type: RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
|
|
2666
2666
|
value: z.number(),
|
|
@@ -2731,7 +2731,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2731
2731
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2732
2732
|
reviewed_by_id: z.string(),
|
|
2733
2733
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2734
|
-
"2025-11-
|
|
2734
|
+
"2025-11-24T07:11:09.599Z",
|
|
2735
2735
|
).transform(v => new Date(v)),
|
|
2736
2736
|
type: RetrieveDatapointEvaluationsType$inboundSchema,
|
|
2737
2737
|
value: z.string(),
|
|
@@ -2766,7 +2766,7 @@ export const RetrieveDatapointEvaluations1$outboundSchema: z.ZodType<
|
|
|
2766
2766
|
humanReviewId: z.string(),
|
|
2767
2767
|
source: RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
2768
2768
|
reviewedById: z.string(),
|
|
2769
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
2769
|
+
reviewedAt: z.date().default(() => new Date("2025-11-24T07:11:09.599Z"))
|
|
2770
2770
|
.transform(v => v.toISOString()),
|
|
2771
2771
|
type: RetrieveDatapointEvaluationsType$outboundSchema,
|
|
2772
2772
|
value: z.string(),
|
|
@@ -2877,7 +2877,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2877
2877
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2878
2878
|
.optional(),
|
|
2879
2879
|
updated: z.string().datetime({ offset: true }).default(
|
|
2880
|
-
"2025-11-
|
|
2880
|
+
"2025-11-24T07:10:58.070Z",
|
|
2881
2881
|
).transform(v => new Date(v)),
|
|
2882
2882
|
}).transform((v) => {
|
|
2883
2883
|
return remap$(v, {
|
|
@@ -2951,7 +2951,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
2951
2951
|
createdById: z.string().optional(),
|
|
2952
2952
|
updatedById: z.string().optional(),
|
|
2953
2953
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2954
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
2954
|
+
updated: z.date().default(() => new Date("2025-11-24T07:10:58.070Z"))
|
|
2955
2955
|
.transform(v => v.toISOString()),
|
|
2956
2956
|
}).transform((v) => {
|
|
2957
2957
|
return remap$(v, {
|
|
@@ -174,7 +174,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
174
174
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
175
175
|
.optional(),
|
|
176
176
|
updated: z.string().datetime({ offset: true }).default(
|
|
177
|
-
"2025-11-
|
|
177
|
+
"2025-11-24T07:10:58.070Z",
|
|
178
178
|
).transform(v => new Date(v)),
|
|
179
179
|
}).transform((v) => {
|
|
180
180
|
return remap$(v, {
|
|
@@ -213,7 +213,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
213
213
|
createdById: z.string().optional(),
|
|
214
214
|
updatedById: z.string().optional(),
|
|
215
215
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
216
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
216
|
+
updated: z.date().default(() => new Date("2025-11-24T07:10:58.070Z"))
|
|
217
217
|
.transform(v => v.toISOString()),
|
|
218
218
|
}).transform((v) => {
|
|
219
219
|
return remap$(v, {
|
|
@@ -145,7 +145,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
145
145
|
z.ZodTypeDef,
|
|
146
146
|
unknown
|
|
147
147
|
> = z.object({
|
|
148
|
-
_id: z.string().default("
|
|
148
|
+
_id: z.string().default("01KATB7F63TGRASYGY2VFEPBK0"),
|
|
149
149
|
display_name: z.string(),
|
|
150
150
|
description: z.string().optional(),
|
|
151
151
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -188,7 +188,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
188
188
|
z.ZodTypeDef,
|
|
189
189
|
RetrieveDatasourceResponseBody
|
|
190
190
|
> = z.object({
|
|
191
|
-
id: z.string().default("
|
|
191
|
+
id: z.string().default("01KATB7F63TGRASYGY2VFEPBK0"),
|
|
192
192
|
displayName: z.string(),
|
|
193
193
|
description: z.string().optional(),
|
|
194
194
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -905,7 +905,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
905
905
|
z.ZodTypeDef,
|
|
906
906
|
unknown
|
|
907
907
|
> = z.object({
|
|
908
|
-
_id: z.string().default("
|
|
908
|
+
_id: z.string().default("tool_01KATB7F2EW1863QQRB61057YA"),
|
|
909
909
|
path: z.string(),
|
|
910
910
|
key: z.string(),
|
|
911
911
|
display_name: z.string().optional(),
|
|
@@ -961,7 +961,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$outboundSchema:
|
|
|
961
961
|
z.ZodTypeDef,
|
|
962
962
|
RetrieveToolResponseBodyCodeExecutionTool
|
|
963
963
|
> = z.object({
|
|
964
|
-
id: z.string().default("
|
|
964
|
+
id: z.string().default("tool_01KATB7F2EW1863QQRB61057YA"),
|
|
965
965
|
path: z.string(),
|
|
966
966
|
key: z.string(),
|
|
967
967
|
displayName: z.string().optional(),
|
|
@@ -1150,7 +1150,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1150
1150
|
z.ZodTypeDef,
|
|
1151
1151
|
unknown
|
|
1152
1152
|
> = z.object({
|
|
1153
|
-
id: z.string().default("
|
|
1153
|
+
id: z.string().default("01KATB7F2CMCCVNVTHRAFGVCMB"),
|
|
1154
1154
|
name: z.string(),
|
|
1155
1155
|
description: z.string().optional(),
|
|
1156
1156
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -1169,7 +1169,7 @@ export const RetrieveToolResponseBodyTools$outboundSchema: z.ZodType<
|
|
|
1169
1169
|
z.ZodTypeDef,
|
|
1170
1170
|
RetrieveToolResponseBodyTools
|
|
1171
1171
|
> = z.object({
|
|
1172
|
-
id: z.string().default("
|
|
1172
|
+
id: z.string().default("01KATB7F2CMCCVNVTHRAFGVCMB"),
|
|
1173
1173
|
name: z.string(),
|
|
1174
1174
|
description: z.string().optional(),
|
|
1175
1175
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$outboundSchema),
|
|
@@ -1275,7 +1275,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
1275
1275
|
z.ZodTypeDef,
|
|
1276
1276
|
unknown
|
|
1277
1277
|
> = z.object({
|
|
1278
|
-
_id: z.string().default("
|
|
1278
|
+
_id: z.string().default("tool_01KATB7F2B5SW8VVRCHE00JEP4"),
|
|
1279
1279
|
path: z.string(),
|
|
1280
1280
|
key: z.string(),
|
|
1281
1281
|
display_name: z.string().optional(),
|
|
@@ -1328,7 +1328,7 @@ export const RetrieveToolResponseBodyMCPTool$outboundSchema: z.ZodType<
|
|
|
1328
1328
|
z.ZodTypeDef,
|
|
1329
1329
|
RetrieveToolResponseBodyMCPTool
|
|
1330
1330
|
> = z.object({
|
|
1331
|
-
id: z.string().default("
|
|
1331
|
+
id: z.string().default("tool_01KATB7F2B5SW8VVRCHE00JEP4"),
|
|
1332
1332
|
path: z.string(),
|
|
1333
1333
|
key: z.string(),
|
|
1334
1334
|
displayName: z.string().optional(),
|
|
@@ -1708,7 +1708,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1708
1708
|
z.ZodTypeDef,
|
|
1709
1709
|
unknown
|
|
1710
1710
|
> = z.object({
|
|
1711
|
-
_id: z.string().default("
|
|
1711
|
+
_id: z.string().default("tool_01KATB7F28FP13YVFNN7XYWR2Q"),
|
|
1712
1712
|
path: z.string(),
|
|
1713
1713
|
key: z.string(),
|
|
1714
1714
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const RetrieveToolResponseBodyHTTPTool$outboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
RetrieveToolResponseBodyHTTPTool
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
id: z.string().default("
|
|
1764
|
+
id: z.string().default("tool_01KATB7F28FP13YVFNN7XYWR2Q"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
displayName: z.string().optional(),
|
|
@@ -1944,7 +1944,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1944
1944
|
z.ZodTypeDef,
|
|
1945
1945
|
unknown
|
|
1946
1946
|
> = z.object({
|
|
1947
|
-
_id: z.string().default("
|
|
1947
|
+
_id: z.string().default("tool_01KATB7F25PKAKV0VNWNETQSTV"),
|
|
1948
1948
|
path: z.string(),
|
|
1949
1949
|
key: z.string(),
|
|
1950
1950
|
display_name: z.string().optional(),
|
|
@@ -1996,7 +1996,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
|
|
|
1996
1996
|
z.ZodTypeDef,
|
|
1997
1997
|
RetrieveToolResponseBodyJSONSchemaTool
|
|
1998
1998
|
> = z.object({
|
|
1999
|
-
id: z.string().default("
|
|
1999
|
+
id: z.string().default("tool_01KATB7F25PKAKV0VNWNETQSTV"),
|
|
2000
2000
|
path: z.string(),
|
|
2001
2001
|
key: z.string(),
|
|
2002
2002
|
displayName: z.string().optional(),
|
|
@@ -2198,7 +2198,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2198
2198
|
z.ZodTypeDef,
|
|
2199
2199
|
unknown
|
|
2200
2200
|
> = z.object({
|
|
2201
|
-
_id: z.string().default("
|
|
2201
|
+
_id: z.string().default("tool_01KATB7F23ZBWYPTQDTE7CXTRQ"),
|
|
2202
2202
|
path: z.string(),
|
|
2203
2203
|
key: z.string(),
|
|
2204
2204
|
display_name: z.string().optional(),
|
|
@@ -2249,7 +2249,7 @@ export const RetrieveToolResponseBodyFunctionTool$outboundSchema: z.ZodType<
|
|
|
2249
2249
|
z.ZodTypeDef,
|
|
2250
2250
|
RetrieveToolResponseBodyFunctionTool
|
|
2251
2251
|
> = z.object({
|
|
2252
|
-
id: z.string().default("
|
|
2252
|
+
id: z.string().default("tool_01KATB7F23ZBWYPTQDTE7CXTRQ"),
|
|
2253
2253
|
path: z.string(),
|
|
2254
2254
|
key: z.string(),
|
|
2255
2255
|
displayName: z.string().optional(),
|
|
@@ -84,7 +84,7 @@ export type RunAgentResponseFormatAgentsJsonSchema = {
|
|
|
84
84
|
/**
|
|
85
85
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
86
86
|
*/
|
|
87
|
-
strict?: boolean |
|
|
87
|
+
strict?: boolean | undefined;
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
/**
|
|
@@ -451,7 +451,7 @@ export type RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema = {
|
|
|
451
451
|
/**
|
|
452
452
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
453
453
|
*/
|
|
454
|
-
strict?: boolean |
|
|
454
|
+
strict?: boolean | undefined;
|
|
455
455
|
};
|
|
456
456
|
|
|
457
457
|
/**
|
|
@@ -1836,7 +1836,7 @@ export type RunAgentPartsAgentsResponse200Kind = ClosedEnum<
|
|
|
1836
1836
|
/**
|
|
1837
1837
|
* A tool invocation request from an agent. Contains the tool name, unique call ID, and arguments for the tool execution.
|
|
1838
1838
|
*/
|
|
1839
|
-
export type
|
|
1839
|
+
export type PartsToolCallPart = {
|
|
1840
1840
|
kind: RunAgentPartsAgentsResponse200Kind;
|
|
1841
1841
|
toolName: string;
|
|
1842
1842
|
toolCallId: string;
|
|
@@ -1910,7 +1910,7 @@ export type RunAgentPartsAgentsKind = ClosedEnum<
|
|
|
1910
1910
|
/**
|
|
1911
1911
|
* A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
|
|
1912
1912
|
*/
|
|
1913
|
-
export type
|
|
1913
|
+
export type PartsDataPart = {
|
|
1914
1914
|
kind: RunAgentPartsAgentsKind;
|
|
1915
1915
|
data: { [k: string]: any };
|
|
1916
1916
|
metadata?: { [k: string]: any } | undefined;
|
|
@@ -1930,9 +1930,9 @@ export type RunAgentPartsTextPart = {
|
|
|
1930
1930
|
};
|
|
1931
1931
|
|
|
1932
1932
|
export type RunAgentParts =
|
|
1933
|
-
|
|
|
1933
|
+
| PartsToolCallPart
|
|
1934
1934
|
| RunAgentPartsTextPart
|
|
1935
|
-
|
|
|
1935
|
+
| PartsDataPart
|
|
1936
1936
|
| RunAgentPartsFilePart
|
|
1937
1937
|
| RunAgentPartsToolResultPart;
|
|
1938
1938
|
|
|
@@ -1947,9 +1947,9 @@ export type RunAgentTaskStatusMessage = {
|
|
|
1947
1947
|
*/
|
|
1948
1948
|
role: RunAgentExtendedMessageRole;
|
|
1949
1949
|
parts: Array<
|
|
1950
|
-
|
|
|
1950
|
+
| PartsToolCallPart
|
|
1951
1951
|
| RunAgentPartsTextPart
|
|
1952
|
-
|
|
|
1952
|
+
| PartsDataPart
|
|
1953
1953
|
| RunAgentPartsFilePart
|
|
1954
1954
|
| RunAgentPartsToolResultPart
|
|
1955
1955
|
>;
|
|
@@ -2079,14 +2079,14 @@ export const RunAgentResponseFormatAgentsJsonSchema$inboundSchema: z.ZodType<
|
|
|
2079
2079
|
description: z.string().optional(),
|
|
2080
2080
|
name: z.string(),
|
|
2081
2081
|
schema: z.any().optional(),
|
|
2082
|
-
strict: z.
|
|
2082
|
+
strict: z.boolean().default(false),
|
|
2083
2083
|
});
|
|
2084
2084
|
/** @internal */
|
|
2085
2085
|
export type RunAgentResponseFormatAgentsJsonSchema$Outbound = {
|
|
2086
2086
|
description?: string | undefined;
|
|
2087
2087
|
name: string;
|
|
2088
2088
|
schema?: any | undefined;
|
|
2089
|
-
strict
|
|
2089
|
+
strict: boolean;
|
|
2090
2090
|
};
|
|
2091
2091
|
|
|
2092
2092
|
/** @internal */
|
|
@@ -2098,7 +2098,7 @@ export const RunAgentResponseFormatAgentsJsonSchema$outboundSchema: z.ZodType<
|
|
|
2098
2098
|
description: z.string().optional(),
|
|
2099
2099
|
name: z.string(),
|
|
2100
2100
|
schema: z.any().optional(),
|
|
2101
|
-
strict: z.
|
|
2101
|
+
strict: z.boolean().default(false),
|
|
2102
2102
|
});
|
|
2103
2103
|
|
|
2104
2104
|
export function runAgentResponseFormatAgentsJsonSchemaToJSON(
|
|
@@ -3053,7 +3053,7 @@ export const RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$inboundSch
|
|
|
3053
3053
|
description: z.string().optional(),
|
|
3054
3054
|
name: z.string(),
|
|
3055
3055
|
schema: z.any().optional(),
|
|
3056
|
-
strict: z.
|
|
3056
|
+
strict: z.boolean().default(false),
|
|
3057
3057
|
});
|
|
3058
3058
|
/** @internal */
|
|
3059
3059
|
export type RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
|
|
@@ -3061,7 +3061,7 @@ export type RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$Outbound =
|
|
|
3061
3061
|
description?: string | undefined;
|
|
3062
3062
|
name: string;
|
|
3063
3063
|
schema?: any | undefined;
|
|
3064
|
-
strict
|
|
3064
|
+
strict: boolean;
|
|
3065
3065
|
};
|
|
3066
3066
|
|
|
3067
3067
|
/** @internal */
|
|
@@ -3074,7 +3074,7 @@ export const RunAgentResponseFormatAgentsRequestRequestBodyJsonSchema$outboundSc
|
|
|
3074
3074
|
description: z.string().optional(),
|
|
3075
3075
|
name: z.string(),
|
|
3076
3076
|
schema: z.any().optional(),
|
|
3077
|
-
strict: z.
|
|
3077
|
+
strict: z.boolean().default(false),
|
|
3078
3078
|
});
|
|
3079
3079
|
|
|
3080
3080
|
export function runAgentResponseFormatAgentsRequestRequestBodyJsonSchemaToJSON(
|
|
@@ -4790,7 +4790,7 @@ export function schemaFromJSON(
|
|
|
4790
4790
|
/** @internal */
|
|
4791
4791
|
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
4792
4792
|
.object({
|
|
4793
|
-
id: z.string().default("
|
|
4793
|
+
id: z.string().default("01KATB7ENXJV59B2GHSCEN2KTR"),
|
|
4794
4794
|
name: z.string(),
|
|
4795
4795
|
description: z.string().optional(),
|
|
4796
4796
|
schema: z.lazy(() => Schema$inboundSchema),
|
|
@@ -4809,7 +4809,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4809
4809
|
z.ZodTypeDef,
|
|
4810
4810
|
Tools
|
|
4811
4811
|
> = z.object({
|
|
4812
|
-
id: z.string().default("
|
|
4812
|
+
id: z.string().default("01KATB7ENXJV59B2GHSCEN2KTR"),
|
|
4813
4813
|
name: z.string(),
|
|
4814
4814
|
description: z.string().optional(),
|
|
4815
4815
|
schema: z.lazy(() => Schema$outboundSchema),
|
|
@@ -7042,8 +7042,8 @@ export const RunAgentPartsAgentsResponse200Kind$outboundSchema: z.ZodNativeEnum<
|
|
|
7042
7042
|
> = RunAgentPartsAgentsResponse200Kind$inboundSchema;
|
|
7043
7043
|
|
|
7044
7044
|
/** @internal */
|
|
7045
|
-
export const
|
|
7046
|
-
|
|
7045
|
+
export const PartsToolCallPart$inboundSchema: z.ZodType<
|
|
7046
|
+
PartsToolCallPart,
|
|
7047
7047
|
z.ZodTypeDef,
|
|
7048
7048
|
unknown
|
|
7049
7049
|
> = z.object({
|
|
@@ -7059,7 +7059,7 @@ export const RunAgentPartsToolCallPart$inboundSchema: z.ZodType<
|
|
|
7059
7059
|
});
|
|
7060
7060
|
});
|
|
7061
7061
|
/** @internal */
|
|
7062
|
-
export type
|
|
7062
|
+
export type PartsToolCallPart$Outbound = {
|
|
7063
7063
|
kind: string;
|
|
7064
7064
|
tool_name: string;
|
|
7065
7065
|
tool_call_id: string;
|
|
@@ -7068,10 +7068,10 @@ export type RunAgentPartsToolCallPart$Outbound = {
|
|
|
7068
7068
|
};
|
|
7069
7069
|
|
|
7070
7070
|
/** @internal */
|
|
7071
|
-
export const
|
|
7072
|
-
|
|
7071
|
+
export const PartsToolCallPart$outboundSchema: z.ZodType<
|
|
7072
|
+
PartsToolCallPart$Outbound,
|
|
7073
7073
|
z.ZodTypeDef,
|
|
7074
|
-
|
|
7074
|
+
PartsToolCallPart
|
|
7075
7075
|
> = z.object({
|
|
7076
7076
|
kind: RunAgentPartsAgentsResponse200Kind$outboundSchema,
|
|
7077
7077
|
toolName: z.string(),
|
|
@@ -7085,20 +7085,20 @@ export const RunAgentPartsToolCallPart$outboundSchema: z.ZodType<
|
|
|
7085
7085
|
});
|
|
7086
7086
|
});
|
|
7087
7087
|
|
|
7088
|
-
export function
|
|
7089
|
-
|
|
7088
|
+
export function partsToolCallPartToJSON(
|
|
7089
|
+
partsToolCallPart: PartsToolCallPart,
|
|
7090
7090
|
): string {
|
|
7091
7091
|
return JSON.stringify(
|
|
7092
|
-
|
|
7092
|
+
PartsToolCallPart$outboundSchema.parse(partsToolCallPart),
|
|
7093
7093
|
);
|
|
7094
7094
|
}
|
|
7095
|
-
export function
|
|
7095
|
+
export function partsToolCallPartFromJSON(
|
|
7096
7096
|
jsonString: string,
|
|
7097
|
-
): SafeParseResult<
|
|
7097
|
+
): SafeParseResult<PartsToolCallPart, SDKValidationError> {
|
|
7098
7098
|
return safeParse(
|
|
7099
7099
|
jsonString,
|
|
7100
|
-
(x) =>
|
|
7101
|
-
`Failed to parse '
|
|
7100
|
+
(x) => PartsToolCallPart$inboundSchema.parse(JSON.parse(x)),
|
|
7101
|
+
`Failed to parse 'PartsToolCallPart' from JSON`,
|
|
7102
7102
|
);
|
|
7103
7103
|
}
|
|
7104
7104
|
|
|
@@ -7309,8 +7309,8 @@ export const RunAgentPartsAgentsKind$outboundSchema: z.ZodNativeEnum<
|
|
|
7309
7309
|
> = RunAgentPartsAgentsKind$inboundSchema;
|
|
7310
7310
|
|
|
7311
7311
|
/** @internal */
|
|
7312
|
-
export const
|
|
7313
|
-
|
|
7312
|
+
export const PartsDataPart$inboundSchema: z.ZodType<
|
|
7313
|
+
PartsDataPart,
|
|
7314
7314
|
z.ZodTypeDef,
|
|
7315
7315
|
unknown
|
|
7316
7316
|
> = z.object({
|
|
@@ -7319,37 +7319,33 @@ export const RunAgentPartsDataPart$inboundSchema: z.ZodType<
|
|
|
7319
7319
|
metadata: z.record(z.any()).optional(),
|
|
7320
7320
|
});
|
|
7321
7321
|
/** @internal */
|
|
7322
|
-
export type
|
|
7322
|
+
export type PartsDataPart$Outbound = {
|
|
7323
7323
|
kind: string;
|
|
7324
7324
|
data: { [k: string]: any };
|
|
7325
7325
|
metadata?: { [k: string]: any } | undefined;
|
|
7326
7326
|
};
|
|
7327
7327
|
|
|
7328
7328
|
/** @internal */
|
|
7329
|
-
export const
|
|
7330
|
-
|
|
7329
|
+
export const PartsDataPart$outboundSchema: z.ZodType<
|
|
7330
|
+
PartsDataPart$Outbound,
|
|
7331
7331
|
z.ZodTypeDef,
|
|
7332
|
-
|
|
7332
|
+
PartsDataPart
|
|
7333
7333
|
> = z.object({
|
|
7334
7334
|
kind: RunAgentPartsAgentsKind$outboundSchema,
|
|
7335
7335
|
data: z.record(z.any()),
|
|
7336
7336
|
metadata: z.record(z.any()).optional(),
|
|
7337
7337
|
});
|
|
7338
7338
|
|
|
7339
|
-
export function
|
|
7340
|
-
|
|
7341
|
-
): string {
|
|
7342
|
-
return JSON.stringify(
|
|
7343
|
-
RunAgentPartsDataPart$outboundSchema.parse(runAgentPartsDataPart),
|
|
7344
|
-
);
|
|
7339
|
+
export function partsDataPartToJSON(partsDataPart: PartsDataPart): string {
|
|
7340
|
+
return JSON.stringify(PartsDataPart$outboundSchema.parse(partsDataPart));
|
|
7345
7341
|
}
|
|
7346
|
-
export function
|
|
7342
|
+
export function partsDataPartFromJSON(
|
|
7347
7343
|
jsonString: string,
|
|
7348
|
-
): SafeParseResult<
|
|
7344
|
+
): SafeParseResult<PartsDataPart, SDKValidationError> {
|
|
7349
7345
|
return safeParse(
|
|
7350
7346
|
jsonString,
|
|
7351
|
-
(x) =>
|
|
7352
|
-
`Failed to parse '
|
|
7347
|
+
(x) => PartsDataPart$inboundSchema.parse(JSON.parse(x)),
|
|
7348
|
+
`Failed to parse 'PartsDataPart' from JSON`,
|
|
7353
7349
|
);
|
|
7354
7350
|
}
|
|
7355
7351
|
|
|
@@ -7410,17 +7406,17 @@ export const RunAgentParts$inboundSchema: z.ZodType<
|
|
|
7410
7406
|
z.ZodTypeDef,
|
|
7411
7407
|
unknown
|
|
7412
7408
|
> = z.union([
|
|
7413
|
-
z.lazy(() =>
|
|
7409
|
+
z.lazy(() => PartsToolCallPart$inboundSchema),
|
|
7414
7410
|
z.lazy(() => RunAgentPartsTextPart$inboundSchema),
|
|
7415
|
-
z.lazy(() =>
|
|
7411
|
+
z.lazy(() => PartsDataPart$inboundSchema),
|
|
7416
7412
|
z.lazy(() => RunAgentPartsFilePart$inboundSchema),
|
|
7417
7413
|
z.lazy(() => RunAgentPartsToolResultPart$inboundSchema),
|
|
7418
7414
|
]);
|
|
7419
7415
|
/** @internal */
|
|
7420
7416
|
export type RunAgentParts$Outbound =
|
|
7421
|
-
|
|
|
7417
|
+
| PartsToolCallPart$Outbound
|
|
7422
7418
|
| RunAgentPartsTextPart$Outbound
|
|
7423
|
-
|
|
|
7419
|
+
| PartsDataPart$Outbound
|
|
7424
7420
|
| RunAgentPartsFilePart$Outbound
|
|
7425
7421
|
| RunAgentPartsToolResultPart$Outbound;
|
|
7426
7422
|
|
|
@@ -7430,9 +7426,9 @@ export const RunAgentParts$outboundSchema: z.ZodType<
|
|
|
7430
7426
|
z.ZodTypeDef,
|
|
7431
7427
|
RunAgentParts
|
|
7432
7428
|
> = z.union([
|
|
7433
|
-
z.lazy(() =>
|
|
7429
|
+
z.lazy(() => PartsToolCallPart$outboundSchema),
|
|
7434
7430
|
z.lazy(() => RunAgentPartsTextPart$outboundSchema),
|
|
7435
|
-
z.lazy(() =>
|
|
7431
|
+
z.lazy(() => PartsDataPart$outboundSchema),
|
|
7436
7432
|
z.lazy(() => RunAgentPartsFilePart$outboundSchema),
|
|
7437
7433
|
z.lazy(() => RunAgentPartsToolResultPart$outboundSchema),
|
|
7438
7434
|
]);
|
|
@@ -7461,9 +7457,9 @@ export const RunAgentTaskStatusMessage$inboundSchema: z.ZodType<
|
|
|
7461
7457
|
role: RunAgentExtendedMessageRole$inboundSchema,
|
|
7462
7458
|
parts: z.array(
|
|
7463
7459
|
z.union([
|
|
7464
|
-
z.lazy(() =>
|
|
7460
|
+
z.lazy(() => PartsToolCallPart$inboundSchema),
|
|
7465
7461
|
z.lazy(() => RunAgentPartsTextPart$inboundSchema),
|
|
7466
|
-
z.lazy(() =>
|
|
7462
|
+
z.lazy(() => PartsDataPart$inboundSchema),
|
|
7467
7463
|
z.lazy(() => RunAgentPartsFilePart$inboundSchema),
|
|
7468
7464
|
z.lazy(() => RunAgentPartsToolResultPart$inboundSchema),
|
|
7469
7465
|
]),
|
|
@@ -7475,9 +7471,9 @@ export type RunAgentTaskStatusMessage$Outbound = {
|
|
|
7475
7471
|
messageId: string;
|
|
7476
7472
|
role: string;
|
|
7477
7473
|
parts: Array<
|
|
7478
|
-
|
|
|
7474
|
+
| PartsToolCallPart$Outbound
|
|
7479
7475
|
| RunAgentPartsTextPart$Outbound
|
|
7480
|
-
|
|
|
7476
|
+
| PartsDataPart$Outbound
|
|
7481
7477
|
| RunAgentPartsFilePart$Outbound
|
|
7482
7478
|
| RunAgentPartsToolResultPart$Outbound
|
|
7483
7479
|
>;
|
|
@@ -7494,9 +7490,9 @@ export const RunAgentTaskStatusMessage$outboundSchema: z.ZodType<
|
|
|
7494
7490
|
role: RunAgentExtendedMessageRole$outboundSchema,
|
|
7495
7491
|
parts: z.array(
|
|
7496
7492
|
z.union([
|
|
7497
|
-
z.lazy(() =>
|
|
7493
|
+
z.lazy(() => PartsToolCallPart$outboundSchema),
|
|
7498
7494
|
z.lazy(() => RunAgentPartsTextPart$outboundSchema),
|
|
7499
|
-
z.lazy(() =>
|
|
7495
|
+
z.lazy(() => PartsDataPart$outboundSchema),
|
|
7500
7496
|
z.lazy(() => RunAgentPartsFilePart$outboundSchema),
|
|
7501
7497
|
z.lazy(() => RunAgentPartsToolResultPart$outboundSchema),
|
|
7502
7498
|
]),
|
|
@@ -2049,7 +2049,7 @@ export type StreamAgentData =
|
|
|
2049
2049
|
| Data17;
|
|
2050
2050
|
|
|
2051
2051
|
/**
|
|
2052
|
-
*
|
|
2052
|
+
* Server-Sent Event stream successfully established. Returns real-time events including agent messages, tool calls, status updates, and completion signals. The stream ends with a [DONE] sentinel value.
|
|
2053
2053
|
*/
|
|
2054
2054
|
export type StreamAgentResponseBody = {
|
|
2055
2055
|
data:
|