@orq-ai/node 3.12.16 → 3.12.17
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 +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +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/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +107 -90
- package/packages/orq-rc/docs/sdks/tools/README.md +488 -0
- 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/toolsCreate.ts +163 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
- package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +13 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
- package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
- package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
- package/packages/orq-rc/src/models/components/deployments.ts +52 -45
- package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
- package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
- package/packages/orq-rc/src/models/components/httptool.ts +532 -0
- package/packages/orq-rc/src/models/components/index.ts +13 -0
- package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
- package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
- package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
- package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
- package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
- 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 +10 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
- package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
- package/packages/orq-rc/src/models/operations/createprompt.ts +631 -314
- package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +362 -194
- package/packages/orq-rc/src/models/operations/deployments.ts +329 -160
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
- 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/getagent.ts +10 -10
- package/packages/orq-rc/src/models/operations/getallprompts.ts +333 -168
- package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
- 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/getoneknowledge.ts +9 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +329 -167
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +337 -168
- package/packages/orq-rc/src/models/operations/index.ts +6 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
- 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 +6 -5
- 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/listknowledgebases.ts +9 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +354 -183
- package/packages/orq-rc/src/models/operations/parse.ts +20 -335
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
- 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 +2303 -0
- package/packages/orq-rc/src/models/operations/runagent.ts +412 -1375
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +399 -1449
- 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 +10 -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 +57 -57
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
- package/packages/orq-rc/src/models/operations/updateprompt.ts +668 -335
- package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/tools.ts +117 -0
- 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/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 +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- 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/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 +2 -2
- 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 +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.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 +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -538,7 +538,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
538
538
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
539
539
|
.optional(),
|
|
540
540
|
updated: z.string().datetime({ offset: true }).default(
|
|
541
|
-
"2025-09-
|
|
541
|
+
"2025-09-25T06:48:39.657Z",
|
|
542
542
|
).transform(v => new Date(v)),
|
|
543
543
|
}).transform((v) => {
|
|
544
544
|
return remap$(v, {
|
|
@@ -573,7 +573,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
573
573
|
isActive: z.boolean(),
|
|
574
574
|
consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
|
|
575
575
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
576
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
576
|
+
updated: z.date().default(() => new Date("2025-09-25T06:48:39.657Z"))
|
|
577
577
|
.transform(v => v.toISOString()),
|
|
578
578
|
}).transform((v) => {
|
|
579
579
|
return remap$(v, {
|
|
@@ -244,7 +244,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
244
244
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
245
245
|
.optional(),
|
|
246
246
|
updated: z.string().datetime({ offset: true }).default(
|
|
247
|
-
"2025-09-
|
|
247
|
+
"2025-09-25T06:48:39.657Z",
|
|
248
248
|
).transform(v => new Date(v)),
|
|
249
249
|
}).transform((v) => {
|
|
250
250
|
return remap$(v, {
|
|
@@ -282,7 +282,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
282
282
|
tags: z.array(z.string()).optional(),
|
|
283
283
|
metadata: z.record(z.any()).optional(),
|
|
284
284
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
285
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
285
|
+
updated: z.date().default(() => new Date("2025-09-25T06:48:39.657Z"))
|
|
286
286
|
.transform(v => v.toISOString()),
|
|
287
287
|
}).transform((v) => {
|
|
288
288
|
return remap$(v, {
|
|
@@ -152,13 +152,14 @@ export type UpdateDatapointMessagesDatasetsContent =
|
|
|
152
152
|
| Array<UpdateDatapoint2TextContentPart | UpdateDatapoint2RefusalContentPart>;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* The role of the messages author, in this case `assistant`.
|
|
155
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
156
156
|
*/
|
|
157
157
|
export const UpdateDatapointMessagesDatasetsRequestRequestBodyRole = {
|
|
158
158
|
Assistant: "assistant",
|
|
159
|
+
Exception: "exception",
|
|
159
160
|
} as const;
|
|
160
161
|
/**
|
|
161
|
-
* The role of the messages author, in this case `assistant`.
|
|
162
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
162
163
|
*/
|
|
163
164
|
export type UpdateDatapointMessagesDatasetsRequestRequestBodyRole = ClosedEnum<
|
|
164
165
|
typeof UpdateDatapointMessagesDatasetsRequestRequestBodyRole
|
|
@@ -226,7 +227,7 @@ export type UpdateDatapointMessagesAssistantMessage = {
|
|
|
226
227
|
*/
|
|
227
228
|
refusal?: string | null | undefined;
|
|
228
229
|
/**
|
|
229
|
-
* The role of the messages author, in this case `assistant`.
|
|
230
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
230
231
|
*/
|
|
231
232
|
role: UpdateDatapointMessagesDatasetsRequestRequestBodyRole;
|
|
232
233
|
/**
|
|
@@ -668,14 +669,15 @@ export type UpdateDatapointMessagesDatasetsResponse200Content =
|
|
|
668
669
|
>;
|
|
669
670
|
|
|
670
671
|
/**
|
|
671
|
-
* The role of the messages author, in this case `assistant`.
|
|
672
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
672
673
|
*/
|
|
673
674
|
export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyRole =
|
|
674
675
|
{
|
|
675
676
|
Assistant: "assistant",
|
|
677
|
+
Exception: "exception",
|
|
676
678
|
} as const;
|
|
677
679
|
/**
|
|
678
|
-
* The role of the messages author, in this case `assistant`.
|
|
680
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
679
681
|
*/
|
|
680
682
|
export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyRole =
|
|
681
683
|
ClosedEnum<
|
|
@@ -745,7 +747,7 @@ export type UpdateDatapointMessagesDatasetsAssistantMessage = {
|
|
|
745
747
|
*/
|
|
746
748
|
refusal?: string | null | undefined;
|
|
747
749
|
/**
|
|
748
|
-
* The role of the messages author, in this case `assistant`.
|
|
750
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
749
751
|
*/
|
|
750
752
|
role:
|
|
751
753
|
UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyRole;
|
|
@@ -6018,7 +6020,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
6018
6020
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6019
6021
|
.optional(),
|
|
6020
6022
|
updated: z.string().datetime({ offset: true }).default(
|
|
6021
|
-
"2025-09-
|
|
6023
|
+
"2025-09-25T06:48:39.657Z",
|
|
6022
6024
|
).transform(v => new Date(v)),
|
|
6023
6025
|
}).transform((v) => {
|
|
6024
6026
|
return remap$(v, {
|
|
@@ -6080,7 +6082,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
6080
6082
|
createdById: z.string().optional(),
|
|
6081
6083
|
updatedById: z.string().optional(),
|
|
6082
6084
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6083
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
6085
|
+
updated: z.date().default(() => new Date("2025-09-25T06:48:39.657Z"))
|
|
6084
6086
|
.transform(v => v.toISOString()),
|
|
6085
6087
|
}).transform((v) => {
|
|
6086
6088
|
return remap$(v, {
|
|
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
302
302
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
303
303
|
.optional(),
|
|
304
304
|
updated: z.string().datetime({ offset: true }).default(
|
|
305
|
-
"2025-09-
|
|
305
|
+
"2025-09-25T06:48:39.657Z",
|
|
306
306
|
).transform(v => new Date(v)),
|
|
307
307
|
}).transform((v) => {
|
|
308
308
|
return remap$(v, {
|
|
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
347
347
|
parentId: z.string().optional(),
|
|
348
348
|
version: z.string().optional(),
|
|
349
349
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
350
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
350
|
+
updated: z.date().default(() => new Date("2025-09-25T06:48:39.657Z"))
|
|
351
351
|
.transform(v => v.toISOString()),
|
|
352
352
|
}).transform((v) => {
|
|
353
353
|
return remap$(v, {
|
|
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
244
244
|
z.ZodTypeDef,
|
|
245
245
|
unknown
|
|
246
246
|
> = z.object({
|
|
247
|
-
_id: z.string().default("
|
|
247
|
+
_id: z.string().default("01K5ZT3CVAEWED4S8XD0FV8DQW"),
|
|
248
248
|
display_name: z.string(),
|
|
249
249
|
description: z.string().optional(),
|
|
250
250
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
288
288
|
z.ZodTypeDef,
|
|
289
289
|
UpdateDatasourceResponseBody
|
|
290
290
|
> = z.object({
|
|
291
|
-
id: z.string().default("
|
|
291
|
+
id: z.string().default("01K5ZT3CVAEWED4S8XD0FV8DQW"),
|
|
292
292
|
displayName: z.string(),
|
|
293
293
|
description: z.string().optional(),
|
|
294
294
|
status: UpdateDatasourceStatus$outboundSchema,
|
|
@@ -726,7 +726,7 @@ export type UpdateEvalFunctionParamsEvalsResponse200ApplicationJSONResponseBody5
|
|
|
726
726
|
typeof UpdateEvalFunctionParamsEvalsResponse200ApplicationJSONResponseBody524Type
|
|
727
727
|
>;
|
|
728
728
|
|
|
729
|
-
export type
|
|
729
|
+
export type UpdateEvalFunctionParams24 = {
|
|
730
730
|
type:
|
|
731
731
|
UpdateEvalFunctionParamsEvalsResponse200ApplicationJSONResponseBody524Type;
|
|
732
732
|
};
|
|
@@ -1075,7 +1075,7 @@ export type ResponseBodyFunctionParams =
|
|
|
1075
1075
|
| UpdateEvalFunctionParams21
|
|
1076
1076
|
| UpdateEvalFunctionParams22
|
|
1077
1077
|
| FunctionParams23
|
|
1078
|
-
|
|
|
1078
|
+
| UpdateEvalFunctionParams24
|
|
1079
1079
|
| FunctionParams27
|
|
1080
1080
|
| FunctionParams28
|
|
1081
1081
|
| FunctionParams29
|
|
@@ -1122,7 +1122,7 @@ export type UpdateEvalResponseBodyFunction = {
|
|
|
1122
1122
|
| UpdateEvalFunctionParams21
|
|
1123
1123
|
| UpdateEvalFunctionParams22
|
|
1124
1124
|
| FunctionParams23
|
|
1125
|
-
|
|
|
1125
|
+
| UpdateEvalFunctionParams24
|
|
1126
1126
|
| FunctionParams27
|
|
1127
1127
|
| FunctionParams28
|
|
1128
1128
|
| FunctionParams29
|
|
@@ -3637,8 +3637,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
3637
3637
|
> = z.object({
|
|
3638
3638
|
_id: z.string(),
|
|
3639
3639
|
description: z.string(),
|
|
3640
|
-
created: z.string().default("2025-09-
|
|
3641
|
-
updated: z.string().default("2025-09-
|
|
3640
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
3641
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
3642
3642
|
guardrail_config: z.union([
|
|
3643
3643
|
z.lazy(() =>
|
|
3644
3644
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
|
|
@@ -3681,8 +3681,8 @@ export const ResponseBodyTypescript$outboundSchema: z.ZodType<
|
|
|
3681
3681
|
> = z.object({
|
|
3682
3682
|
id: z.string(),
|
|
3683
3683
|
description: z.string(),
|
|
3684
|
-
created: z.string().default("2025-09-
|
|
3685
|
-
updated: z.string().default("2025-09-
|
|
3684
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
3685
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
3686
3686
|
guardrailConfig: z.union([
|
|
3687
3687
|
z.lazy(() =>
|
|
3688
3688
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema
|
|
@@ -4108,8 +4108,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
4108
4108
|
> = z.object({
|
|
4109
4109
|
_id: z.string(),
|
|
4110
4110
|
description: z.string(),
|
|
4111
|
-
created: z.string().default("2025-09-
|
|
4112
|
-
updated: z.string().default("2025-09-
|
|
4111
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
4112
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
4113
4113
|
guardrail_config: z.union([
|
|
4114
4114
|
z.lazy(() =>
|
|
4115
4115
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
|
|
@@ -4155,8 +4155,8 @@ export const ResponseBodyRagas$outboundSchema: z.ZodType<
|
|
|
4155
4155
|
> = z.object({
|
|
4156
4156
|
id: z.string(),
|
|
4157
4157
|
description: z.string(),
|
|
4158
|
-
created: z.string().default("2025-09-
|
|
4159
|
-
updated: z.string().default("2025-09-
|
|
4158
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
4159
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
4160
4160
|
guardrailConfig: z.union([
|
|
4161
4161
|
z.lazy(() =>
|
|
4162
4162
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema
|
|
@@ -5514,8 +5514,8 @@ export namespace UpdateEvalFunctionParamsEvalsResponse200ApplicationJSONResponse
|
|
|
5514
5514
|
}
|
|
5515
5515
|
|
|
5516
5516
|
/** @internal */
|
|
5517
|
-
export const
|
|
5518
|
-
|
|
5517
|
+
export const UpdateEvalFunctionParams24$inboundSchema: z.ZodType<
|
|
5518
|
+
UpdateEvalFunctionParams24,
|
|
5519
5519
|
z.ZodTypeDef,
|
|
5520
5520
|
unknown
|
|
5521
5521
|
> = z.object({
|
|
@@ -5524,15 +5524,15 @@ export const FunctionParams24$inboundSchema: z.ZodType<
|
|
|
5524
5524
|
});
|
|
5525
5525
|
|
|
5526
5526
|
/** @internal */
|
|
5527
|
-
export type
|
|
5527
|
+
export type UpdateEvalFunctionParams24$Outbound = {
|
|
5528
5528
|
type: string;
|
|
5529
5529
|
};
|
|
5530
5530
|
|
|
5531
5531
|
/** @internal */
|
|
5532
|
-
export const
|
|
5533
|
-
|
|
5532
|
+
export const UpdateEvalFunctionParams24$outboundSchema: z.ZodType<
|
|
5533
|
+
UpdateEvalFunctionParams24$Outbound,
|
|
5534
5534
|
z.ZodTypeDef,
|
|
5535
|
-
|
|
5535
|
+
UpdateEvalFunctionParams24
|
|
5536
5536
|
> = z.object({
|
|
5537
5537
|
type:
|
|
5538
5538
|
UpdateEvalFunctionParamsEvalsResponse200ApplicationJSONResponseBody524Type$outboundSchema,
|
|
@@ -5542,30 +5542,30 @@ export const FunctionParams24$outboundSchema: z.ZodType<
|
|
|
5542
5542
|
* @internal
|
|
5543
5543
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5544
5544
|
*/
|
|
5545
|
-
export namespace
|
|
5546
|
-
/** @deprecated use `
|
|
5547
|
-
export const inboundSchema =
|
|
5548
|
-
/** @deprecated use `
|
|
5549
|
-
export const outboundSchema =
|
|
5550
|
-
/** @deprecated use `
|
|
5551
|
-
export type Outbound =
|
|
5545
|
+
export namespace UpdateEvalFunctionParams24$ {
|
|
5546
|
+
/** @deprecated use `UpdateEvalFunctionParams24$inboundSchema` instead. */
|
|
5547
|
+
export const inboundSchema = UpdateEvalFunctionParams24$inboundSchema;
|
|
5548
|
+
/** @deprecated use `UpdateEvalFunctionParams24$outboundSchema` instead. */
|
|
5549
|
+
export const outboundSchema = UpdateEvalFunctionParams24$outboundSchema;
|
|
5550
|
+
/** @deprecated use `UpdateEvalFunctionParams24$Outbound` instead. */
|
|
5551
|
+
export type Outbound = UpdateEvalFunctionParams24$Outbound;
|
|
5552
5552
|
}
|
|
5553
5553
|
|
|
5554
|
-
export function
|
|
5555
|
-
|
|
5554
|
+
export function updateEvalFunctionParams24ToJSON(
|
|
5555
|
+
updateEvalFunctionParams24: UpdateEvalFunctionParams24,
|
|
5556
5556
|
): string {
|
|
5557
5557
|
return JSON.stringify(
|
|
5558
|
-
|
|
5558
|
+
UpdateEvalFunctionParams24$outboundSchema.parse(updateEvalFunctionParams24),
|
|
5559
5559
|
);
|
|
5560
5560
|
}
|
|
5561
5561
|
|
|
5562
|
-
export function
|
|
5562
|
+
export function updateEvalFunctionParams24FromJSON(
|
|
5563
5563
|
jsonString: string,
|
|
5564
|
-
): SafeParseResult<
|
|
5564
|
+
): SafeParseResult<UpdateEvalFunctionParams24, SDKValidationError> {
|
|
5565
5565
|
return safeParse(
|
|
5566
5566
|
jsonString,
|
|
5567
|
-
(x) =>
|
|
5568
|
-
`Failed to parse '
|
|
5567
|
+
(x) => UpdateEvalFunctionParams24$inboundSchema.parse(JSON.parse(x)),
|
|
5568
|
+
`Failed to parse 'UpdateEvalFunctionParams24' from JSON`,
|
|
5569
5569
|
);
|
|
5570
5570
|
}
|
|
5571
5571
|
|
|
@@ -7531,7 +7531,7 @@ export const ResponseBodyFunctionParams$inboundSchema: z.ZodType<
|
|
|
7531
7531
|
z.lazy(() => UpdateEvalFunctionParams21$inboundSchema),
|
|
7532
7532
|
z.lazy(() => UpdateEvalFunctionParams22$inboundSchema),
|
|
7533
7533
|
z.lazy(() => FunctionParams23$inboundSchema),
|
|
7534
|
-
z.lazy(() =>
|
|
7534
|
+
z.lazy(() => UpdateEvalFunctionParams24$inboundSchema),
|
|
7535
7535
|
z.lazy(() => FunctionParams27$inboundSchema),
|
|
7536
7536
|
z.lazy(() => FunctionParams28$inboundSchema),
|
|
7537
7537
|
z.lazy(() => FunctionParams29$inboundSchema),
|
|
@@ -7570,7 +7570,7 @@ export type ResponseBodyFunctionParams$Outbound =
|
|
|
7570
7570
|
| UpdateEvalFunctionParams21$Outbound
|
|
7571
7571
|
| UpdateEvalFunctionParams22$Outbound
|
|
7572
7572
|
| FunctionParams23$Outbound
|
|
7573
|
-
|
|
|
7573
|
+
| UpdateEvalFunctionParams24$Outbound
|
|
7574
7574
|
| FunctionParams27$Outbound
|
|
7575
7575
|
| FunctionParams28$Outbound
|
|
7576
7576
|
| FunctionParams29$Outbound
|
|
@@ -7612,7 +7612,7 @@ export const ResponseBodyFunctionParams$outboundSchema: z.ZodType<
|
|
|
7612
7612
|
z.lazy(() => UpdateEvalFunctionParams21$outboundSchema),
|
|
7613
7613
|
z.lazy(() => UpdateEvalFunctionParams22$outboundSchema),
|
|
7614
7614
|
z.lazy(() => FunctionParams23$outboundSchema),
|
|
7615
|
-
z.lazy(() =>
|
|
7615
|
+
z.lazy(() => UpdateEvalFunctionParams24$outboundSchema),
|
|
7616
7616
|
z.lazy(() => FunctionParams27$outboundSchema),
|
|
7617
7617
|
z.lazy(() => FunctionParams28$outboundSchema),
|
|
7618
7618
|
z.lazy(() => FunctionParams29$outboundSchema),
|
|
@@ -7663,8 +7663,8 @@ export const UpdateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
7663
7663
|
> = z.object({
|
|
7664
7664
|
_id: z.string(),
|
|
7665
7665
|
description: z.string(),
|
|
7666
|
-
created: z.string().default("2025-09-
|
|
7667
|
-
updated: z.string().default("2025-09-
|
|
7666
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
7667
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
7668
7668
|
guardrail_config: z.union([
|
|
7669
7669
|
z.lazy(() =>
|
|
7670
7670
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
|
|
@@ -7700,7 +7700,7 @@ export const UpdateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
7700
7700
|
z.lazy(() => UpdateEvalFunctionParams21$inboundSchema),
|
|
7701
7701
|
z.lazy(() => UpdateEvalFunctionParams22$inboundSchema),
|
|
7702
7702
|
z.lazy(() => FunctionParams23$inboundSchema),
|
|
7703
|
-
z.lazy(() =>
|
|
7703
|
+
z.lazy(() => UpdateEvalFunctionParams24$inboundSchema),
|
|
7704
7704
|
z.lazy(() => FunctionParams27$inboundSchema),
|
|
7705
7705
|
z.lazy(() => FunctionParams28$inboundSchema),
|
|
7706
7706
|
z.lazy(() => FunctionParams29$inboundSchema),
|
|
@@ -7757,7 +7757,7 @@ export type UpdateEvalResponseBodyFunction$Outbound = {
|
|
|
7757
7757
|
| UpdateEvalFunctionParams21$Outbound
|
|
7758
7758
|
| UpdateEvalFunctionParams22$Outbound
|
|
7759
7759
|
| FunctionParams23$Outbound
|
|
7760
|
-
|
|
|
7760
|
+
| UpdateEvalFunctionParams24$Outbound
|
|
7761
7761
|
| FunctionParams27$Outbound
|
|
7762
7762
|
| FunctionParams28$Outbound
|
|
7763
7763
|
| FunctionParams29$Outbound
|
|
@@ -7778,8 +7778,8 @@ export const UpdateEvalResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
7778
7778
|
> = z.object({
|
|
7779
7779
|
id: z.string(),
|
|
7780
7780
|
description: z.string(),
|
|
7781
|
-
created: z.string().default("2025-09-
|
|
7782
|
-
updated: z.string().default("2025-09-
|
|
7781
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
7782
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
7783
7783
|
guardrailConfig: z.union([
|
|
7784
7784
|
z.lazy(() =>
|
|
7785
7785
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema
|
|
@@ -7816,7 +7816,7 @@ export const UpdateEvalResponseBodyFunction$outboundSchema: z.ZodType<
|
|
|
7816
7816
|
z.lazy(() => UpdateEvalFunctionParams21$outboundSchema),
|
|
7817
7817
|
z.lazy(() => UpdateEvalFunctionParams22$outboundSchema),
|
|
7818
7818
|
z.lazy(() => FunctionParams23$outboundSchema),
|
|
7819
|
-
z.lazy(() =>
|
|
7819
|
+
z.lazy(() => UpdateEvalFunctionParams24$outboundSchema),
|
|
7820
7820
|
z.lazy(() => FunctionParams27$outboundSchema),
|
|
7821
7821
|
z.lazy(() => FunctionParams28$outboundSchema),
|
|
7822
7822
|
z.lazy(() => FunctionParams29$outboundSchema),
|
|
@@ -8221,8 +8221,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
8221
8221
|
> = z.object({
|
|
8222
8222
|
_id: z.string(),
|
|
8223
8223
|
description: z.string(),
|
|
8224
|
-
created: z.string().default("2025-09-
|
|
8225
|
-
updated: z.string().default("2025-09-
|
|
8224
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
8225
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
8226
8226
|
guardrail_config: z.union([
|
|
8227
8227
|
z.lazy(() =>
|
|
8228
8228
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -8264,8 +8264,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
8264
8264
|
> = z.object({
|
|
8265
8265
|
id: z.string(),
|
|
8266
8266
|
description: z.string(),
|
|
8267
|
-
created: z.string().default("2025-09-
|
|
8268
|
-
updated: z.string().default("2025-09-
|
|
8267
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
8268
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
8269
8269
|
guardrailConfig: z.union([
|
|
8270
8270
|
z.lazy(() =>
|
|
8271
8271
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -8686,8 +8686,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
8686
8686
|
> = z.object({
|
|
8687
8687
|
_id: z.string(),
|
|
8688
8688
|
description: z.string(),
|
|
8689
|
-
created: z.string().default("2025-09-
|
|
8690
|
-
updated: z.string().default("2025-09-
|
|
8689
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
8690
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
8691
8691
|
guardrail_config: z.union([
|
|
8692
8692
|
z.lazy(() =>
|
|
8693
8693
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -8735,8 +8735,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
8735
8735
|
> = z.object({
|
|
8736
8736
|
id: z.string(),
|
|
8737
8737
|
description: z.string(),
|
|
8738
|
-
created: z.string().default("2025-09-
|
|
8739
|
-
updated: z.string().default("2025-09-
|
|
8738
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
8739
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
8740
8740
|
guardrailConfig: z.union([
|
|
8741
8741
|
z.lazy(() =>
|
|
8742
8742
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -9126,8 +9126,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
9126
9126
|
> = z.object({
|
|
9127
9127
|
_id: z.string(),
|
|
9128
9128
|
description: z.string(),
|
|
9129
|
-
created: z.string().default("2025-09-
|
|
9130
|
-
updated: z.string().default("2025-09-
|
|
9129
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
9130
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
9131
9131
|
guardrail_config: z.union([
|
|
9132
9132
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
9133
9133
|
z.lazy(() =>
|
|
@@ -9167,8 +9167,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
9167
9167
|
> = z.object({
|
|
9168
9168
|
id: z.string(),
|
|
9169
9169
|
description: z.string(),
|
|
9170
|
-
created: z.string().default("2025-09-
|
|
9171
|
-
updated: z.string().default("2025-09-
|
|
9170
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
9171
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
9172
9172
|
guardrailConfig: z.union([
|
|
9173
9173
|
z.lazy(() =>
|
|
9174
9174
|
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -9526,8 +9526,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
9526
9526
|
> = z.object({
|
|
9527
9527
|
_id: z.string(),
|
|
9528
9528
|
description: z.string(),
|
|
9529
|
-
created: z.string().default("2025-09-
|
|
9530
|
-
updated: z.string().default("2025-09-
|
|
9529
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
9530
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
9531
9531
|
guardrail_config: z.union([
|
|
9532
9532
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
9533
9533
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -9567,8 +9567,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
9567
9567
|
> = z.object({
|
|
9568
9568
|
id: z.string(),
|
|
9569
9569
|
description: z.string(),
|
|
9570
|
-
created: z.string().default("2025-09-
|
|
9571
|
-
updated: z.string().default("2025-09-
|
|
9570
|
+
created: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
9571
|
+
updated: z.string().default("2025-09-25T06:48:41.758Z"),
|
|
9572
9572
|
guardrailConfig: z.union([
|
|
9573
9573
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
9574
9574
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -28,6 +28,10 @@ export type UpdateKnowledgeRetrievalType = ClosedEnum<
|
|
|
28
28
|
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
29
29
|
*/
|
|
30
30
|
export type UpdateKnowledgeRerankConfig = {
|
|
31
|
+
/**
|
|
32
|
+
* The number of results to return by the reranking model
|
|
33
|
+
*/
|
|
34
|
+
topK?: number | undefined;
|
|
31
35
|
/**
|
|
32
36
|
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
33
37
|
*/
|
|
@@ -120,6 +124,10 @@ export type UpdateKnowledgeKnowledgeRetrievalType = ClosedEnum<
|
|
|
120
124
|
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
121
125
|
*/
|
|
122
126
|
export type UpdateKnowledgeKnowledgeRerankConfig = {
|
|
127
|
+
/**
|
|
128
|
+
* The number of results to return by the reranking model
|
|
129
|
+
*/
|
|
130
|
+
topK?: number | undefined;
|
|
123
131
|
/**
|
|
124
132
|
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
125
133
|
*/
|
|
@@ -240,10 +248,12 @@ export const UpdateKnowledgeRerankConfig$inboundSchema: z.ZodType<
|
|
|
240
248
|
z.ZodTypeDef,
|
|
241
249
|
unknown
|
|
242
250
|
> = z.object({
|
|
251
|
+
top_k: z.number().int().default(5),
|
|
243
252
|
rerank_threshold: z.number().default(0.5),
|
|
244
253
|
rerank_model: z.string(),
|
|
245
254
|
}).transform((v) => {
|
|
246
255
|
return remap$(v, {
|
|
256
|
+
"top_k": "topK",
|
|
247
257
|
"rerank_threshold": "rerankThreshold",
|
|
248
258
|
"rerank_model": "rerankModel",
|
|
249
259
|
});
|
|
@@ -251,6 +261,7 @@ export const UpdateKnowledgeRerankConfig$inboundSchema: z.ZodType<
|
|
|
251
261
|
|
|
252
262
|
/** @internal */
|
|
253
263
|
export type UpdateKnowledgeRerankConfig$Outbound = {
|
|
264
|
+
top_k: number;
|
|
254
265
|
rerank_threshold: number;
|
|
255
266
|
rerank_model: string;
|
|
256
267
|
};
|
|
@@ -261,10 +272,12 @@ export const UpdateKnowledgeRerankConfig$outboundSchema: z.ZodType<
|
|
|
261
272
|
z.ZodTypeDef,
|
|
262
273
|
UpdateKnowledgeRerankConfig
|
|
263
274
|
> = z.object({
|
|
275
|
+
topK: z.number().int().default(5),
|
|
264
276
|
rerankThreshold: z.number().default(0.5),
|
|
265
277
|
rerankModel: z.string(),
|
|
266
278
|
}).transform((v) => {
|
|
267
279
|
return remap$(v, {
|
|
280
|
+
topK: "top_k",
|
|
268
281
|
rerankThreshold: "rerank_threshold",
|
|
269
282
|
rerankModel: "rerank_model",
|
|
270
283
|
});
|
|
@@ -630,10 +643,12 @@ export const UpdateKnowledgeKnowledgeRerankConfig$inboundSchema: z.ZodType<
|
|
|
630
643
|
z.ZodTypeDef,
|
|
631
644
|
unknown
|
|
632
645
|
> = z.object({
|
|
646
|
+
top_k: z.number().int().default(5),
|
|
633
647
|
rerank_threshold: z.number().default(0.5),
|
|
634
648
|
rerank_model: z.string(),
|
|
635
649
|
}).transform((v) => {
|
|
636
650
|
return remap$(v, {
|
|
651
|
+
"top_k": "topK",
|
|
637
652
|
"rerank_threshold": "rerankThreshold",
|
|
638
653
|
"rerank_model": "rerankModel",
|
|
639
654
|
});
|
|
@@ -641,6 +656,7 @@ export const UpdateKnowledgeKnowledgeRerankConfig$inboundSchema: z.ZodType<
|
|
|
641
656
|
|
|
642
657
|
/** @internal */
|
|
643
658
|
export type UpdateKnowledgeKnowledgeRerankConfig$Outbound = {
|
|
659
|
+
top_k: number;
|
|
644
660
|
rerank_threshold: number;
|
|
645
661
|
rerank_model: string;
|
|
646
662
|
};
|
|
@@ -651,10 +667,12 @@ export const UpdateKnowledgeKnowledgeRerankConfig$outboundSchema: z.ZodType<
|
|
|
651
667
|
z.ZodTypeDef,
|
|
652
668
|
UpdateKnowledgeKnowledgeRerankConfig
|
|
653
669
|
> = z.object({
|
|
670
|
+
topK: z.number().int().default(5),
|
|
654
671
|
rerankThreshold: z.number().default(0.5),
|
|
655
672
|
rerankModel: z.string(),
|
|
656
673
|
}).transform((v) => {
|
|
657
674
|
return remap$(v, {
|
|
675
|
+
topK: "top_k",
|
|
658
676
|
rerankThreshold: "rerank_threshold",
|
|
659
677
|
rerankModel: "rerank_model",
|
|
660
678
|
});
|