@orq-ai/node 3.9.6 → 3.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -86
- package/bin/mcp-server.js +1316 -753
- package/bin/mcp-server.js.map +32 -29
- package/docs/sdks/chunking/README.md +94 -0
- package/examples/package-lock.json +1 -1
- package/funcs/chunkingParse.d.ts +17 -0
- package/funcs/chunkingParse.d.ts.map +1 -0
- package/funcs/chunkingParse.js +114 -0
- package/funcs/chunkingParse.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/chunkingParse.d.ts +8 -0
- package/mcp-server/tools/chunkingParse.d.ts.map +1 -0
- package/mcp-server/tools/chunkingParse.js +64 -0
- package/mcp-server/tools/chunkingParse.js.map +1 -0
- 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/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/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/parse.d.ts +961 -0
- package/models/operations/parse.d.ts.map +1 -0
- package/models/operations/parse.js +879 -0
- package/models/operations/parse.js.map +1 -0
- 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/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/sdk/chunking.d.ts +12 -0
- package/sdk/chunking.d.ts.map +1 -0
- package/sdk/chunking.js +22 -0
- package/sdk/chunking.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/chunkingParse.ts +160 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/chunkingParse.ts +37 -0
- 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/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- 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/parse.ts +1610 -0
- 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/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
- package/src/sdk/chunking.ts +27 -0
- package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34206,9 +34206,9 @@ var init_config = __esm(() => {
|
|
|
34206
34206
|
SDK_METADATA = {
|
|
34207
34207
|
language: "typescript",
|
|
34208
34208
|
openapiDocVersion: "2.0",
|
|
34209
|
-
sdkVersion: "3.9.
|
|
34209
|
+
sdkVersion: "3.9.7",
|
|
34210
34210
|
genVersion: "2.654.2",
|
|
34211
|
-
userAgent: "speakeasy-sdk/typescript 3.9.
|
|
34211
|
+
userAgent: "speakeasy-sdk/typescript 3.9.7 2.654.2 2.0 @orq-ai/node"
|
|
34212
34212
|
};
|
|
34213
34213
|
});
|
|
34214
34214
|
|
|
@@ -35881,7 +35881,7 @@ var init_createcontact = __esm(() => {
|
|
|
35881
35881
|
tags: arrayType(stringType()).optional(),
|
|
35882
35882
|
metadata: recordType(anyType()).optional(),
|
|
35883
35883
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
35884
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
35884
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
35885
35885
|
}).transform((v2) => {
|
|
35886
35886
|
return remap(v2, {
|
|
35887
35887
|
_id: "id",
|
|
@@ -35901,7 +35901,7 @@ var init_createcontact = __esm(() => {
|
|
|
35901
35901
|
tags: arrayType(stringType()).optional(),
|
|
35902
35902
|
metadata: recordType(anyType()).optional(),
|
|
35903
35903
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
35904
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
35904
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
35905
35905
|
}).transform((v2) => {
|
|
35906
35906
|
return remap(v2, {
|
|
35907
35907
|
id: "_id",
|
|
@@ -35973,7 +35973,7 @@ var init_createdataset = __esm(() => {
|
|
|
35973
35973
|
updated_by_id: stringType().optional(),
|
|
35974
35974
|
metadata: lazyType(() => CreateDatasetMetadata$inboundSchema),
|
|
35975
35975
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
35976
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
35976
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
35977
35977
|
}).transform((v2) => {
|
|
35978
35978
|
return remap(v2, {
|
|
35979
35979
|
_id: "id",
|
|
@@ -35993,7 +35993,7 @@ var init_createdataset = __esm(() => {
|
|
|
35993
35993
|
updatedById: stringType().optional(),
|
|
35994
35994
|
metadata: lazyType(() => CreateDatasetMetadata$outboundSchema),
|
|
35995
35995
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
35996
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
35996
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
35997
35997
|
}).transform((v2) => {
|
|
35998
35998
|
return remap(v2, {
|
|
35999
35999
|
id: "_id",
|
|
@@ -37125,7 +37125,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
37125
37125
|
created_by_id: stringType().optional(),
|
|
37126
37126
|
updated_by_id: stringType().optional(),
|
|
37127
37127
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
37128
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
37128
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
37129
37129
|
}).transform((v2) => {
|
|
37130
37130
|
return remap(v2, {
|
|
37131
37131
|
_id: "id",
|
|
@@ -37152,7 +37152,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
37152
37152
|
createdById: stringType().optional(),
|
|
37153
37153
|
updatedById: stringType().optional(),
|
|
37154
37154
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
37155
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
37155
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
37156
37156
|
}).transform((v2) => {
|
|
37157
37157
|
return remap(v2, {
|
|
37158
37158
|
id: "_id",
|
|
@@ -37374,7 +37374,7 @@ var init_createdatasource = __esm(() => {
|
|
|
37374
37374
|
CreateDatasourceStatus$.outboundSchema = CreateDatasourceStatus$outboundSchema;
|
|
37375
37375
|
})(CreateDatasourceStatus$ ||= {});
|
|
37376
37376
|
CreateDatasourceResponseBody$inboundSchema = objectType({
|
|
37377
|
-
_id: stringType().default("
|
|
37377
|
+
_id: stringType().default("01JZRA0D8GATJ97BT9QW9Y43G3"),
|
|
37378
37378
|
display_name: stringType(),
|
|
37379
37379
|
description: stringType().optional(),
|
|
37380
37380
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -37397,7 +37397,7 @@ var init_createdatasource = __esm(() => {
|
|
|
37397
37397
|
});
|
|
37398
37398
|
});
|
|
37399
37399
|
CreateDatasourceResponseBody$outboundSchema = objectType({
|
|
37400
|
-
id: stringType().default("
|
|
37400
|
+
id: stringType().default("01JZRA0D8GATJ97BT9QW9Y43G3"),
|
|
37401
37401
|
displayName: stringType(),
|
|
37402
37402
|
description: stringType().optional(),
|
|
37403
37403
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -38073,8 +38073,8 @@ var init_createeval = __esm(() => {
|
|
|
38073
38073
|
ResponseBodyPython$inboundSchema = objectType({
|
|
38074
38074
|
_id: stringType(),
|
|
38075
38075
|
description: stringType(),
|
|
38076
|
-
created: stringType().default("2025-07-09T19:
|
|
38077
|
-
updated: stringType().default("2025-07-09T19:
|
|
38076
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38077
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38078
38078
|
guardrail_config: unionType([
|
|
38079
38079
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
38080
38080
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema)
|
|
@@ -38091,8 +38091,8 @@ var init_createeval = __esm(() => {
|
|
|
38091
38091
|
ResponseBodyPython$outboundSchema = objectType({
|
|
38092
38092
|
id: stringType(),
|
|
38093
38093
|
description: stringType(),
|
|
38094
|
-
created: stringType().default("2025-07-09T19:
|
|
38095
|
-
updated: stringType().default("2025-07-09T19:
|
|
38094
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38095
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38096
38096
|
guardrailConfig: unionType([
|
|
38097
38097
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
38098
38098
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema)
|
|
@@ -38185,8 +38185,8 @@ var init_createeval = __esm(() => {
|
|
|
38185
38185
|
ResponseBodyHTTP$inboundSchema = objectType({
|
|
38186
38186
|
_id: stringType(),
|
|
38187
38187
|
description: stringType(),
|
|
38188
|
-
created: stringType().default("2025-07-09T19:
|
|
38189
|
-
updated: stringType().default("2025-07-09T19:
|
|
38188
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38189
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38190
38190
|
guardrail_config: unionType([
|
|
38191
38191
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
38192
38192
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema)
|
|
@@ -38206,8 +38206,8 @@ var init_createeval = __esm(() => {
|
|
|
38206
38206
|
ResponseBodyHTTP$outboundSchema = objectType({
|
|
38207
38207
|
id: stringType(),
|
|
38208
38208
|
description: stringType(),
|
|
38209
|
-
created: stringType().default("2025-07-09T19:
|
|
38210
|
-
updated: stringType().default("2025-07-09T19:
|
|
38209
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38210
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38211
38211
|
guardrailConfig: unionType([
|
|
38212
38212
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
38213
38213
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema)
|
|
@@ -38297,8 +38297,8 @@ var init_createeval = __esm(() => {
|
|
|
38297
38297
|
ResponseBodyJSON$inboundSchema = objectType({
|
|
38298
38298
|
_id: stringType(),
|
|
38299
38299
|
description: stringType(),
|
|
38300
|
-
created: stringType().default("2025-07-09T19:
|
|
38301
|
-
updated: stringType().default("2025-07-09T19:
|
|
38300
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38301
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38302
38302
|
guardrail_config: unionType([
|
|
38303
38303
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
38304
38304
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema)
|
|
@@ -38315,8 +38315,8 @@ var init_createeval = __esm(() => {
|
|
|
38315
38315
|
ResponseBodyJSON$outboundSchema = objectType({
|
|
38316
38316
|
id: stringType(),
|
|
38317
38317
|
description: stringType(),
|
|
38318
|
-
created: stringType().default("2025-07-09T19:
|
|
38319
|
-
updated: stringType().default("2025-07-09T19:
|
|
38318
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38319
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38320
38320
|
guardrailConfig: unionType([
|
|
38321
38321
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
38322
38322
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema)
|
|
@@ -38403,8 +38403,8 @@ var init_createeval = __esm(() => {
|
|
|
38403
38403
|
ResponseBodyLLM$inboundSchema = objectType({
|
|
38404
38404
|
_id: stringType(),
|
|
38405
38405
|
description: stringType(),
|
|
38406
|
-
created: stringType().default("2025-07-09T19:
|
|
38407
|
-
updated: stringType().default("2025-07-09T19:
|
|
38406
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38407
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38408
38408
|
guardrail_config: unionType([
|
|
38409
38409
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
38410
38410
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema)
|
|
@@ -38422,8 +38422,8 @@ var init_createeval = __esm(() => {
|
|
|
38422
38422
|
ResponseBodyLLM$outboundSchema = objectType({
|
|
38423
38423
|
id: stringType(),
|
|
38424
38424
|
description: stringType(),
|
|
38425
|
-
created: stringType().default("2025-07-09T19:
|
|
38426
|
-
updated: stringType().default("2025-07-09T19:
|
|
38425
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38426
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
38427
38427
|
guardrailConfig: unionType([
|
|
38428
38428
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
38429
38429
|
lazyType(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema)
|
|
@@ -48221,7 +48221,7 @@ var init_fileget = __esm(() => {
|
|
|
48221
48221
|
bytes: numberType(),
|
|
48222
48222
|
file_name: stringType(),
|
|
48223
48223
|
workspace_id: stringType(),
|
|
48224
|
-
created: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
48224
|
+
created: stringType().datetime({ offset: true }).default("2025-07-09T19:18:35.432Z").transform((v2) => new Date(v2))
|
|
48225
48225
|
}).transform((v2) => {
|
|
48226
48226
|
return remap(v2, {
|
|
48227
48227
|
_id: "id",
|
|
@@ -48237,7 +48237,7 @@ var init_fileget = __esm(() => {
|
|
|
48237
48237
|
bytes: numberType(),
|
|
48238
48238
|
fileName: stringType(),
|
|
48239
48239
|
workspaceId: stringType(),
|
|
48240
|
-
created: dateType().default(() => new Date("2025-07-09T19:
|
|
48240
|
+
created: dateType().default(() => new Date("2025-07-09T19:18:35.432Z")).transform((v2) => v2.toISOString())
|
|
48241
48241
|
}).transform((v2) => {
|
|
48242
48242
|
return remap(v2, {
|
|
48243
48243
|
id: "_id",
|
|
@@ -48308,7 +48308,7 @@ var init_filelist = __esm(() => {
|
|
|
48308
48308
|
bytes: numberType(),
|
|
48309
48309
|
file_name: stringType(),
|
|
48310
48310
|
workspace_id: stringType(),
|
|
48311
|
-
created: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
48311
|
+
created: stringType().datetime({ offset: true }).default("2025-07-09T19:18:35.432Z").transform((v2) => new Date(v2))
|
|
48312
48312
|
}).transform((v2) => {
|
|
48313
48313
|
return remap(v2, {
|
|
48314
48314
|
_id: "id",
|
|
@@ -48324,7 +48324,7 @@ var init_filelist = __esm(() => {
|
|
|
48324
48324
|
bytes: numberType(),
|
|
48325
48325
|
fileName: stringType(),
|
|
48326
48326
|
workspaceId: stringType(),
|
|
48327
|
-
created: dateType().default(() => new Date("2025-07-09T19:
|
|
48327
|
+
created: dateType().default(() => new Date("2025-07-09T19:18:35.432Z")).transform((v2) => v2.toISOString())
|
|
48328
48328
|
}).transform((v2) => {
|
|
48329
48329
|
return remap(v2, {
|
|
48330
48330
|
id: "_id",
|
|
@@ -48456,7 +48456,7 @@ var init_fileupload = __esm(() => {
|
|
|
48456
48456
|
bytes: numberType(),
|
|
48457
48457
|
file_name: stringType(),
|
|
48458
48458
|
workspace_id: stringType(),
|
|
48459
|
-
created: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
48459
|
+
created: stringType().datetime({ offset: true }).default("2025-07-09T19:18:35.432Z").transform((v2) => new Date(v2))
|
|
48460
48460
|
}).transform((v2) => {
|
|
48461
48461
|
return remap(v2, {
|
|
48462
48462
|
_id: "id",
|
|
@@ -48472,7 +48472,7 @@ var init_fileupload = __esm(() => {
|
|
|
48472
48472
|
bytes: numberType(),
|
|
48473
48473
|
fileName: stringType(),
|
|
48474
48474
|
workspaceId: stringType(),
|
|
48475
|
-
created: dateType().default(() => new Date("2025-07-09T19:
|
|
48475
|
+
created: dateType().default(() => new Date("2025-07-09T19:18:35.432Z")).transform((v2) => v2.toISOString())
|
|
48476
48476
|
}).transform((v2) => {
|
|
48477
48477
|
return remap(v2, {
|
|
48478
48478
|
id: "_id",
|
|
@@ -49477,8 +49477,8 @@ var init_getevals = __esm(() => {
|
|
|
49477
49477
|
Typescript$inboundSchema = objectType({
|
|
49478
49478
|
_id: stringType(),
|
|
49479
49479
|
description: stringType(),
|
|
49480
|
-
created: stringType().default("2025-07-09T19:
|
|
49481
|
-
updated: stringType().default("2025-07-09T19:
|
|
49480
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
49481
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
49482
49482
|
guardrail_config: unionType([
|
|
49483
49483
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
49484
49484
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema)
|
|
@@ -49495,8 +49495,8 @@ var init_getevals = __esm(() => {
|
|
|
49495
49495
|
Typescript$outboundSchema = objectType({
|
|
49496
49496
|
id: stringType(),
|
|
49497
49497
|
description: stringType(),
|
|
49498
|
-
created: stringType().default("2025-07-09T19:
|
|
49499
|
-
updated: stringType().default("2025-07-09T19:
|
|
49498
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
49499
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
49500
49500
|
guardrailConfig: unionType([
|
|
49501
49501
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
49502
49502
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema)
|
|
@@ -49589,8 +49589,8 @@ var init_getevals = __esm(() => {
|
|
|
49589
49589
|
Ragas$inboundSchema = objectType({
|
|
49590
49590
|
_id: stringType(),
|
|
49591
49591
|
description: stringType(),
|
|
49592
|
-
created: stringType().default("2025-07-09T19:
|
|
49593
|
-
updated: stringType().default("2025-07-09T19:
|
|
49592
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
49593
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
49594
49594
|
guardrail_config: unionType([
|
|
49595
49595
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
49596
49596
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema)
|
|
@@ -49609,8 +49609,8 @@ var init_getevals = __esm(() => {
|
|
|
49609
49609
|
Ragas$outboundSchema = objectType({
|
|
49610
49610
|
id: stringType(),
|
|
49611
49611
|
description: stringType(),
|
|
49612
|
-
created: stringType().default("2025-07-09T19:
|
|
49613
|
-
updated: stringType().default("2025-07-09T19:
|
|
49612
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
49613
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
49614
49614
|
guardrailConfig: unionType([
|
|
49615
49615
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
49616
49616
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200Boolean$outboundSchema)
|
|
@@ -50161,8 +50161,8 @@ var init_getevals = __esm(() => {
|
|
|
50161
50161
|
DataFunction$inboundSchema = objectType({
|
|
50162
50162
|
_id: stringType(),
|
|
50163
50163
|
description: stringType(),
|
|
50164
|
-
created: stringType().default("2025-07-09T19:
|
|
50165
|
-
updated: stringType().default("2025-07-09T19:
|
|
50164
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50165
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50166
50166
|
guardrail_config: unionType([
|
|
50167
50167
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
50168
50168
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema)
|
|
@@ -50205,8 +50205,8 @@ var init_getevals = __esm(() => {
|
|
|
50205
50205
|
DataFunction$outboundSchema = objectType({
|
|
50206
50206
|
id: stringType(),
|
|
50207
50207
|
description: stringType(),
|
|
50208
|
-
created: stringType().default("2025-07-09T19:
|
|
50209
|
-
updated: stringType().default("2025-07-09T19:
|
|
50208
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50209
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50210
50210
|
guardrailConfig: unionType([
|
|
50211
50211
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
50212
50212
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponseBoolean$outboundSchema)
|
|
@@ -50319,8 +50319,8 @@ var init_getevals = __esm(() => {
|
|
|
50319
50319
|
DataPython$inboundSchema = objectType({
|
|
50320
50320
|
_id: stringType(),
|
|
50321
50321
|
description: stringType(),
|
|
50322
|
-
created: stringType().default("2025-07-09T19:
|
|
50323
|
-
updated: stringType().default("2025-07-09T19:
|
|
50322
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50323
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50324
50324
|
guardrail_config: unionType([
|
|
50325
50325
|
lazyType(() => GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
|
|
50326
50326
|
lazyType(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema)
|
|
@@ -50337,8 +50337,8 @@ var init_getevals = __esm(() => {
|
|
|
50337
50337
|
DataPython$outboundSchema = objectType({
|
|
50338
50338
|
id: stringType(),
|
|
50339
50339
|
description: stringType(),
|
|
50340
|
-
created: stringType().default("2025-07-09T19:
|
|
50341
|
-
updated: stringType().default("2025-07-09T19:
|
|
50340
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50341
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50342
50342
|
guardrailConfig: unionType([
|
|
50343
50343
|
lazyType(() => GetEvalsGuardrailConfigEvalsNumber$outboundSchema),
|
|
50344
50344
|
lazyType(() => GetEvalsGuardrailConfigEvalsBoolean$outboundSchema)
|
|
@@ -50431,8 +50431,8 @@ var init_getevals = __esm(() => {
|
|
|
50431
50431
|
DataHTTP$inboundSchema = objectType({
|
|
50432
50432
|
_id: stringType(),
|
|
50433
50433
|
description: stringType(),
|
|
50434
|
-
created: stringType().default("2025-07-09T19:
|
|
50435
|
-
updated: stringType().default("2025-07-09T19:
|
|
50434
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50435
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50436
50436
|
guardrail_config: unionType([
|
|
50437
50437
|
lazyType(() => GetEvalsGuardrailConfigNumber$inboundSchema),
|
|
50438
50438
|
lazyType(() => GetEvalsGuardrailConfigBoolean$inboundSchema)
|
|
@@ -50452,8 +50452,8 @@ var init_getevals = __esm(() => {
|
|
|
50452
50452
|
DataHTTP$outboundSchema = objectType({
|
|
50453
50453
|
id: stringType(),
|
|
50454
50454
|
description: stringType(),
|
|
50455
|
-
created: stringType().default("2025-07-09T19:
|
|
50456
|
-
updated: stringType().default("2025-07-09T19:
|
|
50455
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50456
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50457
50457
|
guardrailConfig: unionType([
|
|
50458
50458
|
lazyType(() => GetEvalsGuardrailConfigNumber$outboundSchema),
|
|
50459
50459
|
lazyType(() => GetEvalsGuardrailConfigBoolean$outboundSchema)
|
|
@@ -50543,8 +50543,8 @@ var init_getevals = __esm(() => {
|
|
|
50543
50543
|
DataJSON$inboundSchema = objectType({
|
|
50544
50544
|
_id: stringType(),
|
|
50545
50545
|
description: stringType(),
|
|
50546
|
-
created: stringType().default("2025-07-09T19:
|
|
50547
|
-
updated: stringType().default("2025-07-09T19:
|
|
50546
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50547
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50548
50548
|
guardrail_config: unionType([
|
|
50549
50549
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema),
|
|
50550
50550
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema)
|
|
@@ -50561,8 +50561,8 @@ var init_getevals = __esm(() => {
|
|
|
50561
50561
|
DataJSON$outboundSchema = objectType({
|
|
50562
50562
|
id: stringType(),
|
|
50563
50563
|
description: stringType(),
|
|
50564
|
-
created: stringType().default("2025-07-09T19:
|
|
50565
|
-
updated: stringType().default("2025-07-09T19:
|
|
50564
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50565
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50566
50566
|
guardrailConfig: unionType([
|
|
50567
50567
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$outboundSchema),
|
|
50568
50568
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$outboundSchema)
|
|
@@ -50649,8 +50649,8 @@ var init_getevals = __esm(() => {
|
|
|
50649
50649
|
DataLLM$inboundSchema = objectType({
|
|
50650
50650
|
_id: stringType(),
|
|
50651
50651
|
description: stringType(),
|
|
50652
|
-
created: stringType().default("2025-07-09T19:
|
|
50653
|
-
updated: stringType().default("2025-07-09T19:
|
|
50652
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50653
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50654
50654
|
guardrail_config: unionType([
|
|
50655
50655
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
50656
50656
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema)
|
|
@@ -50668,8 +50668,8 @@ var init_getevals = __esm(() => {
|
|
|
50668
50668
|
DataLLM$outboundSchema = objectType({
|
|
50669
50669
|
id: stringType(),
|
|
50670
50670
|
description: stringType(),
|
|
50671
|
-
created: stringType().default("2025-07-09T19:
|
|
50672
|
-
updated: stringType().default("2025-07-09T19:
|
|
50671
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50672
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
50673
50673
|
guardrailConfig: unionType([
|
|
50674
50674
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
50675
50675
|
lazyType(() => GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema)
|
|
@@ -53066,7 +53066,7 @@ var init_listcontacts = __esm(() => {
|
|
|
53066
53066
|
tags: arrayType(stringType()).optional(),
|
|
53067
53067
|
metadata: recordType(anyType()).optional(),
|
|
53068
53068
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
53069
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
53069
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2)),
|
|
53070
53070
|
metrics: lazyType(() => Metrics$inboundSchema)
|
|
53071
53071
|
}).transform((v2) => {
|
|
53072
53072
|
return remap(v2, {
|
|
@@ -53085,7 +53085,7 @@ var init_listcontacts = __esm(() => {
|
|
|
53085
53085
|
tags: arrayType(stringType()).optional(),
|
|
53086
53086
|
metadata: recordType(anyType()).optional(),
|
|
53087
53087
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
53088
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
53088
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString()),
|
|
53089
53089
|
metrics: lazyType(() => Metrics$outboundSchema)
|
|
53090
53090
|
}).transform((v2) => {
|
|
53091
53091
|
return remap(v2, {
|
|
@@ -53700,7 +53700,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
53700
53700
|
created_by_id: stringType().optional(),
|
|
53701
53701
|
updated_by_id: stringType().optional(),
|
|
53702
53702
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
53703
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
53703
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
53704
53704
|
}).transform((v2) => {
|
|
53705
53705
|
return remap(v2, {
|
|
53706
53706
|
_id: "id",
|
|
@@ -53727,7 +53727,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
53727
53727
|
createdById: stringType().optional(),
|
|
53728
53728
|
updatedById: stringType().optional(),
|
|
53729
53729
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
53730
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
53730
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
53731
53731
|
}).transform((v2) => {
|
|
53732
53732
|
return remap(v2, {
|
|
53733
53733
|
id: "_id",
|
|
@@ -53835,7 +53835,7 @@ var init_listdatasets = __esm(() => {
|
|
|
53835
53835
|
updated_by_id: stringType().optional(),
|
|
53836
53836
|
metadata: lazyType(() => ListDatasetsMetadata$inboundSchema),
|
|
53837
53837
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
53838
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
53838
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
53839
53839
|
}).transform((v2) => {
|
|
53840
53840
|
return remap(v2, {
|
|
53841
53841
|
_id: "id",
|
|
@@ -53855,7 +53855,7 @@ var init_listdatasets = __esm(() => {
|
|
|
53855
53855
|
updatedById: stringType().optional(),
|
|
53856
53856
|
metadata: lazyType(() => ListDatasetsMetadata$outboundSchema),
|
|
53857
53857
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
53858
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
53858
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
53859
53859
|
}).transform((v2) => {
|
|
53860
53860
|
return remap(v2, {
|
|
53861
53861
|
id: "_id",
|
|
@@ -53960,7 +53960,7 @@ var init_listdatasources = __esm(() => {
|
|
|
53960
53960
|
ListDatasourcesStatus$.outboundSchema = ListDatasourcesStatus$outboundSchema;
|
|
53961
53961
|
})(ListDatasourcesStatus$ ||= {});
|
|
53962
53962
|
ListDatasourcesData$inboundSchema = objectType({
|
|
53963
|
-
_id: stringType().default("
|
|
53963
|
+
_id: stringType().default("01JZRA0D8EBCZWP0N3VDXH68B5"),
|
|
53964
53964
|
display_name: stringType(),
|
|
53965
53965
|
description: stringType().optional(),
|
|
53966
53966
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -53983,7 +53983,7 @@ var init_listdatasources = __esm(() => {
|
|
|
53983
53983
|
});
|
|
53984
53984
|
});
|
|
53985
53985
|
ListDatasourcesData$outboundSchema = objectType({
|
|
53986
|
-
id: stringType().default("
|
|
53986
|
+
id: stringType().default("01JZRA0D8EBCZWP0N3VDXH68B5"),
|
|
53987
53987
|
displayName: stringType(),
|
|
53988
53988
|
description: stringType().optional(),
|
|
53989
53989
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -54960,6 +54960,467 @@ var init_listpromptversions = __esm(() => {
|
|
|
54960
54960
|
})(ListPromptVersionsResponseBody$ ||= {});
|
|
54961
54961
|
});
|
|
54962
54962
|
|
|
54963
|
+
// src/models/operations/parse.ts
|
|
54964
|
+
var ParseChunkingRequestChunkingRequestRequestBodyReturnType, AgenticChunker, ParseChunkingRequestChunkingRequestReturnType, SDPMChunker, ParseThreshold2, ChunkingRequestMode, ParseChunkingRequestChunkingReturnType, SemanticChunker, Threshold2, Mode, ParseChunkingRequestReturnType, RecursiveChunker, ChunkingRequestReturnType, SentenceChunker, ReturnTypeT, TokenChunker, ParseChunkingRequestChunkingRequestRequestBodyReturnType$inboundSchema, ParseChunkingRequestChunkingRequestRequestBodyReturnType$outboundSchema, ParseChunkingRequestChunkingRequestRequestBodyReturnType$, AgenticChunker$inboundSchema, AgenticChunker$outboundSchema, AgenticChunker$, AgenticChunkerStrategy$inboundSchema, AgenticChunkerStrategy$outboundSchema, AgenticChunkerStrategy$, ParseChunkingRequestChunkingRequestReturnType$inboundSchema, ParseChunkingRequestChunkingRequestReturnType$outboundSchema, ParseChunkingRequestChunkingRequestReturnType$, SDPMChunker$inboundSchema, SDPMChunker$outboundSchema, SDPMChunker$, ParseThreshold2$inboundSchema, ParseThreshold2$outboundSchema, ParseThreshold2$, ChunkingRequestThreshold$inboundSchema, ChunkingRequestThreshold$outboundSchema, ChunkingRequestThreshold$, ChunkingRequestMode$inboundSchema, ChunkingRequestMode$outboundSchema, ChunkingRequestMode$, SDPMChunkerStrategy$inboundSchema, SDPMChunkerStrategy$outboundSchema, SDPMChunkerStrategy$, ParseChunkingRequestChunkingReturnType$inboundSchema, ParseChunkingRequestChunkingReturnType$outboundSchema, ParseChunkingRequestChunkingReturnType$, SemanticChunker$inboundSchema, SemanticChunker$outboundSchema, SemanticChunker$, Threshold2$inboundSchema, Threshold2$outboundSchema, Threshold2$, Threshold$inboundSchema, Threshold$outboundSchema, Threshold$, Mode$inboundSchema, Mode$outboundSchema, Mode$, SemanticChunkerStrategy$inboundSchema, SemanticChunkerStrategy$outboundSchema, SemanticChunkerStrategy$, ParseChunkingRequestReturnType$inboundSchema, ParseChunkingRequestReturnType$outboundSchema, ParseChunkingRequestReturnType$, RecursiveChunker$inboundSchema, RecursiveChunker$outboundSchema, RecursiveChunker$, RecursiveChunkerStrategy$inboundSchema, RecursiveChunkerStrategy$outboundSchema, RecursiveChunkerStrategy$, ChunkingRequestReturnType$inboundSchema, ChunkingRequestReturnType$outboundSchema, ChunkingRequestReturnType$, SentenceChunker$inboundSchema, SentenceChunker$outboundSchema, SentenceChunker$, SentenceChunkerStrategy$inboundSchema, SentenceChunkerStrategy$outboundSchema, SentenceChunkerStrategy$, ReturnTypeT$inboundSchema, ReturnTypeT$outboundSchema, ReturnTypeT$, TokenChunker$inboundSchema, TokenChunker$outboundSchema, TokenChunker$, TokenChunkerStrategy$inboundSchema, TokenChunkerStrategy$outboundSchema, TokenChunkerStrategy$, ParseChunkingRequest$inboundSchema, ParseChunkingRequest$outboundSchema, ParseChunkingRequest$, ParseMetadata$inboundSchema, ParseMetadata$outboundSchema, ParseMetadata$, Chunks$inboundSchema, Chunks$outboundSchema, Chunks$, ParseResponseBody$inboundSchema, ParseResponseBody$outboundSchema, ParseResponseBody$;
|
|
54965
|
+
var init_parse = __esm(() => {
|
|
54966
|
+
init_esm();
|
|
54967
|
+
init_primitives();
|
|
54968
|
+
ParseChunkingRequestChunkingRequestRequestBodyReturnType = {
|
|
54969
|
+
Chunks: "chunks",
|
|
54970
|
+
Texts: "texts"
|
|
54971
|
+
};
|
|
54972
|
+
AgenticChunker = {
|
|
54973
|
+
Agentic: "agentic"
|
|
54974
|
+
};
|
|
54975
|
+
ParseChunkingRequestChunkingRequestReturnType = {
|
|
54976
|
+
Chunks: "chunks",
|
|
54977
|
+
Texts: "texts"
|
|
54978
|
+
};
|
|
54979
|
+
SDPMChunker = {
|
|
54980
|
+
Sdpm: "sdpm"
|
|
54981
|
+
};
|
|
54982
|
+
ParseThreshold2 = {
|
|
54983
|
+
Auto: "auto"
|
|
54984
|
+
};
|
|
54985
|
+
ChunkingRequestMode = {
|
|
54986
|
+
Window: "window",
|
|
54987
|
+
Sentence: "sentence"
|
|
54988
|
+
};
|
|
54989
|
+
ParseChunkingRequestChunkingReturnType = {
|
|
54990
|
+
Chunks: "chunks",
|
|
54991
|
+
Texts: "texts"
|
|
54992
|
+
};
|
|
54993
|
+
SemanticChunker = {
|
|
54994
|
+
Semantic: "semantic"
|
|
54995
|
+
};
|
|
54996
|
+
Threshold2 = {
|
|
54997
|
+
Auto: "auto"
|
|
54998
|
+
};
|
|
54999
|
+
Mode = {
|
|
55000
|
+
Window: "window",
|
|
55001
|
+
Sentence: "sentence"
|
|
55002
|
+
};
|
|
55003
|
+
ParseChunkingRequestReturnType = {
|
|
55004
|
+
Chunks: "chunks",
|
|
55005
|
+
Texts: "texts"
|
|
55006
|
+
};
|
|
55007
|
+
RecursiveChunker = {
|
|
55008
|
+
Recursive: "recursive"
|
|
55009
|
+
};
|
|
55010
|
+
ChunkingRequestReturnType = {
|
|
55011
|
+
Chunks: "chunks",
|
|
55012
|
+
Texts: "texts"
|
|
55013
|
+
};
|
|
55014
|
+
SentenceChunker = {
|
|
55015
|
+
Sentence: "sentence"
|
|
55016
|
+
};
|
|
55017
|
+
ReturnTypeT = {
|
|
55018
|
+
Chunks: "chunks",
|
|
55019
|
+
Texts: "texts"
|
|
55020
|
+
};
|
|
55021
|
+
TokenChunker = {
|
|
55022
|
+
Token: "token"
|
|
55023
|
+
};
|
|
55024
|
+
ParseChunkingRequestChunkingRequestRequestBodyReturnType$inboundSchema = nativeEnumType(ParseChunkingRequestChunkingRequestRequestBodyReturnType);
|
|
55025
|
+
ParseChunkingRequestChunkingRequestRequestBodyReturnType$outboundSchema = ParseChunkingRequestChunkingRequestRequestBodyReturnType$inboundSchema;
|
|
55026
|
+
((ParseChunkingRequestChunkingRequestRequestBodyReturnType$) => {
|
|
55027
|
+
ParseChunkingRequestChunkingRequestRequestBodyReturnType$.inboundSchema = ParseChunkingRequestChunkingRequestRequestBodyReturnType$inboundSchema;
|
|
55028
|
+
ParseChunkingRequestChunkingRequestRequestBodyReturnType$.outboundSchema = ParseChunkingRequestChunkingRequestRequestBodyReturnType$outboundSchema;
|
|
55029
|
+
})(ParseChunkingRequestChunkingRequestRequestBodyReturnType$ ||= {});
|
|
55030
|
+
AgenticChunker$inboundSchema = nativeEnumType(AgenticChunker);
|
|
55031
|
+
AgenticChunker$outboundSchema = AgenticChunker$inboundSchema;
|
|
55032
|
+
((AgenticChunker$) => {
|
|
55033
|
+
AgenticChunker$.inboundSchema = AgenticChunker$inboundSchema;
|
|
55034
|
+
AgenticChunker$.outboundSchema = AgenticChunker$outboundSchema;
|
|
55035
|
+
})(AgenticChunker$ ||= {});
|
|
55036
|
+
AgenticChunkerStrategy$inboundSchema = objectType({
|
|
55037
|
+
text: stringType(),
|
|
55038
|
+
metadata: booleanType().default(true),
|
|
55039
|
+
return_type: ParseChunkingRequestChunkingRequestRequestBodyReturnType$inboundSchema.default("chunks"),
|
|
55040
|
+
strategy: AgenticChunker$inboundSchema,
|
|
55041
|
+
model: stringType(),
|
|
55042
|
+
chunk_size: numberType().int().default(1024),
|
|
55043
|
+
candidate_size: numberType().int().default(128),
|
|
55044
|
+
min_characters_per_chunk: numberType().int().default(24)
|
|
55045
|
+
}).transform((v2) => {
|
|
55046
|
+
return remap(v2, {
|
|
55047
|
+
return_type: "returnType",
|
|
55048
|
+
chunk_size: "chunkSize",
|
|
55049
|
+
candidate_size: "candidateSize",
|
|
55050
|
+
min_characters_per_chunk: "minCharactersPerChunk"
|
|
55051
|
+
});
|
|
55052
|
+
});
|
|
55053
|
+
AgenticChunkerStrategy$outboundSchema = objectType({
|
|
55054
|
+
text: stringType(),
|
|
55055
|
+
metadata: booleanType().default(true),
|
|
55056
|
+
returnType: ParseChunkingRequestChunkingRequestRequestBodyReturnType$outboundSchema.default("chunks"),
|
|
55057
|
+
strategy: AgenticChunker$outboundSchema,
|
|
55058
|
+
model: stringType(),
|
|
55059
|
+
chunkSize: numberType().int().default(1024),
|
|
55060
|
+
candidateSize: numberType().int().default(128),
|
|
55061
|
+
minCharactersPerChunk: numberType().int().default(24)
|
|
55062
|
+
}).transform((v2) => {
|
|
55063
|
+
return remap(v2, {
|
|
55064
|
+
returnType: "return_type",
|
|
55065
|
+
chunkSize: "chunk_size",
|
|
55066
|
+
candidateSize: "candidate_size",
|
|
55067
|
+
minCharactersPerChunk: "min_characters_per_chunk"
|
|
55068
|
+
});
|
|
55069
|
+
});
|
|
55070
|
+
((AgenticChunkerStrategy$) => {
|
|
55071
|
+
AgenticChunkerStrategy$.inboundSchema = AgenticChunkerStrategy$inboundSchema;
|
|
55072
|
+
AgenticChunkerStrategy$.outboundSchema = AgenticChunkerStrategy$outboundSchema;
|
|
55073
|
+
})(AgenticChunkerStrategy$ ||= {});
|
|
55074
|
+
ParseChunkingRequestChunkingRequestReturnType$inboundSchema = nativeEnumType(ParseChunkingRequestChunkingRequestReturnType);
|
|
55075
|
+
ParseChunkingRequestChunkingRequestReturnType$outboundSchema = ParseChunkingRequestChunkingRequestReturnType$inboundSchema;
|
|
55076
|
+
((ParseChunkingRequestChunkingRequestReturnType$) => {
|
|
55077
|
+
ParseChunkingRequestChunkingRequestReturnType$.inboundSchema = ParseChunkingRequestChunkingRequestReturnType$inboundSchema;
|
|
55078
|
+
ParseChunkingRequestChunkingRequestReturnType$.outboundSchema = ParseChunkingRequestChunkingRequestReturnType$outboundSchema;
|
|
55079
|
+
})(ParseChunkingRequestChunkingRequestReturnType$ ||= {});
|
|
55080
|
+
SDPMChunker$inboundSchema = nativeEnumType(SDPMChunker);
|
|
55081
|
+
SDPMChunker$outboundSchema = SDPMChunker$inboundSchema;
|
|
55082
|
+
((SDPMChunker$) => {
|
|
55083
|
+
SDPMChunker$.inboundSchema = SDPMChunker$inboundSchema;
|
|
55084
|
+
SDPMChunker$.outboundSchema = SDPMChunker$outboundSchema;
|
|
55085
|
+
})(SDPMChunker$ ||= {});
|
|
55086
|
+
ParseThreshold2$inboundSchema = nativeEnumType(ParseThreshold2);
|
|
55087
|
+
ParseThreshold2$outboundSchema = ParseThreshold2$inboundSchema;
|
|
55088
|
+
((ParseThreshold2$) => {
|
|
55089
|
+
ParseThreshold2$.inboundSchema = ParseThreshold2$inboundSchema;
|
|
55090
|
+
ParseThreshold2$.outboundSchema = ParseThreshold2$outboundSchema;
|
|
55091
|
+
})(ParseThreshold2$ ||= {});
|
|
55092
|
+
ChunkingRequestThreshold$inboundSchema = unionType([numberType(), ParseThreshold2$inboundSchema]);
|
|
55093
|
+
ChunkingRequestThreshold$outboundSchema = unionType([numberType(), ParseThreshold2$outboundSchema]);
|
|
55094
|
+
((ChunkingRequestThreshold$) => {
|
|
55095
|
+
ChunkingRequestThreshold$.inboundSchema = ChunkingRequestThreshold$inboundSchema;
|
|
55096
|
+
ChunkingRequestThreshold$.outboundSchema = ChunkingRequestThreshold$outboundSchema;
|
|
55097
|
+
})(ChunkingRequestThreshold$ ||= {});
|
|
55098
|
+
ChunkingRequestMode$inboundSchema = nativeEnumType(ChunkingRequestMode);
|
|
55099
|
+
ChunkingRequestMode$outboundSchema = ChunkingRequestMode$inboundSchema;
|
|
55100
|
+
((ChunkingRequestMode$) => {
|
|
55101
|
+
ChunkingRequestMode$.inboundSchema = ChunkingRequestMode$inboundSchema;
|
|
55102
|
+
ChunkingRequestMode$.outboundSchema = ChunkingRequestMode$outboundSchema;
|
|
55103
|
+
})(ChunkingRequestMode$ ||= {});
|
|
55104
|
+
SDPMChunkerStrategy$inboundSchema = objectType({
|
|
55105
|
+
text: stringType(),
|
|
55106
|
+
metadata: booleanType().default(true),
|
|
55107
|
+
return_type: ParseChunkingRequestChunkingRequestReturnType$inboundSchema.default("chunks"),
|
|
55108
|
+
strategy: SDPMChunker$inboundSchema,
|
|
55109
|
+
chunk_size: numberType().int().default(512),
|
|
55110
|
+
skip_window: numberType().int().default(1),
|
|
55111
|
+
threshold: unionType([numberType(), ParseThreshold2$inboundSchema]).optional(),
|
|
55112
|
+
embedding_model: stringType(),
|
|
55113
|
+
mode: ChunkingRequestMode$inboundSchema.default("window")
|
|
55114
|
+
}).transform((v2) => {
|
|
55115
|
+
return remap(v2, {
|
|
55116
|
+
return_type: "returnType",
|
|
55117
|
+
chunk_size: "chunkSize",
|
|
55118
|
+
skip_window: "skipWindow",
|
|
55119
|
+
embedding_model: "embeddingModel"
|
|
55120
|
+
});
|
|
55121
|
+
});
|
|
55122
|
+
SDPMChunkerStrategy$outboundSchema = objectType({
|
|
55123
|
+
text: stringType(),
|
|
55124
|
+
metadata: booleanType().default(true),
|
|
55125
|
+
returnType: ParseChunkingRequestChunkingRequestReturnType$outboundSchema.default("chunks"),
|
|
55126
|
+
strategy: SDPMChunker$outboundSchema,
|
|
55127
|
+
chunkSize: numberType().int().default(512),
|
|
55128
|
+
skipWindow: numberType().int().default(1),
|
|
55129
|
+
threshold: unionType([numberType(), ParseThreshold2$outboundSchema]).optional(),
|
|
55130
|
+
embeddingModel: stringType(),
|
|
55131
|
+
mode: ChunkingRequestMode$outboundSchema.default("window")
|
|
55132
|
+
}).transform((v2) => {
|
|
55133
|
+
return remap(v2, {
|
|
55134
|
+
returnType: "return_type",
|
|
55135
|
+
chunkSize: "chunk_size",
|
|
55136
|
+
skipWindow: "skip_window",
|
|
55137
|
+
embeddingModel: "embedding_model"
|
|
55138
|
+
});
|
|
55139
|
+
});
|
|
55140
|
+
((SDPMChunkerStrategy$) => {
|
|
55141
|
+
SDPMChunkerStrategy$.inboundSchema = SDPMChunkerStrategy$inboundSchema;
|
|
55142
|
+
SDPMChunkerStrategy$.outboundSchema = SDPMChunkerStrategy$outboundSchema;
|
|
55143
|
+
})(SDPMChunkerStrategy$ ||= {});
|
|
55144
|
+
ParseChunkingRequestChunkingReturnType$inboundSchema = nativeEnumType(ParseChunkingRequestChunkingReturnType);
|
|
55145
|
+
ParseChunkingRequestChunkingReturnType$outboundSchema = ParseChunkingRequestChunkingReturnType$inboundSchema;
|
|
55146
|
+
((ParseChunkingRequestChunkingReturnType$) => {
|
|
55147
|
+
ParseChunkingRequestChunkingReturnType$.inboundSchema = ParseChunkingRequestChunkingReturnType$inboundSchema;
|
|
55148
|
+
ParseChunkingRequestChunkingReturnType$.outboundSchema = ParseChunkingRequestChunkingReturnType$outboundSchema;
|
|
55149
|
+
})(ParseChunkingRequestChunkingReturnType$ ||= {});
|
|
55150
|
+
SemanticChunker$inboundSchema = nativeEnumType(SemanticChunker);
|
|
55151
|
+
SemanticChunker$outboundSchema = SemanticChunker$inboundSchema;
|
|
55152
|
+
((SemanticChunker$) => {
|
|
55153
|
+
SemanticChunker$.inboundSchema = SemanticChunker$inboundSchema;
|
|
55154
|
+
SemanticChunker$.outboundSchema = SemanticChunker$outboundSchema;
|
|
55155
|
+
})(SemanticChunker$ ||= {});
|
|
55156
|
+
Threshold2$inboundSchema = nativeEnumType(Threshold2);
|
|
55157
|
+
Threshold2$outboundSchema = Threshold2$inboundSchema;
|
|
55158
|
+
((Threshold2$) => {
|
|
55159
|
+
Threshold2$.inboundSchema = Threshold2$inboundSchema;
|
|
55160
|
+
Threshold2$.outboundSchema = Threshold2$outboundSchema;
|
|
55161
|
+
})(Threshold2$ ||= {});
|
|
55162
|
+
Threshold$inboundSchema = unionType([numberType(), Threshold2$inboundSchema]);
|
|
55163
|
+
Threshold$outboundSchema = unionType([numberType(), Threshold2$outboundSchema]);
|
|
55164
|
+
((Threshold$) => {
|
|
55165
|
+
Threshold$.inboundSchema = Threshold$inboundSchema;
|
|
55166
|
+
Threshold$.outboundSchema = Threshold$outboundSchema;
|
|
55167
|
+
})(Threshold$ ||= {});
|
|
55168
|
+
Mode$inboundSchema = nativeEnumType(Mode);
|
|
55169
|
+
Mode$outboundSchema = Mode$inboundSchema;
|
|
55170
|
+
((Mode$) => {
|
|
55171
|
+
Mode$.inboundSchema = Mode$inboundSchema;
|
|
55172
|
+
Mode$.outboundSchema = Mode$outboundSchema;
|
|
55173
|
+
})(Mode$ ||= {});
|
|
55174
|
+
SemanticChunkerStrategy$inboundSchema = objectType({
|
|
55175
|
+
text: stringType(),
|
|
55176
|
+
metadata: booleanType().default(true),
|
|
55177
|
+
return_type: ParseChunkingRequestChunkingReturnType$inboundSchema.default("chunks"),
|
|
55178
|
+
strategy: SemanticChunker$inboundSchema,
|
|
55179
|
+
chunk_size: numberType().int().default(512),
|
|
55180
|
+
threshold: unionType([numberType(), Threshold2$inboundSchema]).optional(),
|
|
55181
|
+
embedding_model: stringType(),
|
|
55182
|
+
mode: Mode$inboundSchema.default("window"),
|
|
55183
|
+
similarity_window: numberType().int().default(1)
|
|
55184
|
+
}).transform((v2) => {
|
|
55185
|
+
return remap(v2, {
|
|
55186
|
+
return_type: "returnType",
|
|
55187
|
+
chunk_size: "chunkSize",
|
|
55188
|
+
embedding_model: "embeddingModel",
|
|
55189
|
+
similarity_window: "similarityWindow"
|
|
55190
|
+
});
|
|
55191
|
+
});
|
|
55192
|
+
SemanticChunkerStrategy$outboundSchema = objectType({
|
|
55193
|
+
text: stringType(),
|
|
55194
|
+
metadata: booleanType().default(true),
|
|
55195
|
+
returnType: ParseChunkingRequestChunkingReturnType$outboundSchema.default("chunks"),
|
|
55196
|
+
strategy: SemanticChunker$outboundSchema,
|
|
55197
|
+
chunkSize: numberType().int().default(512),
|
|
55198
|
+
threshold: unionType([numberType(), Threshold2$outboundSchema]).optional(),
|
|
55199
|
+
embeddingModel: stringType(),
|
|
55200
|
+
mode: Mode$outboundSchema.default("window"),
|
|
55201
|
+
similarityWindow: numberType().int().default(1)
|
|
55202
|
+
}).transform((v2) => {
|
|
55203
|
+
return remap(v2, {
|
|
55204
|
+
returnType: "return_type",
|
|
55205
|
+
chunkSize: "chunk_size",
|
|
55206
|
+
embeddingModel: "embedding_model",
|
|
55207
|
+
similarityWindow: "similarity_window"
|
|
55208
|
+
});
|
|
55209
|
+
});
|
|
55210
|
+
((SemanticChunkerStrategy$) => {
|
|
55211
|
+
SemanticChunkerStrategy$.inboundSchema = SemanticChunkerStrategy$inboundSchema;
|
|
55212
|
+
SemanticChunkerStrategy$.outboundSchema = SemanticChunkerStrategy$outboundSchema;
|
|
55213
|
+
})(SemanticChunkerStrategy$ ||= {});
|
|
55214
|
+
ParseChunkingRequestReturnType$inboundSchema = nativeEnumType(ParseChunkingRequestReturnType);
|
|
55215
|
+
ParseChunkingRequestReturnType$outboundSchema = ParseChunkingRequestReturnType$inboundSchema;
|
|
55216
|
+
((ParseChunkingRequestReturnType$) => {
|
|
55217
|
+
ParseChunkingRequestReturnType$.inboundSchema = ParseChunkingRequestReturnType$inboundSchema;
|
|
55218
|
+
ParseChunkingRequestReturnType$.outboundSchema = ParseChunkingRequestReturnType$outboundSchema;
|
|
55219
|
+
})(ParseChunkingRequestReturnType$ ||= {});
|
|
55220
|
+
RecursiveChunker$inboundSchema = nativeEnumType(RecursiveChunker);
|
|
55221
|
+
RecursiveChunker$outboundSchema = RecursiveChunker$inboundSchema;
|
|
55222
|
+
((RecursiveChunker$) => {
|
|
55223
|
+
RecursiveChunker$.inboundSchema = RecursiveChunker$inboundSchema;
|
|
55224
|
+
RecursiveChunker$.outboundSchema = RecursiveChunker$outboundSchema;
|
|
55225
|
+
})(RecursiveChunker$ ||= {});
|
|
55226
|
+
RecursiveChunkerStrategy$inboundSchema = objectType({
|
|
55227
|
+
text: stringType(),
|
|
55228
|
+
metadata: booleanType().default(true),
|
|
55229
|
+
return_type: ParseChunkingRequestReturnType$inboundSchema.default("chunks"),
|
|
55230
|
+
strategy: RecursiveChunker$inboundSchema,
|
|
55231
|
+
chunk_size: numberType().int().default(512),
|
|
55232
|
+
separators: arrayType(stringType()).optional(),
|
|
55233
|
+
min_characters_per_chunk: numberType().int().default(24)
|
|
55234
|
+
}).transform((v2) => {
|
|
55235
|
+
return remap(v2, {
|
|
55236
|
+
return_type: "returnType",
|
|
55237
|
+
chunk_size: "chunkSize",
|
|
55238
|
+
min_characters_per_chunk: "minCharactersPerChunk"
|
|
55239
|
+
});
|
|
55240
|
+
});
|
|
55241
|
+
RecursiveChunkerStrategy$outboundSchema = objectType({
|
|
55242
|
+
text: stringType(),
|
|
55243
|
+
metadata: booleanType().default(true),
|
|
55244
|
+
returnType: ParseChunkingRequestReturnType$outboundSchema.default("chunks"),
|
|
55245
|
+
strategy: RecursiveChunker$outboundSchema,
|
|
55246
|
+
chunkSize: numberType().int().default(512),
|
|
55247
|
+
separators: arrayType(stringType()).optional(),
|
|
55248
|
+
minCharactersPerChunk: numberType().int().default(24)
|
|
55249
|
+
}).transform((v2) => {
|
|
55250
|
+
return remap(v2, {
|
|
55251
|
+
returnType: "return_type",
|
|
55252
|
+
chunkSize: "chunk_size",
|
|
55253
|
+
minCharactersPerChunk: "min_characters_per_chunk"
|
|
55254
|
+
});
|
|
55255
|
+
});
|
|
55256
|
+
((RecursiveChunkerStrategy$) => {
|
|
55257
|
+
RecursiveChunkerStrategy$.inboundSchema = RecursiveChunkerStrategy$inboundSchema;
|
|
55258
|
+
RecursiveChunkerStrategy$.outboundSchema = RecursiveChunkerStrategy$outboundSchema;
|
|
55259
|
+
})(RecursiveChunkerStrategy$ ||= {});
|
|
55260
|
+
ChunkingRequestReturnType$inboundSchema = nativeEnumType(ChunkingRequestReturnType);
|
|
55261
|
+
ChunkingRequestReturnType$outboundSchema = ChunkingRequestReturnType$inboundSchema;
|
|
55262
|
+
((ChunkingRequestReturnType$) => {
|
|
55263
|
+
ChunkingRequestReturnType$.inboundSchema = ChunkingRequestReturnType$inboundSchema;
|
|
55264
|
+
ChunkingRequestReturnType$.outboundSchema = ChunkingRequestReturnType$outboundSchema;
|
|
55265
|
+
})(ChunkingRequestReturnType$ ||= {});
|
|
55266
|
+
SentenceChunker$inboundSchema = nativeEnumType(SentenceChunker);
|
|
55267
|
+
SentenceChunker$outboundSchema = SentenceChunker$inboundSchema;
|
|
55268
|
+
((SentenceChunker$) => {
|
|
55269
|
+
SentenceChunker$.inboundSchema = SentenceChunker$inboundSchema;
|
|
55270
|
+
SentenceChunker$.outboundSchema = SentenceChunker$outboundSchema;
|
|
55271
|
+
})(SentenceChunker$ ||= {});
|
|
55272
|
+
SentenceChunkerStrategy$inboundSchema = objectType({
|
|
55273
|
+
text: stringType(),
|
|
55274
|
+
metadata: booleanType().default(true),
|
|
55275
|
+
return_type: ChunkingRequestReturnType$inboundSchema.default("chunks"),
|
|
55276
|
+
strategy: SentenceChunker$inboundSchema,
|
|
55277
|
+
chunk_size: numberType().int().default(512),
|
|
55278
|
+
chunk_overlap: numberType().int().default(0),
|
|
55279
|
+
min_sentences_per_chunk: numberType().int().default(1)
|
|
55280
|
+
}).transform((v2) => {
|
|
55281
|
+
return remap(v2, {
|
|
55282
|
+
return_type: "returnType",
|
|
55283
|
+
chunk_size: "chunkSize",
|
|
55284
|
+
chunk_overlap: "chunkOverlap",
|
|
55285
|
+
min_sentences_per_chunk: "minSentencesPerChunk"
|
|
55286
|
+
});
|
|
55287
|
+
});
|
|
55288
|
+
SentenceChunkerStrategy$outboundSchema = objectType({
|
|
55289
|
+
text: stringType(),
|
|
55290
|
+
metadata: booleanType().default(true),
|
|
55291
|
+
returnType: ChunkingRequestReturnType$outboundSchema.default("chunks"),
|
|
55292
|
+
strategy: SentenceChunker$outboundSchema,
|
|
55293
|
+
chunkSize: numberType().int().default(512),
|
|
55294
|
+
chunkOverlap: numberType().int().default(0),
|
|
55295
|
+
minSentencesPerChunk: numberType().int().default(1)
|
|
55296
|
+
}).transform((v2) => {
|
|
55297
|
+
return remap(v2, {
|
|
55298
|
+
returnType: "return_type",
|
|
55299
|
+
chunkSize: "chunk_size",
|
|
55300
|
+
chunkOverlap: "chunk_overlap",
|
|
55301
|
+
minSentencesPerChunk: "min_sentences_per_chunk"
|
|
55302
|
+
});
|
|
55303
|
+
});
|
|
55304
|
+
((SentenceChunkerStrategy$) => {
|
|
55305
|
+
SentenceChunkerStrategy$.inboundSchema = SentenceChunkerStrategy$inboundSchema;
|
|
55306
|
+
SentenceChunkerStrategy$.outboundSchema = SentenceChunkerStrategy$outboundSchema;
|
|
55307
|
+
})(SentenceChunkerStrategy$ ||= {});
|
|
55308
|
+
ReturnTypeT$inboundSchema = nativeEnumType(ReturnTypeT);
|
|
55309
|
+
ReturnTypeT$outboundSchema = ReturnTypeT$inboundSchema;
|
|
55310
|
+
((ReturnTypeT$) => {
|
|
55311
|
+
ReturnTypeT$.inboundSchema = ReturnTypeT$inboundSchema;
|
|
55312
|
+
ReturnTypeT$.outboundSchema = ReturnTypeT$outboundSchema;
|
|
55313
|
+
})(ReturnTypeT$ ||= {});
|
|
55314
|
+
TokenChunker$inboundSchema = nativeEnumType(TokenChunker);
|
|
55315
|
+
TokenChunker$outboundSchema = TokenChunker$inboundSchema;
|
|
55316
|
+
((TokenChunker$) => {
|
|
55317
|
+
TokenChunker$.inboundSchema = TokenChunker$inboundSchema;
|
|
55318
|
+
TokenChunker$.outboundSchema = TokenChunker$outboundSchema;
|
|
55319
|
+
})(TokenChunker$ ||= {});
|
|
55320
|
+
TokenChunkerStrategy$inboundSchema = objectType({
|
|
55321
|
+
text: stringType(),
|
|
55322
|
+
metadata: booleanType().default(true),
|
|
55323
|
+
return_type: ReturnTypeT$inboundSchema.default("chunks"),
|
|
55324
|
+
strategy: TokenChunker$inboundSchema,
|
|
55325
|
+
chunk_size: numberType().int().default(512),
|
|
55326
|
+
chunk_overlap: numberType().int().default(0)
|
|
55327
|
+
}).transform((v2) => {
|
|
55328
|
+
return remap(v2, {
|
|
55329
|
+
return_type: "returnType",
|
|
55330
|
+
chunk_size: "chunkSize",
|
|
55331
|
+
chunk_overlap: "chunkOverlap"
|
|
55332
|
+
});
|
|
55333
|
+
});
|
|
55334
|
+
TokenChunkerStrategy$outboundSchema = objectType({
|
|
55335
|
+
text: stringType(),
|
|
55336
|
+
metadata: booleanType().default(true),
|
|
55337
|
+
returnType: ReturnTypeT$outboundSchema.default("chunks"),
|
|
55338
|
+
strategy: TokenChunker$outboundSchema,
|
|
55339
|
+
chunkSize: numberType().int().default(512),
|
|
55340
|
+
chunkOverlap: numberType().int().default(0)
|
|
55341
|
+
}).transform((v2) => {
|
|
55342
|
+
return remap(v2, {
|
|
55343
|
+
returnType: "return_type",
|
|
55344
|
+
chunkSize: "chunk_size",
|
|
55345
|
+
chunkOverlap: "chunk_overlap"
|
|
55346
|
+
});
|
|
55347
|
+
});
|
|
55348
|
+
((TokenChunkerStrategy$) => {
|
|
55349
|
+
TokenChunkerStrategy$.inboundSchema = TokenChunkerStrategy$inboundSchema;
|
|
55350
|
+
TokenChunkerStrategy$.outboundSchema = TokenChunkerStrategy$outboundSchema;
|
|
55351
|
+
})(TokenChunkerStrategy$ ||= {});
|
|
55352
|
+
ParseChunkingRequest$inboundSchema = unionType([
|
|
55353
|
+
lazyType(() => SemanticChunkerStrategy$inboundSchema),
|
|
55354
|
+
lazyType(() => SDPMChunkerStrategy$inboundSchema),
|
|
55355
|
+
lazyType(() => AgenticChunkerStrategy$inboundSchema),
|
|
55356
|
+
lazyType(() => TokenChunkerStrategy$inboundSchema),
|
|
55357
|
+
lazyType(() => SentenceChunkerStrategy$inboundSchema),
|
|
55358
|
+
lazyType(() => RecursiveChunkerStrategy$inboundSchema)
|
|
55359
|
+
]);
|
|
55360
|
+
ParseChunkingRequest$outboundSchema = unionType([
|
|
55361
|
+
lazyType(() => SemanticChunkerStrategy$outboundSchema),
|
|
55362
|
+
lazyType(() => SDPMChunkerStrategy$outboundSchema),
|
|
55363
|
+
lazyType(() => AgenticChunkerStrategy$outboundSchema),
|
|
55364
|
+
lazyType(() => TokenChunkerStrategy$outboundSchema),
|
|
55365
|
+
lazyType(() => SentenceChunkerStrategy$outboundSchema),
|
|
55366
|
+
lazyType(() => RecursiveChunkerStrategy$outboundSchema)
|
|
55367
|
+
]);
|
|
55368
|
+
((ParseChunkingRequest$) => {
|
|
55369
|
+
ParseChunkingRequest$.inboundSchema = ParseChunkingRequest$inboundSchema;
|
|
55370
|
+
ParseChunkingRequest$.outboundSchema = ParseChunkingRequest$outboundSchema;
|
|
55371
|
+
})(ParseChunkingRequest$ ||= {});
|
|
55372
|
+
ParseMetadata$inboundSchema = objectType({
|
|
55373
|
+
start_index: nullableType(numberType()),
|
|
55374
|
+
end_index: nullableType(numberType()),
|
|
55375
|
+
token_count: nullableType(numberType())
|
|
55376
|
+
}).transform((v2) => {
|
|
55377
|
+
return remap(v2, {
|
|
55378
|
+
start_index: "startIndex",
|
|
55379
|
+
end_index: "endIndex",
|
|
55380
|
+
token_count: "tokenCount"
|
|
55381
|
+
});
|
|
55382
|
+
});
|
|
55383
|
+
ParseMetadata$outboundSchema = objectType({
|
|
55384
|
+
startIndex: nullableType(numberType()),
|
|
55385
|
+
endIndex: nullableType(numberType()),
|
|
55386
|
+
tokenCount: nullableType(numberType())
|
|
55387
|
+
}).transform((v2) => {
|
|
55388
|
+
return remap(v2, {
|
|
55389
|
+
startIndex: "start_index",
|
|
55390
|
+
endIndex: "end_index",
|
|
55391
|
+
tokenCount: "token_count"
|
|
55392
|
+
});
|
|
55393
|
+
});
|
|
55394
|
+
((ParseMetadata$) => {
|
|
55395
|
+
ParseMetadata$.inboundSchema = ParseMetadata$inboundSchema;
|
|
55396
|
+
ParseMetadata$.outboundSchema = ParseMetadata$outboundSchema;
|
|
55397
|
+
})(ParseMetadata$ ||= {});
|
|
55398
|
+
Chunks$inboundSchema = objectType({
|
|
55399
|
+
text: stringType(),
|
|
55400
|
+
index: numberType(),
|
|
55401
|
+
metadata: lazyType(() => ParseMetadata$inboundSchema).optional()
|
|
55402
|
+
});
|
|
55403
|
+
Chunks$outboundSchema = objectType({
|
|
55404
|
+
text: stringType(),
|
|
55405
|
+
index: numberType(),
|
|
55406
|
+
metadata: lazyType(() => ParseMetadata$outboundSchema).optional()
|
|
55407
|
+
});
|
|
55408
|
+
((Chunks$) => {
|
|
55409
|
+
Chunks$.inboundSchema = Chunks$inboundSchema;
|
|
55410
|
+
Chunks$.outboundSchema = Chunks$outboundSchema;
|
|
55411
|
+
})(Chunks$ ||= {});
|
|
55412
|
+
ParseResponseBody$inboundSchema = objectType({
|
|
55413
|
+
chunks: arrayType(lazyType(() => Chunks$inboundSchema))
|
|
55414
|
+
});
|
|
55415
|
+
ParseResponseBody$outboundSchema = objectType({
|
|
55416
|
+
chunks: arrayType(lazyType(() => Chunks$outboundSchema))
|
|
55417
|
+
});
|
|
55418
|
+
((ParseResponseBody$) => {
|
|
55419
|
+
ParseResponseBody$.inboundSchema = ParseResponseBody$inboundSchema;
|
|
55420
|
+
ParseResponseBody$.outboundSchema = ParseResponseBody$outboundSchema;
|
|
55421
|
+
})(ParseResponseBody$ ||= {});
|
|
55422
|
+
});
|
|
55423
|
+
|
|
54963
55424
|
// src/models/operations/remoteconfigsgetconfig.ts
|
|
54964
55425
|
var RemoteConfigsGetConfigType, RemoteConfigsGetConfigRequestBody$inboundSchema, RemoteConfigsGetConfigRequestBody$outboundSchema, RemoteConfigsGetConfigRequestBody$, RemoteConfigsGetConfigType$inboundSchema, RemoteConfigsGetConfigType$outboundSchema, RemoteConfigsGetConfigType$, RemoteConfigsGetConfigResponseBody$inboundSchema, RemoteConfigsGetConfigResponseBody$outboundSchema, RemoteConfigsGetConfigResponseBody$;
|
|
54965
55426
|
var init_remoteconfigsgetconfig = __esm(() => {
|
|
@@ -55031,7 +55492,7 @@ var init_retrievecontact = __esm(() => {
|
|
|
55031
55492
|
tags: arrayType(stringType()).optional(),
|
|
55032
55493
|
metadata: recordType(anyType()).optional(),
|
|
55033
55494
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55034
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
55495
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
55035
55496
|
}).transform((v2) => {
|
|
55036
55497
|
return remap(v2, {
|
|
55037
55498
|
_id: "id",
|
|
@@ -55049,7 +55510,7 @@ var init_retrievecontact = __esm(() => {
|
|
|
55049
55510
|
tags: arrayType(stringType()).optional(),
|
|
55050
55511
|
metadata: recordType(anyType()).optional(),
|
|
55051
55512
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55052
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
55513
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
55053
55514
|
}).transform((v2) => {
|
|
55054
55515
|
return remap(v2, {
|
|
55055
55516
|
id: "_id",
|
|
@@ -55626,7 +56087,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
55626
56087
|
created_by_id: stringType().optional(),
|
|
55627
56088
|
updated_by_id: stringType().optional(),
|
|
55628
56089
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55629
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
56090
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
55630
56091
|
}).transform((v2) => {
|
|
55631
56092
|
return remap(v2, {
|
|
55632
56093
|
_id: "id",
|
|
@@ -55653,7 +56114,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
55653
56114
|
createdById: stringType().optional(),
|
|
55654
56115
|
updatedById: stringType().optional(),
|
|
55655
56116
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55656
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
56117
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
55657
56118
|
}).transform((v2) => {
|
|
55658
56119
|
return remap(v2, {
|
|
55659
56120
|
id: "_id",
|
|
@@ -55724,7 +56185,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
55724
56185
|
updated_by_id: stringType().optional(),
|
|
55725
56186
|
metadata: lazyType(() => RetrieveDatasetMetadata$inboundSchema),
|
|
55726
56187
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
55727
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
56188
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
55728
56189
|
}).transform((v2) => {
|
|
55729
56190
|
return remap(v2, {
|
|
55730
56191
|
_id: "id",
|
|
@@ -55744,7 +56205,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
55744
56205
|
updatedById: stringType().optional(),
|
|
55745
56206
|
metadata: lazyType(() => RetrieveDatasetMetadata$outboundSchema),
|
|
55746
56207
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
55747
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
56208
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
55748
56209
|
}).transform((v2) => {
|
|
55749
56210
|
return remap(v2, {
|
|
55750
56211
|
id: "_id",
|
|
@@ -55802,7 +56263,7 @@ var init_retrievedatasource = __esm(() => {
|
|
|
55802
56263
|
RetrieveDatasourceStatus$.outboundSchema = RetrieveDatasourceStatus$outboundSchema;
|
|
55803
56264
|
})(RetrieveDatasourceStatus$ ||= {});
|
|
55804
56265
|
RetrieveDatasourceResponseBody$inboundSchema = objectType({
|
|
55805
|
-
_id: stringType().default("
|
|
56266
|
+
_id: stringType().default("01JZRA0D8F7P4JQ5JDZQMF2RDC"),
|
|
55806
56267
|
display_name: stringType(),
|
|
55807
56268
|
description: stringType().optional(),
|
|
55808
56269
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -55825,7 +56286,7 @@ var init_retrievedatasource = __esm(() => {
|
|
|
55825
56286
|
});
|
|
55826
56287
|
});
|
|
55827
56288
|
RetrieveDatasourceResponseBody$outboundSchema = objectType({
|
|
55828
|
-
id: stringType().default("
|
|
56289
|
+
id: stringType().default("01JZRA0D8F7P4JQ5JDZQMF2RDC"),
|
|
55829
56290
|
displayName: stringType(),
|
|
55830
56291
|
description: stringType().optional(),
|
|
55831
56292
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -56706,7 +57167,7 @@ var init_updatecontact = __esm(() => {
|
|
|
56706
57167
|
tags: arrayType(stringType()).optional(),
|
|
56707
57168
|
metadata: recordType(anyType()).optional(),
|
|
56708
57169
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
56709
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
57170
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
56710
57171
|
}).transform((v2) => {
|
|
56711
57172
|
return remap(v2, {
|
|
56712
57173
|
_id: "id",
|
|
@@ -56724,7 +57185,7 @@ var init_updatecontact = __esm(() => {
|
|
|
56724
57185
|
tags: arrayType(stringType()).optional(),
|
|
56725
57186
|
metadata: recordType(anyType()).optional(),
|
|
56726
57187
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
56727
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
57188
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
56728
57189
|
}).transform((v2) => {
|
|
56729
57190
|
return remap(v2, {
|
|
56730
57191
|
id: "_id",
|
|
@@ -57858,7 +58319,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
57858
58319
|
created_by_id: stringType().optional(),
|
|
57859
58320
|
updated_by_id: stringType().optional(),
|
|
57860
58321
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57861
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
58322
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
57862
58323
|
}).transform((v2) => {
|
|
57863
58324
|
return remap(v2, {
|
|
57864
58325
|
_id: "id",
|
|
@@ -57885,7 +58346,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
57885
58346
|
createdById: stringType().optional(),
|
|
57886
58347
|
updatedById: stringType().optional(),
|
|
57887
58348
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
57888
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
58349
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
57889
58350
|
}).transform((v2) => {
|
|
57890
58351
|
return remap(v2, {
|
|
57891
58352
|
id: "_id",
|
|
@@ -57986,7 +58447,7 @@ var init_updatedataset = __esm(() => {
|
|
|
57986
58447
|
parent_id: stringType().optional(),
|
|
57987
58448
|
version: stringType().optional(),
|
|
57988
58449
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
57989
|
-
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:
|
|
58450
|
+
updated: stringType().datetime({ offset: true }).default("2025-07-09T19:18:32.412Z").transform((v2) => new Date(v2))
|
|
57990
58451
|
}).transform((v2) => {
|
|
57991
58452
|
return remap(v2, {
|
|
57992
58453
|
_id: "id",
|
|
@@ -58009,7 +58470,7 @@ var init_updatedataset = __esm(() => {
|
|
|
58009
58470
|
parentId: stringType().optional(),
|
|
58010
58471
|
version: stringType().optional(),
|
|
58011
58472
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
58012
|
-
updated: dateType().default(() => new Date("2025-07-09T19:
|
|
58473
|
+
updated: dateType().default(() => new Date("2025-07-09T19:18:32.412Z")).transform((v2) => v2.toISOString())
|
|
58013
58474
|
}).transform((v2) => {
|
|
58014
58475
|
return remap(v2, {
|
|
58015
58476
|
id: "_id",
|
|
@@ -58090,7 +58551,7 @@ var init_updatedatasource = __esm(() => {
|
|
|
58090
58551
|
UpdateDatasourceStatus$.outboundSchema = UpdateDatasourceStatus$outboundSchema;
|
|
58091
58552
|
})(UpdateDatasourceStatus$ ||= {});
|
|
58092
58553
|
UpdateDatasourceResponseBody$inboundSchema = objectType({
|
|
58093
|
-
_id: stringType().default("
|
|
58554
|
+
_id: stringType().default("01JZRA0D8H931XQJ8MBR2VQHM8"),
|
|
58094
58555
|
display_name: stringType(),
|
|
58095
58556
|
description: stringType().optional(),
|
|
58096
58557
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -58113,7 +58574,7 @@ var init_updatedatasource = __esm(() => {
|
|
|
58113
58574
|
});
|
|
58114
58575
|
});
|
|
58115
58576
|
UpdateDatasourceResponseBody$outboundSchema = objectType({
|
|
58116
|
-
id: stringType().default("
|
|
58577
|
+
id: stringType().default("01JZRA0D8H931XQJ8MBR2VQHM8"),
|
|
58117
58578
|
displayName: stringType(),
|
|
58118
58579
|
description: stringType().optional(),
|
|
58119
58580
|
status: UpdateDatasourceStatus$outboundSchema,
|
|
@@ -58819,8 +59280,8 @@ var init_updateeval = __esm(() => {
|
|
|
58819
59280
|
UpdateEvalResponseBodyPython$inboundSchema = objectType({
|
|
58820
59281
|
_id: stringType(),
|
|
58821
59282
|
description: stringType(),
|
|
58822
|
-
created: stringType().default("2025-07-09T19:
|
|
58823
|
-
updated: stringType().default("2025-07-09T19:
|
|
59283
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59284
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
58824
59285
|
guardrail_config: unionType([
|
|
58825
59286
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
58826
59287
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema)
|
|
@@ -58837,8 +59298,8 @@ var init_updateeval = __esm(() => {
|
|
|
58837
59298
|
UpdateEvalResponseBodyPython$outboundSchema = objectType({
|
|
58838
59299
|
id: stringType(),
|
|
58839
59300
|
description: stringType(),
|
|
58840
|
-
created: stringType().default("2025-07-09T19:
|
|
58841
|
-
updated: stringType().default("2025-07-09T19:
|
|
59301
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59302
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
58842
59303
|
guardrailConfig: unionType([
|
|
58843
59304
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
58844
59305
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema)
|
|
@@ -58931,8 +59392,8 @@ var init_updateeval = __esm(() => {
|
|
|
58931
59392
|
UpdateEvalResponseBodyHTTP$inboundSchema = objectType({
|
|
58932
59393
|
_id: stringType(),
|
|
58933
59394
|
description: stringType(),
|
|
58934
|
-
created: stringType().default("2025-07-09T19:
|
|
58935
|
-
updated: stringType().default("2025-07-09T19:
|
|
59395
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59396
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
58936
59397
|
guardrail_config: unionType([
|
|
58937
59398
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
58938
59399
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema)
|
|
@@ -58952,8 +59413,8 @@ var init_updateeval = __esm(() => {
|
|
|
58952
59413
|
UpdateEvalResponseBodyHTTP$outboundSchema = objectType({
|
|
58953
59414
|
id: stringType(),
|
|
58954
59415
|
description: stringType(),
|
|
58955
|
-
created: stringType().default("2025-07-09T19:
|
|
58956
|
-
updated: stringType().default("2025-07-09T19:
|
|
59416
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59417
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
58957
59418
|
guardrailConfig: unionType([
|
|
58958
59419
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
58959
59420
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema)
|
|
@@ -59043,8 +59504,8 @@ var init_updateeval = __esm(() => {
|
|
|
59043
59504
|
UpdateEvalResponseBodyJSON$inboundSchema = objectType({
|
|
59044
59505
|
_id: stringType(),
|
|
59045
59506
|
description: stringType(),
|
|
59046
|
-
created: stringType().default("2025-07-09T19:
|
|
59047
|
-
updated: stringType().default("2025-07-09T19:
|
|
59507
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59508
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59048
59509
|
guardrail_config: unionType([
|
|
59049
59510
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
59050
59511
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema)
|
|
@@ -59061,8 +59522,8 @@ var init_updateeval = __esm(() => {
|
|
|
59061
59522
|
UpdateEvalResponseBodyJSON$outboundSchema = objectType({
|
|
59062
59523
|
id: stringType(),
|
|
59063
59524
|
description: stringType(),
|
|
59064
|
-
created: stringType().default("2025-07-09T19:
|
|
59065
|
-
updated: stringType().default("2025-07-09T19:
|
|
59525
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59526
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59066
59527
|
guardrailConfig: unionType([
|
|
59067
59528
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
59068
59529
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema)
|
|
@@ -59149,8 +59610,8 @@ var init_updateeval = __esm(() => {
|
|
|
59149
59610
|
UpdateEvalResponseBodyLLM$inboundSchema = objectType({
|
|
59150
59611
|
_id: stringType(),
|
|
59151
59612
|
description: stringType(),
|
|
59152
|
-
created: stringType().default("2025-07-09T19:
|
|
59153
|
-
updated: stringType().default("2025-07-09T19:
|
|
59613
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59614
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59154
59615
|
guardrail_config: unionType([
|
|
59155
59616
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
59156
59617
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema)
|
|
@@ -59168,8 +59629,8 @@ var init_updateeval = __esm(() => {
|
|
|
59168
59629
|
UpdateEvalResponseBodyLLM$outboundSchema = objectType({
|
|
59169
59630
|
id: stringType(),
|
|
59170
59631
|
description: stringType(),
|
|
59171
|
-
created: stringType().default("2025-07-09T19:
|
|
59172
|
-
updated: stringType().default("2025-07-09T19:
|
|
59632
|
+
created: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59633
|
+
updated: stringType().default("2025-07-09T19:18:34.538Z"),
|
|
59173
59634
|
guardrailConfig: unionType([
|
|
59174
59635
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
59175
59636
|
lazyType(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema)
|
|
@@ -60753,6 +61214,7 @@ var init_operations = __esm(() => {
|
|
|
60753
61214
|
init_listknowledgebases();
|
|
60754
61215
|
init_listmodels();
|
|
60755
61216
|
init_listpromptversions();
|
|
61217
|
+
init_parse();
|
|
60756
61218
|
init_remoteconfigsgetconfig();
|
|
60757
61219
|
init_retrievecontact();
|
|
60758
61220
|
init_retrievedatapoint();
|
|
@@ -60795,11 +61257,110 @@ var init_async = __esm(() => {
|
|
|
60795
61257
|
};
|
|
60796
61258
|
});
|
|
60797
61259
|
|
|
60798
|
-
// src/funcs/
|
|
60799
|
-
function
|
|
61260
|
+
// src/funcs/chunkingParse.ts
|
|
61261
|
+
function chunkingParse(client, request, options) {
|
|
60800
61262
|
return new APIPromise($do(client, request, options));
|
|
60801
61263
|
}
|
|
60802
61264
|
async function $do(client, request, options) {
|
|
61265
|
+
const parsed = safeParse(request, (value) => ParseChunkingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
61266
|
+
if (!parsed.ok) {
|
|
61267
|
+
return [parsed, { status: "invalid" }];
|
|
61268
|
+
}
|
|
61269
|
+
const payload = parsed.value;
|
|
61270
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
61271
|
+
const path = pathToFunc("/v2/chunking")();
|
|
61272
|
+
const headers = new Headers(compactMap({
|
|
61273
|
+
"Content-Type": "application/json",
|
|
61274
|
+
Accept: "application/json"
|
|
61275
|
+
}));
|
|
61276
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
61277
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
61278
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
61279
|
+
const context = {
|
|
61280
|
+
options: client._options,
|
|
61281
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
61282
|
+
operationID: "parse",
|
|
61283
|
+
oAuth2Scopes: [],
|
|
61284
|
+
resolvedSecurity: requestSecurity,
|
|
61285
|
+
securitySource: client._options.apiKey,
|
|
61286
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
61287
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
61288
|
+
};
|
|
61289
|
+
const requestRes = client._createRequest(context, {
|
|
61290
|
+
security: requestSecurity,
|
|
61291
|
+
method: "POST",
|
|
61292
|
+
baseURL: options?.serverURL,
|
|
61293
|
+
path,
|
|
61294
|
+
headers,
|
|
61295
|
+
body,
|
|
61296
|
+
userAgent: client._options.userAgent,
|
|
61297
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000
|
|
61298
|
+
}, options);
|
|
61299
|
+
if (!requestRes.ok) {
|
|
61300
|
+
return [requestRes, { status: "invalid" }];
|
|
61301
|
+
}
|
|
61302
|
+
const req = requestRes.value;
|
|
61303
|
+
const doResult = await client._do(req, {
|
|
61304
|
+
context,
|
|
61305
|
+
errorCodes: ["4XX", "5XX"],
|
|
61306
|
+
retryConfig: context.retryConfig,
|
|
61307
|
+
retryCodes: context.retryCodes
|
|
61308
|
+
});
|
|
61309
|
+
if (!doResult.ok) {
|
|
61310
|
+
return [doResult, { status: "request-error", request: req }];
|
|
61311
|
+
}
|
|
61312
|
+
const response = doResult.value;
|
|
61313
|
+
const [result] = await match(json(200, ParseResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
|
|
61314
|
+
if (!result.ok) {
|
|
61315
|
+
return [result, { status: "complete", request: req, response }];
|
|
61316
|
+
}
|
|
61317
|
+
return [result, { status: "complete", request: req, response }];
|
|
61318
|
+
}
|
|
61319
|
+
var init_chunkingParse = __esm(() => {
|
|
61320
|
+
init_encodings();
|
|
61321
|
+
init_matchers();
|
|
61322
|
+
init_primitives();
|
|
61323
|
+
init_schemas();
|
|
61324
|
+
init_security();
|
|
61325
|
+
init_url();
|
|
61326
|
+
init_operations();
|
|
61327
|
+
init_async();
|
|
61328
|
+
});
|
|
61329
|
+
|
|
61330
|
+
// src/mcp-server/tools/chunkingParse.ts
|
|
61331
|
+
var args, tool$chunkingParse;
|
|
61332
|
+
var init_chunkingParse2 = __esm(() => {
|
|
61333
|
+
init_chunkingParse();
|
|
61334
|
+
init_operations();
|
|
61335
|
+
init_tools();
|
|
61336
|
+
args = {
|
|
61337
|
+
request: ParseChunkingRequest$inboundSchema
|
|
61338
|
+
};
|
|
61339
|
+
tool$chunkingParse = {
|
|
61340
|
+
name: "chunking-parse",
|
|
61341
|
+
description: `Parse text
|
|
61342
|
+
|
|
61343
|
+
Split large text documents into smaller, manageable chunks using different chunking strategies optimized for RAG (Retrieval-Augmented Generation) workflows. This endpoint supports multiple chunking algorithms including token-based, sentence-based, recursive, semantic, and specialized strategies.`,
|
|
61344
|
+
args,
|
|
61345
|
+
tool: async (client, args2, ctx) => {
|
|
61346
|
+
const [result, apiCall] = await chunkingParse(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61347
|
+
if (!result.ok) {
|
|
61348
|
+
return {
|
|
61349
|
+
content: [{ type: "text", text: result.error.message }],
|
|
61350
|
+
isError: true
|
|
61351
|
+
};
|
|
61352
|
+
}
|
|
61353
|
+
const value = result.value;
|
|
61354
|
+
return formatResult(value, apiCall);
|
|
61355
|
+
}
|
|
61356
|
+
};
|
|
61357
|
+
});
|
|
61358
|
+
|
|
61359
|
+
// src/funcs/contactsCreate.ts
|
|
61360
|
+
function contactsCreate(client, request, options) {
|
|
61361
|
+
return new APIPromise($do2(client, request, options));
|
|
61362
|
+
}
|
|
61363
|
+
async function $do2(client, request, options) {
|
|
60803
61364
|
const parsed = safeParse(request, (value) => CreateContactRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
60804
61365
|
if (!parsed.ok) {
|
|
60805
61366
|
return [parsed, { status: "invalid" }];
|
|
@@ -60866,12 +61427,12 @@ var init_contactsCreate = __esm(() => {
|
|
|
60866
61427
|
});
|
|
60867
61428
|
|
|
60868
61429
|
// src/mcp-server/tools/contactsCreate.ts
|
|
60869
|
-
var
|
|
61430
|
+
var args2, tool$contactsCreate;
|
|
60870
61431
|
var init_contactsCreate2 = __esm(() => {
|
|
60871
61432
|
init_contactsCreate();
|
|
60872
61433
|
init_operations();
|
|
60873
61434
|
init_tools();
|
|
60874
|
-
|
|
61435
|
+
args2 = {
|
|
60875
61436
|
request: CreateContactRequestBody$inboundSchema.optional()
|
|
60876
61437
|
};
|
|
60877
61438
|
tool$contactsCreate = {
|
|
@@ -60879,9 +61440,9 @@ var init_contactsCreate2 = __esm(() => {
|
|
|
60879
61440
|
description: `Create a contact
|
|
60880
61441
|
|
|
60881
61442
|
Creates a new contact or updates an existing one based on external_id. Use this endpoint to add users from your system to orq.ai for tracking their usage and engagement.`,
|
|
60882
|
-
args,
|
|
60883
|
-
tool: async (client,
|
|
60884
|
-
const [result, apiCall] = await contactsCreate(client,
|
|
61443
|
+
args: args2,
|
|
61444
|
+
tool: async (client, args3, ctx) => {
|
|
61445
|
+
const [result, apiCall] = await contactsCreate(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60885
61446
|
if (!result.ok) {
|
|
60886
61447
|
return {
|
|
60887
61448
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63705,9 +64266,9 @@ var init_errors2 = __esm(() => {
|
|
|
63705
64266
|
|
|
63706
64267
|
// src/funcs/contactsDelete.ts
|
|
63707
64268
|
function contactsDelete(client, request, options) {
|
|
63708
|
-
return new APIPromise($
|
|
64269
|
+
return new APIPromise($do3(client, request, options));
|
|
63709
64270
|
}
|
|
63710
|
-
async function $
|
|
64271
|
+
async function $do3(client, request, options) {
|
|
63711
64272
|
const parsed = safeParse(request, (value) => DeleteContactRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63712
64273
|
if (!parsed.ok) {
|
|
63713
64274
|
return [parsed, { status: "invalid" }];
|
|
@@ -63784,12 +64345,12 @@ var init_contactsDelete = __esm(() => {
|
|
|
63784
64345
|
});
|
|
63785
64346
|
|
|
63786
64347
|
// src/mcp-server/tools/contactsDelete.ts
|
|
63787
|
-
var
|
|
64348
|
+
var args3, tool$contactsDelete;
|
|
63788
64349
|
var init_contactsDelete2 = __esm(() => {
|
|
63789
64350
|
init_contactsDelete();
|
|
63790
64351
|
init_operations();
|
|
63791
64352
|
init_tools();
|
|
63792
|
-
|
|
64353
|
+
args3 = {
|
|
63793
64354
|
request: DeleteContactRequest$inboundSchema
|
|
63794
64355
|
};
|
|
63795
64356
|
tool$contactsDelete = {
|
|
@@ -63797,9 +64358,9 @@ var init_contactsDelete2 = __esm(() => {
|
|
|
63797
64358
|
description: `Delete a contact
|
|
63798
64359
|
|
|
63799
64360
|
Permanently deletes a contact from your workspace. This action cannot be undone.`,
|
|
63800
|
-
args:
|
|
63801
|
-
tool: async (client,
|
|
63802
|
-
const [result, apiCall] = await contactsDelete(client,
|
|
64361
|
+
args: args3,
|
|
64362
|
+
tool: async (client, args4, ctx) => {
|
|
64363
|
+
const [result, apiCall] = await contactsDelete(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63803
64364
|
if (!result.ok) {
|
|
63804
64365
|
return {
|
|
63805
64366
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63813,9 +64374,9 @@ Permanently deletes a contact from your workspace. This action cannot be undone.
|
|
|
63813
64374
|
|
|
63814
64375
|
// src/funcs/contactsList.ts
|
|
63815
64376
|
function contactsList(client, request, options) {
|
|
63816
|
-
return new APIPromise($
|
|
64377
|
+
return new APIPromise($do4(client, request, options));
|
|
63817
64378
|
}
|
|
63818
|
-
async function $
|
|
64379
|
+
async function $do4(client, request, options) {
|
|
63819
64380
|
const parsed = safeParse(request, (value) => ListContactsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
63820
64381
|
if (!parsed.ok) {
|
|
63821
64382
|
return [parsed, { status: "invalid" }];
|
|
@@ -63889,12 +64450,12 @@ var init_contactsList = __esm(() => {
|
|
|
63889
64450
|
});
|
|
63890
64451
|
|
|
63891
64452
|
// src/mcp-server/tools/contactsList.ts
|
|
63892
|
-
var
|
|
64453
|
+
var args4, tool$contactsList;
|
|
63893
64454
|
var init_contactsList2 = __esm(() => {
|
|
63894
64455
|
init_contactsList();
|
|
63895
64456
|
init_operations();
|
|
63896
64457
|
init_tools();
|
|
63897
|
-
|
|
64458
|
+
args4 = {
|
|
63898
64459
|
request: ListContactsRequest$inboundSchema.optional()
|
|
63899
64460
|
};
|
|
63900
64461
|
tool$contactsList = {
|
|
@@ -63902,9 +64463,9 @@ var init_contactsList2 = __esm(() => {
|
|
|
63902
64463
|
description: `List contacts
|
|
63903
64464
|
|
|
63904
64465
|
Retrieves a paginated list of contacts in your workspace. Use pagination parameters to navigate through large contact lists efficiently.`,
|
|
63905
|
-
args:
|
|
63906
|
-
tool: async (client,
|
|
63907
|
-
const [result, apiCall] = await contactsList(client,
|
|
64466
|
+
args: args4,
|
|
64467
|
+
tool: async (client, args5, ctx) => {
|
|
64468
|
+
const [result, apiCall] = await contactsList(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63908
64469
|
if (!result.ok) {
|
|
63909
64470
|
return {
|
|
63910
64471
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63919,9 +64480,9 @@ Retrieves a paginated list of contacts in your workspace. Use pagination paramet
|
|
|
63919
64480
|
|
|
63920
64481
|
// src/funcs/contactsRetrieve.ts
|
|
63921
64482
|
function contactsRetrieve(client, request, options) {
|
|
63922
|
-
return new APIPromise($
|
|
64483
|
+
return new APIPromise($do5(client, request, options));
|
|
63923
64484
|
}
|
|
63924
|
-
async function $
|
|
64485
|
+
async function $do5(client, request, options) {
|
|
63925
64486
|
const parsed = safeParse(request, (value) => RetrieveContactRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63926
64487
|
if (!parsed.ok) {
|
|
63927
64488
|
return [parsed, { status: "invalid" }];
|
|
@@ -63997,12 +64558,12 @@ var init_contactsRetrieve = __esm(() => {
|
|
|
63997
64558
|
});
|
|
63998
64559
|
|
|
63999
64560
|
// src/mcp-server/tools/contactsRetrieve.ts
|
|
64000
|
-
var
|
|
64561
|
+
var args5, tool$contactsRetrieve;
|
|
64001
64562
|
var init_contactsRetrieve2 = __esm(() => {
|
|
64002
64563
|
init_contactsRetrieve();
|
|
64003
64564
|
init_operations();
|
|
64004
64565
|
init_tools();
|
|
64005
|
-
|
|
64566
|
+
args5 = {
|
|
64006
64567
|
request: RetrieveContactRequest$inboundSchema
|
|
64007
64568
|
};
|
|
64008
64569
|
tool$contactsRetrieve = {
|
|
@@ -64010,9 +64571,9 @@ var init_contactsRetrieve2 = __esm(() => {
|
|
|
64010
64571
|
description: `Retrieve a contact
|
|
64011
64572
|
|
|
64012
64573
|
Retrieves detailed information about a specific contact using their contact ID or external ID from your system.`,
|
|
64013
|
-
args:
|
|
64014
|
-
tool: async (client,
|
|
64015
|
-
const [result, apiCall] = await contactsRetrieve(client,
|
|
64574
|
+
args: args5,
|
|
64575
|
+
tool: async (client, args6, ctx) => {
|
|
64576
|
+
const [result, apiCall] = await contactsRetrieve(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64016
64577
|
if (!result.ok) {
|
|
64017
64578
|
return {
|
|
64018
64579
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64027,9 +64588,9 @@ Retrieves detailed information about a specific contact using their contact ID o
|
|
|
64027
64588
|
|
|
64028
64589
|
// src/funcs/contactsUpdate.ts
|
|
64029
64590
|
function contactsUpdate(client, request, options) {
|
|
64030
|
-
return new APIPromise($
|
|
64591
|
+
return new APIPromise($do6(client, request, options));
|
|
64031
64592
|
}
|
|
64032
|
-
async function $
|
|
64593
|
+
async function $do6(client, request, options) {
|
|
64033
64594
|
const parsed = safeParse(request, (value) => UpdateContactRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64034
64595
|
if (!parsed.ok) {
|
|
64035
64596
|
return [parsed, { status: "invalid" }];
|
|
@@ -64106,12 +64667,12 @@ var init_contactsUpdate = __esm(() => {
|
|
|
64106
64667
|
});
|
|
64107
64668
|
|
|
64108
64669
|
// src/mcp-server/tools/contactsUpdate.ts
|
|
64109
|
-
var
|
|
64670
|
+
var args6, tool$contactsUpdate;
|
|
64110
64671
|
var init_contactsUpdate2 = __esm(() => {
|
|
64111
64672
|
init_contactsUpdate();
|
|
64112
64673
|
init_operations();
|
|
64113
64674
|
init_tools();
|
|
64114
|
-
|
|
64675
|
+
args6 = {
|
|
64115
64676
|
request: UpdateContactRequest$inboundSchema
|
|
64116
64677
|
};
|
|
64117
64678
|
tool$contactsUpdate = {
|
|
@@ -64119,9 +64680,9 @@ var init_contactsUpdate2 = __esm(() => {
|
|
|
64119
64680
|
description: `Update a contact
|
|
64120
64681
|
|
|
64121
64682
|
Updates specific fields of an existing contact. Only the fields provided in the request body will be updated.`,
|
|
64122
|
-
args:
|
|
64123
|
-
tool: async (client,
|
|
64124
|
-
const [result, apiCall] = await contactsUpdate(client,
|
|
64683
|
+
args: args6,
|
|
64684
|
+
tool: async (client, args7, ctx) => {
|
|
64685
|
+
const [result, apiCall] = await contactsUpdate(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64125
64686
|
if (!result.ok) {
|
|
64126
64687
|
return {
|
|
64127
64688
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64136,9 +64697,9 @@ Updates specific fields of an existing contact. Only the fields provided in the
|
|
|
64136
64697
|
|
|
64137
64698
|
// src/funcs/datasetsClear.ts
|
|
64138
64699
|
function datasetsClear(client, request, options) {
|
|
64139
|
-
return new APIPromise($
|
|
64700
|
+
return new APIPromise($do7(client, request, options));
|
|
64140
64701
|
}
|
|
64141
|
-
async function $
|
|
64702
|
+
async function $do7(client, request, options) {
|
|
64142
64703
|
const parsed = safeParse(request, (value) => ClearDatasetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64143
64704
|
if (!parsed.ok) {
|
|
64144
64705
|
return [parsed, { status: "invalid" }];
|
|
@@ -64211,12 +64772,12 @@ var init_datasetsClear = __esm(() => {
|
|
|
64211
64772
|
});
|
|
64212
64773
|
|
|
64213
64774
|
// src/mcp-server/tools/datasetsClear.ts
|
|
64214
|
-
var
|
|
64775
|
+
var args7, tool$datasetsClear;
|
|
64215
64776
|
var init_datasetsClear2 = __esm(() => {
|
|
64216
64777
|
init_datasetsClear();
|
|
64217
64778
|
init_operations();
|
|
64218
64779
|
init_tools();
|
|
64219
|
-
|
|
64780
|
+
args7 = {
|
|
64220
64781
|
request: ClearDatasetRequest$inboundSchema
|
|
64221
64782
|
};
|
|
64222
64783
|
tool$datasetsClear = {
|
|
@@ -64224,9 +64785,9 @@ var init_datasetsClear2 = __esm(() => {
|
|
|
64224
64785
|
description: `Delete all datapoints
|
|
64225
64786
|
|
|
64226
64787
|
Delete all datapoints from a dataset. This action is irreversible.`,
|
|
64227
|
-
args:
|
|
64228
|
-
tool: async (client,
|
|
64229
|
-
const [result, apiCall] = await datasetsClear(client,
|
|
64788
|
+
args: args7,
|
|
64789
|
+
tool: async (client, args8, ctx) => {
|
|
64790
|
+
const [result, apiCall] = await datasetsClear(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64230
64791
|
if (!result.ok) {
|
|
64231
64792
|
return {
|
|
64232
64793
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64240,9 +64801,9 @@ Delete all datapoints from a dataset. This action is irreversible.`,
|
|
|
64240
64801
|
|
|
64241
64802
|
// src/funcs/datasetsCreate.ts
|
|
64242
64803
|
function datasetsCreate(client, request, options) {
|
|
64243
|
-
return new APIPromise($
|
|
64804
|
+
return new APIPromise($do8(client, request, options));
|
|
64244
64805
|
}
|
|
64245
|
-
async function $
|
|
64806
|
+
async function $do8(client, request, options) {
|
|
64246
64807
|
const parsed = safeParse(request, (value) => CreateDatasetRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
64247
64808
|
if (!parsed.ok) {
|
|
64248
64809
|
return [parsed, { status: "invalid" }];
|
|
@@ -64309,12 +64870,12 @@ var init_datasetsCreate = __esm(() => {
|
|
|
64309
64870
|
});
|
|
64310
64871
|
|
|
64311
64872
|
// src/mcp-server/tools/datasetsCreate.ts
|
|
64312
|
-
var
|
|
64873
|
+
var args8, tool$datasetsCreate;
|
|
64313
64874
|
var init_datasetsCreate2 = __esm(() => {
|
|
64314
64875
|
init_datasetsCreate();
|
|
64315
64876
|
init_operations();
|
|
64316
64877
|
init_tools();
|
|
64317
|
-
|
|
64878
|
+
args8 = {
|
|
64318
64879
|
request: CreateDatasetRequestBody$inboundSchema.optional()
|
|
64319
64880
|
};
|
|
64320
64881
|
tool$datasetsCreate = {
|
|
@@ -64322,9 +64883,9 @@ var init_datasetsCreate2 = __esm(() => {
|
|
|
64322
64883
|
description: `Create a dataset
|
|
64323
64884
|
|
|
64324
64885
|
Creates a new dataset in the specified project.`,
|
|
64325
|
-
args:
|
|
64326
|
-
tool: async (client,
|
|
64327
|
-
const [result, apiCall] = await datasetsCreate(client,
|
|
64886
|
+
args: args8,
|
|
64887
|
+
tool: async (client, args9, ctx) => {
|
|
64888
|
+
const [result, apiCall] = await datasetsCreate(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64328
64889
|
if (!result.ok) {
|
|
64329
64890
|
return {
|
|
64330
64891
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64339,9 +64900,9 @@ Creates a new dataset in the specified project.`,
|
|
|
64339
64900
|
|
|
64340
64901
|
// src/funcs/datasetsCreateDatapoint.ts
|
|
64341
64902
|
function datasetsCreateDatapoint(client, request, options) {
|
|
64342
|
-
return new APIPromise($
|
|
64903
|
+
return new APIPromise($do9(client, request, options));
|
|
64343
64904
|
}
|
|
64344
|
-
async function $
|
|
64905
|
+
async function $do9(client, request, options) {
|
|
64345
64906
|
const parsed = safeParse(request, (value) => CreateDatasetItemRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64346
64907
|
if (!parsed.ok) {
|
|
64347
64908
|
return [parsed, { status: "invalid" }];
|
|
@@ -64414,12 +64975,12 @@ var init_datasetsCreateDatapoint = __esm(() => {
|
|
|
64414
64975
|
});
|
|
64415
64976
|
|
|
64416
64977
|
// src/mcp-server/tools/datasetsCreateDatapoint.ts
|
|
64417
|
-
var
|
|
64978
|
+
var args9, tool$datasetsCreateDatapoint;
|
|
64418
64979
|
var init_datasetsCreateDatapoint2 = __esm(() => {
|
|
64419
64980
|
init_datasetsCreateDatapoint();
|
|
64420
64981
|
init_operations();
|
|
64421
64982
|
init_tools();
|
|
64422
|
-
|
|
64983
|
+
args9 = {
|
|
64423
64984
|
request: CreateDatasetItemRequest$inboundSchema
|
|
64424
64985
|
};
|
|
64425
64986
|
tool$datasetsCreateDatapoint = {
|
|
@@ -64427,9 +64988,9 @@ var init_datasetsCreateDatapoint2 = __esm(() => {
|
|
|
64427
64988
|
description: `Create a datapoint
|
|
64428
64989
|
|
|
64429
64990
|
Creates a new datapoint in the specified dataset.`,
|
|
64430
|
-
args:
|
|
64431
|
-
tool: async (client,
|
|
64432
|
-
const [result, apiCall] = await datasetsCreateDatapoint(client,
|
|
64991
|
+
args: args9,
|
|
64992
|
+
tool: async (client, args10, ctx) => {
|
|
64993
|
+
const [result, apiCall] = await datasetsCreateDatapoint(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64433
64994
|
if (!result.ok) {
|
|
64434
64995
|
return {
|
|
64435
64996
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64444,9 +65005,9 @@ Creates a new datapoint in the specified dataset.`,
|
|
|
64444
65005
|
|
|
64445
65006
|
// src/funcs/datasetsDelete.ts
|
|
64446
65007
|
function datasetsDelete(client, request, options) {
|
|
64447
|
-
return new APIPromise($
|
|
65008
|
+
return new APIPromise($do10(client, request, options));
|
|
64448
65009
|
}
|
|
64449
|
-
async function $
|
|
65010
|
+
async function $do10(client, request, options) {
|
|
64450
65011
|
const parsed = safeParse(request, (value) => DeleteDatasetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64451
65012
|
if (!parsed.ok) {
|
|
64452
65013
|
return [parsed, { status: "invalid" }];
|
|
@@ -64519,12 +65080,12 @@ var init_datasetsDelete = __esm(() => {
|
|
|
64519
65080
|
});
|
|
64520
65081
|
|
|
64521
65082
|
// src/mcp-server/tools/datasetsDelete.ts
|
|
64522
|
-
var
|
|
65083
|
+
var args10, tool$datasetsDelete;
|
|
64523
65084
|
var init_datasetsDelete2 = __esm(() => {
|
|
64524
65085
|
init_datasetsDelete();
|
|
64525
65086
|
init_operations();
|
|
64526
65087
|
init_tools();
|
|
64527
|
-
|
|
65088
|
+
args10 = {
|
|
64528
65089
|
request: DeleteDatasetRequest$inboundSchema
|
|
64529
65090
|
};
|
|
64530
65091
|
tool$datasetsDelete = {
|
|
@@ -64532,9 +65093,9 @@ var init_datasetsDelete2 = __esm(() => {
|
|
|
64532
65093
|
description: `Delete a dataset
|
|
64533
65094
|
|
|
64534
65095
|
Permanently deletes a dataset and all its datapoints. This action is irreversible.`,
|
|
64535
|
-
args:
|
|
64536
|
-
tool: async (client,
|
|
64537
|
-
const [result, apiCall] = await datasetsDelete(client,
|
|
65096
|
+
args: args10,
|
|
65097
|
+
tool: async (client, args11, ctx) => {
|
|
65098
|
+
const [result, apiCall] = await datasetsDelete(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64538
65099
|
if (!result.ok) {
|
|
64539
65100
|
return {
|
|
64540
65101
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64548,9 +65109,9 @@ Permanently deletes a dataset and all its datapoints. This action is irreversibl
|
|
|
64548
65109
|
|
|
64549
65110
|
// src/funcs/datasetsDeleteDatapoint.ts
|
|
64550
65111
|
function datasetsDeleteDatapoint(client, request, options) {
|
|
64551
|
-
return new APIPromise($
|
|
65112
|
+
return new APIPromise($do11(client, request, options));
|
|
64552
65113
|
}
|
|
64553
|
-
async function $
|
|
65114
|
+
async function $do11(client, request, options) {
|
|
64554
65115
|
const parsed = safeParse(request, (value) => DeleteDatapointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64555
65116
|
if (!parsed.ok) {
|
|
64556
65117
|
return [parsed, { status: "invalid" }];
|
|
@@ -64631,12 +65192,12 @@ var init_datasetsDeleteDatapoint = __esm(() => {
|
|
|
64631
65192
|
});
|
|
64632
65193
|
|
|
64633
65194
|
// src/mcp-server/tools/datasetsDeleteDatapoint.ts
|
|
64634
|
-
var
|
|
65195
|
+
var args11, tool$datasetsDeleteDatapoint;
|
|
64635
65196
|
var init_datasetsDeleteDatapoint2 = __esm(() => {
|
|
64636
65197
|
init_datasetsDeleteDatapoint();
|
|
64637
65198
|
init_operations();
|
|
64638
65199
|
init_tools();
|
|
64639
|
-
|
|
65200
|
+
args11 = {
|
|
64640
65201
|
request: DeleteDatapointRequest$inboundSchema
|
|
64641
65202
|
};
|
|
64642
65203
|
tool$datasetsDeleteDatapoint = {
|
|
@@ -64644,9 +65205,9 @@ var init_datasetsDeleteDatapoint2 = __esm(() => {
|
|
|
64644
65205
|
description: `Delete a datapoint
|
|
64645
65206
|
|
|
64646
65207
|
Permanently deletes a specific datapoint from a dataset.`,
|
|
64647
|
-
args:
|
|
64648
|
-
tool: async (client,
|
|
64649
|
-
const [result, apiCall] = await datasetsDeleteDatapoint(client,
|
|
65208
|
+
args: args11,
|
|
65209
|
+
tool: async (client, args12, ctx) => {
|
|
65210
|
+
const [result, apiCall] = await datasetsDeleteDatapoint(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64650
65211
|
if (!result.ok) {
|
|
64651
65212
|
return {
|
|
64652
65213
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64660,9 +65221,9 @@ Permanently deletes a specific datapoint from a dataset.`,
|
|
|
64660
65221
|
|
|
64661
65222
|
// src/funcs/datasetsList.ts
|
|
64662
65223
|
function datasetsList(client, request, options) {
|
|
64663
|
-
return new APIPromise($
|
|
65224
|
+
return new APIPromise($do12(client, request, options));
|
|
64664
65225
|
}
|
|
64665
|
-
async function $
|
|
65226
|
+
async function $do12(client, request, options) {
|
|
64666
65227
|
const parsed = safeParse(request, (value) => ListDatasetsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
64667
65228
|
if (!parsed.ok) {
|
|
64668
65229
|
return [parsed, { status: "invalid" }];
|
|
@@ -64734,12 +65295,12 @@ var init_datasetsList = __esm(() => {
|
|
|
64734
65295
|
});
|
|
64735
65296
|
|
|
64736
65297
|
// src/mcp-server/tools/datasetsList.ts
|
|
64737
|
-
var
|
|
65298
|
+
var args12, tool$datasetsList;
|
|
64738
65299
|
var init_datasetsList2 = __esm(() => {
|
|
64739
65300
|
init_datasetsList();
|
|
64740
65301
|
init_operations();
|
|
64741
65302
|
init_tools();
|
|
64742
|
-
|
|
65303
|
+
args12 = {
|
|
64743
65304
|
request: ListDatasetsRequest$inboundSchema.optional()
|
|
64744
65305
|
};
|
|
64745
65306
|
tool$datasetsList = {
|
|
@@ -64747,9 +65308,9 @@ var init_datasetsList2 = __esm(() => {
|
|
|
64747
65308
|
description: `List datasets
|
|
64748
65309
|
|
|
64749
65310
|
Retrieves a paginated list of datasets for the current workspace. Results can be paginated using cursor-based pagination.`,
|
|
64750
|
-
args:
|
|
64751
|
-
tool: async (client,
|
|
64752
|
-
const [result, apiCall] = await datasetsList(client,
|
|
65311
|
+
args: args12,
|
|
65312
|
+
tool: async (client, args13, ctx) => {
|
|
65313
|
+
const [result, apiCall] = await datasetsList(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64753
65314
|
if (!result.ok) {
|
|
64754
65315
|
return {
|
|
64755
65316
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64764,9 +65325,9 @@ Retrieves a paginated list of datasets for the current workspace. Results can be
|
|
|
64764
65325
|
|
|
64765
65326
|
// src/funcs/datasetsListDatapoints.ts
|
|
64766
65327
|
function datasetsListDatapoints(client, request, options) {
|
|
64767
|
-
return new APIPromise($
|
|
65328
|
+
return new APIPromise($do13(client, request, options));
|
|
64768
65329
|
}
|
|
64769
|
-
async function $
|
|
65330
|
+
async function $do13(client, request, options) {
|
|
64770
65331
|
const parsed = safeParse(request, (value) => ListDatasetDatapointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64771
65332
|
if (!parsed.ok) {
|
|
64772
65333
|
return [parsed, { status: "invalid" }];
|
|
@@ -64844,12 +65405,12 @@ var init_datasetsListDatapoints = __esm(() => {
|
|
|
64844
65405
|
});
|
|
64845
65406
|
|
|
64846
65407
|
// src/mcp-server/tools/datasetsListDatapoints.ts
|
|
64847
|
-
var
|
|
65408
|
+
var args13, tool$datasetsListDatapoints;
|
|
64848
65409
|
var init_datasetsListDatapoints2 = __esm(() => {
|
|
64849
65410
|
init_datasetsListDatapoints();
|
|
64850
65411
|
init_operations();
|
|
64851
65412
|
init_tools();
|
|
64852
|
-
|
|
65413
|
+
args13 = {
|
|
64853
65414
|
request: ListDatasetDatapointsRequest$inboundSchema
|
|
64854
65415
|
};
|
|
64855
65416
|
tool$datasetsListDatapoints = {
|
|
@@ -64857,9 +65418,9 @@ var init_datasetsListDatapoints2 = __esm(() => {
|
|
|
64857
65418
|
description: `List datapoints
|
|
64858
65419
|
|
|
64859
65420
|
Retrieves a paginated list of datapoints from a specific dataset.`,
|
|
64860
|
-
args:
|
|
64861
|
-
tool: async (client,
|
|
64862
|
-
const [result, apiCall] = await datasetsListDatapoints(client,
|
|
65421
|
+
args: args13,
|
|
65422
|
+
tool: async (client, args14, ctx) => {
|
|
65423
|
+
const [result, apiCall] = await datasetsListDatapoints(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64863
65424
|
if (!result.ok) {
|
|
64864
65425
|
return {
|
|
64865
65426
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64874,9 +65435,9 @@ Retrieves a paginated list of datapoints from a specific dataset.`,
|
|
|
64874
65435
|
|
|
64875
65436
|
// src/funcs/datasetsRetrieve.ts
|
|
64876
65437
|
function datasetsRetrieve(client, request, options) {
|
|
64877
|
-
return new APIPromise($
|
|
65438
|
+
return new APIPromise($do14(client, request, options));
|
|
64878
65439
|
}
|
|
64879
|
-
async function $
|
|
65440
|
+
async function $do14(client, request, options) {
|
|
64880
65441
|
const parsed = safeParse(request, (value) => RetrieveDatasetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64881
65442
|
if (!parsed.ok) {
|
|
64882
65443
|
return [parsed, { status: "invalid" }];
|
|
@@ -64952,12 +65513,12 @@ var init_datasetsRetrieve = __esm(() => {
|
|
|
64952
65513
|
});
|
|
64953
65514
|
|
|
64954
65515
|
// src/mcp-server/tools/datasetsRetrieve.ts
|
|
64955
|
-
var
|
|
65516
|
+
var args14, tool$datasetsRetrieve;
|
|
64956
65517
|
var init_datasetsRetrieve2 = __esm(() => {
|
|
64957
65518
|
init_datasetsRetrieve();
|
|
64958
65519
|
init_operations();
|
|
64959
65520
|
init_tools();
|
|
64960
|
-
|
|
65521
|
+
args14 = {
|
|
64961
65522
|
request: RetrieveDatasetRequest$inboundSchema
|
|
64962
65523
|
};
|
|
64963
65524
|
tool$datasetsRetrieve = {
|
|
@@ -64965,9 +65526,9 @@ var init_datasetsRetrieve2 = __esm(() => {
|
|
|
64965
65526
|
description: `Retrieve a dataset
|
|
64966
65527
|
|
|
64967
65528
|
Retrieves a specific dataset by its unique identifier`,
|
|
64968
|
-
args:
|
|
64969
|
-
tool: async (client,
|
|
64970
|
-
const [result, apiCall] = await datasetsRetrieve(client,
|
|
65529
|
+
args: args14,
|
|
65530
|
+
tool: async (client, args15, ctx) => {
|
|
65531
|
+
const [result, apiCall] = await datasetsRetrieve(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64971
65532
|
if (!result.ok) {
|
|
64972
65533
|
return {
|
|
64973
65534
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64982,9 +65543,9 @@ Retrieves a specific dataset by its unique identifier`,
|
|
|
64982
65543
|
|
|
64983
65544
|
// src/funcs/datasetsRetrieveDatapoint.ts
|
|
64984
65545
|
function datasetsRetrieveDatapoint(client, request, options) {
|
|
64985
|
-
return new APIPromise($
|
|
65546
|
+
return new APIPromise($do15(client, request, options));
|
|
64986
65547
|
}
|
|
64987
|
-
async function $
|
|
65548
|
+
async function $do15(client, request, options) {
|
|
64988
65549
|
const parsed = safeParse(request, (value) => RetrieveDatapointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64989
65550
|
if (!parsed.ok) {
|
|
64990
65551
|
return [parsed, { status: "invalid" }];
|
|
@@ -65064,12 +65625,12 @@ var init_datasetsRetrieveDatapoint = __esm(() => {
|
|
|
65064
65625
|
});
|
|
65065
65626
|
|
|
65066
65627
|
// src/mcp-server/tools/datasetsRetrieveDatapoint.ts
|
|
65067
|
-
var
|
|
65628
|
+
var args15, tool$datasetsRetrieveDatapoint;
|
|
65068
65629
|
var init_datasetsRetrieveDatapoint2 = __esm(() => {
|
|
65069
65630
|
init_datasetsRetrieveDatapoint();
|
|
65070
65631
|
init_operations();
|
|
65071
65632
|
init_tools();
|
|
65072
|
-
|
|
65633
|
+
args15 = {
|
|
65073
65634
|
request: RetrieveDatapointRequest$inboundSchema
|
|
65074
65635
|
};
|
|
65075
65636
|
tool$datasetsRetrieveDatapoint = {
|
|
@@ -65077,9 +65638,9 @@ var init_datasetsRetrieveDatapoint2 = __esm(() => {
|
|
|
65077
65638
|
description: `Retrieve a datapoint
|
|
65078
65639
|
|
|
65079
65640
|
Retrieves a datapoint object`,
|
|
65080
|
-
args:
|
|
65081
|
-
tool: async (client,
|
|
65082
|
-
const [result, apiCall] = await datasetsRetrieveDatapoint(client,
|
|
65641
|
+
args: args15,
|
|
65642
|
+
tool: async (client, args16, ctx) => {
|
|
65643
|
+
const [result, apiCall] = await datasetsRetrieveDatapoint(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65083
65644
|
if (!result.ok) {
|
|
65084
65645
|
return {
|
|
65085
65646
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65094,9 +65655,9 @@ Retrieves a datapoint object`,
|
|
|
65094
65655
|
|
|
65095
65656
|
// src/funcs/datasetsUpdate.ts
|
|
65096
65657
|
function datasetsUpdate(client, request, options) {
|
|
65097
|
-
return new APIPromise($
|
|
65658
|
+
return new APIPromise($do16(client, request, options));
|
|
65098
65659
|
}
|
|
65099
|
-
async function $
|
|
65660
|
+
async function $do16(client, request, options) {
|
|
65100
65661
|
const parsed = safeParse(request, (value) => UpdateDatasetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65101
65662
|
if (!parsed.ok) {
|
|
65102
65663
|
return [parsed, { status: "invalid" }];
|
|
@@ -65173,12 +65734,12 @@ var init_datasetsUpdate = __esm(() => {
|
|
|
65173
65734
|
});
|
|
65174
65735
|
|
|
65175
65736
|
// src/mcp-server/tools/datasetsUpdate.ts
|
|
65176
|
-
var
|
|
65737
|
+
var args16, tool$datasetsUpdate;
|
|
65177
65738
|
var init_datasetsUpdate2 = __esm(() => {
|
|
65178
65739
|
init_datasetsUpdate();
|
|
65179
65740
|
init_operations();
|
|
65180
65741
|
init_tools();
|
|
65181
|
-
|
|
65742
|
+
args16 = {
|
|
65182
65743
|
request: UpdateDatasetRequest$inboundSchema
|
|
65183
65744
|
};
|
|
65184
65745
|
tool$datasetsUpdate = {
|
|
@@ -65186,9 +65747,9 @@ var init_datasetsUpdate2 = __esm(() => {
|
|
|
65186
65747
|
description: `Update a dataset
|
|
65187
65748
|
|
|
65188
65749
|
Update a dataset`,
|
|
65189
|
-
args:
|
|
65190
|
-
tool: async (client,
|
|
65191
|
-
const [result, apiCall] = await datasetsUpdate(client,
|
|
65750
|
+
args: args16,
|
|
65751
|
+
tool: async (client, args17, ctx) => {
|
|
65752
|
+
const [result, apiCall] = await datasetsUpdate(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65192
65753
|
if (!result.ok) {
|
|
65193
65754
|
return {
|
|
65194
65755
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65203,9 +65764,9 @@ Update a dataset`,
|
|
|
65203
65764
|
|
|
65204
65765
|
// src/funcs/datasetsUpdateDatapoint.ts
|
|
65205
65766
|
function datasetsUpdateDatapoint(client, request, options) {
|
|
65206
|
-
return new APIPromise($
|
|
65767
|
+
return new APIPromise($do17(client, request, options));
|
|
65207
65768
|
}
|
|
65208
|
-
async function $
|
|
65769
|
+
async function $do17(client, request, options) {
|
|
65209
65770
|
const parsed = safeParse(request, (value) => UpdateDatapointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65210
65771
|
if (!parsed.ok) {
|
|
65211
65772
|
return [parsed, { status: "invalid" }];
|
|
@@ -65286,20 +65847,20 @@ var init_datasetsUpdateDatapoint = __esm(() => {
|
|
|
65286
65847
|
});
|
|
65287
65848
|
|
|
65288
65849
|
// src/mcp-server/tools/datasetsUpdateDatapoint.ts
|
|
65289
|
-
var
|
|
65850
|
+
var args17, tool$datasetsUpdateDatapoint;
|
|
65290
65851
|
var init_datasetsUpdateDatapoint2 = __esm(() => {
|
|
65291
65852
|
init_datasetsUpdateDatapoint();
|
|
65292
65853
|
init_operations();
|
|
65293
65854
|
init_tools();
|
|
65294
|
-
|
|
65855
|
+
args17 = {
|
|
65295
65856
|
request: UpdateDatapointRequest$inboundSchema
|
|
65296
65857
|
};
|
|
65297
65858
|
tool$datasetsUpdateDatapoint = {
|
|
65298
65859
|
name: "datasets-update-datapoint",
|
|
65299
65860
|
description: `Update a datapoint`,
|
|
65300
|
-
args:
|
|
65301
|
-
tool: async (client,
|
|
65302
|
-
const [result, apiCall] = await datasetsUpdateDatapoint(client,
|
|
65861
|
+
args: args17,
|
|
65862
|
+
tool: async (client, args18, ctx) => {
|
|
65863
|
+
const [result, apiCall] = await datasetsUpdateDatapoint(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65303
65864
|
if (!result.ok) {
|
|
65304
65865
|
return {
|
|
65305
65866
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65314,9 +65875,9 @@ var init_datasetsUpdateDatapoint2 = __esm(() => {
|
|
|
65314
65875
|
|
|
65315
65876
|
// src/funcs/deploymentsGetConfig.ts
|
|
65316
65877
|
function deploymentsGetConfig(client, request, options) {
|
|
65317
|
-
return new APIPromise($
|
|
65878
|
+
return new APIPromise($do18(client, request, options));
|
|
65318
65879
|
}
|
|
65319
|
-
async function $
|
|
65880
|
+
async function $do18(client, request, options) {
|
|
65320
65881
|
const parsed = safeParse(request, (value) => DeploymentGetConfigRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
65321
65882
|
if (!parsed.ok) {
|
|
65322
65883
|
return [parsed, { status: "invalid" }];
|
|
@@ -65383,12 +65944,12 @@ var init_deploymentsGetConfig = __esm(() => {
|
|
|
65383
65944
|
});
|
|
65384
65945
|
|
|
65385
65946
|
// src/mcp-server/tools/deploymentsGetConfig.ts
|
|
65386
|
-
var
|
|
65947
|
+
var args18, tool$deploymentsGetConfig;
|
|
65387
65948
|
var init_deploymentsGetConfig2 = __esm(() => {
|
|
65388
65949
|
init_deploymentsGetConfig();
|
|
65389
65950
|
init_operations();
|
|
65390
65951
|
init_tools();
|
|
65391
|
-
|
|
65952
|
+
args18 = {
|
|
65392
65953
|
request: DeploymentGetConfigRequestBody$inboundSchema
|
|
65393
65954
|
};
|
|
65394
65955
|
tool$deploymentsGetConfig = {
|
|
@@ -65396,9 +65957,9 @@ var init_deploymentsGetConfig2 = __esm(() => {
|
|
|
65396
65957
|
description: `Get config
|
|
65397
65958
|
|
|
65398
65959
|
Retrieve the deployment configuration`,
|
|
65399
|
-
args:
|
|
65400
|
-
tool: async (client,
|
|
65401
|
-
const [result, apiCall] = await deploymentsGetConfig(client,
|
|
65960
|
+
args: args18,
|
|
65961
|
+
tool: async (client, args19, ctx) => {
|
|
65962
|
+
const [result, apiCall] = await deploymentsGetConfig(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65402
65963
|
if (!result.ok) {
|
|
65403
65964
|
return {
|
|
65404
65965
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67193,9 +67754,9 @@ var init_components = __esm(() => {
|
|
|
67193
67754
|
|
|
67194
67755
|
// src/funcs/deploymentsInvoke.ts
|
|
67195
67756
|
function deploymentsInvoke(client, request, options) {
|
|
67196
|
-
return new APIPromise($
|
|
67757
|
+
return new APIPromise($do19(client, request, options));
|
|
67197
67758
|
}
|
|
67198
|
-
async function $
|
|
67759
|
+
async function $do19(client, request, options) {
|
|
67199
67760
|
const parsed = safeParse(request, (value) => Deployments$outboundSchema.parse(value), "Input validation failed");
|
|
67200
67761
|
if (!parsed.ok) {
|
|
67201
67762
|
return [parsed, { status: "invalid" }];
|
|
@@ -67271,12 +67832,12 @@ var init_deploymentsInvoke = __esm(() => {
|
|
|
67271
67832
|
});
|
|
67272
67833
|
|
|
67273
67834
|
// src/mcp-server/tools/deploymentsInvoke.ts
|
|
67274
|
-
var
|
|
67835
|
+
var args19, tool$deploymentsInvoke;
|
|
67275
67836
|
var init_deploymentsInvoke2 = __esm(() => {
|
|
67276
67837
|
init_deploymentsInvoke();
|
|
67277
67838
|
init_components();
|
|
67278
67839
|
init_tools();
|
|
67279
|
-
|
|
67840
|
+
args19 = {
|
|
67280
67841
|
request: Deployments$inboundSchema
|
|
67281
67842
|
};
|
|
67282
67843
|
tool$deploymentsInvoke = {
|
|
@@ -67284,9 +67845,9 @@ var init_deploymentsInvoke2 = __esm(() => {
|
|
|
67284
67845
|
description: `Invoke
|
|
67285
67846
|
|
|
67286
67847
|
Invoke a deployment with a given payload`,
|
|
67287
|
-
args:
|
|
67288
|
-
tool: async (client,
|
|
67289
|
-
const [result, apiCall] = await deploymentsInvoke(client,
|
|
67848
|
+
args: args19,
|
|
67849
|
+
tool: async (client, args20, ctx) => {
|
|
67850
|
+
const [result, apiCall] = await deploymentsInvoke(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67290
67851
|
if (!result.ok) {
|
|
67291
67852
|
return {
|
|
67292
67853
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67301,9 +67862,9 @@ Invoke a deployment with a given payload`,
|
|
|
67301
67862
|
|
|
67302
67863
|
// src/funcs/deploymentsList.ts
|
|
67303
67864
|
function deploymentsList(client, request, options) {
|
|
67304
|
-
return new APIPromise($
|
|
67865
|
+
return new APIPromise($do20(client, request, options));
|
|
67305
67866
|
}
|
|
67306
|
-
async function $
|
|
67867
|
+
async function $do20(client, request, options) {
|
|
67307
67868
|
const parsed = safeParse(request, (value) => DeploymentsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
67308
67869
|
if (!parsed.ok) {
|
|
67309
67870
|
return [parsed, { status: "invalid" }];
|
|
@@ -67379,12 +67940,12 @@ var init_deploymentsList = __esm(() => {
|
|
|
67379
67940
|
});
|
|
67380
67941
|
|
|
67381
67942
|
// src/mcp-server/tools/deploymentsList.ts
|
|
67382
|
-
var
|
|
67943
|
+
var args20, tool$deploymentsList;
|
|
67383
67944
|
var init_deploymentsList2 = __esm(() => {
|
|
67384
67945
|
init_deploymentsList();
|
|
67385
67946
|
init_operations();
|
|
67386
67947
|
init_tools();
|
|
67387
|
-
|
|
67948
|
+
args20 = {
|
|
67388
67949
|
request: DeploymentsRequest$inboundSchema.optional()
|
|
67389
67950
|
};
|
|
67390
67951
|
tool$deploymentsList = {
|
|
@@ -67392,9 +67953,9 @@ var init_deploymentsList2 = __esm(() => {
|
|
|
67392
67953
|
description: `List all deployments
|
|
67393
67954
|
|
|
67394
67955
|
Returns a list of your deployments. The deployments are returned sorted by creation date, with the most recent deployments appearing first.`,
|
|
67395
|
-
args:
|
|
67396
|
-
tool: async (client,
|
|
67397
|
-
const [result, apiCall] = await deploymentsList(client,
|
|
67956
|
+
args: args20,
|
|
67957
|
+
tool: async (client, args21, ctx) => {
|
|
67958
|
+
const [result, apiCall] = await deploymentsList(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67398
67959
|
if (!result.ok) {
|
|
67399
67960
|
return {
|
|
67400
67961
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67409,9 +67970,9 @@ Returns a list of your deployments. The deployments are returned sorted by creat
|
|
|
67409
67970
|
|
|
67410
67971
|
// src/funcs/deploymentsMetricsCreate.ts
|
|
67411
67972
|
function deploymentsMetricsCreate(client, request, options) {
|
|
67412
|
-
return new APIPromise($
|
|
67973
|
+
return new APIPromise($do21(client, request, options));
|
|
67413
67974
|
}
|
|
67414
|
-
async function $
|
|
67975
|
+
async function $do21(client, request, options) {
|
|
67415
67976
|
const parsed = safeParse(request, (value) => DeploymentCreateMetricRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67416
67977
|
if (!parsed.ok) {
|
|
67417
67978
|
return [parsed, { status: "invalid" }];
|
|
@@ -67484,12 +68045,12 @@ var init_deploymentsMetricsCreate = __esm(() => {
|
|
|
67484
68045
|
});
|
|
67485
68046
|
|
|
67486
68047
|
// src/mcp-server/tools/deploymentsMetricsCreate.ts
|
|
67487
|
-
var
|
|
68048
|
+
var args21, tool$deploymentsMetricsCreate;
|
|
67488
68049
|
var init_deploymentsMetricsCreate2 = __esm(() => {
|
|
67489
68050
|
init_deploymentsMetricsCreate();
|
|
67490
68051
|
init_operations();
|
|
67491
68052
|
init_tools();
|
|
67492
|
-
|
|
68053
|
+
args21 = {
|
|
67493
68054
|
request: DeploymentCreateMetricRequest$inboundSchema
|
|
67494
68055
|
};
|
|
67495
68056
|
tool$deploymentsMetricsCreate = {
|
|
@@ -67497,9 +68058,9 @@ var init_deploymentsMetricsCreate2 = __esm(() => {
|
|
|
67497
68058
|
description: `Add metrics
|
|
67498
68059
|
|
|
67499
68060
|
Add metrics to a deployment`,
|
|
67500
|
-
args:
|
|
67501
|
-
tool: async (client,
|
|
67502
|
-
const [result, apiCall] = await deploymentsMetricsCreate(client,
|
|
68061
|
+
args: args21,
|
|
68062
|
+
tool: async (client, args22, ctx) => {
|
|
68063
|
+
const [result, apiCall] = await deploymentsMetricsCreate(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67503
68064
|
if (!result.ok) {
|
|
67504
68065
|
return {
|
|
67505
68066
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67546,7 +68107,7 @@ function* chunks(remainder) {
|
|
|
67546
68107
|
yield { chunk, remainder };
|
|
67547
68108
|
}
|
|
67548
68109
|
}
|
|
67549
|
-
function parseChunk(chunk,
|
|
68110
|
+
function parseChunk(chunk, parse2) {
|
|
67550
68111
|
const text = new TextDecoder().decode(chunk);
|
|
67551
68112
|
const lines = text.split(/\r\n|\r|\n/);
|
|
67552
68113
|
const dataLines = [];
|
|
@@ -67576,12 +68137,12 @@ function parseChunk(chunk, parse) {
|
|
|
67576
68137
|
if (dataLines.length)
|
|
67577
68138
|
ret.data = dataLines.join(`
|
|
67578
68139
|
`);
|
|
67579
|
-
return
|
|
68140
|
+
return parse2(ret);
|
|
67580
68141
|
}
|
|
67581
68142
|
var EventStream;
|
|
67582
68143
|
var init_event_streams = __esm(() => {
|
|
67583
68144
|
EventStream = class EventStream extends ReadableStream {
|
|
67584
|
-
constructor(stream,
|
|
68145
|
+
constructor(stream, parse2) {
|
|
67585
68146
|
const reader = stream.getReader();
|
|
67586
68147
|
let buffer = new Uint8Array;
|
|
67587
68148
|
super({
|
|
@@ -67593,7 +68154,7 @@ var init_event_streams = __esm(() => {
|
|
|
67593
68154
|
buffer = concatBuffer(buffer, r.value);
|
|
67594
68155
|
for (const { chunk, remainder } of chunks(buffer)) {
|
|
67595
68156
|
buffer = remainder;
|
|
67596
|
-
const item = parseChunk(chunk,
|
|
68157
|
+
const item = parseChunk(chunk, parse2);
|
|
67597
68158
|
if (item?.value)
|
|
67598
68159
|
controller.enqueue(item.value);
|
|
67599
68160
|
if (item?.done) {
|
|
@@ -67643,9 +68204,9 @@ var init_event_streams = __esm(() => {
|
|
|
67643
68204
|
|
|
67644
68205
|
// src/funcs/deploymentsStream.ts
|
|
67645
68206
|
function deploymentsStream(client, request, options) {
|
|
67646
|
-
return new APIPromise($
|
|
68207
|
+
return new APIPromise($do22(client, request, options));
|
|
67647
68208
|
}
|
|
67648
|
-
async function $
|
|
68209
|
+
async function $do22(client, request, options) {
|
|
67649
68210
|
const parsed = safeParse(request, (value) => DeploymentStreamRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
67650
68211
|
if (!parsed.ok) {
|
|
67651
68212
|
return [parsed, { status: "invalid" }];
|
|
@@ -67730,12 +68291,12 @@ var init_deploymentsStream = __esm(() => {
|
|
|
67730
68291
|
});
|
|
67731
68292
|
|
|
67732
68293
|
// src/mcp-server/tools/deploymentsStream.ts
|
|
67733
|
-
var
|
|
68294
|
+
var args22, tool$deploymentsStream;
|
|
67734
68295
|
var init_deploymentsStream2 = __esm(() => {
|
|
67735
68296
|
init_deploymentsStream();
|
|
67736
68297
|
init_operations();
|
|
67737
68298
|
init_tools();
|
|
67738
|
-
|
|
68299
|
+
args22 = {
|
|
67739
68300
|
request: DeploymentStreamRequestBody$inboundSchema
|
|
67740
68301
|
};
|
|
67741
68302
|
tool$deploymentsStream = {
|
|
@@ -67743,9 +68304,9 @@ var init_deploymentsStream2 = __esm(() => {
|
|
|
67743
68304
|
description: `Stream
|
|
67744
68305
|
|
|
67745
68306
|
Stream deployment generation. Only supported for completions and chat completions.`,
|
|
67746
|
-
args:
|
|
67747
|
-
tool: async (client,
|
|
67748
|
-
const [result, apiCall] = await deploymentsStream(client,
|
|
68307
|
+
args: args22,
|
|
68308
|
+
tool: async (client, args23, ctx) => {
|
|
68309
|
+
const [result, apiCall] = await deploymentsStream(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67749
68310
|
if (!result.ok) {
|
|
67750
68311
|
return {
|
|
67751
68312
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67760,9 +68321,9 @@ Stream deployment generation. Only supported for completions and chat completion
|
|
|
67760
68321
|
|
|
67761
68322
|
// src/funcs/evalsAgeAppropriate.ts
|
|
67762
68323
|
function evalsAgeAppropriate(client, request, options) {
|
|
67763
|
-
return new APIPromise($
|
|
68324
|
+
return new APIPromise($do23(client, request, options));
|
|
67764
68325
|
}
|
|
67765
|
-
async function $
|
|
68326
|
+
async function $do23(client, request, options) {
|
|
67766
68327
|
const parsed = safeParse(request, (value) => EvalsAgeAppropriateRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
67767
68328
|
if (!parsed.ok) {
|
|
67768
68329
|
return [parsed, { status: "invalid" }];
|
|
@@ -67833,20 +68394,20 @@ var init_evalsAgeAppropriate = __esm(() => {
|
|
|
67833
68394
|
});
|
|
67834
68395
|
|
|
67835
68396
|
// src/mcp-server/tools/evalsAgeAppropriate.ts
|
|
67836
|
-
var
|
|
68397
|
+
var args23, tool$evalsAgeAppropriate;
|
|
67837
68398
|
var init_evalsAgeAppropriate2 = __esm(() => {
|
|
67838
68399
|
init_evalsAgeAppropriate();
|
|
67839
68400
|
init_operations();
|
|
67840
68401
|
init_tools();
|
|
67841
|
-
|
|
68402
|
+
args23 = {
|
|
67842
68403
|
request: EvalsAgeAppropriateRequestBody$inboundSchema.optional()
|
|
67843
68404
|
};
|
|
67844
68405
|
tool$evalsAgeAppropriate = {
|
|
67845
68406
|
name: "evals-age-appropriate",
|
|
67846
68407
|
description: `Run Age Appropriate Evaluator`,
|
|
67847
|
-
args:
|
|
67848
|
-
tool: async (client,
|
|
67849
|
-
const [result, apiCall] = await evalsAgeAppropriate(client,
|
|
68408
|
+
args: args23,
|
|
68409
|
+
tool: async (client, args24, ctx) => {
|
|
68410
|
+
const [result, apiCall] = await evalsAgeAppropriate(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67850
68411
|
if (!result.ok) {
|
|
67851
68412
|
return {
|
|
67852
68413
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67861,9 +68422,9 @@ var init_evalsAgeAppropriate2 = __esm(() => {
|
|
|
67861
68422
|
|
|
67862
68423
|
// src/funcs/evalsAll.ts
|
|
67863
68424
|
function evalsAll(client, request, options) {
|
|
67864
|
-
return new APIPromise($
|
|
68425
|
+
return new APIPromise($do24(client, request, options));
|
|
67865
68426
|
}
|
|
67866
|
-
async function $
|
|
68427
|
+
async function $do24(client, request, options) {
|
|
67867
68428
|
const parsed = safeParse(request, (value) => GetEvalsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
67868
68429
|
if (!parsed.ok) {
|
|
67869
68430
|
return [parsed, { status: "invalid" }];
|
|
@@ -67939,20 +68500,20 @@ var init_evalsAll = __esm(() => {
|
|
|
67939
68500
|
});
|
|
67940
68501
|
|
|
67941
68502
|
// src/mcp-server/tools/evalsAll.ts
|
|
67942
|
-
var
|
|
68503
|
+
var args24, tool$evalsAll;
|
|
67943
68504
|
var init_evalsAll2 = __esm(() => {
|
|
67944
68505
|
init_evalsAll();
|
|
67945
68506
|
init_operations();
|
|
67946
68507
|
init_tools();
|
|
67947
|
-
|
|
68508
|
+
args24 = {
|
|
67948
68509
|
request: GetEvalsRequest$inboundSchema.optional()
|
|
67949
68510
|
};
|
|
67950
68511
|
tool$evalsAll = {
|
|
67951
68512
|
name: "evals-all",
|
|
67952
68513
|
description: `Get all Evaluators`,
|
|
67953
|
-
args:
|
|
67954
|
-
tool: async (client,
|
|
67955
|
-
const [result, apiCall] = await evalsAll(client,
|
|
68514
|
+
args: args24,
|
|
68515
|
+
tool: async (client, args25, ctx) => {
|
|
68516
|
+
const [result, apiCall] = await evalsAll(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67956
68517
|
if (!result.ok) {
|
|
67957
68518
|
return {
|
|
67958
68519
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -67967,9 +68528,9 @@ var init_evalsAll2 = __esm(() => {
|
|
|
67967
68528
|
|
|
67968
68529
|
// src/funcs/evalsBertScore.ts
|
|
67969
68530
|
function evalsBertScore(client, request, options) {
|
|
67970
|
-
return new APIPromise($
|
|
68531
|
+
return new APIPromise($do25(client, request, options));
|
|
67971
68532
|
}
|
|
67972
|
-
async function $
|
|
68533
|
+
async function $do25(client, request, options) {
|
|
67973
68534
|
const parsed = safeParse(request, (value) => EvalsBertScoreRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
67974
68535
|
if (!parsed.ok) {
|
|
67975
68536
|
return [parsed, { status: "invalid" }];
|
|
@@ -68040,20 +68601,20 @@ var init_evalsBertScore = __esm(() => {
|
|
|
68040
68601
|
});
|
|
68041
68602
|
|
|
68042
68603
|
// src/mcp-server/tools/evalsBertScore.ts
|
|
68043
|
-
var
|
|
68604
|
+
var args25, tool$evalsBertScore;
|
|
68044
68605
|
var init_evalsBertScore2 = __esm(() => {
|
|
68045
68606
|
init_evalsBertScore();
|
|
68046
68607
|
init_operations();
|
|
68047
68608
|
init_tools();
|
|
68048
|
-
|
|
68609
|
+
args25 = {
|
|
68049
68610
|
request: EvalsBertScoreRequestBody$inboundSchema.optional()
|
|
68050
68611
|
};
|
|
68051
68612
|
tool$evalsBertScore = {
|
|
68052
68613
|
name: "evals-bert-score",
|
|
68053
68614
|
description: `Run BertScore Evaluator`,
|
|
68054
|
-
args:
|
|
68055
|
-
tool: async (client,
|
|
68056
|
-
const [result, apiCall] = await evalsBertScore(client,
|
|
68615
|
+
args: args25,
|
|
68616
|
+
tool: async (client, args26, ctx) => {
|
|
68617
|
+
const [result, apiCall] = await evalsBertScore(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68057
68618
|
if (!result.ok) {
|
|
68058
68619
|
return {
|
|
68059
68620
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68068,9 +68629,9 @@ var init_evalsBertScore2 = __esm(() => {
|
|
|
68068
68629
|
|
|
68069
68630
|
// src/funcs/evalsBleuScore.ts
|
|
68070
68631
|
function evalsBleuScore(client, request, options) {
|
|
68071
|
-
return new APIPromise($
|
|
68632
|
+
return new APIPromise($do26(client, request, options));
|
|
68072
68633
|
}
|
|
68073
|
-
async function $
|
|
68634
|
+
async function $do26(client, request, options) {
|
|
68074
68635
|
const parsed = safeParse(request, (value) => EvalsBleuScoreRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68075
68636
|
if (!parsed.ok) {
|
|
68076
68637
|
return [parsed, { status: "invalid" }];
|
|
@@ -68141,20 +68702,20 @@ var init_evalsBleuScore = __esm(() => {
|
|
|
68141
68702
|
});
|
|
68142
68703
|
|
|
68143
68704
|
// src/mcp-server/tools/evalsBleuScore.ts
|
|
68144
|
-
var
|
|
68705
|
+
var args26, tool$evalsBleuScore;
|
|
68145
68706
|
var init_evalsBleuScore2 = __esm(() => {
|
|
68146
68707
|
init_evalsBleuScore();
|
|
68147
68708
|
init_operations();
|
|
68148
68709
|
init_tools();
|
|
68149
|
-
|
|
68710
|
+
args26 = {
|
|
68150
68711
|
request: EvalsBleuScoreRequestBody$inboundSchema.optional()
|
|
68151
68712
|
};
|
|
68152
68713
|
tool$evalsBleuScore = {
|
|
68153
68714
|
name: "evals-bleu-score",
|
|
68154
68715
|
description: `Run BLEU Score Evaluator`,
|
|
68155
|
-
args:
|
|
68156
|
-
tool: async (client,
|
|
68157
|
-
const [result, apiCall] = await evalsBleuScore(client,
|
|
68716
|
+
args: args26,
|
|
68717
|
+
tool: async (client, args27, ctx) => {
|
|
68718
|
+
const [result, apiCall] = await evalsBleuScore(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68158
68719
|
if (!result.ok) {
|
|
68159
68720
|
return {
|
|
68160
68721
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68169,9 +68730,9 @@ var init_evalsBleuScore2 = __esm(() => {
|
|
|
68169
68730
|
|
|
68170
68731
|
// src/funcs/evalsBotDetection.ts
|
|
68171
68732
|
function evalsBotDetection(client, request, options) {
|
|
68172
|
-
return new APIPromise($
|
|
68733
|
+
return new APIPromise($do27(client, request, options));
|
|
68173
68734
|
}
|
|
68174
|
-
async function $
|
|
68735
|
+
async function $do27(client, request, options) {
|
|
68175
68736
|
const parsed = safeParse(request, (value) => EvalsBotDetectionRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68176
68737
|
if (!parsed.ok) {
|
|
68177
68738
|
return [parsed, { status: "invalid" }];
|
|
@@ -68242,20 +68803,20 @@ var init_evalsBotDetection = __esm(() => {
|
|
|
68242
68803
|
});
|
|
68243
68804
|
|
|
68244
68805
|
// src/mcp-server/tools/evalsBotDetection.ts
|
|
68245
|
-
var
|
|
68806
|
+
var args27, tool$evalsBotDetection;
|
|
68246
68807
|
var init_evalsBotDetection2 = __esm(() => {
|
|
68247
68808
|
init_evalsBotDetection();
|
|
68248
68809
|
init_operations();
|
|
68249
68810
|
init_tools();
|
|
68250
|
-
|
|
68811
|
+
args27 = {
|
|
68251
68812
|
request: EvalsBotDetectionRequestBody$inboundSchema.optional()
|
|
68252
68813
|
};
|
|
68253
68814
|
tool$evalsBotDetection = {
|
|
68254
68815
|
name: "evals-bot-detection",
|
|
68255
68816
|
description: `Run Bot Detection Evaluator`,
|
|
68256
|
-
args:
|
|
68257
|
-
tool: async (client,
|
|
68258
|
-
const [result, apiCall] = await evalsBotDetection(client,
|
|
68817
|
+
args: args27,
|
|
68818
|
+
tool: async (client, args28, ctx) => {
|
|
68819
|
+
const [result, apiCall] = await evalsBotDetection(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68259
68820
|
if (!result.ok) {
|
|
68260
68821
|
return {
|
|
68261
68822
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68270,9 +68831,9 @@ var init_evalsBotDetection2 = __esm(() => {
|
|
|
68270
68831
|
|
|
68271
68832
|
// src/funcs/evalsContains.ts
|
|
68272
68833
|
function evalsContains(client, request, options) {
|
|
68273
|
-
return new APIPromise($
|
|
68834
|
+
return new APIPromise($do28(client, request, options));
|
|
68274
68835
|
}
|
|
68275
|
-
async function $
|
|
68836
|
+
async function $do28(client, request, options) {
|
|
68276
68837
|
const parsed = safeParse(request, (value) => EvalsContainsRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68277
68838
|
if (!parsed.ok) {
|
|
68278
68839
|
return [parsed, { status: "invalid" }];
|
|
@@ -68343,20 +68904,20 @@ var init_evalsContains = __esm(() => {
|
|
|
68343
68904
|
});
|
|
68344
68905
|
|
|
68345
68906
|
// src/mcp-server/tools/evalsContains.ts
|
|
68346
|
-
var
|
|
68907
|
+
var args28, tool$evalsContains;
|
|
68347
68908
|
var init_evalsContains2 = __esm(() => {
|
|
68348
68909
|
init_evalsContains();
|
|
68349
68910
|
init_operations();
|
|
68350
68911
|
init_tools();
|
|
68351
|
-
|
|
68912
|
+
args28 = {
|
|
68352
68913
|
request: EvalsContainsRequestBody$inboundSchema.optional()
|
|
68353
68914
|
};
|
|
68354
68915
|
tool$evalsContains = {
|
|
68355
68916
|
name: "evals-contains",
|
|
68356
68917
|
description: `Run Contains Evaluator`,
|
|
68357
|
-
args:
|
|
68358
|
-
tool: async (client,
|
|
68359
|
-
const [result, apiCall] = await evalsContains(client,
|
|
68918
|
+
args: args28,
|
|
68919
|
+
tool: async (client, args29, ctx) => {
|
|
68920
|
+
const [result, apiCall] = await evalsContains(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68360
68921
|
if (!result.ok) {
|
|
68361
68922
|
return {
|
|
68362
68923
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68371,9 +68932,9 @@ var init_evalsContains2 = __esm(() => {
|
|
|
68371
68932
|
|
|
68372
68933
|
// src/funcs/evalsContainsAll.ts
|
|
68373
68934
|
function evalsContainsAll(client, request, options) {
|
|
68374
|
-
return new APIPromise($
|
|
68935
|
+
return new APIPromise($do29(client, request, options));
|
|
68375
68936
|
}
|
|
68376
|
-
async function $
|
|
68937
|
+
async function $do29(client, request, options) {
|
|
68377
68938
|
const parsed = safeParse(request, (value) => EvalsContainsAllRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68378
68939
|
if (!parsed.ok) {
|
|
68379
68940
|
return [parsed, { status: "invalid" }];
|
|
@@ -68444,20 +69005,20 @@ var init_evalsContainsAll = __esm(() => {
|
|
|
68444
69005
|
});
|
|
68445
69006
|
|
|
68446
69007
|
// src/mcp-server/tools/evalsContainsAll.ts
|
|
68447
|
-
var
|
|
69008
|
+
var args29, tool$evalsContainsAll;
|
|
68448
69009
|
var init_evalsContainsAll2 = __esm(() => {
|
|
68449
69010
|
init_evalsContainsAll();
|
|
68450
69011
|
init_operations();
|
|
68451
69012
|
init_tools();
|
|
68452
|
-
|
|
69013
|
+
args29 = {
|
|
68453
69014
|
request: EvalsContainsAllRequestBody$inboundSchema.optional()
|
|
68454
69015
|
};
|
|
68455
69016
|
tool$evalsContainsAll = {
|
|
68456
69017
|
name: "evals-contains-all",
|
|
68457
69018
|
description: `Run Contains All Evaluator`,
|
|
68458
|
-
args:
|
|
68459
|
-
tool: async (client,
|
|
68460
|
-
const [result, apiCall] = await evalsContainsAll(client,
|
|
69019
|
+
args: args29,
|
|
69020
|
+
tool: async (client, args30, ctx) => {
|
|
69021
|
+
const [result, apiCall] = await evalsContainsAll(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68461
69022
|
if (!result.ok) {
|
|
68462
69023
|
return {
|
|
68463
69024
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68472,9 +69033,9 @@ var init_evalsContainsAll2 = __esm(() => {
|
|
|
68472
69033
|
|
|
68473
69034
|
// src/funcs/evalsContainsAny.ts
|
|
68474
69035
|
function evalsContainsAny(client, request, options) {
|
|
68475
|
-
return new APIPromise($
|
|
69036
|
+
return new APIPromise($do30(client, request, options));
|
|
68476
69037
|
}
|
|
68477
|
-
async function $
|
|
69038
|
+
async function $do30(client, request, options) {
|
|
68478
69039
|
const parsed = safeParse(request, (value) => EvalsContainsAnyRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68479
69040
|
if (!parsed.ok) {
|
|
68480
69041
|
return [parsed, { status: "invalid" }];
|
|
@@ -68545,20 +69106,20 @@ var init_evalsContainsAny = __esm(() => {
|
|
|
68545
69106
|
});
|
|
68546
69107
|
|
|
68547
69108
|
// src/mcp-server/tools/evalsContainsAny.ts
|
|
68548
|
-
var
|
|
69109
|
+
var args30, tool$evalsContainsAny;
|
|
68549
69110
|
var init_evalsContainsAny2 = __esm(() => {
|
|
68550
69111
|
init_evalsContainsAny();
|
|
68551
69112
|
init_operations();
|
|
68552
69113
|
init_tools();
|
|
68553
|
-
|
|
69114
|
+
args30 = {
|
|
68554
69115
|
request: EvalsContainsAnyRequestBody$inboundSchema.optional()
|
|
68555
69116
|
};
|
|
68556
69117
|
tool$evalsContainsAny = {
|
|
68557
69118
|
name: "evals-contains-any",
|
|
68558
69119
|
description: `Run Contains Any Evaluator`,
|
|
68559
|
-
args:
|
|
68560
|
-
tool: async (client,
|
|
68561
|
-
const [result, apiCall] = await evalsContainsAny(client,
|
|
69120
|
+
args: args30,
|
|
69121
|
+
tool: async (client, args31, ctx) => {
|
|
69122
|
+
const [result, apiCall] = await evalsContainsAny(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68562
69123
|
if (!result.ok) {
|
|
68563
69124
|
return {
|
|
68564
69125
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68573,9 +69134,9 @@ var init_evalsContainsAny2 = __esm(() => {
|
|
|
68573
69134
|
|
|
68574
69135
|
// src/funcs/evalsContainsEmail.ts
|
|
68575
69136
|
function evalsContainsEmail(client, request, options) {
|
|
68576
|
-
return new APIPromise($
|
|
69137
|
+
return new APIPromise($do31(client, request, options));
|
|
68577
69138
|
}
|
|
68578
|
-
async function $
|
|
69139
|
+
async function $do31(client, request, options) {
|
|
68579
69140
|
const parsed = safeParse(request, (value) => EvalsContainsEmailRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68580
69141
|
if (!parsed.ok) {
|
|
68581
69142
|
return [parsed, { status: "invalid" }];
|
|
@@ -68646,20 +69207,20 @@ var init_evalsContainsEmail = __esm(() => {
|
|
|
68646
69207
|
});
|
|
68647
69208
|
|
|
68648
69209
|
// src/mcp-server/tools/evalsContainsEmail.ts
|
|
68649
|
-
var
|
|
69210
|
+
var args31, tool$evalsContainsEmail;
|
|
68650
69211
|
var init_evalsContainsEmail2 = __esm(() => {
|
|
68651
69212
|
init_evalsContainsEmail();
|
|
68652
69213
|
init_operations();
|
|
68653
69214
|
init_tools();
|
|
68654
|
-
|
|
69215
|
+
args31 = {
|
|
68655
69216
|
request: EvalsContainsEmailRequestBody$inboundSchema.optional()
|
|
68656
69217
|
};
|
|
68657
69218
|
tool$evalsContainsEmail = {
|
|
68658
69219
|
name: "evals-contains-email",
|
|
68659
69220
|
description: `Run Contains Email Evaluator`,
|
|
68660
|
-
args:
|
|
68661
|
-
tool: async (client,
|
|
68662
|
-
const [result, apiCall] = await evalsContainsEmail(client,
|
|
69221
|
+
args: args31,
|
|
69222
|
+
tool: async (client, args32, ctx) => {
|
|
69223
|
+
const [result, apiCall] = await evalsContainsEmail(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68663
69224
|
if (!result.ok) {
|
|
68664
69225
|
return {
|
|
68665
69226
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68674,9 +69235,9 @@ var init_evalsContainsEmail2 = __esm(() => {
|
|
|
68674
69235
|
|
|
68675
69236
|
// src/funcs/evalsContainsNone.ts
|
|
68676
69237
|
function evalsContainsNone(client, request, options) {
|
|
68677
|
-
return new APIPromise($
|
|
69238
|
+
return new APIPromise($do32(client, request, options));
|
|
68678
69239
|
}
|
|
68679
|
-
async function $
|
|
69240
|
+
async function $do32(client, request, options) {
|
|
68680
69241
|
const parsed = safeParse(request, (value) => EvalsContainsNoneRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68681
69242
|
if (!parsed.ok) {
|
|
68682
69243
|
return [parsed, { status: "invalid" }];
|
|
@@ -68747,20 +69308,20 @@ var init_evalsContainsNone = __esm(() => {
|
|
|
68747
69308
|
});
|
|
68748
69309
|
|
|
68749
69310
|
// src/mcp-server/tools/evalsContainsNone.ts
|
|
68750
|
-
var
|
|
69311
|
+
var args32, tool$evalsContainsNone;
|
|
68751
69312
|
var init_evalsContainsNone2 = __esm(() => {
|
|
68752
69313
|
init_evalsContainsNone();
|
|
68753
69314
|
init_operations();
|
|
68754
69315
|
init_tools();
|
|
68755
|
-
|
|
69316
|
+
args32 = {
|
|
68756
69317
|
request: EvalsContainsNoneRequestBody$inboundSchema.optional()
|
|
68757
69318
|
};
|
|
68758
69319
|
tool$evalsContainsNone = {
|
|
68759
69320
|
name: "evals-contains-none",
|
|
68760
69321
|
description: `Run Contains None Evaluator`,
|
|
68761
|
-
args:
|
|
68762
|
-
tool: async (client,
|
|
68763
|
-
const [result, apiCall] = await evalsContainsNone(client,
|
|
69322
|
+
args: args32,
|
|
69323
|
+
tool: async (client, args33, ctx) => {
|
|
69324
|
+
const [result, apiCall] = await evalsContainsNone(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68764
69325
|
if (!result.ok) {
|
|
68765
69326
|
return {
|
|
68766
69327
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68775,9 +69336,9 @@ var init_evalsContainsNone2 = __esm(() => {
|
|
|
68775
69336
|
|
|
68776
69337
|
// src/funcs/evalsContainsUrl.ts
|
|
68777
69338
|
function evalsContainsUrl(client, request, options) {
|
|
68778
|
-
return new APIPromise($
|
|
69339
|
+
return new APIPromise($do33(client, request, options));
|
|
68779
69340
|
}
|
|
68780
|
-
async function $
|
|
69341
|
+
async function $do33(client, request, options) {
|
|
68781
69342
|
const parsed = safeParse(request, (value) => EvalsContainsUrlRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68782
69343
|
if (!parsed.ok) {
|
|
68783
69344
|
return [parsed, { status: "invalid" }];
|
|
@@ -68848,20 +69409,20 @@ var init_evalsContainsUrl = __esm(() => {
|
|
|
68848
69409
|
});
|
|
68849
69410
|
|
|
68850
69411
|
// src/mcp-server/tools/evalsContainsUrl.ts
|
|
68851
|
-
var
|
|
69412
|
+
var args33, tool$evalsContainsUrl;
|
|
68852
69413
|
var init_evalsContainsUrl2 = __esm(() => {
|
|
68853
69414
|
init_evalsContainsUrl();
|
|
68854
69415
|
init_operations();
|
|
68855
69416
|
init_tools();
|
|
68856
|
-
|
|
69417
|
+
args33 = {
|
|
68857
69418
|
request: EvalsContainsUrlRequestBody$inboundSchema.optional()
|
|
68858
69419
|
};
|
|
68859
69420
|
tool$evalsContainsUrl = {
|
|
68860
69421
|
name: "evals-contains-url",
|
|
68861
69422
|
description: `Run Contains URL Evaluator`,
|
|
68862
|
-
args:
|
|
68863
|
-
tool: async (client,
|
|
68864
|
-
const [result, apiCall] = await evalsContainsUrl(client,
|
|
69423
|
+
args: args33,
|
|
69424
|
+
tool: async (client, args34, ctx) => {
|
|
69425
|
+
const [result, apiCall] = await evalsContainsUrl(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68865
69426
|
if (!result.ok) {
|
|
68866
69427
|
return {
|
|
68867
69428
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68876,9 +69437,9 @@ var init_evalsContainsUrl2 = __esm(() => {
|
|
|
68876
69437
|
|
|
68877
69438
|
// src/funcs/evalsContainsValidLink.ts
|
|
68878
69439
|
function evalsContainsValidLink(client, request, options) {
|
|
68879
|
-
return new APIPromise($
|
|
69440
|
+
return new APIPromise($do34(client, request, options));
|
|
68880
69441
|
}
|
|
68881
|
-
async function $
|
|
69442
|
+
async function $do34(client, request, options) {
|
|
68882
69443
|
const parsed = safeParse(request, (value) => EvalsContainsValidLinkRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68883
69444
|
if (!parsed.ok) {
|
|
68884
69445
|
return [parsed, { status: "invalid" }];
|
|
@@ -68949,20 +69510,20 @@ var init_evalsContainsValidLink = __esm(() => {
|
|
|
68949
69510
|
});
|
|
68950
69511
|
|
|
68951
69512
|
// src/mcp-server/tools/evalsContainsValidLink.ts
|
|
68952
|
-
var
|
|
69513
|
+
var args34, tool$evalsContainsValidLink;
|
|
68953
69514
|
var init_evalsContainsValidLink2 = __esm(() => {
|
|
68954
69515
|
init_evalsContainsValidLink();
|
|
68955
69516
|
init_operations();
|
|
68956
69517
|
init_tools();
|
|
68957
|
-
|
|
69518
|
+
args34 = {
|
|
68958
69519
|
request: EvalsContainsValidLinkRequestBody$inboundSchema.optional()
|
|
68959
69520
|
};
|
|
68960
69521
|
tool$evalsContainsValidLink = {
|
|
68961
69522
|
name: "evals-contains-valid-link",
|
|
68962
69523
|
description: `Run Contains Valid Link Evaluator`,
|
|
68963
|
-
args:
|
|
68964
|
-
tool: async (client,
|
|
68965
|
-
const [result, apiCall] = await evalsContainsValidLink(client,
|
|
69524
|
+
args: args34,
|
|
69525
|
+
tool: async (client, args35, ctx) => {
|
|
69526
|
+
const [result, apiCall] = await evalsContainsValidLink(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68966
69527
|
if (!result.ok) {
|
|
68967
69528
|
return {
|
|
68968
69529
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -68977,9 +69538,9 @@ var init_evalsContainsValidLink2 = __esm(() => {
|
|
|
68977
69538
|
|
|
68978
69539
|
// src/funcs/evalsCreate.ts
|
|
68979
69540
|
function evalsCreate(client, request, options) {
|
|
68980
|
-
return new APIPromise($
|
|
69541
|
+
return new APIPromise($do35(client, request, options));
|
|
68981
69542
|
}
|
|
68982
|
-
async function $
|
|
69543
|
+
async function $do35(client, request, options) {
|
|
68983
69544
|
const parsed = safeParse(request, (value) => CreateEvalRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
68984
69545
|
if (!parsed.ok) {
|
|
68985
69546
|
return [parsed, { status: "invalid" }];
|
|
@@ -69050,20 +69611,20 @@ var init_evalsCreate = __esm(() => {
|
|
|
69050
69611
|
});
|
|
69051
69612
|
|
|
69052
69613
|
// src/mcp-server/tools/evalsCreate.ts
|
|
69053
|
-
var
|
|
69614
|
+
var args35, tool$evalsCreate;
|
|
69054
69615
|
var init_evalsCreate2 = __esm(() => {
|
|
69055
69616
|
init_evalsCreate();
|
|
69056
69617
|
init_operations();
|
|
69057
69618
|
init_tools();
|
|
69058
|
-
|
|
69619
|
+
args35 = {
|
|
69059
69620
|
request: CreateEvalRequestBody$inboundSchema.optional()
|
|
69060
69621
|
};
|
|
69061
69622
|
tool$evalsCreate = {
|
|
69062
69623
|
name: "evals-create",
|
|
69063
69624
|
description: `Create an Evaluator`,
|
|
69064
|
-
args:
|
|
69065
|
-
tool: async (client,
|
|
69066
|
-
const [result, apiCall] = await evalsCreate(client,
|
|
69625
|
+
args: args35,
|
|
69626
|
+
tool: async (client, args36, ctx) => {
|
|
69627
|
+
const [result, apiCall] = await evalsCreate(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69067
69628
|
if (!result.ok) {
|
|
69068
69629
|
return {
|
|
69069
69630
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69078,9 +69639,9 @@ var init_evalsCreate2 = __esm(() => {
|
|
|
69078
69639
|
|
|
69079
69640
|
// src/funcs/evalsDelete.ts
|
|
69080
69641
|
function evalsDelete(client, request, options) {
|
|
69081
|
-
return new APIPromise($
|
|
69642
|
+
return new APIPromise($do36(client, request, options));
|
|
69082
69643
|
}
|
|
69083
|
-
async function $
|
|
69644
|
+
async function $do36(client, request, options) {
|
|
69084
69645
|
const parsed = safeParse(request, (value) => DeleteEvalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
69085
69646
|
if (!parsed.ok) {
|
|
69086
69647
|
return [parsed, { status: "invalid" }];
|
|
@@ -69157,20 +69718,20 @@ var init_evalsDelete = __esm(() => {
|
|
|
69157
69718
|
});
|
|
69158
69719
|
|
|
69159
69720
|
// src/mcp-server/tools/evalsDelete.ts
|
|
69160
|
-
var
|
|
69721
|
+
var args36, tool$evalsDelete;
|
|
69161
69722
|
var init_evalsDelete2 = __esm(() => {
|
|
69162
69723
|
init_evalsDelete();
|
|
69163
69724
|
init_operations();
|
|
69164
69725
|
init_tools();
|
|
69165
|
-
|
|
69726
|
+
args36 = {
|
|
69166
69727
|
request: DeleteEvalRequest$inboundSchema
|
|
69167
69728
|
};
|
|
69168
69729
|
tool$evalsDelete = {
|
|
69169
69730
|
name: "evals-delete",
|
|
69170
69731
|
description: `Delete an Evaluator`,
|
|
69171
|
-
args:
|
|
69172
|
-
tool: async (client,
|
|
69173
|
-
const [result, apiCall] = await evalsDelete(client,
|
|
69732
|
+
args: args36,
|
|
69733
|
+
tool: async (client, args37, ctx) => {
|
|
69734
|
+
const [result, apiCall] = await evalsDelete(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69174
69735
|
if (!result.ok) {
|
|
69175
69736
|
return {
|
|
69176
69737
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69184,9 +69745,9 @@ var init_evalsDelete2 = __esm(() => {
|
|
|
69184
69745
|
|
|
69185
69746
|
// src/funcs/evalsEndsWith.ts
|
|
69186
69747
|
function evalsEndsWith(client, request, options) {
|
|
69187
|
-
return new APIPromise($
|
|
69748
|
+
return new APIPromise($do37(client, request, options));
|
|
69188
69749
|
}
|
|
69189
|
-
async function $
|
|
69750
|
+
async function $do37(client, request, options) {
|
|
69190
69751
|
const parsed = safeParse(request, (value) => EvalsEndsWithRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
69191
69752
|
if (!parsed.ok) {
|
|
69192
69753
|
return [parsed, { status: "invalid" }];
|
|
@@ -69257,20 +69818,20 @@ var init_evalsEndsWith = __esm(() => {
|
|
|
69257
69818
|
});
|
|
69258
69819
|
|
|
69259
69820
|
// src/mcp-server/tools/evalsEndsWith.ts
|
|
69260
|
-
var
|
|
69821
|
+
var args37, tool$evalsEndsWith;
|
|
69261
69822
|
var init_evalsEndsWith2 = __esm(() => {
|
|
69262
69823
|
init_evalsEndsWith();
|
|
69263
69824
|
init_operations();
|
|
69264
69825
|
init_tools();
|
|
69265
|
-
|
|
69826
|
+
args37 = {
|
|
69266
69827
|
request: EvalsEndsWithRequestBody$inboundSchema.optional()
|
|
69267
69828
|
};
|
|
69268
69829
|
tool$evalsEndsWith = {
|
|
69269
69830
|
name: "evals-ends-with",
|
|
69270
69831
|
description: `Run Ends With Evaluator`,
|
|
69271
|
-
args:
|
|
69272
|
-
tool: async (client,
|
|
69273
|
-
const [result, apiCall] = await evalsEndsWith(client,
|
|
69832
|
+
args: args37,
|
|
69833
|
+
tool: async (client, args38, ctx) => {
|
|
69834
|
+
const [result, apiCall] = await evalsEndsWith(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69274
69835
|
if (!result.ok) {
|
|
69275
69836
|
return {
|
|
69276
69837
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69285,9 +69846,9 @@ var init_evalsEndsWith2 = __esm(() => {
|
|
|
69285
69846
|
|
|
69286
69847
|
// src/funcs/evalsExactMatch.ts
|
|
69287
69848
|
function evalsExactMatch(client, request, options) {
|
|
69288
|
-
return new APIPromise($
|
|
69849
|
+
return new APIPromise($do38(client, request, options));
|
|
69289
69850
|
}
|
|
69290
|
-
async function $
|
|
69851
|
+
async function $do38(client, request, options) {
|
|
69291
69852
|
const parsed = safeParse(request, (value) => EvalsExactMatchRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
69292
69853
|
if (!parsed.ok) {
|
|
69293
69854
|
return [parsed, { status: "invalid" }];
|
|
@@ -69358,20 +69919,20 @@ var init_evalsExactMatch = __esm(() => {
|
|
|
69358
69919
|
});
|
|
69359
69920
|
|
|
69360
69921
|
// src/mcp-server/tools/evalsExactMatch.ts
|
|
69361
|
-
var
|
|
69922
|
+
var args38, tool$evalsExactMatch;
|
|
69362
69923
|
var init_evalsExactMatch2 = __esm(() => {
|
|
69363
69924
|
init_evalsExactMatch();
|
|
69364
69925
|
init_operations();
|
|
69365
69926
|
init_tools();
|
|
69366
|
-
|
|
69927
|
+
args38 = {
|
|
69367
69928
|
request: EvalsExactMatchRequestBody$inboundSchema.optional()
|
|
69368
69929
|
};
|
|
69369
69930
|
tool$evalsExactMatch = {
|
|
69370
69931
|
name: "evals-exact-match",
|
|
69371
69932
|
description: `Run Exact Match Evaluator`,
|
|
69372
|
-
args:
|
|
69373
|
-
tool: async (client,
|
|
69374
|
-
const [result, apiCall] = await evalsExactMatch(client,
|
|
69933
|
+
args: args38,
|
|
69934
|
+
tool: async (client, args39, ctx) => {
|
|
69935
|
+
const [result, apiCall] = await evalsExactMatch(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69375
69936
|
if (!result.ok) {
|
|
69376
69937
|
return {
|
|
69377
69938
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69386,9 +69947,9 @@ var init_evalsExactMatch2 = __esm(() => {
|
|
|
69386
69947
|
|
|
69387
69948
|
// src/funcs/evalsFactCheckingKnowledgeBase.ts
|
|
69388
69949
|
function evalsFactCheckingKnowledgeBase(client, request, options) {
|
|
69389
|
-
return new APIPromise($
|
|
69950
|
+
return new APIPromise($do39(client, request, options));
|
|
69390
69951
|
}
|
|
69391
|
-
async function $
|
|
69952
|
+
async function $do39(client, request, options) {
|
|
69392
69953
|
const parsed = safeParse(request, (value) => EvalsFactCheckingKnowledgeBaseRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
69393
69954
|
if (!parsed.ok) {
|
|
69394
69955
|
return [parsed, { status: "invalid" }];
|
|
@@ -69459,20 +70020,20 @@ var init_evalsFactCheckingKnowledgeBase = __esm(() => {
|
|
|
69459
70020
|
});
|
|
69460
70021
|
|
|
69461
70022
|
// src/mcp-server/tools/evalsFactCheckingKnowledgeBase.ts
|
|
69462
|
-
var
|
|
70023
|
+
var args39, tool$evalsFactCheckingKnowledgeBase;
|
|
69463
70024
|
var init_evalsFactCheckingKnowledgeBase2 = __esm(() => {
|
|
69464
70025
|
init_evalsFactCheckingKnowledgeBase();
|
|
69465
70026
|
init_operations();
|
|
69466
70027
|
init_tools();
|
|
69467
|
-
|
|
70028
|
+
args39 = {
|
|
69468
70029
|
request: EvalsFactCheckingKnowledgeBaseRequestBody$inboundSchema.optional()
|
|
69469
70030
|
};
|
|
69470
70031
|
tool$evalsFactCheckingKnowledgeBase = {
|
|
69471
70032
|
name: "evals-fact-checking-knowledge-base",
|
|
69472
70033
|
description: `Run Fact Checking Knowledge Base Evaluator`,
|
|
69473
|
-
args:
|
|
69474
|
-
tool: async (client,
|
|
69475
|
-
const [result, apiCall] = await evalsFactCheckingKnowledgeBase(client,
|
|
70034
|
+
args: args39,
|
|
70035
|
+
tool: async (client, args40, ctx) => {
|
|
70036
|
+
const [result, apiCall] = await evalsFactCheckingKnowledgeBase(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69476
70037
|
if (!result.ok) {
|
|
69477
70038
|
return {
|
|
69478
70039
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69487,9 +70048,9 @@ var init_evalsFactCheckingKnowledgeBase2 = __esm(() => {
|
|
|
69487
70048
|
|
|
69488
70049
|
// src/funcs/evalsGrammar.ts
|
|
69489
70050
|
function evalsGrammar(client, request, options) {
|
|
69490
|
-
return new APIPromise($
|
|
70051
|
+
return new APIPromise($do40(client, request, options));
|
|
69491
70052
|
}
|
|
69492
|
-
async function $
|
|
70053
|
+
async function $do40(client, request, options) {
|
|
69493
70054
|
const parsed = safeParse(request, (value) => EvalsGrammarRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
69494
70055
|
if (!parsed.ok) {
|
|
69495
70056
|
return [parsed, { status: "invalid" }];
|
|
@@ -69560,20 +70121,20 @@ var init_evalsGrammar = __esm(() => {
|
|
|
69560
70121
|
});
|
|
69561
70122
|
|
|
69562
70123
|
// src/mcp-server/tools/evalsGrammar.ts
|
|
69563
|
-
var
|
|
70124
|
+
var args40, tool$evalsGrammar;
|
|
69564
70125
|
var init_evalsGrammar2 = __esm(() => {
|
|
69565
70126
|
init_evalsGrammar();
|
|
69566
70127
|
init_operations();
|
|
69567
70128
|
init_tools();
|
|
69568
|
-
|
|
70129
|
+
args40 = {
|
|
69569
70130
|
request: EvalsGrammarRequestBody$inboundSchema.optional()
|
|
69570
70131
|
};
|
|
69571
70132
|
tool$evalsGrammar = {
|
|
69572
70133
|
name: "evals-grammar",
|
|
69573
70134
|
description: `Run Grammar Evaluator`,
|
|
69574
|
-
args:
|
|
69575
|
-
tool: async (client,
|
|
69576
|
-
const [result, apiCall] = await evalsGrammar(client,
|
|
70135
|
+
args: args40,
|
|
70136
|
+
tool: async (client, args41, ctx) => {
|
|
70137
|
+
const [result, apiCall] = await evalsGrammar(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69577
70138
|
if (!result.ok) {
|
|
69578
70139
|
return {
|
|
69579
70140
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69588,9 +70149,9 @@ var init_evalsGrammar2 = __esm(() => {
|
|
|
69588
70149
|
|
|
69589
70150
|
// src/funcs/evalsInvoke.ts
|
|
69590
70151
|
function evalsInvoke(client, request, options) {
|
|
69591
|
-
return new APIPromise($
|
|
70152
|
+
return new APIPromise($do41(client, request, options));
|
|
69592
70153
|
}
|
|
69593
|
-
async function $
|
|
70154
|
+
async function $do41(client, request, options) {
|
|
69594
70155
|
const parsed = safeParse(request, (value) => InvokeEvalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
69595
70156
|
if (!parsed.ok) {
|
|
69596
70157
|
return [parsed, { status: "invalid" }];
|
|
@@ -69667,20 +70228,20 @@ var init_evalsInvoke = __esm(() => {
|
|
|
69667
70228
|
});
|
|
69668
70229
|
|
|
69669
70230
|
// src/mcp-server/tools/evalsInvoke.ts
|
|
69670
|
-
var
|
|
70231
|
+
var args41, tool$evalsInvoke;
|
|
69671
70232
|
var init_evalsInvoke2 = __esm(() => {
|
|
69672
70233
|
init_evalsInvoke();
|
|
69673
70234
|
init_operations();
|
|
69674
70235
|
init_tools();
|
|
69675
|
-
|
|
70236
|
+
args41 = {
|
|
69676
70237
|
request: InvokeEvalRequest$inboundSchema
|
|
69677
70238
|
};
|
|
69678
70239
|
tool$evalsInvoke = {
|
|
69679
70240
|
name: "evals-invoke",
|
|
69680
70241
|
description: `Invoke a Custom Evaluator`,
|
|
69681
|
-
args:
|
|
69682
|
-
tool: async (client,
|
|
69683
|
-
const [result, apiCall] = await evalsInvoke(client,
|
|
70242
|
+
args: args41,
|
|
70243
|
+
tool: async (client, args42, ctx) => {
|
|
70244
|
+
const [result, apiCall] = await evalsInvoke(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69684
70245
|
if (!result.ok) {
|
|
69685
70246
|
return {
|
|
69686
70247
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69695,9 +70256,9 @@ var init_evalsInvoke2 = __esm(() => {
|
|
|
69695
70256
|
|
|
69696
70257
|
// src/funcs/evalsLengthBetween.ts
|
|
69697
70258
|
function evalsLengthBetween(client, request, options) {
|
|
69698
|
-
return new APIPromise($
|
|
70259
|
+
return new APIPromise($do42(client, request, options));
|
|
69699
70260
|
}
|
|
69700
|
-
async function $
|
|
70261
|
+
async function $do42(client, request, options) {
|
|
69701
70262
|
const parsed = safeParse(request, (value) => EvalsLengthBetweenRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
69702
70263
|
if (!parsed.ok) {
|
|
69703
70264
|
return [parsed, { status: "invalid" }];
|
|
@@ -69768,20 +70329,20 @@ var init_evalsLengthBetween = __esm(() => {
|
|
|
69768
70329
|
});
|
|
69769
70330
|
|
|
69770
70331
|
// src/mcp-server/tools/evalsLengthBetween.ts
|
|
69771
|
-
var
|
|
70332
|
+
var args42, tool$evalsLengthBetween;
|
|
69772
70333
|
var init_evalsLengthBetween2 = __esm(() => {
|
|
69773
70334
|
init_evalsLengthBetween();
|
|
69774
70335
|
init_operations();
|
|
69775
70336
|
init_tools();
|
|
69776
|
-
|
|
70337
|
+
args42 = {
|
|
69777
70338
|
request: EvalsLengthBetweenRequestBody$inboundSchema.optional()
|
|
69778
70339
|
};
|
|
69779
70340
|
tool$evalsLengthBetween = {
|
|
69780
70341
|
name: "evals-length-between",
|
|
69781
70342
|
description: `Run Length Between Evaluator`,
|
|
69782
|
-
args:
|
|
69783
|
-
tool: async (client,
|
|
69784
|
-
const [result, apiCall] = await evalsLengthBetween(client,
|
|
70343
|
+
args: args42,
|
|
70344
|
+
tool: async (client, args43, ctx) => {
|
|
70345
|
+
const [result, apiCall] = await evalsLengthBetween(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69785
70346
|
if (!result.ok) {
|
|
69786
70347
|
return {
|
|
69787
70348
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69796,9 +70357,9 @@ var init_evalsLengthBetween2 = __esm(() => {
|
|
|
69796
70357
|
|
|
69797
70358
|
// src/funcs/evalsLengthGreaterThan.ts
|
|
69798
70359
|
function evalsLengthGreaterThan(client, request, options) {
|
|
69799
|
-
return new APIPromise($
|
|
70360
|
+
return new APIPromise($do43(client, request, options));
|
|
69800
70361
|
}
|
|
69801
|
-
async function $
|
|
70362
|
+
async function $do43(client, request, options) {
|
|
69802
70363
|
const parsed = safeParse(request, (value) => EvalsLengthGreaterThanRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
69803
70364
|
if (!parsed.ok) {
|
|
69804
70365
|
return [parsed, { status: "invalid" }];
|
|
@@ -69869,20 +70430,20 @@ var init_evalsLengthGreaterThan = __esm(() => {
|
|
|
69869
70430
|
});
|
|
69870
70431
|
|
|
69871
70432
|
// src/mcp-server/tools/evalsLengthGreaterThan.ts
|
|
69872
|
-
var
|
|
70433
|
+
var args43, tool$evalsLengthGreaterThan;
|
|
69873
70434
|
var init_evalsLengthGreaterThan2 = __esm(() => {
|
|
69874
70435
|
init_evalsLengthGreaterThan();
|
|
69875
70436
|
init_operations();
|
|
69876
70437
|
init_tools();
|
|
69877
|
-
|
|
70438
|
+
args43 = {
|
|
69878
70439
|
request: EvalsLengthGreaterThanRequestBody$inboundSchema.optional()
|
|
69879
70440
|
};
|
|
69880
70441
|
tool$evalsLengthGreaterThan = {
|
|
69881
70442
|
name: "evals-length-greater-than",
|
|
69882
70443
|
description: `Run Length Greater Than Evaluator`,
|
|
69883
|
-
args:
|
|
69884
|
-
tool: async (client,
|
|
69885
|
-
const [result, apiCall] = await evalsLengthGreaterThan(client,
|
|
70444
|
+
args: args43,
|
|
70445
|
+
tool: async (client, args44, ctx) => {
|
|
70446
|
+
const [result, apiCall] = await evalsLengthGreaterThan(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69886
70447
|
if (!result.ok) {
|
|
69887
70448
|
return {
|
|
69888
70449
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69897,9 +70458,9 @@ var init_evalsLengthGreaterThan2 = __esm(() => {
|
|
|
69897
70458
|
|
|
69898
70459
|
// src/funcs/evalsLengthLessThan.ts
|
|
69899
70460
|
function evalsLengthLessThan(client, request, options) {
|
|
69900
|
-
return new APIPromise($
|
|
70461
|
+
return new APIPromise($do44(client, request, options));
|
|
69901
70462
|
}
|
|
69902
|
-
async function $
|
|
70463
|
+
async function $do44(client, request, options) {
|
|
69903
70464
|
const parsed = safeParse(request, (value) => EvalsLengthLessThanRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
69904
70465
|
if (!parsed.ok) {
|
|
69905
70466
|
return [parsed, { status: "invalid" }];
|
|
@@ -69970,20 +70531,20 @@ var init_evalsLengthLessThan = __esm(() => {
|
|
|
69970
70531
|
});
|
|
69971
70532
|
|
|
69972
70533
|
// src/mcp-server/tools/evalsLengthLessThan.ts
|
|
69973
|
-
var
|
|
70534
|
+
var args44, tool$evalsLengthLessThan;
|
|
69974
70535
|
var init_evalsLengthLessThan2 = __esm(() => {
|
|
69975
70536
|
init_evalsLengthLessThan();
|
|
69976
70537
|
init_operations();
|
|
69977
70538
|
init_tools();
|
|
69978
|
-
|
|
70539
|
+
args44 = {
|
|
69979
70540
|
request: EvalsLengthLessThanRequestBody$inboundSchema.optional()
|
|
69980
70541
|
};
|
|
69981
70542
|
tool$evalsLengthLessThan = {
|
|
69982
70543
|
name: "evals-length-less-than",
|
|
69983
70544
|
description: `Run Length Less Than Evaluator`,
|
|
69984
|
-
args:
|
|
69985
|
-
tool: async (client,
|
|
69986
|
-
const [result, apiCall] = await evalsLengthLessThan(client,
|
|
70545
|
+
args: args44,
|
|
70546
|
+
tool: async (client, args45, ctx) => {
|
|
70547
|
+
const [result, apiCall] = await evalsLengthLessThan(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69987
70548
|
if (!result.ok) {
|
|
69988
70549
|
return {
|
|
69989
70550
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -69998,9 +70559,9 @@ var init_evalsLengthLessThan2 = __esm(() => {
|
|
|
69998
70559
|
|
|
69999
70560
|
// src/funcs/evalsLocalization.ts
|
|
70000
70561
|
function evalsLocalization(client, request, options) {
|
|
70001
|
-
return new APIPromise($
|
|
70562
|
+
return new APIPromise($do45(client, request, options));
|
|
70002
70563
|
}
|
|
70003
|
-
async function $
|
|
70564
|
+
async function $do45(client, request, options) {
|
|
70004
70565
|
const parsed = safeParse(request, (value) => EvalsLocalizationRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70005
70566
|
if (!parsed.ok) {
|
|
70006
70567
|
return [parsed, { status: "invalid" }];
|
|
@@ -70071,20 +70632,20 @@ var init_evalsLocalization = __esm(() => {
|
|
|
70071
70632
|
});
|
|
70072
70633
|
|
|
70073
70634
|
// src/mcp-server/tools/evalsLocalization.ts
|
|
70074
|
-
var
|
|
70635
|
+
var args45, tool$evalsLocalization;
|
|
70075
70636
|
var init_evalsLocalization2 = __esm(() => {
|
|
70076
70637
|
init_evalsLocalization();
|
|
70077
70638
|
init_operations();
|
|
70078
70639
|
init_tools();
|
|
70079
|
-
|
|
70640
|
+
args45 = {
|
|
70080
70641
|
request: EvalsLocalizationRequestBody$inboundSchema.optional()
|
|
70081
70642
|
};
|
|
70082
70643
|
tool$evalsLocalization = {
|
|
70083
70644
|
name: "evals-localization",
|
|
70084
70645
|
description: `Run Localization Evaluator`,
|
|
70085
|
-
args:
|
|
70086
|
-
tool: async (client,
|
|
70087
|
-
const [result, apiCall] = await evalsLocalization(client,
|
|
70646
|
+
args: args45,
|
|
70647
|
+
tool: async (client, args46, ctx) => {
|
|
70648
|
+
const [result, apiCall] = await evalsLocalization(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70088
70649
|
if (!result.ok) {
|
|
70089
70650
|
return {
|
|
70090
70651
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -70099,9 +70660,9 @@ var init_evalsLocalization2 = __esm(() => {
|
|
|
70099
70660
|
|
|
70100
70661
|
// src/funcs/evalsPii.ts
|
|
70101
70662
|
function evalsPii(client, request, options) {
|
|
70102
|
-
return new APIPromise($
|
|
70663
|
+
return new APIPromise($do46(client, request, options));
|
|
70103
70664
|
}
|
|
70104
|
-
async function $
|
|
70665
|
+
async function $do46(client, request, options) {
|
|
70105
70666
|
const parsed = safeParse(request, (value) => EvalsPiiRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70106
70667
|
if (!parsed.ok) {
|
|
70107
70668
|
return [parsed, { status: "invalid" }];
|
|
@@ -70172,20 +70733,20 @@ var init_evalsPii = __esm(() => {
|
|
|
70172
70733
|
});
|
|
70173
70734
|
|
|
70174
70735
|
// src/mcp-server/tools/evalsPii.ts
|
|
70175
|
-
var
|
|
70736
|
+
var args46, tool$evalsPii;
|
|
70176
70737
|
var init_evalsPii2 = __esm(() => {
|
|
70177
70738
|
init_evalsPii();
|
|
70178
70739
|
init_operations();
|
|
70179
70740
|
init_tools();
|
|
70180
|
-
|
|
70741
|
+
args46 = {
|
|
70181
70742
|
request: EvalsPiiRequestBody$inboundSchema.optional()
|
|
70182
70743
|
};
|
|
70183
70744
|
tool$evalsPii = {
|
|
70184
70745
|
name: "evals-pii",
|
|
70185
70746
|
description: `Run PII Evaluator`,
|
|
70186
|
-
args:
|
|
70187
|
-
tool: async (client,
|
|
70188
|
-
const [result, apiCall] = await evalsPii(client,
|
|
70747
|
+
args: args46,
|
|
70748
|
+
tool: async (client, args47, ctx) => {
|
|
70749
|
+
const [result, apiCall] = await evalsPii(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70189
70750
|
if (!result.ok) {
|
|
70190
70751
|
return {
|
|
70191
70752
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -70200,9 +70761,9 @@ var init_evalsPii2 = __esm(() => {
|
|
|
70200
70761
|
|
|
70201
70762
|
// src/funcs/evalsRagasCoherence.ts
|
|
70202
70763
|
function evalsRagasCoherence(client, request, options) {
|
|
70203
|
-
return new APIPromise($
|
|
70764
|
+
return new APIPromise($do47(client, request, options));
|
|
70204
70765
|
}
|
|
70205
|
-
async function $
|
|
70766
|
+
async function $do47(client, request, options) {
|
|
70206
70767
|
const parsed = safeParse(request, (value) => EvalsRagasCoherenceRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70207
70768
|
if (!parsed.ok) {
|
|
70208
70769
|
return [parsed, { status: "invalid" }];
|
|
@@ -70273,20 +70834,20 @@ var init_evalsRagasCoherence = __esm(() => {
|
|
|
70273
70834
|
});
|
|
70274
70835
|
|
|
70275
70836
|
// src/mcp-server/tools/evalsRagasCoherence.ts
|
|
70276
|
-
var
|
|
70837
|
+
var args47, tool$evalsRagasCoherence;
|
|
70277
70838
|
var init_evalsRagasCoherence2 = __esm(() => {
|
|
70278
70839
|
init_evalsRagasCoherence();
|
|
70279
70840
|
init_operations();
|
|
70280
70841
|
init_tools();
|
|
70281
|
-
|
|
70842
|
+
args47 = {
|
|
70282
70843
|
request: EvalsRagasCoherenceRequestBody$inboundSchema.optional()
|
|
70283
70844
|
};
|
|
70284
70845
|
tool$evalsRagasCoherence = {
|
|
70285
70846
|
name: "evals-ragas-coherence",
|
|
70286
70847
|
description: `Run Coherence Evaluator`,
|
|
70287
|
-
args:
|
|
70288
|
-
tool: async (client,
|
|
70289
|
-
const [result, apiCall] = await evalsRagasCoherence(client,
|
|
70848
|
+
args: args47,
|
|
70849
|
+
tool: async (client, args48, ctx) => {
|
|
70850
|
+
const [result, apiCall] = await evalsRagasCoherence(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70290
70851
|
if (!result.ok) {
|
|
70291
70852
|
return {
|
|
70292
70853
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -70301,9 +70862,9 @@ var init_evalsRagasCoherence2 = __esm(() => {
|
|
|
70301
70862
|
|
|
70302
70863
|
// src/funcs/evalsRagasConciseness.ts
|
|
70303
70864
|
function evalsRagasConciseness(client, request, options) {
|
|
70304
|
-
return new APIPromise($
|
|
70865
|
+
return new APIPromise($do48(client, request, options));
|
|
70305
70866
|
}
|
|
70306
|
-
async function $
|
|
70867
|
+
async function $do48(client, request, options) {
|
|
70307
70868
|
const parsed = safeParse(request, (value) => EvalsRagasConcisenessRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70308
70869
|
if (!parsed.ok) {
|
|
70309
70870
|
return [parsed, { status: "invalid" }];
|
|
@@ -70374,20 +70935,20 @@ var init_evalsRagasConciseness = __esm(() => {
|
|
|
70374
70935
|
});
|
|
70375
70936
|
|
|
70376
70937
|
// src/mcp-server/tools/evalsRagasConciseness.ts
|
|
70377
|
-
var
|
|
70938
|
+
var args48, tool$evalsRagasConciseness;
|
|
70378
70939
|
var init_evalsRagasConciseness2 = __esm(() => {
|
|
70379
70940
|
init_evalsRagasConciseness();
|
|
70380
70941
|
init_operations();
|
|
70381
70942
|
init_tools();
|
|
70382
|
-
|
|
70943
|
+
args48 = {
|
|
70383
70944
|
request: EvalsRagasConcisenessRequestBody$inboundSchema.optional()
|
|
70384
70945
|
};
|
|
70385
70946
|
tool$evalsRagasConciseness = {
|
|
70386
70947
|
name: "evals-ragas-conciseness",
|
|
70387
70948
|
description: `Run Conciseness Evaluator`,
|
|
70388
|
-
args:
|
|
70389
|
-
tool: async (client,
|
|
70390
|
-
const [result, apiCall] = await evalsRagasConciseness(client,
|
|
70949
|
+
args: args48,
|
|
70950
|
+
tool: async (client, args49, ctx) => {
|
|
70951
|
+
const [result, apiCall] = await evalsRagasConciseness(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70391
70952
|
if (!result.ok) {
|
|
70392
70953
|
return {
|
|
70393
70954
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -70402,9 +70963,9 @@ var init_evalsRagasConciseness2 = __esm(() => {
|
|
|
70402
70963
|
|
|
70403
70964
|
// src/funcs/evalsRagasContextEntitiesRecall.ts
|
|
70404
70965
|
function evalsRagasContextEntitiesRecall(client, request, options) {
|
|
70405
|
-
return new APIPromise($
|
|
70966
|
+
return new APIPromise($do49(client, request, options));
|
|
70406
70967
|
}
|
|
70407
|
-
async function $
|
|
70968
|
+
async function $do49(client, request, options) {
|
|
70408
70969
|
const parsed = safeParse(request, (value) => EvalsRagasContextEntitiesRecallRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70409
70970
|
if (!parsed.ok) {
|
|
70410
70971
|
return [parsed, { status: "invalid" }];
|
|
@@ -70475,20 +71036,20 @@ var init_evalsRagasContextEntitiesRecall = __esm(() => {
|
|
|
70475
71036
|
});
|
|
70476
71037
|
|
|
70477
71038
|
// src/mcp-server/tools/evalsRagasContextEntitiesRecall.ts
|
|
70478
|
-
var
|
|
71039
|
+
var args49, tool$evalsRagasContextEntitiesRecall;
|
|
70479
71040
|
var init_evalsRagasContextEntitiesRecall2 = __esm(() => {
|
|
70480
71041
|
init_evalsRagasContextEntitiesRecall();
|
|
70481
71042
|
init_operations();
|
|
70482
71043
|
init_tools();
|
|
70483
|
-
|
|
71044
|
+
args49 = {
|
|
70484
71045
|
request: EvalsRagasContextEntitiesRecallRequestBody$inboundSchema.optional()
|
|
70485
71046
|
};
|
|
70486
71047
|
tool$evalsRagasContextEntitiesRecall = {
|
|
70487
71048
|
name: "evals-ragas-context-entities-recall",
|
|
70488
71049
|
description: `Run Context Entities Recall Evaluator`,
|
|
70489
|
-
args:
|
|
70490
|
-
tool: async (client,
|
|
70491
|
-
const [result, apiCall] = await evalsRagasContextEntitiesRecall(client,
|
|
71050
|
+
args: args49,
|
|
71051
|
+
tool: async (client, args50, ctx) => {
|
|
71052
|
+
const [result, apiCall] = await evalsRagasContextEntitiesRecall(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70492
71053
|
if (!result.ok) {
|
|
70493
71054
|
return {
|
|
70494
71055
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -70503,9 +71064,9 @@ var init_evalsRagasContextEntitiesRecall2 = __esm(() => {
|
|
|
70503
71064
|
|
|
70504
71065
|
// src/funcs/evalsRagasContextPrecision.ts
|
|
70505
71066
|
function evalsRagasContextPrecision(client, request, options) {
|
|
70506
|
-
return new APIPromise($
|
|
71067
|
+
return new APIPromise($do50(client, request, options));
|
|
70507
71068
|
}
|
|
70508
|
-
async function $
|
|
71069
|
+
async function $do50(client, request, options) {
|
|
70509
71070
|
const parsed = safeParse(request, (value) => EvalsRagasContextPrecisionRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70510
71071
|
if (!parsed.ok) {
|
|
70511
71072
|
return [parsed, { status: "invalid" }];
|
|
@@ -70576,20 +71137,20 @@ var init_evalsRagasContextPrecision = __esm(() => {
|
|
|
70576
71137
|
});
|
|
70577
71138
|
|
|
70578
71139
|
// src/mcp-server/tools/evalsRagasContextPrecision.ts
|
|
70579
|
-
var
|
|
71140
|
+
var args50, tool$evalsRagasContextPrecision;
|
|
70580
71141
|
var init_evalsRagasContextPrecision2 = __esm(() => {
|
|
70581
71142
|
init_evalsRagasContextPrecision();
|
|
70582
71143
|
init_operations();
|
|
70583
71144
|
init_tools();
|
|
70584
|
-
|
|
71145
|
+
args50 = {
|
|
70585
71146
|
request: EvalsRagasContextPrecisionRequestBody$inboundSchema.optional()
|
|
70586
71147
|
};
|
|
70587
71148
|
tool$evalsRagasContextPrecision = {
|
|
70588
71149
|
name: "evals-ragas-context-precision",
|
|
70589
71150
|
description: `Run Context Precision Evaluator`,
|
|
70590
|
-
args:
|
|
70591
|
-
tool: async (client,
|
|
70592
|
-
const [result, apiCall] = await evalsRagasContextPrecision(client,
|
|
71151
|
+
args: args50,
|
|
71152
|
+
tool: async (client, args51, ctx) => {
|
|
71153
|
+
const [result, apiCall] = await evalsRagasContextPrecision(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70593
71154
|
if (!result.ok) {
|
|
70594
71155
|
return {
|
|
70595
71156
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -70604,9 +71165,9 @@ var init_evalsRagasContextPrecision2 = __esm(() => {
|
|
|
70604
71165
|
|
|
70605
71166
|
// src/funcs/evalsRagasContextRecall.ts
|
|
70606
71167
|
function evalsRagasContextRecall(client, request, options) {
|
|
70607
|
-
return new APIPromise($
|
|
71168
|
+
return new APIPromise($do51(client, request, options));
|
|
70608
71169
|
}
|
|
70609
|
-
async function $
|
|
71170
|
+
async function $do51(client, request, options) {
|
|
70610
71171
|
const parsed = safeParse(request, (value) => EvalsRagasContextRecallRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70611
71172
|
if (!parsed.ok) {
|
|
70612
71173
|
return [parsed, { status: "invalid" }];
|
|
@@ -70677,20 +71238,20 @@ var init_evalsRagasContextRecall = __esm(() => {
|
|
|
70677
71238
|
});
|
|
70678
71239
|
|
|
70679
71240
|
// src/mcp-server/tools/evalsRagasContextRecall.ts
|
|
70680
|
-
var
|
|
71241
|
+
var args51, tool$evalsRagasContextRecall;
|
|
70681
71242
|
var init_evalsRagasContextRecall2 = __esm(() => {
|
|
70682
71243
|
init_evalsRagasContextRecall();
|
|
70683
71244
|
init_operations();
|
|
70684
71245
|
init_tools();
|
|
70685
|
-
|
|
71246
|
+
args51 = {
|
|
70686
71247
|
request: EvalsRagasContextRecallRequestBody$inboundSchema.optional()
|
|
70687
71248
|
};
|
|
70688
71249
|
tool$evalsRagasContextRecall = {
|
|
70689
71250
|
name: "evals-ragas-context-recall",
|
|
70690
71251
|
description: `Run Context Recall Evaluator`,
|
|
70691
|
-
args:
|
|
70692
|
-
tool: async (client,
|
|
70693
|
-
const [result, apiCall] = await evalsRagasContextRecall(client,
|
|
71252
|
+
args: args51,
|
|
71253
|
+
tool: async (client, args52, ctx) => {
|
|
71254
|
+
const [result, apiCall] = await evalsRagasContextRecall(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70694
71255
|
if (!result.ok) {
|
|
70695
71256
|
return {
|
|
70696
71257
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -70705,9 +71266,9 @@ var init_evalsRagasContextRecall2 = __esm(() => {
|
|
|
70705
71266
|
|
|
70706
71267
|
// src/funcs/evalsRagasCorrectness.ts
|
|
70707
71268
|
function evalsRagasCorrectness(client, request, options) {
|
|
70708
|
-
return new APIPromise($
|
|
71269
|
+
return new APIPromise($do52(client, request, options));
|
|
70709
71270
|
}
|
|
70710
|
-
async function $
|
|
71271
|
+
async function $do52(client, request, options) {
|
|
70711
71272
|
const parsed = safeParse(request, (value) => EvalsRagasCorrectnessRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70712
71273
|
if (!parsed.ok) {
|
|
70713
71274
|
return [parsed, { status: "invalid" }];
|
|
@@ -70778,20 +71339,20 @@ var init_evalsRagasCorrectness = __esm(() => {
|
|
|
70778
71339
|
});
|
|
70779
71340
|
|
|
70780
71341
|
// src/mcp-server/tools/evalsRagasCorrectness.ts
|
|
70781
|
-
var
|
|
71342
|
+
var args52, tool$evalsRagasCorrectness;
|
|
70782
71343
|
var init_evalsRagasCorrectness2 = __esm(() => {
|
|
70783
71344
|
init_evalsRagasCorrectness();
|
|
70784
71345
|
init_operations();
|
|
70785
71346
|
init_tools();
|
|
70786
|
-
|
|
71347
|
+
args52 = {
|
|
70787
71348
|
request: EvalsRagasCorrectnessRequestBody$inboundSchema.optional()
|
|
70788
71349
|
};
|
|
70789
71350
|
tool$evalsRagasCorrectness = {
|
|
70790
71351
|
name: "evals-ragas-correctness",
|
|
70791
71352
|
description: `Run Correctness Evaluator`,
|
|
70792
|
-
args:
|
|
70793
|
-
tool: async (client,
|
|
70794
|
-
const [result, apiCall] = await evalsRagasCorrectness(client,
|
|
71353
|
+
args: args52,
|
|
71354
|
+
tool: async (client, args53, ctx) => {
|
|
71355
|
+
const [result, apiCall] = await evalsRagasCorrectness(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70795
71356
|
if (!result.ok) {
|
|
70796
71357
|
return {
|
|
70797
71358
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -70806,9 +71367,9 @@ var init_evalsRagasCorrectness2 = __esm(() => {
|
|
|
70806
71367
|
|
|
70807
71368
|
// src/funcs/evalsRagasFaithfulness.ts
|
|
70808
71369
|
function evalsRagasFaithfulness(client, request, options) {
|
|
70809
|
-
return new APIPromise($
|
|
71370
|
+
return new APIPromise($do53(client, request, options));
|
|
70810
71371
|
}
|
|
70811
|
-
async function $
|
|
71372
|
+
async function $do53(client, request, options) {
|
|
70812
71373
|
const parsed = safeParse(request, (value) => EvalsRagasFaithfulnessRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70813
71374
|
if (!parsed.ok) {
|
|
70814
71375
|
return [parsed, { status: "invalid" }];
|
|
@@ -70879,20 +71440,20 @@ var init_evalsRagasFaithfulness = __esm(() => {
|
|
|
70879
71440
|
});
|
|
70880
71441
|
|
|
70881
71442
|
// src/mcp-server/tools/evalsRagasFaithfulness.ts
|
|
70882
|
-
var
|
|
71443
|
+
var args53, tool$evalsRagasFaithfulness;
|
|
70883
71444
|
var init_evalsRagasFaithfulness2 = __esm(() => {
|
|
70884
71445
|
init_evalsRagasFaithfulness();
|
|
70885
71446
|
init_operations();
|
|
70886
71447
|
init_tools();
|
|
70887
|
-
|
|
71448
|
+
args53 = {
|
|
70888
71449
|
request: EvalsRagasFaithfulnessRequestBody$inboundSchema.optional()
|
|
70889
71450
|
};
|
|
70890
71451
|
tool$evalsRagasFaithfulness = {
|
|
70891
71452
|
name: "evals-ragas-faithfulness",
|
|
70892
71453
|
description: `Run Faithfulness Evaluator`,
|
|
70893
|
-
args:
|
|
70894
|
-
tool: async (client,
|
|
70895
|
-
const [result, apiCall] = await evalsRagasFaithfulness(client,
|
|
71454
|
+
args: args53,
|
|
71455
|
+
tool: async (client, args54, ctx) => {
|
|
71456
|
+
const [result, apiCall] = await evalsRagasFaithfulness(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70896
71457
|
if (!result.ok) {
|
|
70897
71458
|
return {
|
|
70898
71459
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -70907,9 +71468,9 @@ var init_evalsRagasFaithfulness2 = __esm(() => {
|
|
|
70907
71468
|
|
|
70908
71469
|
// src/funcs/evalsRagasHarmfulness.ts
|
|
70909
71470
|
function evalsRagasHarmfulness(client, request, options) {
|
|
70910
|
-
return new APIPromise($
|
|
71471
|
+
return new APIPromise($do54(client, request, options));
|
|
70911
71472
|
}
|
|
70912
|
-
async function $
|
|
71473
|
+
async function $do54(client, request, options) {
|
|
70913
71474
|
const parsed = safeParse(request, (value) => EvalsRagasHarmfulnessRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
70914
71475
|
if (!parsed.ok) {
|
|
70915
71476
|
return [parsed, { status: "invalid" }];
|
|
@@ -70980,20 +71541,20 @@ var init_evalsRagasHarmfulness = __esm(() => {
|
|
|
70980
71541
|
});
|
|
70981
71542
|
|
|
70982
71543
|
// src/mcp-server/tools/evalsRagasHarmfulness.ts
|
|
70983
|
-
var
|
|
71544
|
+
var args54, tool$evalsRagasHarmfulness;
|
|
70984
71545
|
var init_evalsRagasHarmfulness2 = __esm(() => {
|
|
70985
71546
|
init_evalsRagasHarmfulness();
|
|
70986
71547
|
init_operations();
|
|
70987
71548
|
init_tools();
|
|
70988
|
-
|
|
71549
|
+
args54 = {
|
|
70989
71550
|
request: EvalsRagasHarmfulnessRequestBody$inboundSchema.optional()
|
|
70990
71551
|
};
|
|
70991
71552
|
tool$evalsRagasHarmfulness = {
|
|
70992
71553
|
name: "evals-ragas-harmfulness",
|
|
70993
71554
|
description: `Run Harmfulness Evaluator`,
|
|
70994
|
-
args:
|
|
70995
|
-
tool: async (client,
|
|
70996
|
-
const [result, apiCall] = await evalsRagasHarmfulness(client,
|
|
71555
|
+
args: args54,
|
|
71556
|
+
tool: async (client, args55, ctx) => {
|
|
71557
|
+
const [result, apiCall] = await evalsRagasHarmfulness(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
70997
71558
|
if (!result.ok) {
|
|
70998
71559
|
return {
|
|
70999
71560
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71008,9 +71569,9 @@ var init_evalsRagasHarmfulness2 = __esm(() => {
|
|
|
71008
71569
|
|
|
71009
71570
|
// src/funcs/evalsRagasMaliciousness.ts
|
|
71010
71571
|
function evalsRagasMaliciousness(client, request, options) {
|
|
71011
|
-
return new APIPromise($
|
|
71572
|
+
return new APIPromise($do55(client, request, options));
|
|
71012
71573
|
}
|
|
71013
|
-
async function $
|
|
71574
|
+
async function $do55(client, request, options) {
|
|
71014
71575
|
const parsed = safeParse(request, (value) => EvalsRagasMaliciousnessRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71015
71576
|
if (!parsed.ok) {
|
|
71016
71577
|
return [parsed, { status: "invalid" }];
|
|
@@ -71081,20 +71642,20 @@ var init_evalsRagasMaliciousness = __esm(() => {
|
|
|
71081
71642
|
});
|
|
71082
71643
|
|
|
71083
71644
|
// src/mcp-server/tools/evalsRagasMaliciousness.ts
|
|
71084
|
-
var
|
|
71645
|
+
var args55, tool$evalsRagasMaliciousness;
|
|
71085
71646
|
var init_evalsRagasMaliciousness2 = __esm(() => {
|
|
71086
71647
|
init_evalsRagasMaliciousness();
|
|
71087
71648
|
init_operations();
|
|
71088
71649
|
init_tools();
|
|
71089
|
-
|
|
71650
|
+
args55 = {
|
|
71090
71651
|
request: EvalsRagasMaliciousnessRequestBody$inboundSchema.optional()
|
|
71091
71652
|
};
|
|
71092
71653
|
tool$evalsRagasMaliciousness = {
|
|
71093
71654
|
name: "evals-ragas-maliciousness",
|
|
71094
71655
|
description: `Run Maliciousness Evaluator`,
|
|
71095
|
-
args:
|
|
71096
|
-
tool: async (client,
|
|
71097
|
-
const [result, apiCall] = await evalsRagasMaliciousness(client,
|
|
71656
|
+
args: args55,
|
|
71657
|
+
tool: async (client, args56, ctx) => {
|
|
71658
|
+
const [result, apiCall] = await evalsRagasMaliciousness(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71098
71659
|
if (!result.ok) {
|
|
71099
71660
|
return {
|
|
71100
71661
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71109,9 +71670,9 @@ var init_evalsRagasMaliciousness2 = __esm(() => {
|
|
|
71109
71670
|
|
|
71110
71671
|
// src/funcs/evalsRagasNoiseSensitivity.ts
|
|
71111
71672
|
function evalsRagasNoiseSensitivity(client, request, options) {
|
|
71112
|
-
return new APIPromise($
|
|
71673
|
+
return new APIPromise($do56(client, request, options));
|
|
71113
71674
|
}
|
|
71114
|
-
async function $
|
|
71675
|
+
async function $do56(client, request, options) {
|
|
71115
71676
|
const parsed = safeParse(request, (value) => EvalsRagasNoiseSensitivityRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71116
71677
|
if (!parsed.ok) {
|
|
71117
71678
|
return [parsed, { status: "invalid" }];
|
|
@@ -71182,20 +71743,20 @@ var init_evalsRagasNoiseSensitivity = __esm(() => {
|
|
|
71182
71743
|
});
|
|
71183
71744
|
|
|
71184
71745
|
// src/mcp-server/tools/evalsRagasNoiseSensitivity.ts
|
|
71185
|
-
var
|
|
71746
|
+
var args56, tool$evalsRagasNoiseSensitivity;
|
|
71186
71747
|
var init_evalsRagasNoiseSensitivity2 = __esm(() => {
|
|
71187
71748
|
init_evalsRagasNoiseSensitivity();
|
|
71188
71749
|
init_operations();
|
|
71189
71750
|
init_tools();
|
|
71190
|
-
|
|
71751
|
+
args56 = {
|
|
71191
71752
|
request: EvalsRagasNoiseSensitivityRequestBody$inboundSchema.optional()
|
|
71192
71753
|
};
|
|
71193
71754
|
tool$evalsRagasNoiseSensitivity = {
|
|
71194
71755
|
name: "evals-ragas-noise-sensitivity",
|
|
71195
71756
|
description: `Run Noise Sensitivity Evaluator`,
|
|
71196
|
-
args:
|
|
71197
|
-
tool: async (client,
|
|
71198
|
-
const [result, apiCall] = await evalsRagasNoiseSensitivity(client,
|
|
71757
|
+
args: args56,
|
|
71758
|
+
tool: async (client, args57, ctx) => {
|
|
71759
|
+
const [result, apiCall] = await evalsRagasNoiseSensitivity(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71199
71760
|
if (!result.ok) {
|
|
71200
71761
|
return {
|
|
71201
71762
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71210,9 +71771,9 @@ var init_evalsRagasNoiseSensitivity2 = __esm(() => {
|
|
|
71210
71771
|
|
|
71211
71772
|
// src/funcs/evalsRagasResponseRelevancy.ts
|
|
71212
71773
|
function evalsRagasResponseRelevancy(client, request, options) {
|
|
71213
|
-
return new APIPromise($
|
|
71774
|
+
return new APIPromise($do57(client, request, options));
|
|
71214
71775
|
}
|
|
71215
|
-
async function $
|
|
71776
|
+
async function $do57(client, request, options) {
|
|
71216
71777
|
const parsed = safeParse(request, (value) => EvalsRagasResponseRelevancyRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71217
71778
|
if (!parsed.ok) {
|
|
71218
71779
|
return [parsed, { status: "invalid" }];
|
|
@@ -71283,20 +71844,20 @@ var init_evalsRagasResponseRelevancy = __esm(() => {
|
|
|
71283
71844
|
});
|
|
71284
71845
|
|
|
71285
71846
|
// src/mcp-server/tools/evalsRagasResponseRelevancy.ts
|
|
71286
|
-
var
|
|
71847
|
+
var args57, tool$evalsRagasResponseRelevancy;
|
|
71287
71848
|
var init_evalsRagasResponseRelevancy2 = __esm(() => {
|
|
71288
71849
|
init_evalsRagasResponseRelevancy();
|
|
71289
71850
|
init_operations();
|
|
71290
71851
|
init_tools();
|
|
71291
|
-
|
|
71852
|
+
args57 = {
|
|
71292
71853
|
request: EvalsRagasResponseRelevancyRequestBody$inboundSchema.optional()
|
|
71293
71854
|
};
|
|
71294
71855
|
tool$evalsRagasResponseRelevancy = {
|
|
71295
71856
|
name: "evals-ragas-response-relevancy",
|
|
71296
71857
|
description: `Run Response Relevancy Evaluator`,
|
|
71297
|
-
args:
|
|
71298
|
-
tool: async (client,
|
|
71299
|
-
const [result, apiCall] = await evalsRagasResponseRelevancy(client,
|
|
71858
|
+
args: args57,
|
|
71859
|
+
tool: async (client, args58, ctx) => {
|
|
71860
|
+
const [result, apiCall] = await evalsRagasResponseRelevancy(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71300
71861
|
if (!result.ok) {
|
|
71301
71862
|
return {
|
|
71302
71863
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71311,9 +71872,9 @@ var init_evalsRagasResponseRelevancy2 = __esm(() => {
|
|
|
71311
71872
|
|
|
71312
71873
|
// src/funcs/evalsRagasSummarization.ts
|
|
71313
71874
|
function evalsRagasSummarization(client, request, options) {
|
|
71314
|
-
return new APIPromise($
|
|
71875
|
+
return new APIPromise($do58(client, request, options));
|
|
71315
71876
|
}
|
|
71316
|
-
async function $
|
|
71877
|
+
async function $do58(client, request, options) {
|
|
71317
71878
|
const parsed = safeParse(request, (value) => EvalsRagasSummarizationRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71318
71879
|
if (!parsed.ok) {
|
|
71319
71880
|
return [parsed, { status: "invalid" }];
|
|
@@ -71384,20 +71945,20 @@ var init_evalsRagasSummarization = __esm(() => {
|
|
|
71384
71945
|
});
|
|
71385
71946
|
|
|
71386
71947
|
// src/mcp-server/tools/evalsRagasSummarization.ts
|
|
71387
|
-
var
|
|
71948
|
+
var args58, tool$evalsRagasSummarization;
|
|
71388
71949
|
var init_evalsRagasSummarization2 = __esm(() => {
|
|
71389
71950
|
init_evalsRagasSummarization();
|
|
71390
71951
|
init_operations();
|
|
71391
71952
|
init_tools();
|
|
71392
|
-
|
|
71953
|
+
args58 = {
|
|
71393
71954
|
request: EvalsRagasSummarizationRequestBody$inboundSchema.optional()
|
|
71394
71955
|
};
|
|
71395
71956
|
tool$evalsRagasSummarization = {
|
|
71396
71957
|
name: "evals-ragas-summarization",
|
|
71397
71958
|
description: `Run Summarization Evaluator`,
|
|
71398
|
-
args:
|
|
71399
|
-
tool: async (client,
|
|
71400
|
-
const [result, apiCall] = await evalsRagasSummarization(client,
|
|
71959
|
+
args: args58,
|
|
71960
|
+
tool: async (client, args59, ctx) => {
|
|
71961
|
+
const [result, apiCall] = await evalsRagasSummarization(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71401
71962
|
if (!result.ok) {
|
|
71402
71963
|
return {
|
|
71403
71964
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71412,9 +71973,9 @@ var init_evalsRagasSummarization2 = __esm(() => {
|
|
|
71412
71973
|
|
|
71413
71974
|
// src/funcs/evalsSentimentClassification.ts
|
|
71414
71975
|
function evalsSentimentClassification(client, request, options) {
|
|
71415
|
-
return new APIPromise($
|
|
71976
|
+
return new APIPromise($do59(client, request, options));
|
|
71416
71977
|
}
|
|
71417
|
-
async function $
|
|
71978
|
+
async function $do59(client, request, options) {
|
|
71418
71979
|
const parsed = safeParse(request, (value) => EvalsSentimentClassificationRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71419
71980
|
if (!parsed.ok) {
|
|
71420
71981
|
return [parsed, { status: "invalid" }];
|
|
@@ -71485,20 +72046,20 @@ var init_evalsSentimentClassification = __esm(() => {
|
|
|
71485
72046
|
});
|
|
71486
72047
|
|
|
71487
72048
|
// src/mcp-server/tools/evalsSentimentClassification.ts
|
|
71488
|
-
var
|
|
72049
|
+
var args59, tool$evalsSentimentClassification;
|
|
71489
72050
|
var init_evalsSentimentClassification2 = __esm(() => {
|
|
71490
72051
|
init_evalsSentimentClassification();
|
|
71491
72052
|
init_operations();
|
|
71492
72053
|
init_tools();
|
|
71493
|
-
|
|
72054
|
+
args59 = {
|
|
71494
72055
|
request: EvalsSentimentClassificationRequestBody$inboundSchema.optional()
|
|
71495
72056
|
};
|
|
71496
72057
|
tool$evalsSentimentClassification = {
|
|
71497
72058
|
name: "evals-sentiment-classification",
|
|
71498
72059
|
description: `Run Sentiment Classification Evaluator`,
|
|
71499
|
-
args:
|
|
71500
|
-
tool: async (client,
|
|
71501
|
-
const [result, apiCall] = await evalsSentimentClassification(client,
|
|
72060
|
+
args: args59,
|
|
72061
|
+
tool: async (client, args60, ctx) => {
|
|
72062
|
+
const [result, apiCall] = await evalsSentimentClassification(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71502
72063
|
if (!result.ok) {
|
|
71503
72064
|
return {
|
|
71504
72065
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71513,9 +72074,9 @@ var init_evalsSentimentClassification2 = __esm(() => {
|
|
|
71513
72074
|
|
|
71514
72075
|
// src/funcs/evalsSummarization.ts
|
|
71515
72076
|
function evalsSummarization(client, request, options) {
|
|
71516
|
-
return new APIPromise($
|
|
72077
|
+
return new APIPromise($do60(client, request, options));
|
|
71517
72078
|
}
|
|
71518
|
-
async function $
|
|
72079
|
+
async function $do60(client, request, options) {
|
|
71519
72080
|
const parsed = safeParse(request, (value) => EvalsSummarizationRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71520
72081
|
if (!parsed.ok) {
|
|
71521
72082
|
return [parsed, { status: "invalid" }];
|
|
@@ -71586,20 +72147,20 @@ var init_evalsSummarization = __esm(() => {
|
|
|
71586
72147
|
});
|
|
71587
72148
|
|
|
71588
72149
|
// src/mcp-server/tools/evalsSummarization.ts
|
|
71589
|
-
var
|
|
72150
|
+
var args60, tool$evalsSummarization;
|
|
71590
72151
|
var init_evalsSummarization2 = __esm(() => {
|
|
71591
72152
|
init_evalsSummarization();
|
|
71592
72153
|
init_operations();
|
|
71593
72154
|
init_tools();
|
|
71594
|
-
|
|
72155
|
+
args60 = {
|
|
71595
72156
|
request: EvalsSummarizationRequestBody$inboundSchema.optional()
|
|
71596
72157
|
};
|
|
71597
72158
|
tool$evalsSummarization = {
|
|
71598
72159
|
name: "evals-summarization",
|
|
71599
72160
|
description: `Run Summarization Evaluator`,
|
|
71600
|
-
args:
|
|
71601
|
-
tool: async (client,
|
|
71602
|
-
const [result, apiCall] = await evalsSummarization(client,
|
|
72161
|
+
args: args60,
|
|
72162
|
+
tool: async (client, args61, ctx) => {
|
|
72163
|
+
const [result, apiCall] = await evalsSummarization(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71603
72164
|
if (!result.ok) {
|
|
71604
72165
|
return {
|
|
71605
72166
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71614,9 +72175,9 @@ var init_evalsSummarization2 = __esm(() => {
|
|
|
71614
72175
|
|
|
71615
72176
|
// src/funcs/evalsToneOfVoice.ts
|
|
71616
72177
|
function evalsToneOfVoice(client, request, options) {
|
|
71617
|
-
return new APIPromise($
|
|
72178
|
+
return new APIPromise($do61(client, request, options));
|
|
71618
72179
|
}
|
|
71619
|
-
async function $
|
|
72180
|
+
async function $do61(client, request, options) {
|
|
71620
72181
|
const parsed = safeParse(request, (value) => EvalsToneOfVoiceRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71621
72182
|
if (!parsed.ok) {
|
|
71622
72183
|
return [parsed, { status: "invalid" }];
|
|
@@ -71687,20 +72248,20 @@ var init_evalsToneOfVoice = __esm(() => {
|
|
|
71687
72248
|
});
|
|
71688
72249
|
|
|
71689
72250
|
// src/mcp-server/tools/evalsToneOfVoice.ts
|
|
71690
|
-
var
|
|
72251
|
+
var args61, tool$evalsToneOfVoice;
|
|
71691
72252
|
var init_evalsToneOfVoice2 = __esm(() => {
|
|
71692
72253
|
init_evalsToneOfVoice();
|
|
71693
72254
|
init_operations();
|
|
71694
72255
|
init_tools();
|
|
71695
|
-
|
|
72256
|
+
args61 = {
|
|
71696
72257
|
request: EvalsToneOfVoiceRequestBody$inboundSchema.optional()
|
|
71697
72258
|
};
|
|
71698
72259
|
tool$evalsToneOfVoice = {
|
|
71699
72260
|
name: "evals-tone-of-voice",
|
|
71700
72261
|
description: `Run Tone of Voice Evaluator`,
|
|
71701
|
-
args:
|
|
71702
|
-
tool: async (client,
|
|
71703
|
-
const [result, apiCall] = await evalsToneOfVoice(client,
|
|
72262
|
+
args: args61,
|
|
72263
|
+
tool: async (client, args62, ctx) => {
|
|
72264
|
+
const [result, apiCall] = await evalsToneOfVoice(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71704
72265
|
if (!result.ok) {
|
|
71705
72266
|
return {
|
|
71706
72267
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71715,9 +72276,9 @@ var init_evalsToneOfVoice2 = __esm(() => {
|
|
|
71715
72276
|
|
|
71716
72277
|
// src/funcs/evalsTranslation.ts
|
|
71717
72278
|
function evalsTranslation(client, request, options) {
|
|
71718
|
-
return new APIPromise($
|
|
72279
|
+
return new APIPromise($do62(client, request, options));
|
|
71719
72280
|
}
|
|
71720
|
-
async function $
|
|
72281
|
+
async function $do62(client, request, options) {
|
|
71721
72282
|
const parsed = safeParse(request, (value) => EvalsTranslationRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71722
72283
|
if (!parsed.ok) {
|
|
71723
72284
|
return [parsed, { status: "invalid" }];
|
|
@@ -71788,20 +72349,20 @@ var init_evalsTranslation = __esm(() => {
|
|
|
71788
72349
|
});
|
|
71789
72350
|
|
|
71790
72351
|
// src/mcp-server/tools/evalsTranslation.ts
|
|
71791
|
-
var
|
|
72352
|
+
var args62, tool$evalsTranslation;
|
|
71792
72353
|
var init_evalsTranslation2 = __esm(() => {
|
|
71793
72354
|
init_evalsTranslation();
|
|
71794
72355
|
init_operations();
|
|
71795
72356
|
init_tools();
|
|
71796
|
-
|
|
72357
|
+
args62 = {
|
|
71797
72358
|
request: EvalsTranslationRequestBody$inboundSchema.optional()
|
|
71798
72359
|
};
|
|
71799
72360
|
tool$evalsTranslation = {
|
|
71800
72361
|
name: "evals-translation",
|
|
71801
72362
|
description: `Run Translation Evaluator`,
|
|
71802
|
-
args:
|
|
71803
|
-
tool: async (client,
|
|
71804
|
-
const [result, apiCall] = await evalsTranslation(client,
|
|
72363
|
+
args: args62,
|
|
72364
|
+
tool: async (client, args63, ctx) => {
|
|
72365
|
+
const [result, apiCall] = await evalsTranslation(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71805
72366
|
if (!result.ok) {
|
|
71806
72367
|
return {
|
|
71807
72368
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71816,9 +72377,9 @@ var init_evalsTranslation2 = __esm(() => {
|
|
|
71816
72377
|
|
|
71817
72378
|
// src/funcs/evalsUpdate.ts
|
|
71818
72379
|
function evalsUpdate(client, request, options) {
|
|
71819
|
-
return new APIPromise($
|
|
72380
|
+
return new APIPromise($do63(client, request, options));
|
|
71820
72381
|
}
|
|
71821
|
-
async function $
|
|
72382
|
+
async function $do63(client, request, options) {
|
|
71822
72383
|
const parsed = safeParse(request, (value) => UpdateEvalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
71823
72384
|
if (!parsed.ok) {
|
|
71824
72385
|
return [parsed, { status: "invalid" }];
|
|
@@ -71895,20 +72456,20 @@ var init_evalsUpdate = __esm(() => {
|
|
|
71895
72456
|
});
|
|
71896
72457
|
|
|
71897
72458
|
// src/mcp-server/tools/evalsUpdate.ts
|
|
71898
|
-
var
|
|
72459
|
+
var args63, tool$evalsUpdate;
|
|
71899
72460
|
var init_evalsUpdate2 = __esm(() => {
|
|
71900
72461
|
init_evalsUpdate();
|
|
71901
72462
|
init_operations();
|
|
71902
72463
|
init_tools();
|
|
71903
|
-
|
|
72464
|
+
args63 = {
|
|
71904
72465
|
request: UpdateEvalRequest$inboundSchema
|
|
71905
72466
|
};
|
|
71906
72467
|
tool$evalsUpdate = {
|
|
71907
72468
|
name: "evals-update",
|
|
71908
72469
|
description: `Update an Evaluator`,
|
|
71909
|
-
args:
|
|
71910
|
-
tool: async (client,
|
|
71911
|
-
const [result, apiCall] = await evalsUpdate(client,
|
|
72470
|
+
args: args63,
|
|
72471
|
+
tool: async (client, args64, ctx) => {
|
|
72472
|
+
const [result, apiCall] = await evalsUpdate(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
71912
72473
|
if (!result.ok) {
|
|
71913
72474
|
return {
|
|
71914
72475
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -71923,9 +72484,9 @@ var init_evalsUpdate2 = __esm(() => {
|
|
|
71923
72484
|
|
|
71924
72485
|
// src/funcs/evalsValidJson.ts
|
|
71925
72486
|
function evalsValidJson(client, request, options) {
|
|
71926
|
-
return new APIPromise($
|
|
72487
|
+
return new APIPromise($do64(client, request, options));
|
|
71927
72488
|
}
|
|
71928
|
-
async function $
|
|
72489
|
+
async function $do64(client, request, options) {
|
|
71929
72490
|
const parsed = safeParse(request, (value) => EvalsValidJsonRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
71930
72491
|
if (!parsed.ok) {
|
|
71931
72492
|
return [parsed, { status: "invalid" }];
|
|
@@ -71996,20 +72557,20 @@ var init_evalsValidJson = __esm(() => {
|
|
|
71996
72557
|
});
|
|
71997
72558
|
|
|
71998
72559
|
// src/mcp-server/tools/evalsValidJson.ts
|
|
71999
|
-
var
|
|
72560
|
+
var args64, tool$evalsValidJson;
|
|
72000
72561
|
var init_evalsValidJson2 = __esm(() => {
|
|
72001
72562
|
init_evalsValidJson();
|
|
72002
72563
|
init_operations();
|
|
72003
72564
|
init_tools();
|
|
72004
|
-
|
|
72565
|
+
args64 = {
|
|
72005
72566
|
request: EvalsValidJsonRequestBody$inboundSchema.optional()
|
|
72006
72567
|
};
|
|
72007
72568
|
tool$evalsValidJson = {
|
|
72008
72569
|
name: "evals-valid-json",
|
|
72009
72570
|
description: `Run JSON Validation Evaluator`,
|
|
72010
|
-
args:
|
|
72011
|
-
tool: async (client,
|
|
72012
|
-
const [result, apiCall] = await evalsValidJson(client,
|
|
72571
|
+
args: args64,
|
|
72572
|
+
tool: async (client, args65, ctx) => {
|
|
72573
|
+
const [result, apiCall] = await evalsValidJson(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72013
72574
|
if (!result.ok) {
|
|
72014
72575
|
return {
|
|
72015
72576
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72024,9 +72585,9 @@ var init_evalsValidJson2 = __esm(() => {
|
|
|
72024
72585
|
|
|
72025
72586
|
// src/funcs/feedbackCreate.ts
|
|
72026
72587
|
function feedbackCreate(client, request, options) {
|
|
72027
|
-
return new APIPromise($
|
|
72588
|
+
return new APIPromise($do65(client, request, options));
|
|
72028
72589
|
}
|
|
72029
|
-
async function $
|
|
72590
|
+
async function $do65(client, request, options) {
|
|
72030
72591
|
const parsed = safeParse(request, (value) => CreateFeedbackRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
72031
72592
|
if (!parsed.ok) {
|
|
72032
72593
|
return [parsed, { status: "invalid" }];
|
|
@@ -72093,12 +72654,12 @@ var init_feedbackCreate = __esm(() => {
|
|
|
72093
72654
|
});
|
|
72094
72655
|
|
|
72095
72656
|
// src/mcp-server/tools/feedbackCreate.ts
|
|
72096
|
-
var
|
|
72657
|
+
var args65, tool$feedbackCreate;
|
|
72097
72658
|
var init_feedbackCreate2 = __esm(() => {
|
|
72098
72659
|
init_feedbackCreate();
|
|
72099
72660
|
init_operations();
|
|
72100
72661
|
init_tools();
|
|
72101
|
-
|
|
72662
|
+
args65 = {
|
|
72102
72663
|
request: CreateFeedbackRequestBody$inboundSchema
|
|
72103
72664
|
};
|
|
72104
72665
|
tool$feedbackCreate = {
|
|
@@ -72106,9 +72667,9 @@ var init_feedbackCreate2 = __esm(() => {
|
|
|
72106
72667
|
description: `Submit feedback
|
|
72107
72668
|
|
|
72108
72669
|
Submit feedback for the LLM transaction via the API`,
|
|
72109
|
-
args:
|
|
72110
|
-
tool: async (client,
|
|
72111
|
-
const [result, apiCall] = await feedbackCreate(client,
|
|
72670
|
+
args: args65,
|
|
72671
|
+
tool: async (client, args66, ctx) => {
|
|
72672
|
+
const [result, apiCall] = await feedbackCreate(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72112
72673
|
if (!result.ok) {
|
|
72113
72674
|
return {
|
|
72114
72675
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72192,9 +72753,9 @@ function isReadableStream(val) {
|
|
|
72192
72753
|
|
|
72193
72754
|
// src/funcs/filesCreate.ts
|
|
72194
72755
|
function filesCreate(client, request, options) {
|
|
72195
|
-
return new APIPromise($
|
|
72756
|
+
return new APIPromise($do66(client, request, options));
|
|
72196
72757
|
}
|
|
72197
|
-
async function $
|
|
72758
|
+
async function $do66(client, request, options) {
|
|
72198
72759
|
const parsed = safeParse(request, (value) => FileUploadRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
72199
72760
|
if (!parsed.ok) {
|
|
72200
72761
|
return [parsed, { status: "invalid" }];
|
|
@@ -72275,12 +72836,12 @@ var init_filesCreate = __esm(() => {
|
|
|
72275
72836
|
});
|
|
72276
72837
|
|
|
72277
72838
|
// src/mcp-server/tools/filesCreate.ts
|
|
72278
|
-
var
|
|
72839
|
+
var args66, tool$filesCreate;
|
|
72279
72840
|
var init_filesCreate2 = __esm(() => {
|
|
72280
72841
|
init_filesCreate();
|
|
72281
72842
|
init_operations();
|
|
72282
72843
|
init_tools();
|
|
72283
|
-
|
|
72844
|
+
args66 = {
|
|
72284
72845
|
request: FileUploadRequestBody$inboundSchema
|
|
72285
72846
|
};
|
|
72286
72847
|
tool$filesCreate = {
|
|
@@ -72288,9 +72849,9 @@ var init_filesCreate2 = __esm(() => {
|
|
|
72288
72849
|
description: `Create file
|
|
72289
72850
|
|
|
72290
72851
|
Files are used to upload documents that can be used with features like [Deployments](https://docs.orq.ai/reference/deploymentinvoke-1).`,
|
|
72291
|
-
args:
|
|
72292
|
-
tool: async (client,
|
|
72293
|
-
const [result, apiCall] = await filesCreate(client,
|
|
72852
|
+
args: args66,
|
|
72853
|
+
tool: async (client, args67, ctx) => {
|
|
72854
|
+
const [result, apiCall] = await filesCreate(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72294
72855
|
if (!result.ok) {
|
|
72295
72856
|
return {
|
|
72296
72857
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72305,9 +72866,9 @@ Files are used to upload documents that can be used with features like [Deployme
|
|
|
72305
72866
|
|
|
72306
72867
|
// src/funcs/filesDelete.ts
|
|
72307
72868
|
function filesDelete(client, request, options) {
|
|
72308
|
-
return new APIPromise($
|
|
72869
|
+
return new APIPromise($do67(client, request, options));
|
|
72309
72870
|
}
|
|
72310
|
-
async function $
|
|
72871
|
+
async function $do67(client, request, options) {
|
|
72311
72872
|
const parsed = safeParse(request, (value) => FileDeleteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72312
72873
|
if (!parsed.ok) {
|
|
72313
72874
|
return [parsed, { status: "invalid" }];
|
|
@@ -72380,20 +72941,20 @@ var init_filesDelete = __esm(() => {
|
|
|
72380
72941
|
});
|
|
72381
72942
|
|
|
72382
72943
|
// src/mcp-server/tools/filesDelete.ts
|
|
72383
|
-
var
|
|
72944
|
+
var args67, tool$filesDelete;
|
|
72384
72945
|
var init_filesDelete2 = __esm(() => {
|
|
72385
72946
|
init_filesDelete();
|
|
72386
72947
|
init_operations();
|
|
72387
72948
|
init_tools();
|
|
72388
|
-
|
|
72949
|
+
args67 = {
|
|
72389
72950
|
request: FileDeleteRequest$inboundSchema
|
|
72390
72951
|
};
|
|
72391
72952
|
tool$filesDelete = {
|
|
72392
72953
|
name: "files-delete",
|
|
72393
72954
|
description: `Delete file`,
|
|
72394
|
-
args:
|
|
72395
|
-
tool: async (client,
|
|
72396
|
-
const [result, apiCall] = await filesDelete(client,
|
|
72955
|
+
args: args67,
|
|
72956
|
+
tool: async (client, args68, ctx) => {
|
|
72957
|
+
const [result, apiCall] = await filesDelete(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72397
72958
|
if (!result.ok) {
|
|
72398
72959
|
return {
|
|
72399
72960
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72407,9 +72968,9 @@ var init_filesDelete2 = __esm(() => {
|
|
|
72407
72968
|
|
|
72408
72969
|
// src/funcs/filesGet.ts
|
|
72409
72970
|
function filesGet(client, request, options) {
|
|
72410
|
-
return new APIPromise($
|
|
72971
|
+
return new APIPromise($do68(client, request, options));
|
|
72411
72972
|
}
|
|
72412
|
-
async function $
|
|
72973
|
+
async function $do68(client, request, options) {
|
|
72413
72974
|
const parsed = safeParse(request, (value) => FileGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72414
72975
|
if (!parsed.ok) {
|
|
72415
72976
|
return [parsed, { status: "invalid" }];
|
|
@@ -72481,12 +73042,12 @@ var init_filesGet = __esm(() => {
|
|
|
72481
73042
|
});
|
|
72482
73043
|
|
|
72483
73044
|
// src/mcp-server/tools/filesGet.ts
|
|
72484
|
-
var
|
|
73045
|
+
var args68, tool$filesGet;
|
|
72485
73046
|
var init_filesGet2 = __esm(() => {
|
|
72486
73047
|
init_filesGet();
|
|
72487
73048
|
init_operations();
|
|
72488
73049
|
init_tools();
|
|
72489
|
-
|
|
73050
|
+
args68 = {
|
|
72490
73051
|
request: FileGetRequest$inboundSchema
|
|
72491
73052
|
};
|
|
72492
73053
|
tool$filesGet = {
|
|
@@ -72494,9 +73055,9 @@ var init_filesGet2 = __esm(() => {
|
|
|
72494
73055
|
description: `Retrieve a file
|
|
72495
73056
|
|
|
72496
73057
|
Retrieves the details of an existing file object. After you supply a unique file ID, orq.ai returns the corresponding file object`,
|
|
72497
|
-
args:
|
|
72498
|
-
tool: async (client,
|
|
72499
|
-
const [result, apiCall] = await filesGet(client,
|
|
73058
|
+
args: args68,
|
|
73059
|
+
tool: async (client, args69, ctx) => {
|
|
73060
|
+
const [result, apiCall] = await filesGet(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72500
73061
|
if (!result.ok) {
|
|
72501
73062
|
return {
|
|
72502
73063
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72511,9 +73072,9 @@ Retrieves the details of an existing file object. After you supply a unique file
|
|
|
72511
73072
|
|
|
72512
73073
|
// src/funcs/filesList.ts
|
|
72513
73074
|
function filesList(client, request, options) {
|
|
72514
|
-
return new APIPromise($
|
|
73075
|
+
return new APIPromise($do69(client, request, options));
|
|
72515
73076
|
}
|
|
72516
|
-
async function $
|
|
73077
|
+
async function $do69(client, request, options) {
|
|
72517
73078
|
const parsed = safeParse(request, (value) => FileListRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
72518
73079
|
if (!parsed.ok) {
|
|
72519
73080
|
return [parsed, { status: "invalid" }];
|
|
@@ -72585,12 +73146,12 @@ var init_filesList = __esm(() => {
|
|
|
72585
73146
|
});
|
|
72586
73147
|
|
|
72587
73148
|
// src/mcp-server/tools/filesList.ts
|
|
72588
|
-
var
|
|
73149
|
+
var args69, tool$filesList;
|
|
72589
73150
|
var init_filesList2 = __esm(() => {
|
|
72590
73151
|
init_filesList();
|
|
72591
73152
|
init_operations();
|
|
72592
73153
|
init_tools();
|
|
72593
|
-
|
|
73154
|
+
args69 = {
|
|
72594
73155
|
request: FileListRequest$inboundSchema.optional()
|
|
72595
73156
|
};
|
|
72596
73157
|
tool$filesList = {
|
|
@@ -72598,9 +73159,9 @@ var init_filesList2 = __esm(() => {
|
|
|
72598
73159
|
description: `List all files
|
|
72599
73160
|
|
|
72600
73161
|
Returns a list of the files that your account has access to. orq.ai sorts and returns the files by their creation dates, placing the most recently created files at the top.`,
|
|
72601
|
-
args:
|
|
72602
|
-
tool: async (client,
|
|
72603
|
-
const [result, apiCall] = await filesList(client,
|
|
73162
|
+
args: args69,
|
|
73163
|
+
tool: async (client, args70, ctx) => {
|
|
73164
|
+
const [result, apiCall] = await filesList(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72604
73165
|
if (!result.ok) {
|
|
72605
73166
|
return {
|
|
72606
73167
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72615,9 +73176,9 @@ Returns a list of the files that your account has access to. orq.ai sorts and re
|
|
|
72615
73176
|
|
|
72616
73177
|
// src/funcs/knowledgeCreate.ts
|
|
72617
73178
|
function knowledgeCreate(client, request, options) {
|
|
72618
|
-
return new APIPromise($
|
|
73179
|
+
return new APIPromise($do70(client, request, options));
|
|
72619
73180
|
}
|
|
72620
|
-
async function $
|
|
73181
|
+
async function $do70(client, request, options) {
|
|
72621
73182
|
const parsed = safeParse(request, (value) => CreateKnowledgeRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
72622
73183
|
if (!parsed.ok) {
|
|
72623
73184
|
return [parsed, { status: "invalid" }];
|
|
@@ -72684,20 +73245,20 @@ var init_knowledgeCreate = __esm(() => {
|
|
|
72684
73245
|
});
|
|
72685
73246
|
|
|
72686
73247
|
// src/mcp-server/tools/knowledgeCreate.ts
|
|
72687
|
-
var
|
|
73248
|
+
var args70, tool$knowledgeCreate;
|
|
72688
73249
|
var init_knowledgeCreate2 = __esm(() => {
|
|
72689
73250
|
init_knowledgeCreate();
|
|
72690
73251
|
init_operations();
|
|
72691
73252
|
init_tools();
|
|
72692
|
-
|
|
73253
|
+
args70 = {
|
|
72693
73254
|
request: CreateKnowledgeRequestBody$inboundSchema
|
|
72694
73255
|
};
|
|
72695
73256
|
tool$knowledgeCreate = {
|
|
72696
73257
|
name: "knowledge-create",
|
|
72697
73258
|
description: `Create a knowledge`,
|
|
72698
|
-
args:
|
|
72699
|
-
tool: async (client,
|
|
72700
|
-
const [result, apiCall] = await knowledgeCreate(client,
|
|
73259
|
+
args: args70,
|
|
73260
|
+
tool: async (client, args71, ctx) => {
|
|
73261
|
+
const [result, apiCall] = await knowledgeCreate(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72701
73262
|
if (!result.ok) {
|
|
72702
73263
|
return {
|
|
72703
73264
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72712,9 +73273,9 @@ var init_knowledgeCreate2 = __esm(() => {
|
|
|
72712
73273
|
|
|
72713
73274
|
// src/funcs/knowledgeCreateChunks.ts
|
|
72714
73275
|
function knowledgeCreateChunks(client, request, options) {
|
|
72715
|
-
return new APIPromise($
|
|
73276
|
+
return new APIPromise($do71(client, request, options));
|
|
72716
73277
|
}
|
|
72717
|
-
async function $
|
|
73278
|
+
async function $do71(client, request, options) {
|
|
72718
73279
|
const parsed = safeParse(request, (value) => CreateChunkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72719
73280
|
if (!parsed.ok) {
|
|
72720
73281
|
return [parsed, { status: "invalid" }];
|
|
@@ -72792,20 +73353,20 @@ var init_knowledgeCreateChunks = __esm(() => {
|
|
|
72792
73353
|
});
|
|
72793
73354
|
|
|
72794
73355
|
// src/mcp-server/tools/knowledgeCreateChunks.ts
|
|
72795
|
-
var
|
|
73356
|
+
var args71, tool$knowledgeCreateChunks;
|
|
72796
73357
|
var init_knowledgeCreateChunks2 = __esm(() => {
|
|
72797
73358
|
init_knowledgeCreateChunks();
|
|
72798
73359
|
init_operations();
|
|
72799
73360
|
init_tools();
|
|
72800
|
-
|
|
73361
|
+
args71 = {
|
|
72801
73362
|
request: CreateChunkRequest$inboundSchema
|
|
72802
73363
|
};
|
|
72803
73364
|
tool$knowledgeCreateChunks = {
|
|
72804
73365
|
name: "knowledge-create-chunks",
|
|
72805
73366
|
description: `Create chunks for a datasource`,
|
|
72806
|
-
args:
|
|
72807
|
-
tool: async (client,
|
|
72808
|
-
const [result, apiCall] = await knowledgeCreateChunks(client,
|
|
73367
|
+
args: args71,
|
|
73368
|
+
tool: async (client, args72, ctx) => {
|
|
73369
|
+
const [result, apiCall] = await knowledgeCreateChunks(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72809
73370
|
if (!result.ok) {
|
|
72810
73371
|
return {
|
|
72811
73372
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72820,9 +73381,9 @@ var init_knowledgeCreateChunks2 = __esm(() => {
|
|
|
72820
73381
|
|
|
72821
73382
|
// src/funcs/knowledgeCreateDatasource.ts
|
|
72822
73383
|
function knowledgeCreateDatasource(client, request, options) {
|
|
72823
|
-
return new APIPromise($
|
|
73384
|
+
return new APIPromise($do72(client, request, options));
|
|
72824
73385
|
}
|
|
72825
|
-
async function $
|
|
73386
|
+
async function $do72(client, request, options) {
|
|
72826
73387
|
const parsed = safeParse(request, (value) => CreateDatasourceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72827
73388
|
if (!parsed.ok) {
|
|
72828
73389
|
return [parsed, { status: "invalid" }];
|
|
@@ -72895,20 +73456,20 @@ var init_knowledgeCreateDatasource = __esm(() => {
|
|
|
72895
73456
|
});
|
|
72896
73457
|
|
|
72897
73458
|
// src/mcp-server/tools/knowledgeCreateDatasource.ts
|
|
72898
|
-
var
|
|
73459
|
+
var args72, tool$knowledgeCreateDatasource;
|
|
72899
73460
|
var init_knowledgeCreateDatasource2 = __esm(() => {
|
|
72900
73461
|
init_knowledgeCreateDatasource();
|
|
72901
73462
|
init_operations();
|
|
72902
73463
|
init_tools();
|
|
72903
|
-
|
|
73464
|
+
args72 = {
|
|
72904
73465
|
request: CreateDatasourceRequest$inboundSchema
|
|
72905
73466
|
};
|
|
72906
73467
|
tool$knowledgeCreateDatasource = {
|
|
72907
73468
|
name: "knowledge-create-datasource",
|
|
72908
73469
|
description: `Create a new datasource`,
|
|
72909
|
-
args:
|
|
72910
|
-
tool: async (client,
|
|
72911
|
-
const [result, apiCall] = await knowledgeCreateDatasource(client,
|
|
73470
|
+
args: args72,
|
|
73471
|
+
tool: async (client, args73, ctx) => {
|
|
73472
|
+
const [result, apiCall] = await knowledgeCreateDatasource(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
72912
73473
|
if (!result.ok) {
|
|
72913
73474
|
return {
|
|
72914
73475
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -72923,9 +73484,9 @@ var init_knowledgeCreateDatasource2 = __esm(() => {
|
|
|
72923
73484
|
|
|
72924
73485
|
// src/funcs/knowledgeDelete.ts
|
|
72925
73486
|
function knowledgeDelete(client, request, options) {
|
|
72926
|
-
return new APIPromise($
|
|
73487
|
+
return new APIPromise($do73(client, request, options));
|
|
72927
73488
|
}
|
|
72928
|
-
async function $
|
|
73489
|
+
async function $do73(client, request, options) {
|
|
72929
73490
|
const parsed = safeParse(request, (value) => DeleteKnowledgeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
72930
73491
|
if (!parsed.ok) {
|
|
72931
73492
|
return [parsed, { status: "invalid" }];
|
|
@@ -72998,12 +73559,12 @@ var init_knowledgeDelete = __esm(() => {
|
|
|
72998
73559
|
});
|
|
72999
73560
|
|
|
73000
73561
|
// src/mcp-server/tools/knowledgeDelete.ts
|
|
73001
|
-
var
|
|
73562
|
+
var args73, tool$knowledgeDelete;
|
|
73002
73563
|
var init_knowledgeDelete2 = __esm(() => {
|
|
73003
73564
|
init_knowledgeDelete();
|
|
73004
73565
|
init_operations();
|
|
73005
73566
|
init_tools();
|
|
73006
|
-
|
|
73567
|
+
args73 = {
|
|
73007
73568
|
request: DeleteKnowledgeRequest$inboundSchema
|
|
73008
73569
|
};
|
|
73009
73570
|
tool$knowledgeDelete = {
|
|
@@ -73011,9 +73572,9 @@ var init_knowledgeDelete2 = __esm(() => {
|
|
|
73011
73572
|
description: `Deletes a knowledge
|
|
73012
73573
|
|
|
73013
73574
|
Deletes a knowledge base. Deleting a knowledge base will delete all the datasources and chunks associated with it.`,
|
|
73014
|
-
args:
|
|
73015
|
-
tool: async (client,
|
|
73016
|
-
const [result, apiCall] = await knowledgeDelete(client,
|
|
73575
|
+
args: args73,
|
|
73576
|
+
tool: async (client, args74, ctx) => {
|
|
73577
|
+
const [result, apiCall] = await knowledgeDelete(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73017
73578
|
if (!result.ok) {
|
|
73018
73579
|
return {
|
|
73019
73580
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73027,9 +73588,9 @@ Deletes a knowledge base. Deleting a knowledge base will delete all the datasour
|
|
|
73027
73588
|
|
|
73028
73589
|
// src/funcs/knowledgeDeleteChunk.ts
|
|
73029
73590
|
function knowledgeDeleteChunk(client, request, options) {
|
|
73030
|
-
return new APIPromise($
|
|
73591
|
+
return new APIPromise($do74(client, request, options));
|
|
73031
73592
|
}
|
|
73032
|
-
async function $
|
|
73593
|
+
async function $do74(client, request, options) {
|
|
73033
73594
|
const parsed = safeParse(request, (value) => DeleteChunkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73034
73595
|
if (!parsed.ok) {
|
|
73035
73596
|
return [parsed, { status: "invalid" }];
|
|
@@ -73110,20 +73671,20 @@ var init_knowledgeDeleteChunk = __esm(() => {
|
|
|
73110
73671
|
});
|
|
73111
73672
|
|
|
73112
73673
|
// src/mcp-server/tools/knowledgeDeleteChunk.ts
|
|
73113
|
-
var
|
|
73674
|
+
var args74, tool$knowledgeDeleteChunk;
|
|
73114
73675
|
var init_knowledgeDeleteChunk2 = __esm(() => {
|
|
73115
73676
|
init_knowledgeDeleteChunk();
|
|
73116
73677
|
init_operations();
|
|
73117
73678
|
init_tools();
|
|
73118
|
-
|
|
73679
|
+
args74 = {
|
|
73119
73680
|
request: DeleteChunkRequest$inboundSchema
|
|
73120
73681
|
};
|
|
73121
73682
|
tool$knowledgeDeleteChunk = {
|
|
73122
73683
|
name: "knowledge-delete-chunk",
|
|
73123
73684
|
description: `Delete a chunk`,
|
|
73124
|
-
args:
|
|
73125
|
-
tool: async (client,
|
|
73126
|
-
const [result, apiCall] = await knowledgeDeleteChunk(client,
|
|
73685
|
+
args: args74,
|
|
73686
|
+
tool: async (client, args75, ctx) => {
|
|
73687
|
+
const [result, apiCall] = await knowledgeDeleteChunk(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73127
73688
|
if (!result.ok) {
|
|
73128
73689
|
return {
|
|
73129
73690
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73137,9 +73698,9 @@ var init_knowledgeDeleteChunk2 = __esm(() => {
|
|
|
73137
73698
|
|
|
73138
73699
|
// src/funcs/knowledgeDeleteDatasource.ts
|
|
73139
73700
|
function knowledgeDeleteDatasource(client, request, options) {
|
|
73140
|
-
return new APIPromise($
|
|
73701
|
+
return new APIPromise($do75(client, request, options));
|
|
73141
73702
|
}
|
|
73142
|
-
async function $
|
|
73703
|
+
async function $do75(client, request, options) {
|
|
73143
73704
|
const parsed = safeParse(request, (value) => DeleteDatasourceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73144
73705
|
if (!parsed.ok) {
|
|
73145
73706
|
return [parsed, { status: "invalid" }];
|
|
@@ -73216,12 +73777,12 @@ var init_knowledgeDeleteDatasource = __esm(() => {
|
|
|
73216
73777
|
});
|
|
73217
73778
|
|
|
73218
73779
|
// src/mcp-server/tools/knowledgeDeleteDatasource.ts
|
|
73219
|
-
var
|
|
73780
|
+
var args75, tool$knowledgeDeleteDatasource;
|
|
73220
73781
|
var init_knowledgeDeleteDatasource2 = __esm(() => {
|
|
73221
73782
|
init_knowledgeDeleteDatasource();
|
|
73222
73783
|
init_operations();
|
|
73223
73784
|
init_tools();
|
|
73224
|
-
|
|
73785
|
+
args75 = {
|
|
73225
73786
|
request: DeleteDatasourceRequest$inboundSchema
|
|
73226
73787
|
};
|
|
73227
73788
|
tool$knowledgeDeleteDatasource = {
|
|
@@ -73229,9 +73790,9 @@ var init_knowledgeDeleteDatasource2 = __esm(() => {
|
|
|
73229
73790
|
description: `Deletes a datasource
|
|
73230
73791
|
|
|
73231
73792
|
Deletes a datasource from a knowledge base. Deleting a datasource will remove it from the knowledge base and all associated chunks. This action is irreversible and cannot be undone.`,
|
|
73232
|
-
args:
|
|
73233
|
-
tool: async (client,
|
|
73234
|
-
const [result, apiCall] = await knowledgeDeleteDatasource(client,
|
|
73793
|
+
args: args75,
|
|
73794
|
+
tool: async (client, args76, ctx) => {
|
|
73795
|
+
const [result, apiCall] = await knowledgeDeleteDatasource(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73235
73796
|
if (!result.ok) {
|
|
73236
73797
|
return {
|
|
73237
73798
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73245,9 +73806,9 @@ Deletes a datasource from a knowledge base. Deleting a datasource will remove it
|
|
|
73245
73806
|
|
|
73246
73807
|
// src/funcs/knowledgeList.ts
|
|
73247
73808
|
function knowledgeList(client, request, options) {
|
|
73248
|
-
return new APIPromise($
|
|
73809
|
+
return new APIPromise($do76(client, request, options));
|
|
73249
73810
|
}
|
|
73250
|
-
async function $
|
|
73811
|
+
async function $do76(client, request, options) {
|
|
73251
73812
|
const parsed = safeParse(request, (value) => ListKnowledgeBasesRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
73252
73813
|
if (!parsed.ok) {
|
|
73253
73814
|
return [parsed, { status: "invalid" }];
|
|
@@ -73319,12 +73880,12 @@ var init_knowledgeList = __esm(() => {
|
|
|
73319
73880
|
});
|
|
73320
73881
|
|
|
73321
73882
|
// src/mcp-server/tools/knowledgeList.ts
|
|
73322
|
-
var
|
|
73883
|
+
var args76, tool$knowledgeList;
|
|
73323
73884
|
var init_knowledgeList2 = __esm(() => {
|
|
73324
73885
|
init_knowledgeList();
|
|
73325
73886
|
init_operations();
|
|
73326
73887
|
init_tools();
|
|
73327
|
-
|
|
73888
|
+
args76 = {
|
|
73328
73889
|
request: ListKnowledgeBasesRequest$inboundSchema.optional()
|
|
73329
73890
|
};
|
|
73330
73891
|
tool$knowledgeList = {
|
|
@@ -73332,9 +73893,9 @@ var init_knowledgeList2 = __esm(() => {
|
|
|
73332
73893
|
description: `List all knowledge bases
|
|
73333
73894
|
|
|
73334
73895
|
Returns a list of your knowledge bases. The knowledge bases are returned sorted by creation date, with the most recent knowledge bases appearing first`,
|
|
73335
|
-
args:
|
|
73336
|
-
tool: async (client,
|
|
73337
|
-
const [result, apiCall] = await knowledgeList(client,
|
|
73896
|
+
args: args76,
|
|
73897
|
+
tool: async (client, args77, ctx) => {
|
|
73898
|
+
const [result, apiCall] = await knowledgeList(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73338
73899
|
if (!result.ok) {
|
|
73339
73900
|
return {
|
|
73340
73901
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73349,9 +73910,9 @@ Returns a list of your knowledge bases. The knowledge bases are returned sorted
|
|
|
73349
73910
|
|
|
73350
73911
|
// src/funcs/knowledgeListChunks.ts
|
|
73351
73912
|
function knowledgeListChunks(client, request, options) {
|
|
73352
|
-
return new APIPromise($
|
|
73913
|
+
return new APIPromise($do77(client, request, options));
|
|
73353
73914
|
}
|
|
73354
|
-
async function $
|
|
73915
|
+
async function $do77(client, request, options) {
|
|
73355
73916
|
const parsed = safeParse(request, (value) => ListChunksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73356
73917
|
if (!parsed.ok) {
|
|
73357
73918
|
return [parsed, { status: "invalid" }];
|
|
@@ -73435,20 +73996,20 @@ var init_knowledgeListChunks = __esm(() => {
|
|
|
73435
73996
|
});
|
|
73436
73997
|
|
|
73437
73998
|
// src/mcp-server/tools/knowledgeListChunks.ts
|
|
73438
|
-
var
|
|
73999
|
+
var args77, tool$knowledgeListChunks;
|
|
73439
74000
|
var init_knowledgeListChunks2 = __esm(() => {
|
|
73440
74001
|
init_knowledgeListChunks();
|
|
73441
74002
|
init_operations();
|
|
73442
74003
|
init_tools();
|
|
73443
|
-
|
|
74004
|
+
args77 = {
|
|
73444
74005
|
request: ListChunksRequest$inboundSchema
|
|
73445
74006
|
};
|
|
73446
74007
|
tool$knowledgeListChunks = {
|
|
73447
74008
|
name: "knowledge-list-chunks",
|
|
73448
74009
|
description: `List all chunks for a datasource`,
|
|
73449
|
-
args:
|
|
73450
|
-
tool: async (client,
|
|
73451
|
-
const [result, apiCall] = await knowledgeListChunks(client,
|
|
74010
|
+
args: args77,
|
|
74011
|
+
tool: async (client, args78, ctx) => {
|
|
74012
|
+
const [result, apiCall] = await knowledgeListChunks(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73452
74013
|
if (!result.ok) {
|
|
73453
74014
|
return {
|
|
73454
74015
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73463,9 +74024,9 @@ var init_knowledgeListChunks2 = __esm(() => {
|
|
|
73463
74024
|
|
|
73464
74025
|
// src/funcs/knowledgeListDatasources.ts
|
|
73465
74026
|
function knowledgeListDatasources(client, request, options) {
|
|
73466
|
-
return new APIPromise($
|
|
74027
|
+
return new APIPromise($do78(client, request, options));
|
|
73467
74028
|
}
|
|
73468
|
-
async function $
|
|
74029
|
+
async function $do78(client, request, options) {
|
|
73469
74030
|
const parsed = safeParse(request, (value) => ListDatasourcesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73470
74031
|
if (!parsed.ok) {
|
|
73471
74032
|
return [parsed, { status: "invalid" }];
|
|
@@ -73545,20 +74106,20 @@ var init_knowledgeListDatasources = __esm(() => {
|
|
|
73545
74106
|
});
|
|
73546
74107
|
|
|
73547
74108
|
// src/mcp-server/tools/knowledgeListDatasources.ts
|
|
73548
|
-
var
|
|
74109
|
+
var args78, tool$knowledgeListDatasources;
|
|
73549
74110
|
var init_knowledgeListDatasources2 = __esm(() => {
|
|
73550
74111
|
init_knowledgeListDatasources();
|
|
73551
74112
|
init_operations();
|
|
73552
74113
|
init_tools();
|
|
73553
|
-
|
|
74114
|
+
args78 = {
|
|
73554
74115
|
request: ListDatasourcesRequest$inboundSchema
|
|
73555
74116
|
};
|
|
73556
74117
|
tool$knowledgeListDatasources = {
|
|
73557
74118
|
name: "knowledge-list-datasources",
|
|
73558
74119
|
description: `List all datasources`,
|
|
73559
|
-
args:
|
|
73560
|
-
tool: async (client,
|
|
73561
|
-
const [result, apiCall] = await knowledgeListDatasources(client,
|
|
74120
|
+
args: args78,
|
|
74121
|
+
tool: async (client, args79, ctx) => {
|
|
74122
|
+
const [result, apiCall] = await knowledgeListDatasources(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73562
74123
|
if (!result.ok) {
|
|
73563
74124
|
return {
|
|
73564
74125
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73573,9 +74134,9 @@ var init_knowledgeListDatasources2 = __esm(() => {
|
|
|
73573
74134
|
|
|
73574
74135
|
// src/funcs/knowledgeRetrieve.ts
|
|
73575
74136
|
function knowledgeRetrieve(client, request, options) {
|
|
73576
|
-
return new APIPromise($
|
|
74137
|
+
return new APIPromise($do79(client, request, options));
|
|
73577
74138
|
}
|
|
73578
|
-
async function $
|
|
74139
|
+
async function $do79(client, request, options) {
|
|
73579
74140
|
const parsed = safeParse(request, (value) => GetOneKnowledgeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73580
74141
|
if (!parsed.ok) {
|
|
73581
74142
|
return [parsed, { status: "invalid" }];
|
|
@@ -73647,12 +74208,12 @@ var init_knowledgeRetrieve = __esm(() => {
|
|
|
73647
74208
|
});
|
|
73648
74209
|
|
|
73649
74210
|
// src/mcp-server/tools/knowledgeRetrieve.ts
|
|
73650
|
-
var
|
|
74211
|
+
var args79, tool$knowledgeRetrieve;
|
|
73651
74212
|
var init_knowledgeRetrieve2 = __esm(() => {
|
|
73652
74213
|
init_knowledgeRetrieve();
|
|
73653
74214
|
init_operations();
|
|
73654
74215
|
init_tools();
|
|
73655
|
-
|
|
74216
|
+
args79 = {
|
|
73656
74217
|
request: GetOneKnowledgeRequest$inboundSchema
|
|
73657
74218
|
};
|
|
73658
74219
|
tool$knowledgeRetrieve = {
|
|
@@ -73660,9 +74221,9 @@ var init_knowledgeRetrieve2 = __esm(() => {
|
|
|
73660
74221
|
description: `Retrieves a knowledge base
|
|
73661
74222
|
|
|
73662
74223
|
Retrieve a knowledge base with the settings.`,
|
|
73663
|
-
args:
|
|
73664
|
-
tool: async (client,
|
|
73665
|
-
const [result, apiCall] = await knowledgeRetrieve(client,
|
|
74224
|
+
args: args79,
|
|
74225
|
+
tool: async (client, args80, ctx) => {
|
|
74226
|
+
const [result, apiCall] = await knowledgeRetrieve(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73666
74227
|
if (!result.ok) {
|
|
73667
74228
|
return {
|
|
73668
74229
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73677,9 +74238,9 @@ Retrieve a knowledge base with the settings.`,
|
|
|
73677
74238
|
|
|
73678
74239
|
// src/funcs/knowledgeRetrieveChunk.ts
|
|
73679
74240
|
function knowledgeRetrieveChunk(client, request, options) {
|
|
73680
|
-
return new APIPromise($
|
|
74241
|
+
return new APIPromise($do80(client, request, options));
|
|
73681
74242
|
}
|
|
73682
|
-
async function $
|
|
74243
|
+
async function $do80(client, request, options) {
|
|
73683
74244
|
const parsed = safeParse(request, (value) => GetOneChunkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73684
74245
|
if (!parsed.ok) {
|
|
73685
74246
|
return [parsed, { status: "invalid" }];
|
|
@@ -73759,20 +74320,20 @@ var init_knowledgeRetrieveChunk = __esm(() => {
|
|
|
73759
74320
|
});
|
|
73760
74321
|
|
|
73761
74322
|
// src/mcp-server/tools/knowledgeRetrieveChunk.ts
|
|
73762
|
-
var
|
|
74323
|
+
var args80, tool$knowledgeRetrieveChunk;
|
|
73763
74324
|
var init_knowledgeRetrieveChunk2 = __esm(() => {
|
|
73764
74325
|
init_knowledgeRetrieveChunk();
|
|
73765
74326
|
init_operations();
|
|
73766
74327
|
init_tools();
|
|
73767
|
-
|
|
74328
|
+
args80 = {
|
|
73768
74329
|
request: GetOneChunkRequest$inboundSchema
|
|
73769
74330
|
};
|
|
73770
74331
|
tool$knowledgeRetrieveChunk = {
|
|
73771
74332
|
name: "knowledge-retrieve-chunk",
|
|
73772
74333
|
description: `Retrieve a chunk`,
|
|
73773
|
-
args:
|
|
73774
|
-
tool: async (client,
|
|
73775
|
-
const [result, apiCall] = await knowledgeRetrieveChunk(client,
|
|
74334
|
+
args: args80,
|
|
74335
|
+
tool: async (client, args81, ctx) => {
|
|
74336
|
+
const [result, apiCall] = await knowledgeRetrieveChunk(client, args81.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73776
74337
|
if (!result.ok) {
|
|
73777
74338
|
return {
|
|
73778
74339
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73787,9 +74348,9 @@ var init_knowledgeRetrieveChunk2 = __esm(() => {
|
|
|
73787
74348
|
|
|
73788
74349
|
// src/funcs/knowledgeRetrieveDatasource.ts
|
|
73789
74350
|
function knowledgeRetrieveDatasource(client, request, options) {
|
|
73790
|
-
return new APIPromise($
|
|
74351
|
+
return new APIPromise($do81(client, request, options));
|
|
73791
74352
|
}
|
|
73792
|
-
async function $
|
|
74353
|
+
async function $do81(client, request, options) {
|
|
73793
74354
|
const parsed = safeParse(request, (value) => RetrieveDatasourceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73794
74355
|
if (!parsed.ok) {
|
|
73795
74356
|
return [parsed, { status: "invalid" }];
|
|
@@ -73865,20 +74426,20 @@ var init_knowledgeRetrieveDatasource = __esm(() => {
|
|
|
73865
74426
|
});
|
|
73866
74427
|
|
|
73867
74428
|
// src/mcp-server/tools/knowledgeRetrieveDatasource.ts
|
|
73868
|
-
var
|
|
74429
|
+
var args81, tool$knowledgeRetrieveDatasource;
|
|
73869
74430
|
var init_knowledgeRetrieveDatasource2 = __esm(() => {
|
|
73870
74431
|
init_knowledgeRetrieveDatasource();
|
|
73871
74432
|
init_operations();
|
|
73872
74433
|
init_tools();
|
|
73873
|
-
|
|
74434
|
+
args81 = {
|
|
73874
74435
|
request: RetrieveDatasourceRequest$inboundSchema
|
|
73875
74436
|
};
|
|
73876
74437
|
tool$knowledgeRetrieveDatasource = {
|
|
73877
74438
|
name: "knowledge-retrieve-datasource",
|
|
73878
74439
|
description: `Retrieve a datasource`,
|
|
73879
|
-
args:
|
|
73880
|
-
tool: async (client,
|
|
73881
|
-
const [result, apiCall] = await knowledgeRetrieveDatasource(client,
|
|
74440
|
+
args: args81,
|
|
74441
|
+
tool: async (client, args82, ctx) => {
|
|
74442
|
+
const [result, apiCall] = await knowledgeRetrieveDatasource(client, args82.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73882
74443
|
if (!result.ok) {
|
|
73883
74444
|
return {
|
|
73884
74445
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73893,9 +74454,9 @@ var init_knowledgeRetrieveDatasource2 = __esm(() => {
|
|
|
73893
74454
|
|
|
73894
74455
|
// src/funcs/knowledgeSearch.ts
|
|
73895
74456
|
function knowledgeSearch(client, request, options) {
|
|
73896
|
-
return new APIPromise($
|
|
74457
|
+
return new APIPromise($do82(client, request, options));
|
|
73897
74458
|
}
|
|
73898
|
-
async function $
|
|
74459
|
+
async function $do82(client, request, options) {
|
|
73899
74460
|
const parsed = safeParse(request, (value) => SearchKnowledgeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
73900
74461
|
if (!parsed.ok) {
|
|
73901
74462
|
return [parsed, { status: "invalid" }];
|
|
@@ -73968,12 +74529,12 @@ var init_knowledgeSearch = __esm(() => {
|
|
|
73968
74529
|
});
|
|
73969
74530
|
|
|
73970
74531
|
// src/mcp-server/tools/knowledgeSearch.ts
|
|
73971
|
-
var
|
|
74532
|
+
var args82, tool$knowledgeSearch;
|
|
73972
74533
|
var init_knowledgeSearch2 = __esm(() => {
|
|
73973
74534
|
init_knowledgeSearch();
|
|
73974
74535
|
init_operations();
|
|
73975
74536
|
init_tools();
|
|
73976
|
-
|
|
74537
|
+
args82 = {
|
|
73977
74538
|
request: SearchKnowledgeRequest$inboundSchema
|
|
73978
74539
|
};
|
|
73979
74540
|
tool$knowledgeSearch = {
|
|
@@ -73981,9 +74542,9 @@ var init_knowledgeSearch2 = __esm(() => {
|
|
|
73981
74542
|
description: `Search knowledge base
|
|
73982
74543
|
|
|
73983
74544
|
Search a Knowledge Base and return the most similar chunks, along with their search and rerank scores.`,
|
|
73984
|
-
args:
|
|
73985
|
-
tool: async (client,
|
|
73986
|
-
const [result, apiCall] = await knowledgeSearch(client,
|
|
74545
|
+
args: args82,
|
|
74546
|
+
tool: async (client, args83, ctx) => {
|
|
74547
|
+
const [result, apiCall] = await knowledgeSearch(client, args83.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
73987
74548
|
if (!result.ok) {
|
|
73988
74549
|
return {
|
|
73989
74550
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -73998,9 +74559,9 @@ Search a Knowledge Base and return the most similar chunks, along with their sea
|
|
|
73998
74559
|
|
|
73999
74560
|
// src/funcs/knowledgeUpdate.ts
|
|
74000
74561
|
function knowledgeUpdate(client, request, options) {
|
|
74001
|
-
return new APIPromise($
|
|
74562
|
+
return new APIPromise($do83(client, request, options));
|
|
74002
74563
|
}
|
|
74003
|
-
async function $
|
|
74564
|
+
async function $do83(client, request, options) {
|
|
74004
74565
|
const parsed = safeParse(request, (value) => UpdateKnowledgeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74005
74566
|
if (!parsed.ok) {
|
|
74006
74567
|
return [parsed, { status: "invalid" }];
|
|
@@ -74073,20 +74634,20 @@ var init_knowledgeUpdate = __esm(() => {
|
|
|
74073
74634
|
});
|
|
74074
74635
|
|
|
74075
74636
|
// src/mcp-server/tools/knowledgeUpdate.ts
|
|
74076
|
-
var
|
|
74637
|
+
var args83, tool$knowledgeUpdate;
|
|
74077
74638
|
var init_knowledgeUpdate2 = __esm(() => {
|
|
74078
74639
|
init_knowledgeUpdate();
|
|
74079
74640
|
init_operations();
|
|
74080
74641
|
init_tools();
|
|
74081
|
-
|
|
74642
|
+
args83 = {
|
|
74082
74643
|
request: UpdateKnowledgeRequest$inboundSchema
|
|
74083
74644
|
};
|
|
74084
74645
|
tool$knowledgeUpdate = {
|
|
74085
74646
|
name: "knowledge-update",
|
|
74086
74647
|
description: `Updates a knowledge`,
|
|
74087
|
-
args:
|
|
74088
|
-
tool: async (client,
|
|
74089
|
-
const [result, apiCall] = await knowledgeUpdate(client,
|
|
74648
|
+
args: args83,
|
|
74649
|
+
tool: async (client, args84, ctx) => {
|
|
74650
|
+
const [result, apiCall] = await knowledgeUpdate(client, args84.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74090
74651
|
if (!result.ok) {
|
|
74091
74652
|
return {
|
|
74092
74653
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74101,9 +74662,9 @@ var init_knowledgeUpdate2 = __esm(() => {
|
|
|
74101
74662
|
|
|
74102
74663
|
// src/funcs/knowledgeUpdateChunk.ts
|
|
74103
74664
|
function knowledgeUpdateChunk(client, request, options) {
|
|
74104
|
-
return new APIPromise($
|
|
74665
|
+
return new APIPromise($do84(client, request, options));
|
|
74105
74666
|
}
|
|
74106
|
-
async function $
|
|
74667
|
+
async function $do84(client, request, options) {
|
|
74107
74668
|
const parsed = safeParse(request, (value) => UpdateChunkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74108
74669
|
if (!parsed.ok) {
|
|
74109
74670
|
return [parsed, { status: "invalid" }];
|
|
@@ -74184,20 +74745,20 @@ var init_knowledgeUpdateChunk = __esm(() => {
|
|
|
74184
74745
|
});
|
|
74185
74746
|
|
|
74186
74747
|
// src/mcp-server/tools/knowledgeUpdateChunk.ts
|
|
74187
|
-
var
|
|
74748
|
+
var args84, tool$knowledgeUpdateChunk;
|
|
74188
74749
|
var init_knowledgeUpdateChunk2 = __esm(() => {
|
|
74189
74750
|
init_knowledgeUpdateChunk();
|
|
74190
74751
|
init_operations();
|
|
74191
74752
|
init_tools();
|
|
74192
|
-
|
|
74753
|
+
args84 = {
|
|
74193
74754
|
request: UpdateChunkRequest$inboundSchema
|
|
74194
74755
|
};
|
|
74195
74756
|
tool$knowledgeUpdateChunk = {
|
|
74196
74757
|
name: "knowledge-update-chunk",
|
|
74197
74758
|
description: `Update a chunk`,
|
|
74198
|
-
args:
|
|
74199
|
-
tool: async (client,
|
|
74200
|
-
const [result, apiCall] = await knowledgeUpdateChunk(client,
|
|
74759
|
+
args: args84,
|
|
74760
|
+
tool: async (client, args85, ctx) => {
|
|
74761
|
+
const [result, apiCall] = await knowledgeUpdateChunk(client, args85.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74201
74762
|
if (!result.ok) {
|
|
74202
74763
|
return {
|
|
74203
74764
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74212,9 +74773,9 @@ var init_knowledgeUpdateChunk2 = __esm(() => {
|
|
|
74212
74773
|
|
|
74213
74774
|
// src/funcs/knowledgeUpdateDatasource.ts
|
|
74214
74775
|
function knowledgeUpdateDatasource(client, request, options) {
|
|
74215
|
-
return new APIPromise($
|
|
74776
|
+
return new APIPromise($do85(client, request, options));
|
|
74216
74777
|
}
|
|
74217
|
-
async function $
|
|
74778
|
+
async function $do85(client, request, options) {
|
|
74218
74779
|
const parsed = safeParse(request, (value) => UpdateDatasourceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74219
74780
|
if (!parsed.ok) {
|
|
74220
74781
|
return [parsed, { status: "invalid" }];
|
|
@@ -74291,20 +74852,20 @@ var init_knowledgeUpdateDatasource = __esm(() => {
|
|
|
74291
74852
|
});
|
|
74292
74853
|
|
|
74293
74854
|
// src/mcp-server/tools/knowledgeUpdateDatasource.ts
|
|
74294
|
-
var
|
|
74855
|
+
var args85, tool$knowledgeUpdateDatasource;
|
|
74295
74856
|
var init_knowledgeUpdateDatasource2 = __esm(() => {
|
|
74296
74857
|
init_knowledgeUpdateDatasource();
|
|
74297
74858
|
init_operations();
|
|
74298
74859
|
init_tools();
|
|
74299
|
-
|
|
74860
|
+
args85 = {
|
|
74300
74861
|
request: UpdateDatasourceRequest$inboundSchema
|
|
74301
74862
|
};
|
|
74302
74863
|
tool$knowledgeUpdateDatasource = {
|
|
74303
74864
|
name: "knowledge-update-datasource",
|
|
74304
74865
|
description: `Update a datasource`,
|
|
74305
|
-
args:
|
|
74306
|
-
tool: async (client,
|
|
74307
|
-
const [result, apiCall] = await knowledgeUpdateDatasource(client,
|
|
74866
|
+
args: args85,
|
|
74867
|
+
tool: async (client, args86, ctx) => {
|
|
74868
|
+
const [result, apiCall] = await knowledgeUpdateDatasource(client, args86.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74308
74869
|
if (!result.ok) {
|
|
74309
74870
|
return {
|
|
74310
74871
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74319,9 +74880,9 @@ var init_knowledgeUpdateDatasource2 = __esm(() => {
|
|
|
74319
74880
|
|
|
74320
74881
|
// src/funcs/modelsList.ts
|
|
74321
74882
|
function modelsList(client, options) {
|
|
74322
|
-
return new APIPromise($
|
|
74883
|
+
return new APIPromise($do86(client, options));
|
|
74323
74884
|
}
|
|
74324
|
-
async function $
|
|
74885
|
+
async function $do86(client, options) {
|
|
74325
74886
|
const path = pathToFunc("/v2/models")();
|
|
74326
74887
|
const headers = new Headers(compactMap({
|
|
74327
74888
|
Accept: "application/json"
|
|
@@ -74403,9 +74964,9 @@ Lists the currently available models, and provides basic information about each
|
|
|
74403
74964
|
|
|
74404
74965
|
// src/funcs/promptsCreate.ts
|
|
74405
74966
|
function promptsCreate(client, request, options) {
|
|
74406
|
-
return new APIPromise($
|
|
74967
|
+
return new APIPromise($do87(client, request, options));
|
|
74407
74968
|
}
|
|
74408
|
-
async function $
|
|
74969
|
+
async function $do87(client, request, options) {
|
|
74409
74970
|
const parsed = safeParse(request, (value) => CreatePromptRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
74410
74971
|
if (!parsed.ok) {
|
|
74411
74972
|
return [parsed, { status: "invalid" }];
|
|
@@ -74472,20 +75033,20 @@ var init_promptsCreate = __esm(() => {
|
|
|
74472
75033
|
});
|
|
74473
75034
|
|
|
74474
75035
|
// src/mcp-server/tools/promptsCreate.ts
|
|
74475
|
-
var
|
|
75036
|
+
var args86, tool$promptsCreate;
|
|
74476
75037
|
var init_promptsCreate2 = __esm(() => {
|
|
74477
75038
|
init_promptsCreate();
|
|
74478
75039
|
init_operations();
|
|
74479
75040
|
init_tools();
|
|
74480
|
-
|
|
75041
|
+
args86 = {
|
|
74481
75042
|
request: CreatePromptRequestBody$inboundSchema.optional()
|
|
74482
75043
|
};
|
|
74483
75044
|
tool$promptsCreate = {
|
|
74484
75045
|
name: "prompts-create",
|
|
74485
75046
|
description: `Create a prompt`,
|
|
74486
|
-
args:
|
|
74487
|
-
tool: async (client,
|
|
74488
|
-
const [result, apiCall] = await promptsCreate(client,
|
|
75047
|
+
args: args86,
|
|
75048
|
+
tool: async (client, args87, ctx) => {
|
|
75049
|
+
const [result, apiCall] = await promptsCreate(client, args87.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74489
75050
|
if (!result.ok) {
|
|
74490
75051
|
return {
|
|
74491
75052
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74500,9 +75061,9 @@ var init_promptsCreate2 = __esm(() => {
|
|
|
74500
75061
|
|
|
74501
75062
|
// src/funcs/promptsDelete.ts
|
|
74502
75063
|
function promptsDelete(client, request, options) {
|
|
74503
|
-
return new APIPromise($
|
|
75064
|
+
return new APIPromise($do88(client, request, options));
|
|
74504
75065
|
}
|
|
74505
|
-
async function $
|
|
75066
|
+
async function $do88(client, request, options) {
|
|
74506
75067
|
const parsed = safeParse(request, (value) => DeletePromptRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74507
75068
|
if (!parsed.ok) {
|
|
74508
75069
|
return [parsed, { status: "invalid" }];
|
|
@@ -74575,20 +75136,20 @@ var init_promptsDelete = __esm(() => {
|
|
|
74575
75136
|
});
|
|
74576
75137
|
|
|
74577
75138
|
// src/mcp-server/tools/promptsDelete.ts
|
|
74578
|
-
var
|
|
75139
|
+
var args87, tool$promptsDelete;
|
|
74579
75140
|
var init_promptsDelete2 = __esm(() => {
|
|
74580
75141
|
init_promptsDelete();
|
|
74581
75142
|
init_operations();
|
|
74582
75143
|
init_tools();
|
|
74583
|
-
|
|
75144
|
+
args87 = {
|
|
74584
75145
|
request: DeletePromptRequest$inboundSchema
|
|
74585
75146
|
};
|
|
74586
75147
|
tool$promptsDelete = {
|
|
74587
75148
|
name: "prompts-delete",
|
|
74588
75149
|
description: `Delete a prompt`,
|
|
74589
|
-
args:
|
|
74590
|
-
tool: async (client,
|
|
74591
|
-
const [result, apiCall] = await promptsDelete(client,
|
|
75150
|
+
args: args87,
|
|
75151
|
+
tool: async (client, args88, ctx) => {
|
|
75152
|
+
const [result, apiCall] = await promptsDelete(client, args88.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74592
75153
|
if (!result.ok) {
|
|
74593
75154
|
return {
|
|
74594
75155
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74602,9 +75163,9 @@ var init_promptsDelete2 = __esm(() => {
|
|
|
74602
75163
|
|
|
74603
75164
|
// src/funcs/promptsGetVersion.ts
|
|
74604
75165
|
function promptsGetVersion(client, request, options) {
|
|
74605
|
-
return new APIPromise($
|
|
75166
|
+
return new APIPromise($do89(client, request, options));
|
|
74606
75167
|
}
|
|
74607
|
-
async function $
|
|
75168
|
+
async function $do89(client, request, options) {
|
|
74608
75169
|
const parsed = safeParse(request, (value) => GetPromptVersionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74609
75170
|
if (!parsed.ok) {
|
|
74610
75171
|
return [parsed, { status: "invalid" }];
|
|
@@ -74684,12 +75245,12 @@ var init_promptsGetVersion = __esm(() => {
|
|
|
74684
75245
|
});
|
|
74685
75246
|
|
|
74686
75247
|
// src/mcp-server/tools/promptsGetVersion.ts
|
|
74687
|
-
var
|
|
75248
|
+
var args88, tool$promptsGetVersion;
|
|
74688
75249
|
var init_promptsGetVersion2 = __esm(() => {
|
|
74689
75250
|
init_promptsGetVersion();
|
|
74690
75251
|
init_operations();
|
|
74691
75252
|
init_tools();
|
|
74692
|
-
|
|
75253
|
+
args88 = {
|
|
74693
75254
|
request: GetPromptVersionRequest$inboundSchema
|
|
74694
75255
|
};
|
|
74695
75256
|
tool$promptsGetVersion = {
|
|
@@ -74697,9 +75258,9 @@ var init_promptsGetVersion2 = __esm(() => {
|
|
|
74697
75258
|
description: `Retrieve a prompt version
|
|
74698
75259
|
|
|
74699
75260
|
Retrieves a specific version of a prompt by its ID and version ID.`,
|
|
74700
|
-
args:
|
|
74701
|
-
tool: async (client,
|
|
74702
|
-
const [result, apiCall] = await promptsGetVersion(client,
|
|
75261
|
+
args: args88,
|
|
75262
|
+
tool: async (client, args89, ctx) => {
|
|
75263
|
+
const [result, apiCall] = await promptsGetVersion(client, args89.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74703
75264
|
if (!result.ok) {
|
|
74704
75265
|
return {
|
|
74705
75266
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74714,9 +75275,9 @@ Retrieves a specific version of a prompt by its ID and version ID.`,
|
|
|
74714
75275
|
|
|
74715
75276
|
// src/funcs/promptsList.ts
|
|
74716
75277
|
function promptsList(client, request, options) {
|
|
74717
|
-
return new APIPromise($
|
|
75278
|
+
return new APIPromise($do90(client, request, options));
|
|
74718
75279
|
}
|
|
74719
|
-
async function $
|
|
75280
|
+
async function $do90(client, request, options) {
|
|
74720
75281
|
const parsed = safeParse(request, (value) => GetAllPromptsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
74721
75282
|
if (!parsed.ok) {
|
|
74722
75283
|
return [parsed, { status: "invalid" }];
|
|
@@ -74788,12 +75349,12 @@ var init_promptsList = __esm(() => {
|
|
|
74788
75349
|
});
|
|
74789
75350
|
|
|
74790
75351
|
// src/mcp-server/tools/promptsList.ts
|
|
74791
|
-
var
|
|
75352
|
+
var args89, tool$promptsList;
|
|
74792
75353
|
var init_promptsList2 = __esm(() => {
|
|
74793
75354
|
init_promptsList();
|
|
74794
75355
|
init_operations();
|
|
74795
75356
|
init_tools();
|
|
74796
|
-
|
|
75357
|
+
args89 = {
|
|
74797
75358
|
request: GetAllPromptsRequest$inboundSchema.optional()
|
|
74798
75359
|
};
|
|
74799
75360
|
tool$promptsList = {
|
|
@@ -74801,9 +75362,9 @@ var init_promptsList2 = __esm(() => {
|
|
|
74801
75362
|
description: `List all prompts
|
|
74802
75363
|
|
|
74803
75364
|
Returns a list of your prompts. The prompts are returned sorted by creation date, with the most recent prompts appearing first`,
|
|
74804
|
-
args:
|
|
74805
|
-
tool: async (client,
|
|
74806
|
-
const [result, apiCall] = await promptsList(client,
|
|
75365
|
+
args: args89,
|
|
75366
|
+
tool: async (client, args90, ctx) => {
|
|
75367
|
+
const [result, apiCall] = await promptsList(client, args90.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74807
75368
|
if (!result.ok) {
|
|
74808
75369
|
return {
|
|
74809
75370
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74818,9 +75379,9 @@ Returns a list of your prompts. The prompts are returned sorted by creation date
|
|
|
74818
75379
|
|
|
74819
75380
|
// src/funcs/promptsListVersions.ts
|
|
74820
75381
|
function promptsListVersions(client, request, options) {
|
|
74821
|
-
return new APIPromise($
|
|
75382
|
+
return new APIPromise($do91(client, request, options));
|
|
74822
75383
|
}
|
|
74823
|
-
async function $
|
|
75384
|
+
async function $do91(client, request, options) {
|
|
74824
75385
|
const parsed = safeParse(request, (value) => ListPromptVersionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74825
75386
|
if (!parsed.ok) {
|
|
74826
75387
|
return [parsed, { status: "invalid" }];
|
|
@@ -74898,12 +75459,12 @@ var init_promptsListVersions = __esm(() => {
|
|
|
74898
75459
|
});
|
|
74899
75460
|
|
|
74900
75461
|
// src/mcp-server/tools/promptsListVersions.ts
|
|
74901
|
-
var
|
|
75462
|
+
var args90, tool$promptsListVersions;
|
|
74902
75463
|
var init_promptsListVersions2 = __esm(() => {
|
|
74903
75464
|
init_promptsListVersions();
|
|
74904
75465
|
init_operations();
|
|
74905
75466
|
init_tools();
|
|
74906
|
-
|
|
75467
|
+
args90 = {
|
|
74907
75468
|
request: ListPromptVersionsRequest$inboundSchema
|
|
74908
75469
|
};
|
|
74909
75470
|
tool$promptsListVersions = {
|
|
@@ -74911,9 +75472,9 @@ var init_promptsListVersions2 = __esm(() => {
|
|
|
74911
75472
|
description: `List all prompt versions
|
|
74912
75473
|
|
|
74913
75474
|
Returns a list of your prompt versions. The prompt versions are returned sorted by creation date, with the most recent prompt versions appearing first`,
|
|
74914
|
-
args:
|
|
74915
|
-
tool: async (client,
|
|
74916
|
-
const [result, apiCall] = await promptsListVersions(client,
|
|
75475
|
+
args: args90,
|
|
75476
|
+
tool: async (client, args91, ctx) => {
|
|
75477
|
+
const [result, apiCall] = await promptsListVersions(client, args91.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
74917
75478
|
if (!result.ok) {
|
|
74918
75479
|
return {
|
|
74919
75480
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -74928,9 +75489,9 @@ Returns a list of your prompt versions. The prompt versions are returned sorted
|
|
|
74928
75489
|
|
|
74929
75490
|
// src/funcs/promptsRetrieve.ts
|
|
74930
75491
|
function promptsRetrieve(client, request, options) {
|
|
74931
|
-
return new APIPromise($
|
|
75492
|
+
return new APIPromise($do92(client, request, options));
|
|
74932
75493
|
}
|
|
74933
|
-
async function $
|
|
75494
|
+
async function $do92(client, request, options) {
|
|
74934
75495
|
const parsed = safeParse(request, (value) => GetOnePromptRequest$outboundSchema.parse(value), "Input validation failed");
|
|
74935
75496
|
if (!parsed.ok) {
|
|
74936
75497
|
return [parsed, { status: "invalid" }];
|
|
@@ -75002,12 +75563,12 @@ var init_promptsRetrieve = __esm(() => {
|
|
|
75002
75563
|
});
|
|
75003
75564
|
|
|
75004
75565
|
// src/mcp-server/tools/promptsRetrieve.ts
|
|
75005
|
-
var
|
|
75566
|
+
var args91, tool$promptsRetrieve;
|
|
75006
75567
|
var init_promptsRetrieve2 = __esm(() => {
|
|
75007
75568
|
init_promptsRetrieve();
|
|
75008
75569
|
init_operations();
|
|
75009
75570
|
init_tools();
|
|
75010
|
-
|
|
75571
|
+
args91 = {
|
|
75011
75572
|
request: GetOnePromptRequest$inboundSchema
|
|
75012
75573
|
};
|
|
75013
75574
|
tool$promptsRetrieve = {
|
|
@@ -75015,9 +75576,9 @@ var init_promptsRetrieve2 = __esm(() => {
|
|
|
75015
75576
|
description: `Retrieve a prompt
|
|
75016
75577
|
|
|
75017
75578
|
Retrieves a prompt object`,
|
|
75018
|
-
args:
|
|
75019
|
-
tool: async (client,
|
|
75020
|
-
const [result, apiCall] = await promptsRetrieve(client,
|
|
75579
|
+
args: args91,
|
|
75580
|
+
tool: async (client, args92, ctx) => {
|
|
75581
|
+
const [result, apiCall] = await promptsRetrieve(client, args92.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75021
75582
|
if (!result.ok) {
|
|
75022
75583
|
return {
|
|
75023
75584
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75032,9 +75593,9 @@ Retrieves a prompt object`,
|
|
|
75032
75593
|
|
|
75033
75594
|
// src/funcs/promptsUpdate.ts
|
|
75034
75595
|
function promptsUpdate(client, request, options) {
|
|
75035
|
-
return new APIPromise($
|
|
75596
|
+
return new APIPromise($do93(client, request, options));
|
|
75036
75597
|
}
|
|
75037
|
-
async function $
|
|
75598
|
+
async function $do93(client, request, options) {
|
|
75038
75599
|
const parsed = safeParse(request, (value) => UpdatePromptRequest$outboundSchema.parse(value), "Input validation failed");
|
|
75039
75600
|
if (!parsed.ok) {
|
|
75040
75601
|
return [parsed, { status: "invalid" }];
|
|
@@ -75111,20 +75672,20 @@ var init_promptsUpdate = __esm(() => {
|
|
|
75111
75672
|
});
|
|
75112
75673
|
|
|
75113
75674
|
// src/mcp-server/tools/promptsUpdate.ts
|
|
75114
|
-
var
|
|
75675
|
+
var args92, tool$promptsUpdate;
|
|
75115
75676
|
var init_promptsUpdate2 = __esm(() => {
|
|
75116
75677
|
init_promptsUpdate();
|
|
75117
75678
|
init_operations();
|
|
75118
75679
|
init_tools();
|
|
75119
|
-
|
|
75680
|
+
args92 = {
|
|
75120
75681
|
request: UpdatePromptRequest$inboundSchema
|
|
75121
75682
|
};
|
|
75122
75683
|
tool$promptsUpdate = {
|
|
75123
75684
|
name: "prompts-update",
|
|
75124
75685
|
description: `Update a prompt`,
|
|
75125
|
-
args:
|
|
75126
|
-
tool: async (client,
|
|
75127
|
-
const [result, apiCall] = await promptsUpdate(client,
|
|
75686
|
+
args: args92,
|
|
75687
|
+
tool: async (client, args93, ctx) => {
|
|
75688
|
+
const [result, apiCall] = await promptsUpdate(client, args93.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75128
75689
|
if (!result.ok) {
|
|
75129
75690
|
return {
|
|
75130
75691
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75139,9 +75700,9 @@ var init_promptsUpdate2 = __esm(() => {
|
|
|
75139
75700
|
|
|
75140
75701
|
// src/funcs/remoteconfigsRetrieve.ts
|
|
75141
75702
|
function remoteconfigsRetrieve(client, request, options) {
|
|
75142
|
-
return new APIPromise($
|
|
75703
|
+
return new APIPromise($do94(client, request, options));
|
|
75143
75704
|
}
|
|
75144
|
-
async function $
|
|
75705
|
+
async function $do94(client, request, options) {
|
|
75145
75706
|
const parsed = safeParse(request, (value) => RemoteConfigsGetConfigRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
75146
75707
|
if (!parsed.ok) {
|
|
75147
75708
|
return [parsed, { status: "invalid" }];
|
|
@@ -75208,20 +75769,20 @@ var init_remoteconfigsRetrieve = __esm(() => {
|
|
|
75208
75769
|
});
|
|
75209
75770
|
|
|
75210
75771
|
// src/mcp-server/tools/remoteconfigsRetrieve.ts
|
|
75211
|
-
var
|
|
75772
|
+
var args93, tool$remoteconfigsRetrieve;
|
|
75212
75773
|
var init_remoteconfigsRetrieve2 = __esm(() => {
|
|
75213
75774
|
init_remoteconfigsRetrieve();
|
|
75214
75775
|
init_operations();
|
|
75215
75776
|
init_tools();
|
|
75216
|
-
|
|
75777
|
+
args93 = {
|
|
75217
75778
|
request: RemoteConfigsGetConfigRequestBody$inboundSchema.optional()
|
|
75218
75779
|
};
|
|
75219
75780
|
tool$remoteconfigsRetrieve = {
|
|
75220
75781
|
name: "remoteconfigs-retrieve",
|
|
75221
75782
|
description: `Retrieve a remote config`,
|
|
75222
|
-
args:
|
|
75223
|
-
tool: async (client,
|
|
75224
|
-
const [result, apiCall] = await remoteconfigsRetrieve(client,
|
|
75783
|
+
args: args93,
|
|
75784
|
+
tool: async (client, args94, ctx) => {
|
|
75785
|
+
const [result, apiCall] = await remoteconfigsRetrieve(client, args94.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
75225
75786
|
if (!result.ok) {
|
|
75226
75787
|
return {
|
|
75227
75788
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -75238,7 +75799,7 @@ var init_remoteconfigsRetrieve2 = __esm(() => {
|
|
|
75238
75799
|
function createMCPServer(deps) {
|
|
75239
75800
|
const server = new McpServer({
|
|
75240
75801
|
name: "Orq",
|
|
75241
|
-
version: "3.9.
|
|
75802
|
+
version: "3.9.7"
|
|
75242
75803
|
});
|
|
75243
75804
|
const client = new OrqCore({
|
|
75244
75805
|
apiKey: deps.apiKey,
|
|
@@ -75304,6 +75865,7 @@ function createMCPServer(deps) {
|
|
|
75304
75865
|
tool(tool$knowledgeUpdateChunk);
|
|
75305
75866
|
tool(tool$knowledgeDeleteChunk);
|
|
75306
75867
|
tool(tool$knowledgeRetrieveChunk);
|
|
75868
|
+
tool(tool$chunkingParse);
|
|
75307
75869
|
tool(tool$evalsAll);
|
|
75308
75870
|
tool(tool$evalsCreate);
|
|
75309
75871
|
tool(tool$evalsUpdate);
|
|
@@ -75354,6 +75916,7 @@ var init_server2 = __esm(() => {
|
|
|
75354
75916
|
init_core();
|
|
75355
75917
|
init_resources();
|
|
75356
75918
|
init_tools();
|
|
75919
|
+
init_chunkingParse2();
|
|
75357
75920
|
init_contactsCreate2();
|
|
75358
75921
|
init_contactsDelete2();
|
|
75359
75922
|
init_contactsList2();
|
|
@@ -76644,7 +77207,7 @@ var routes = rn({
|
|
|
76644
77207
|
var app = Ve(routes, {
|
|
76645
77208
|
name: "mcp",
|
|
76646
77209
|
versionInfo: {
|
|
76647
|
-
currentVersion: "3.9.
|
|
77210
|
+
currentVersion: "3.9.7"
|
|
76648
77211
|
}
|
|
76649
77212
|
});
|
|
76650
77213
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -76652,5 +77215,5 @@ export {
|
|
|
76652
77215
|
app
|
|
76653
77216
|
};
|
|
76654
77217
|
|
|
76655
|
-
//# debugId=
|
|
77218
|
+
//# debugId=85312E0B52D28C7464756E2164756E21
|
|
76656
77219
|
//# sourceMappingURL=mcp-server.js.map
|