@botpress/api 0.50.0 → 0.50.1
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/dist/index.js +25 -16
- package/dist/src/gen/state.d.ts +17 -8
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +25 -16
package/dist/index.js
CHANGED
|
@@ -292278,38 +292278,46 @@ var state = {
|
|
|
292278
292278
|
"type": "object",
|
|
292279
292279
|
"properties": {
|
|
292280
292280
|
"parsing": {
|
|
292281
|
-
"default": {},
|
|
292282
292281
|
"type": "object",
|
|
292283
292282
|
"properties": {
|
|
292284
292283
|
"minimumParagraphLength": {
|
|
292285
|
-
"default": 500,
|
|
292286
292284
|
"type": "integer",
|
|
292287
292285
|
"minimum": 50,
|
|
292288
|
-
"maximum": 2e3
|
|
292286
|
+
"maximum": 2e3,
|
|
292287
|
+
"description": "The minimum length a standalone paragraph should have. If a paragraph is shorter than this, it will be merged with the next immediate paragraph."
|
|
292289
292288
|
}
|
|
292290
292289
|
},
|
|
292291
292290
|
"additionalProperties": false
|
|
292292
292291
|
},
|
|
292293
292292
|
"chunking": {
|
|
292294
|
-
"default": {},
|
|
292295
292293
|
"type": "object",
|
|
292296
292294
|
"properties": {
|
|
292297
292295
|
"maximumChunkLength": {
|
|
292298
|
-
"default": 1250,
|
|
292299
292296
|
"type": "integer",
|
|
292300
292297
|
"minimum": 100,
|
|
292301
|
-
"maximum": 5e3
|
|
292298
|
+
"maximum": 5e3,
|
|
292299
|
+
"description": "The maximum length of a chunk in characters."
|
|
292300
|
+
},
|
|
292301
|
+
"embeddedContextLevels": {
|
|
292302
|
+
"type": "integer",
|
|
292303
|
+
"minimum": 0,
|
|
292304
|
+
"maximum": 3,
|
|
292305
|
+
"description": "The number of surrounding context levels to include in the vector embedding of the chunk."
|
|
292306
|
+
},
|
|
292307
|
+
"embedBreadcrumb": {
|
|
292308
|
+
"type": "boolean",
|
|
292309
|
+
"description": "Include the breadcrumb of the chunk in the vector embedding."
|
|
292302
292310
|
}
|
|
292303
292311
|
},
|
|
292304
292312
|
"additionalProperties": false
|
|
292305
292313
|
},
|
|
292306
292314
|
"summarization": {
|
|
292307
|
-
"default": {},
|
|
292308
292315
|
"type": "object",
|
|
292309
292316
|
"properties": {
|
|
292310
292317
|
"enable": {
|
|
292311
292318
|
"default": false,
|
|
292312
|
-
"type": "boolean"
|
|
292319
|
+
"type": "boolean",
|
|
292320
|
+
"description": "Create summaries for this file and index them as standalone vectors. Enabling this option will incur in AI Spend cost (charged to the workspace of the bot) to generate the summaries based on the amount of content in the file and the summarization model used. Please note that this feature is only available in Team/Enterprise plans."
|
|
292313
292321
|
},
|
|
292314
292322
|
"modelType": {
|
|
292315
292323
|
"default": "balanced",
|
|
@@ -292318,23 +292326,24 @@ var state = {
|
|
|
292318
292326
|
"inexpensive",
|
|
292319
292327
|
"balanced",
|
|
292320
292328
|
"accurate"
|
|
292321
|
-
]
|
|
292329
|
+
],
|
|
292330
|
+
"description": "The model type to use for summarization."
|
|
292322
292331
|
},
|
|
292323
292332
|
"minimumInputLength": {
|
|
292324
|
-
"default": 3e3,
|
|
292325
292333
|
"type": "integer",
|
|
292326
292334
|
"minimum": 1e3,
|
|
292327
|
-
"maximum": 1e4
|
|
292335
|
+
"maximum": 1e4,
|
|
292336
|
+
"description": "The minimum length a section of the file should have to create a summary of it."
|
|
292328
292337
|
},
|
|
292329
292338
|
"outputTokenLimit": {
|
|
292330
|
-
"default": 2e3,
|
|
292331
292339
|
"type": "integer",
|
|
292332
292340
|
"minimum": 1e3,
|
|
292333
|
-
"maximum": 1e4
|
|
292341
|
+
"maximum": 1e4,
|
|
292342
|
+
"description": "The maximum length of a summary (in tokens)."
|
|
292334
292343
|
},
|
|
292335
292344
|
"generateMasterSummary": {
|
|
292336
|
-
"
|
|
292337
|
-
"
|
|
292345
|
+
"type": "boolean",
|
|
292346
|
+
"description": "Generate a summary of the entire file and index it as a standalone vector."
|
|
292338
292347
|
}
|
|
292339
292348
|
},
|
|
292340
292349
|
"additionalProperties": false
|
|
@@ -294155,7 +294164,7 @@ var state = {
|
|
|
294155
294164
|
"title": "Botpress API",
|
|
294156
294165
|
"description": "API for Botpress Cloud",
|
|
294157
294166
|
"server": "https://api.botpress.cloud",
|
|
294158
|
-
"version": "0.50.
|
|
294167
|
+
"version": "0.50.1",
|
|
294159
294168
|
"prefix": "v1"
|
|
294160
294169
|
},
|
|
294161
294170
|
"errors": [
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -9264,59 +9264,68 @@ export declare const state: {
|
|
|
9264
9264
|
type: "object";
|
|
9265
9265
|
properties: {
|
|
9266
9266
|
parsing: {
|
|
9267
|
-
default: {};
|
|
9268
9267
|
type: "object";
|
|
9269
9268
|
properties: {
|
|
9270
9269
|
minimumParagraphLength: {
|
|
9271
|
-
default: number;
|
|
9272
9270
|
type: "integer";
|
|
9273
9271
|
minimum: number;
|
|
9274
9272
|
maximum: number;
|
|
9273
|
+
description: string;
|
|
9275
9274
|
};
|
|
9276
9275
|
};
|
|
9277
9276
|
additionalProperties: false;
|
|
9278
9277
|
};
|
|
9279
9278
|
chunking: {
|
|
9280
|
-
default: {};
|
|
9281
9279
|
type: "object";
|
|
9282
9280
|
properties: {
|
|
9283
9281
|
maximumChunkLength: {
|
|
9284
|
-
default: number;
|
|
9285
9282
|
type: "integer";
|
|
9286
9283
|
minimum: number;
|
|
9287
9284
|
maximum: number;
|
|
9285
|
+
description: string;
|
|
9286
|
+
};
|
|
9287
|
+
embeddedContextLevels: {
|
|
9288
|
+
type: "integer";
|
|
9289
|
+
minimum: number;
|
|
9290
|
+
maximum: number;
|
|
9291
|
+
description: string;
|
|
9292
|
+
};
|
|
9293
|
+
embedBreadcrumb: {
|
|
9294
|
+
type: "boolean";
|
|
9295
|
+
description: string;
|
|
9288
9296
|
};
|
|
9289
9297
|
};
|
|
9290
9298
|
additionalProperties: false;
|
|
9291
9299
|
};
|
|
9292
9300
|
summarization: {
|
|
9293
|
-
default: {};
|
|
9294
9301
|
type: "object";
|
|
9295
9302
|
properties: {
|
|
9296
9303
|
enable: {
|
|
9297
9304
|
default: boolean;
|
|
9298
9305
|
type: "boolean";
|
|
9306
|
+
description: string;
|
|
9299
9307
|
};
|
|
9300
9308
|
modelType: {
|
|
9301
9309
|
default: string;
|
|
9302
9310
|
type: "string";
|
|
9303
9311
|
enum: string[];
|
|
9312
|
+
description: string;
|
|
9304
9313
|
};
|
|
9305
9314
|
minimumInputLength: {
|
|
9306
|
-
default: number;
|
|
9307
9315
|
type: "integer";
|
|
9308
9316
|
minimum: number;
|
|
9309
9317
|
maximum: number;
|
|
9318
|
+
description: string;
|
|
9310
9319
|
};
|
|
9311
9320
|
outputTokenLimit: {
|
|
9312
|
-
default: number;
|
|
9313
9321
|
type: "integer";
|
|
9314
9322
|
minimum: number;
|
|
9315
9323
|
maximum: number;
|
|
9324
|
+
description: string;
|
|
9316
9325
|
};
|
|
9317
9326
|
generateMasterSummary: {
|
|
9318
|
-
default: boolean;
|
|
9319
9327
|
type: "boolean";
|
|
9328
|
+
description: string;
|
|
9320
9329
|
};
|
|
9321
9330
|
};
|
|
9322
9331
|
additionalProperties: false;
|