@orq-ai/node 4.0.0-rc.25 → 4.0.0-rc.28
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 +788 -281
- package/bin/mcp-server.js.map +50 -50
- package/docs/sdks/agents/README.md +2 -2
- package/examples/package-lock.json +1 -1
- package/funcs/toolsDuplicate.js +2 -1
- package/funcs/toolsDuplicate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +195 -11
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +189 -13
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +2 -0
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +30 -28
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createprompt.d.ts +0 -2
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +0 -4
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/duplicateagent.d.ts +94 -0
- package/models/operations/duplicateagent.d.ts.map +1 -1
- package/models/operations/duplicateagent.js +95 -3
- package/models/operations/duplicateagent.js.map +1 -1
- package/models/operations/duplicatetool.d.ts +18 -0
- package/models/operations/duplicatetool.d.ts.map +1 -1
- package/models/operations/duplicatetool.js +40 -12
- package/models/operations/duplicatetool.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/getagent.d.ts +94 -0
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +95 -3
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getallprompts.d.ts +0 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +0 -4
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +0 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +0 -4
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +0 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +0 -4
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +94 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +96 -3
- 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/listpromptversions.d.ts +0 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +0 -4
- 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 +10 -10
- package/models/operations/runagent.d.ts +92 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +97 -7
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +92 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +96 -6
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +188 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +192 -7
- 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.d.ts +2 -0
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +30 -28
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +0 -4
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +0 -8
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/src/funcs/toolsDuplicate.ts +3 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +403 -17
- 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 +30 -28
- package/src/models/operations/createprompt.ts +0 -6
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/duplicateagent.ts +206 -0
- package/src/models/operations/duplicatetool.ts +70 -10
- 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 +204 -0
- package/src/models/operations/getallprompts.ts +0 -6
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +0 -6
- package/src/models/operations/getpromptversion.ts +0 -6
- package/src/models/operations/listagents.ts +204 -0
- 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 +0 -6
- 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 +10 -10
- package/src/models/operations/runagent.ts +202 -0
- package/src/models/operations/streamrunagent.ts +204 -0
- package/src/models/operations/updateagent.ts +415 -0
- 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 +30 -28
- package/src/models/operations/updateprompt.ts +0 -12
- package/src/models/operations/updatetool.ts +10 -10
|
@@ -501,7 +501,6 @@ export type ListPromptVersionsMessages = {
|
|
|
501
501
|
export type ListPromptVersionsPromptConfig = {
|
|
502
502
|
stream?: boolean | undefined;
|
|
503
503
|
model?: string | undefined;
|
|
504
|
-
displayName?: string | undefined;
|
|
505
504
|
/**
|
|
506
505
|
* The id of the resource
|
|
507
506
|
*/
|
|
@@ -1741,7 +1740,6 @@ export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1741
1740
|
> = z.object({
|
|
1742
1741
|
stream: z.boolean().optional(),
|
|
1743
1742
|
model: z.string().optional(),
|
|
1744
|
-
display_name: z.string().optional(),
|
|
1745
1743
|
model_db_id: z.nullable(z.string()).optional(),
|
|
1746
1744
|
model_type: z.nullable(ListPromptVersionsModelType$inboundSchema).optional(),
|
|
1747
1745
|
model_parameters: z.lazy(() =>
|
|
@@ -1753,7 +1751,6 @@ export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1753
1751
|
messages: z.array(z.lazy(() => ListPromptVersionsMessages$inboundSchema)),
|
|
1754
1752
|
}).transform((v) => {
|
|
1755
1753
|
return remap$(v, {
|
|
1756
|
-
"display_name": "displayName",
|
|
1757
1754
|
"model_db_id": "modelDbId",
|
|
1758
1755
|
"model_type": "modelType",
|
|
1759
1756
|
"model_parameters": "modelParameters",
|
|
@@ -1764,7 +1761,6 @@ export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1764
1761
|
export type ListPromptVersionsPromptConfig$Outbound = {
|
|
1765
1762
|
stream?: boolean | undefined;
|
|
1766
1763
|
model?: string | undefined;
|
|
1767
|
-
display_name?: string | undefined;
|
|
1768
1764
|
model_db_id?: string | null | undefined;
|
|
1769
1765
|
model_type?: string | null | undefined;
|
|
1770
1766
|
model_parameters?: ListPromptVersionsModelParameters$Outbound | undefined;
|
|
@@ -1782,7 +1778,6 @@ export const ListPromptVersionsPromptConfig$outboundSchema: z.ZodType<
|
|
|
1782
1778
|
> = z.object({
|
|
1783
1779
|
stream: z.boolean().optional(),
|
|
1784
1780
|
model: z.string().optional(),
|
|
1785
|
-
displayName: z.string().optional(),
|
|
1786
1781
|
modelDbId: z.nullable(z.string()).optional(),
|
|
1787
1782
|
modelType: z.nullable(ListPromptVersionsModelType$outboundSchema).optional(),
|
|
1788
1783
|
modelParameters: z.lazy(() =>
|
|
@@ -1794,7 +1789,6 @@ export const ListPromptVersionsPromptConfig$outboundSchema: z.ZodType<
|
|
|
1794
1789
|
messages: z.array(z.lazy(() => ListPromptVersionsMessages$outboundSchema)),
|
|
1795
1790
|
}).transform((v) => {
|
|
1796
1791
|
return remap$(v, {
|
|
1797
|
-
displayName: "display_name",
|
|
1798
1792
|
modelDbId: "model_db_id",
|
|
1799
1793
|
modelType: "model_type",
|
|
1800
1794
|
modelParameters: "model_parameters",
|
|
@@ -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-13T07:48:44.054Z",
|
|
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-13T07:48:44.054Z"))
|
|
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-13T07:48:55.859Z",
|
|
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-13T07:48:55.859Z"))
|
|
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-13T07:48:55.858Z",
|
|
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-13T07:48:55.858Z"))
|
|
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-13T07:48:55.858Z",
|
|
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-13T07:48:55.858Z"))
|
|
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-13T07:48:44.054Z",
|
|
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-13T07:48:44.054Z"))
|
|
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-13T07:48:44.054Z",
|
|
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-13T07:48:44.054Z"))
|
|
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("01K9Y30QAKVWF6C0H2GEGAY39J"),
|
|
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("01K9Y30QAKVWF6C0H2GEGAY39J"),
|
|
192
192
|
displayName: z.string(),
|
|
193
193
|
description: z.string().optional(),
|
|
194
194
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -715,7 +715,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
715
715
|
z.ZodTypeDef,
|
|
716
716
|
unknown
|
|
717
717
|
> = z.object({
|
|
718
|
-
_id: z.string().default("
|
|
718
|
+
_id: z.string().default("01K9Y30Q83W73Z3SVFC72DB1K3"),
|
|
719
719
|
path: z.string(),
|
|
720
720
|
key: z.string(),
|
|
721
721
|
display_name: z.string().optional(),
|
|
@@ -770,7 +770,7 @@ export const RetrieveToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
770
770
|
z.ZodTypeDef,
|
|
771
771
|
RetrieveToolResponseBody5
|
|
772
772
|
> = z.object({
|
|
773
|
-
id: z.string().default("
|
|
773
|
+
id: z.string().default("01K9Y30Q83W73Z3SVFC72DB1K3"),
|
|
774
774
|
path: z.string(),
|
|
775
775
|
key: z.string(),
|
|
776
776
|
displayName: z.string().optional(),
|
|
@@ -1037,7 +1037,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
1037
1037
|
z.ZodTypeDef,
|
|
1038
1038
|
unknown
|
|
1039
1039
|
> = z.object({
|
|
1040
|
-
_id: z.string().default("
|
|
1040
|
+
_id: z.string().default("01K9Y30Q81KX6KJ9722K0BY2Q8"),
|
|
1041
1041
|
path: z.string(),
|
|
1042
1042
|
key: z.string(),
|
|
1043
1043
|
display_name: z.string().optional(),
|
|
@@ -1090,7 +1090,7 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
1090
1090
|
z.ZodTypeDef,
|
|
1091
1091
|
RetrieveToolResponseBody4
|
|
1092
1092
|
> = z.object({
|
|
1093
|
-
id: z.string().default("
|
|
1093
|
+
id: z.string().default("01K9Y30Q81KX6KJ9722K0BY2Q8"),
|
|
1094
1094
|
path: z.string(),
|
|
1095
1095
|
key: z.string(),
|
|
1096
1096
|
displayName: z.string().optional(),
|
|
@@ -1435,7 +1435,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
1435
1435
|
z.ZodTypeDef,
|
|
1436
1436
|
unknown
|
|
1437
1437
|
> = z.object({
|
|
1438
|
-
_id: z.string().default("
|
|
1438
|
+
_id: z.string().default("01K9Y30Q7ZN5JAF6SPPF3R3Q9Z"),
|
|
1439
1439
|
path: z.string(),
|
|
1440
1440
|
key: z.string(),
|
|
1441
1441
|
display_name: z.string().optional(),
|
|
@@ -1488,7 +1488,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
1488
1488
|
z.ZodTypeDef,
|
|
1489
1489
|
RetrieveToolResponseBody3
|
|
1490
1490
|
> = z.object({
|
|
1491
|
-
id: z.string().default("
|
|
1491
|
+
id: z.string().default("01K9Y30Q7ZN5JAF6SPPF3R3Q9Z"),
|
|
1492
1492
|
path: z.string(),
|
|
1493
1493
|
key: z.string(),
|
|
1494
1494
|
displayName: z.string().optional(),
|
|
@@ -1609,7 +1609,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
1609
1609
|
z.ZodTypeDef,
|
|
1610
1610
|
unknown
|
|
1611
1611
|
> = z.object({
|
|
1612
|
-
_id: z.string().default("
|
|
1612
|
+
_id: z.string().default("01K9Y30Q7X7RSYBV4K2MK4MGF2"),
|
|
1613
1613
|
path: z.string(),
|
|
1614
1614
|
key: z.string(),
|
|
1615
1615
|
display_name: z.string().optional(),
|
|
@@ -1661,7 +1661,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
1661
1661
|
z.ZodTypeDef,
|
|
1662
1662
|
RetrieveToolResponseBody2
|
|
1663
1663
|
> = z.object({
|
|
1664
|
-
id: z.string().default("
|
|
1664
|
+
id: z.string().default("01K9Y30Q7X7RSYBV4K2MK4MGF2"),
|
|
1665
1665
|
path: z.string(),
|
|
1666
1666
|
key: z.string(),
|
|
1667
1667
|
displayName: z.string().optional(),
|
|
@@ -1780,7 +1780,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
1780
1780
|
z.ZodTypeDef,
|
|
1781
1781
|
unknown
|
|
1782
1782
|
> = z.object({
|
|
1783
|
-
_id: z.string().default("
|
|
1783
|
+
_id: z.string().default("01K9Y30Q7VSJHNGW4HX73XZEYJ"),
|
|
1784
1784
|
path: z.string(),
|
|
1785
1785
|
key: z.string(),
|
|
1786
1786
|
display_name: z.string().optional(),
|
|
@@ -1831,7 +1831,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
1831
1831
|
z.ZodTypeDef,
|
|
1832
1832
|
RetrieveToolResponseBody1
|
|
1833
1833
|
> = z.object({
|
|
1834
|
-
id: z.string().default("
|
|
1834
|
+
id: z.string().default("01K9Y30Q7VSJHNGW4HX73XZEYJ"),
|
|
1835
1835
|
path: z.string(),
|
|
1836
1836
|
key: z.string(),
|
|
1837
1837
|
displayName: z.string().optional(),
|
|
@@ -1358,6 +1358,62 @@ export type RunAgentToolApprovalRequired = ClosedEnum<
|
|
|
1358
1358
|
typeof RunAgentToolApprovalRequired
|
|
1359
1359
|
>;
|
|
1360
1360
|
|
|
1361
|
+
/**
|
|
1362
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1363
|
+
*/
|
|
1364
|
+
export const RunAgentExecuteOn = {
|
|
1365
|
+
Input: "input",
|
|
1366
|
+
Output: "output",
|
|
1367
|
+
} as const;
|
|
1368
|
+
/**
|
|
1369
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1370
|
+
*/
|
|
1371
|
+
export type RunAgentExecuteOn = ClosedEnum<typeof RunAgentExecuteOn>;
|
|
1372
|
+
|
|
1373
|
+
export type RunAgentEvaluators = {
|
|
1374
|
+
/**
|
|
1375
|
+
* Unique key or identifier of the evaluator
|
|
1376
|
+
*/
|
|
1377
|
+
id: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
1380
|
+
*/
|
|
1381
|
+
sampleRate?: number | undefined;
|
|
1382
|
+
/**
|
|
1383
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1384
|
+
*/
|
|
1385
|
+
executeOn: RunAgentExecuteOn;
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1390
|
+
*/
|
|
1391
|
+
export const RunAgentAgentsExecuteOn = {
|
|
1392
|
+
Input: "input",
|
|
1393
|
+
Output: "output",
|
|
1394
|
+
} as const;
|
|
1395
|
+
/**
|
|
1396
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1397
|
+
*/
|
|
1398
|
+
export type RunAgentAgentsExecuteOn = ClosedEnum<
|
|
1399
|
+
typeof RunAgentAgentsExecuteOn
|
|
1400
|
+
>;
|
|
1401
|
+
|
|
1402
|
+
export type RunAgentGuardrails = {
|
|
1403
|
+
/**
|
|
1404
|
+
* Unique key or identifier of the evaluator
|
|
1405
|
+
*/
|
|
1406
|
+
id: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
|
|
1409
|
+
*/
|
|
1410
|
+
sampleRate?: number | undefined;
|
|
1411
|
+
/**
|
|
1412
|
+
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
1413
|
+
*/
|
|
1414
|
+
executeOn: RunAgentAgentsExecuteOn;
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1361
1417
|
export type RunAgentSettings = {
|
|
1362
1418
|
/**
|
|
1363
1419
|
* Tools available to the agent
|
|
@@ -1392,6 +1448,14 @@ export type RunAgentSettings = {
|
|
|
1392
1448
|
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
1393
1449
|
*/
|
|
1394
1450
|
maxExecutionTime?: number | undefined;
|
|
1451
|
+
/**
|
|
1452
|
+
* Configuration for an evaluator applied to the agent
|
|
1453
|
+
*/
|
|
1454
|
+
evaluators?: Array<RunAgentEvaluators> | undefined;
|
|
1455
|
+
/**
|
|
1456
|
+
* Configuration for a guardrail applied to the agent
|
|
1457
|
+
*/
|
|
1458
|
+
guardrails?: Array<RunAgentGuardrails> | undefined;
|
|
1395
1459
|
};
|
|
1396
1460
|
|
|
1397
1461
|
export type RunAgentRequestBody = {
|
|
@@ -5670,6 +5734,134 @@ export const RunAgentToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
|
|
|
5670
5734
|
typeof RunAgentToolApprovalRequired
|
|
5671
5735
|
> = RunAgentToolApprovalRequired$inboundSchema;
|
|
5672
5736
|
|
|
5737
|
+
/** @internal */
|
|
5738
|
+
export const RunAgentExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5739
|
+
typeof RunAgentExecuteOn
|
|
5740
|
+
> = z.nativeEnum(RunAgentExecuteOn);
|
|
5741
|
+
/** @internal */
|
|
5742
|
+
export const RunAgentExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
5743
|
+
typeof RunAgentExecuteOn
|
|
5744
|
+
> = RunAgentExecuteOn$inboundSchema;
|
|
5745
|
+
|
|
5746
|
+
/** @internal */
|
|
5747
|
+
export const RunAgentEvaluators$inboundSchema: z.ZodType<
|
|
5748
|
+
RunAgentEvaluators,
|
|
5749
|
+
z.ZodTypeDef,
|
|
5750
|
+
unknown
|
|
5751
|
+
> = z.object({
|
|
5752
|
+
id: z.string(),
|
|
5753
|
+
sample_rate: z.number().default(50),
|
|
5754
|
+
execute_on: RunAgentExecuteOn$inboundSchema,
|
|
5755
|
+
}).transform((v) => {
|
|
5756
|
+
return remap$(v, {
|
|
5757
|
+
"sample_rate": "sampleRate",
|
|
5758
|
+
"execute_on": "executeOn",
|
|
5759
|
+
});
|
|
5760
|
+
});
|
|
5761
|
+
/** @internal */
|
|
5762
|
+
export type RunAgentEvaluators$Outbound = {
|
|
5763
|
+
id: string;
|
|
5764
|
+
sample_rate: number;
|
|
5765
|
+
execute_on: string;
|
|
5766
|
+
};
|
|
5767
|
+
|
|
5768
|
+
/** @internal */
|
|
5769
|
+
export const RunAgentEvaluators$outboundSchema: z.ZodType<
|
|
5770
|
+
RunAgentEvaluators$Outbound,
|
|
5771
|
+
z.ZodTypeDef,
|
|
5772
|
+
RunAgentEvaluators
|
|
5773
|
+
> = z.object({
|
|
5774
|
+
id: z.string(),
|
|
5775
|
+
sampleRate: z.number().default(50),
|
|
5776
|
+
executeOn: RunAgentExecuteOn$outboundSchema,
|
|
5777
|
+
}).transform((v) => {
|
|
5778
|
+
return remap$(v, {
|
|
5779
|
+
sampleRate: "sample_rate",
|
|
5780
|
+
executeOn: "execute_on",
|
|
5781
|
+
});
|
|
5782
|
+
});
|
|
5783
|
+
|
|
5784
|
+
export function runAgentEvaluatorsToJSON(
|
|
5785
|
+
runAgentEvaluators: RunAgentEvaluators,
|
|
5786
|
+
): string {
|
|
5787
|
+
return JSON.stringify(
|
|
5788
|
+
RunAgentEvaluators$outboundSchema.parse(runAgentEvaluators),
|
|
5789
|
+
);
|
|
5790
|
+
}
|
|
5791
|
+
export function runAgentEvaluatorsFromJSON(
|
|
5792
|
+
jsonString: string,
|
|
5793
|
+
): SafeParseResult<RunAgentEvaluators, SDKValidationError> {
|
|
5794
|
+
return safeParse(
|
|
5795
|
+
jsonString,
|
|
5796
|
+
(x) => RunAgentEvaluators$inboundSchema.parse(JSON.parse(x)),
|
|
5797
|
+
`Failed to parse 'RunAgentEvaluators' from JSON`,
|
|
5798
|
+
);
|
|
5799
|
+
}
|
|
5800
|
+
|
|
5801
|
+
/** @internal */
|
|
5802
|
+
export const RunAgentAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
5803
|
+
typeof RunAgentAgentsExecuteOn
|
|
5804
|
+
> = z.nativeEnum(RunAgentAgentsExecuteOn);
|
|
5805
|
+
/** @internal */
|
|
5806
|
+
export const RunAgentAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
5807
|
+
typeof RunAgentAgentsExecuteOn
|
|
5808
|
+
> = RunAgentAgentsExecuteOn$inboundSchema;
|
|
5809
|
+
|
|
5810
|
+
/** @internal */
|
|
5811
|
+
export const RunAgentGuardrails$inboundSchema: z.ZodType<
|
|
5812
|
+
RunAgentGuardrails,
|
|
5813
|
+
z.ZodTypeDef,
|
|
5814
|
+
unknown
|
|
5815
|
+
> = z.object({
|
|
5816
|
+
id: z.string(),
|
|
5817
|
+
sample_rate: z.number().default(50),
|
|
5818
|
+
execute_on: RunAgentAgentsExecuteOn$inboundSchema,
|
|
5819
|
+
}).transform((v) => {
|
|
5820
|
+
return remap$(v, {
|
|
5821
|
+
"sample_rate": "sampleRate",
|
|
5822
|
+
"execute_on": "executeOn",
|
|
5823
|
+
});
|
|
5824
|
+
});
|
|
5825
|
+
/** @internal */
|
|
5826
|
+
export type RunAgentGuardrails$Outbound = {
|
|
5827
|
+
id: string;
|
|
5828
|
+
sample_rate: number;
|
|
5829
|
+
execute_on: string;
|
|
5830
|
+
};
|
|
5831
|
+
|
|
5832
|
+
/** @internal */
|
|
5833
|
+
export const RunAgentGuardrails$outboundSchema: z.ZodType<
|
|
5834
|
+
RunAgentGuardrails$Outbound,
|
|
5835
|
+
z.ZodTypeDef,
|
|
5836
|
+
RunAgentGuardrails
|
|
5837
|
+
> = z.object({
|
|
5838
|
+
id: z.string(),
|
|
5839
|
+
sampleRate: z.number().default(50),
|
|
5840
|
+
executeOn: RunAgentAgentsExecuteOn$outboundSchema,
|
|
5841
|
+
}).transform((v) => {
|
|
5842
|
+
return remap$(v, {
|
|
5843
|
+
sampleRate: "sample_rate",
|
|
5844
|
+
executeOn: "execute_on",
|
|
5845
|
+
});
|
|
5846
|
+
});
|
|
5847
|
+
|
|
5848
|
+
export function runAgentGuardrailsToJSON(
|
|
5849
|
+
runAgentGuardrails: RunAgentGuardrails,
|
|
5850
|
+
): string {
|
|
5851
|
+
return JSON.stringify(
|
|
5852
|
+
RunAgentGuardrails$outboundSchema.parse(runAgentGuardrails),
|
|
5853
|
+
);
|
|
5854
|
+
}
|
|
5855
|
+
export function runAgentGuardrailsFromJSON(
|
|
5856
|
+
jsonString: string,
|
|
5857
|
+
): SafeParseResult<RunAgentGuardrails, SDKValidationError> {
|
|
5858
|
+
return safeParse(
|
|
5859
|
+
jsonString,
|
|
5860
|
+
(x) => RunAgentGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
5861
|
+
`Failed to parse 'RunAgentGuardrails' from JSON`,
|
|
5862
|
+
);
|
|
5863
|
+
}
|
|
5864
|
+
|
|
5673
5865
|
/** @internal */
|
|
5674
5866
|
export const RunAgentSettings$inboundSchema: z.ZodType<
|
|
5675
5867
|
RunAgentSettings,
|
|
@@ -5699,6 +5891,10 @@ export const RunAgentSettings$inboundSchema: z.ZodType<
|
|
|
5699
5891
|
),
|
|
5700
5892
|
max_iterations: z.number().int().default(15),
|
|
5701
5893
|
max_execution_time: z.number().int().default(300),
|
|
5894
|
+
evaluators: z.array(z.lazy(() => RunAgentEvaluators$inboundSchema))
|
|
5895
|
+
.optional(),
|
|
5896
|
+
guardrails: z.array(z.lazy(() => RunAgentGuardrails$inboundSchema))
|
|
5897
|
+
.optional(),
|
|
5702
5898
|
}).transform((v) => {
|
|
5703
5899
|
return remap$(v, {
|
|
5704
5900
|
"tool_approval_required": "toolApprovalRequired",
|
|
@@ -5729,6 +5925,8 @@ export type RunAgentSettings$Outbound = {
|
|
|
5729
5925
|
tool_approval_required: string;
|
|
5730
5926
|
max_iterations: number;
|
|
5731
5927
|
max_execution_time: number;
|
|
5928
|
+
evaluators?: Array<RunAgentEvaluators$Outbound> | undefined;
|
|
5929
|
+
guardrails?: Array<RunAgentGuardrails$Outbound> | undefined;
|
|
5732
5930
|
};
|
|
5733
5931
|
|
|
5734
5932
|
/** @internal */
|
|
@@ -5760,6 +5958,10 @@ export const RunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5760
5958
|
),
|
|
5761
5959
|
maxIterations: z.number().int().default(15),
|
|
5762
5960
|
maxExecutionTime: z.number().int().default(300),
|
|
5961
|
+
evaluators: z.array(z.lazy(() => RunAgentEvaluators$outboundSchema))
|
|
5962
|
+
.optional(),
|
|
5963
|
+
guardrails: z.array(z.lazy(() => RunAgentGuardrails$outboundSchema))
|
|
5964
|
+
.optional(),
|
|
5763
5965
|
}).transform((v) => {
|
|
5764
5966
|
return remap$(v, {
|
|
5765
5967
|
toolApprovalRequired: "tool_approval_required",
|