@promptbook/core 0.80.0-1 → 0.81.0-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/esm/index.es.js +39 -184
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +0 -6
- package/esm/typings/src/_packages/editable.index.d.ts +10 -0
- package/esm/typings/src/_packages/templates.index.d.ts +4 -0
- package/esm/typings/src/_packages/types.index.d.ts +4 -0
- package/esm/typings/src/_packages/utils.index.d.ts +2 -2
- package/esm/typings/src/execution/ExecutionTools.d.ts +7 -0
- package/esm/typings/src/execution/PromptbookFetch.d.ts +5 -0
- package/esm/typings/src/execution/PromptbookFetch.test-type.d.ts +5 -0
- package/esm/typings/src/expectations/drafts/isDomainNameFree.d.ts +2 -1
- package/esm/typings/src/expectations/drafts/isGithubNameFree.d.ts +2 -1
- package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +1 -1
- package/esm/typings/src/scrapers/_common/utils/scraperFetch.d.ts +7 -0
- package/esm/typings/src/utils/editable/types/PipelineEditableSerialized.d.ts +42 -0
- package/esm/typings/src/{conversion → utils/editable}/utils/removePipelineCommand.d.ts +3 -3
- package/esm/typings/src/{conversion → utils/editable}/utils/renamePipelineParameter.d.ts +3 -3
- package/esm/typings/src/{conversion → utils/editable}/utils/stringifyPipelineJson.d.ts +2 -2
- package/esm/typings/src/utils/getBookTemplate.d.ts +12 -0
- package/esm/typings/src/utils/parameters/{replaceParameters.d.ts → templateParameters.d.ts} +1 -1
- package/package.json +1 -2
- package/umd/index.umd.js +38 -186
- package/umd/index.umd.js.map +1 -1
- /package/esm/typings/src/{conversion → utils/editable}/utils/removePipelineCommand.test.d.ts +0 -0
- /package/esm/typings/src/{conversion → utils/editable}/utils/renamePipelineParameter.test.d.ts +0 -0
- /package/esm/typings/src/{conversion → utils/editable}/utils/stringifyPipelineJson.test.d.ts +0 -0
- /package/esm/typings/src/utils/parameters/{replaceParameters.test.d.ts → templateParameters.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -255,6 +255,8 @@ Or you can install them separately:
|
|
|
255
255
|
- **[@promptbook/documents](https://www.npmjs.com/package/@promptbook/documents)** - Read knowledge from documents like `.docx`, `.odt`,…
|
|
256
256
|
- **[@promptbook/legacy-documents](https://www.npmjs.com/package/@promptbook/legacy-documents)** - Read knowledge from legacy documents like `.doc`, `.rtf`,…
|
|
257
257
|
- **[@promptbook/website-crawler](https://www.npmjs.com/package/@promptbook/website-crawler)** - Crawl knowledge from the web
|
|
258
|
+
- **[@promptbook/editable](https://www.npmjs.com/package/@promptbook/editable)** - Editable book as native javascript object with imperative object API
|
|
259
|
+
- **[@promptbook/templates](https://www.npmjs.com/package/@promptbook/templates)** - Usefull templates and examples of books which can be used as a starting point
|
|
258
260
|
- **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library
|
|
259
261
|
- **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks
|
|
260
262
|
|
package/esm/index.es.js
CHANGED
|
@@ -23,7 +23,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
23
23
|
*
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.
|
|
26
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.81.0-4';
|
|
27
27
|
/**
|
|
28
28
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
29
29
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3452,7 +3452,7 @@ function arrayableToArray(input) {
|
|
|
3452
3452
|
* @throws {PipelineExecutionError} if parameter is not defined, not closed, or not opened
|
|
3453
3453
|
* @public exported from `@promptbook/utils`
|
|
3454
3454
|
*/
|
|
3455
|
-
function
|
|
3455
|
+
function templateParameters(template, parameters) {
|
|
3456
3456
|
var e_1, _a;
|
|
3457
3457
|
try {
|
|
3458
3458
|
for (var _b = __values(Object.entries(parameters)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -3478,7 +3478,7 @@ function replaceParameters(template, parameters) {
|
|
|
3478
3478
|
var loopLimit = LOOP_LIMIT;
|
|
3479
3479
|
var _loop_1 = function () {
|
|
3480
3480
|
if (loopLimit-- < 0) {
|
|
3481
|
-
throw new LimitReachedError('Loop limit reached during parameters replacement in `
|
|
3481
|
+
throw new LimitReachedError('Loop limit reached during parameters replacement in `templateParameters`');
|
|
3482
3482
|
}
|
|
3483
3483
|
var precol = match.groups.precol;
|
|
3484
3484
|
var parameterName = match.groups.parameterName;
|
|
@@ -4013,7 +4013,7 @@ function executeAttempts(options) {
|
|
|
4013
4013
|
}
|
|
4014
4014
|
return [3 /*break*/, 24];
|
|
4015
4015
|
case 2:
|
|
4016
|
-
$ongoingTaskResult.$resultString =
|
|
4016
|
+
$ongoingTaskResult.$resultString = templateParameters(preparedContent, parameters);
|
|
4017
4017
|
return [3 /*break*/, 25];
|
|
4018
4018
|
case 3:
|
|
4019
4019
|
modelRequirements = __assign(__assign({ modelVariant: 'CHAT' }, (preparedPipeline.defaultModelRequirements || {})), (task.modelRequirements || {}));
|
|
@@ -4136,8 +4136,8 @@ function executeAttempts(options) {
|
|
|
4136
4136
|
_j = $ongoingTaskResult;
|
|
4137
4137
|
return [4 /*yield*/, tools.userInterface.promptDialog($deepFreeze({
|
|
4138
4138
|
promptTitle: task.title,
|
|
4139
|
-
promptMessage:
|
|
4140
|
-
defaultValue:
|
|
4139
|
+
promptMessage: templateParameters(task.description || '', parameters),
|
|
4140
|
+
defaultValue: templateParameters(preparedContent, parameters),
|
|
4141
4141
|
// TODO: [🧠] !! Figure out how to define placeholder in .book.md file
|
|
4142
4142
|
placeholder: undefined,
|
|
4143
4143
|
priority: priority,
|
|
@@ -4261,7 +4261,7 @@ function executeAttempts(options) {
|
|
|
4261
4261
|
if (!isJokerAttempt &&
|
|
4262
4262
|
task.taskType === 'PROMPT_TASK' &&
|
|
4263
4263
|
$ongoingTaskResult.$prompt
|
|
4264
|
-
// <- Note: [2] When some expected parameter is not defined, error will occur in
|
|
4264
|
+
// <- Note: [2] When some expected parameter is not defined, error will occur in templateParameters
|
|
4265
4265
|
// In that case we don’t want to make a report about it because it’s not a llm execution error
|
|
4266
4266
|
) {
|
|
4267
4267
|
// TODO: [🧠] Maybe put other taskTypes into report
|
|
@@ -5594,6 +5594,30 @@ function isValidFilePath(filename) {
|
|
|
5594
5594
|
return false;
|
|
5595
5595
|
}
|
|
5596
5596
|
|
|
5597
|
+
/**
|
|
5598
|
+
* The built-in `fetch' function with a lightweight error handling wrapper as default fetch function used in Promptbook scrapers
|
|
5599
|
+
*
|
|
5600
|
+
* @private as default `fetch` function used in Promptbook scrapers
|
|
5601
|
+
*/
|
|
5602
|
+
var scraperFetch = function (url, init) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5603
|
+
var error_1;
|
|
5604
|
+
return __generator(this, function (_a) {
|
|
5605
|
+
switch (_a.label) {
|
|
5606
|
+
case 0:
|
|
5607
|
+
_a.trys.push([0, 2, , 3]);
|
|
5608
|
+
return [4 /*yield*/, fetch(url, init)];
|
|
5609
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
5610
|
+
case 2:
|
|
5611
|
+
error_1 = _a.sent();
|
|
5612
|
+
if (!(error_1 instanceof Error)) {
|
|
5613
|
+
throw error_1;
|
|
5614
|
+
}
|
|
5615
|
+
throw new KnowledgeScrapeError(spaceTrim(function (block) { return "\n Can not fetch \"".concat(url, "\"\n\n Fetch error:\n ").concat(block(error_1.message), "\n\n "); }));
|
|
5616
|
+
case 3: return [2 /*return*/];
|
|
5617
|
+
}
|
|
5618
|
+
});
|
|
5619
|
+
}); };
|
|
5620
|
+
|
|
5597
5621
|
/**
|
|
5598
5622
|
* @@@
|
|
5599
5623
|
*
|
|
@@ -5602,13 +5626,14 @@ function isValidFilePath(filename) {
|
|
|
5602
5626
|
function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
5603
5627
|
var _a;
|
|
5604
5628
|
return __awaiter(this, void 0, void 0, function () {
|
|
5605
|
-
var sourceContent, name,
|
|
5606
|
-
return __generator(this, function (
|
|
5607
|
-
switch (
|
|
5629
|
+
var _b, fetch, sourceContent, name, _c, _d, rootDirname, url, response_1, mimeType, filename_1, fileExtension, mimeType;
|
|
5630
|
+
return __generator(this, function (_f) {
|
|
5631
|
+
switch (_f.label) {
|
|
5608
5632
|
case 0:
|
|
5633
|
+
_b = tools.fetch, fetch = _b === void 0 ? scraperFetch : _b;
|
|
5609
5634
|
sourceContent = knowledgeSource.sourceContent;
|
|
5610
5635
|
name = knowledgeSource.name;
|
|
5611
|
-
|
|
5636
|
+
_c = options || {}, _d = _c.rootDirname, rootDirname = _d === void 0 ? null : _d, _c.isVerbose;
|
|
5612
5637
|
if (!name) {
|
|
5613
5638
|
name = sourceContentToName(sourceContent);
|
|
5614
5639
|
}
|
|
@@ -5616,7 +5641,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
|
5616
5641
|
url = sourceContent;
|
|
5617
5642
|
return [4 /*yield*/, fetch(url)];
|
|
5618
5643
|
case 1:
|
|
5619
|
-
response_1 =
|
|
5644
|
+
response_1 = _f.sent();
|
|
5620
5645
|
mimeType = ((_a = response_1.headers.get('content-type')) === null || _a === void 0 ? void 0 : _a.split(';')[0]) || 'text/html';
|
|
5621
5646
|
return [2 /*return*/, {
|
|
5622
5647
|
source: name,
|
|
@@ -5673,7 +5698,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
|
5673
5698
|
mimeType = extensionToMimeType(fileExtension || '');
|
|
5674
5699
|
return [4 /*yield*/, isFileExisting(filename_1, tools.fs)];
|
|
5675
5700
|
case 3:
|
|
5676
|
-
if (!(
|
|
5701
|
+
if (!(_f.sent())) {
|
|
5677
5702
|
throw new NotFoundError(spaceTrim(function (block) { return "\n Can not make source handler for file which does not exist:\n\n File:\n ".concat(block(filename_1), "\n "); }));
|
|
5678
5703
|
}
|
|
5679
5704
|
// TODO: [🧠][😿] Test security file - file is scoped to the project (BUT maybe do this in `filesystemTools`)
|
|
@@ -9581,176 +9606,6 @@ function prettifyPipelineString(pipelineString, options) {
|
|
|
9581
9606
|
* TODO: [🕌] When more than 2 functionalities, split into separate functions
|
|
9582
9607
|
*/
|
|
9583
9608
|
|
|
9584
|
-
/**
|
|
9585
|
-
* Function `removePipelineCommand` will remove one command from pipeline string
|
|
9586
|
-
*
|
|
9587
|
-
* @public exported from `@promptbook/core` <- Note: [👖] This utility is so tightly interconnected with the Promptbook that it is not exported as util but in core
|
|
9588
|
-
*/
|
|
9589
|
-
function removePipelineCommand(options) {
|
|
9590
|
-
var e_1, _a;
|
|
9591
|
-
var command = options.command, pipeline = options.pipeline;
|
|
9592
|
-
var lines = pipeline.split('\n');
|
|
9593
|
-
// TODO: [🧽] DRY
|
|
9594
|
-
var currentType = 'MARKDOWN';
|
|
9595
|
-
var newLines = [];
|
|
9596
|
-
try {
|
|
9597
|
-
for (var lines_1 = __values(lines), lines_1_1 = lines_1.next(); !lines_1_1.done; lines_1_1 = lines_1.next()) {
|
|
9598
|
-
var line = lines_1_1.value;
|
|
9599
|
-
if (currentType === 'MARKDOWN') {
|
|
9600
|
-
if (line.startsWith('```')) {
|
|
9601
|
-
currentType = 'CODE_BLOCK';
|
|
9602
|
-
}
|
|
9603
|
-
else if (line.includes('<!--')) {
|
|
9604
|
-
currentType = 'COMMENT';
|
|
9605
|
-
}
|
|
9606
|
-
}
|
|
9607
|
-
else if (currentType === 'CODE_BLOCK') {
|
|
9608
|
-
if (line.startsWith('```')) {
|
|
9609
|
-
currentType = 'MARKDOWN';
|
|
9610
|
-
}
|
|
9611
|
-
}
|
|
9612
|
-
else if (currentType === 'COMMENT') {
|
|
9613
|
-
if (line.includes('-->')) {
|
|
9614
|
-
currentType = 'MARKDOWN';
|
|
9615
|
-
}
|
|
9616
|
-
}
|
|
9617
|
-
if (currentType === 'MARKDOWN' && /^(-|\d\))/m.test(line) && line.toUpperCase().includes(command)) {
|
|
9618
|
-
continue;
|
|
9619
|
-
}
|
|
9620
|
-
newLines.push(line);
|
|
9621
|
-
}
|
|
9622
|
-
}
|
|
9623
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
9624
|
-
finally {
|
|
9625
|
-
try {
|
|
9626
|
-
if (lines_1_1 && !lines_1_1.done && (_a = lines_1.return)) _a.call(lines_1);
|
|
9627
|
-
}
|
|
9628
|
-
finally { if (e_1) throw e_1.error; }
|
|
9629
|
-
}
|
|
9630
|
-
var newPipeline = spaceTrim(newLines.join('\n'));
|
|
9631
|
-
return newPipeline;
|
|
9632
|
-
}
|
|
9633
|
-
|
|
9634
|
-
/**
|
|
9635
|
-
* Function `renamePipelineParameter` will find all usable parameters for given task
|
|
9636
|
-
* In other words, it will find all parameters that are not used in the task itseld and all its dependencies
|
|
9637
|
-
*
|
|
9638
|
-
* @throws {PipelineLogicError} If the new parameter name is already used in the pipeline
|
|
9639
|
-
* @public exported from `@promptbook/core` <- Note: [👖] This utility is so tightly interconnected with the Promptbook that it is not exported as util but in core
|
|
9640
|
-
*/
|
|
9641
|
-
function renamePipelineParameter(options) {
|
|
9642
|
-
var e_1, _a, e_2, _b;
|
|
9643
|
-
var pipeline = options.pipeline, oldParameterName = options.oldParameterName, newParameterName = options.newParameterName;
|
|
9644
|
-
if (pipeline.parameters.some(function (parameter) { return parameter.name === newParameterName; })) {
|
|
9645
|
-
throw new PipelineLogicError("Can not replace {".concat(oldParameterName, "} to {").concat(newParameterName, "} because {").concat(newParameterName, "} is already used in the pipeline"));
|
|
9646
|
-
}
|
|
9647
|
-
var renamedPipeline = __assign(__assign({}, pipeline), {
|
|
9648
|
-
// <- TODO: [🪓] This should be without `as $PipelineJson`
|
|
9649
|
-
parameters: __spreadArray([], __read(pipeline.parameters), false), tasks: __spreadArray([], __read(pipeline.tasks), false) });
|
|
9650
|
-
try {
|
|
9651
|
-
for (var _c = __values(renamedPipeline.parameters), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
9652
|
-
var parameter = _d.value;
|
|
9653
|
-
if (parameter.name !== oldParameterName) {
|
|
9654
|
-
continue;
|
|
9655
|
-
}
|
|
9656
|
-
parameter.name = newParameterName;
|
|
9657
|
-
}
|
|
9658
|
-
}
|
|
9659
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
9660
|
-
finally {
|
|
9661
|
-
try {
|
|
9662
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
9663
|
-
}
|
|
9664
|
-
finally { if (e_1) throw e_1.error; }
|
|
9665
|
-
}
|
|
9666
|
-
try {
|
|
9667
|
-
for (var _e = __values(renamedPipeline.tasks), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
9668
|
-
var task = _f.value;
|
|
9669
|
-
if (task.resultingParameterName === oldParameterName) {
|
|
9670
|
-
task.resultingParameterName = newParameterName;
|
|
9671
|
-
}
|
|
9672
|
-
task.dependentParameterNames = task.dependentParameterNames.map(function (dependentParameterName) {
|
|
9673
|
-
return dependentParameterName === oldParameterName ? newParameterName : dependentParameterName;
|
|
9674
|
-
});
|
|
9675
|
-
task.content = task.content.replace(new RegExp("{".concat(oldParameterName, "}"), 'g'), "{".concat(newParameterName, "}"));
|
|
9676
|
-
task.title = task.title.replace(new RegExp("{".concat(oldParameterName, "}"), 'g'), "{".concat(newParameterName, "}"));
|
|
9677
|
-
task.description =
|
|
9678
|
-
task.description === undefined
|
|
9679
|
-
? undefined
|
|
9680
|
-
: task.description.replace(new RegExp("{".concat(oldParameterName, "}"), 'g'), "{".concat(newParameterName, "}"));
|
|
9681
|
-
}
|
|
9682
|
-
}
|
|
9683
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
9684
|
-
finally {
|
|
9685
|
-
try {
|
|
9686
|
-
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
9687
|
-
}
|
|
9688
|
-
finally { if (e_2) throw e_2.error; }
|
|
9689
|
-
}
|
|
9690
|
-
return renamedPipeline;
|
|
9691
|
-
}
|
|
9692
|
-
|
|
9693
|
-
// <- TODO: !!!!!!! Auto convert to type `import { ... } from 'type-fest';`
|
|
9694
|
-
/**
|
|
9695
|
-
* Tests if the value is [🚉] serializable as JSON
|
|
9696
|
-
*
|
|
9697
|
-
* - Almost all primitives are serializable BUT:
|
|
9698
|
-
* - `undefined` is not serializable
|
|
9699
|
-
* - `NaN` is not serializable
|
|
9700
|
-
* - Objects and arrays are serializable if all their properties are serializable
|
|
9701
|
-
* - Functions are not serializable
|
|
9702
|
-
* - Circular references are not serializable
|
|
9703
|
-
* - `Date` objects are not serializable
|
|
9704
|
-
* - `Map` and `Set` objects are not serializable
|
|
9705
|
-
* - `RegExp` objects are not serializable
|
|
9706
|
-
* - `Error` objects are not serializable
|
|
9707
|
-
* - `Symbol` objects are not serializable
|
|
9708
|
-
* - And much more...
|
|
9709
|
-
*
|
|
9710
|
-
*
|
|
9711
|
-
* @public exported from `@promptbook/utils`
|
|
9712
|
-
*/
|
|
9713
|
-
function isSerializableAsJson(value) {
|
|
9714
|
-
try {
|
|
9715
|
-
checkSerializableAsJson({ value: value });
|
|
9716
|
-
return true;
|
|
9717
|
-
}
|
|
9718
|
-
catch (error) {
|
|
9719
|
-
return false;
|
|
9720
|
-
}
|
|
9721
|
-
}
|
|
9722
|
-
/**
|
|
9723
|
-
* TODO: [🧠][main] !!! In-memory cache of same values to prevent multiple checks
|
|
9724
|
-
* TODO: [🧠][💺] Can be done this on type-level?
|
|
9725
|
-
*/
|
|
9726
|
-
|
|
9727
|
-
/**
|
|
9728
|
-
* Stringify the PipelineJson with proper formatting
|
|
9729
|
-
*
|
|
9730
|
-
* Note: [0] It can be used for more JSON types like whole collection of pipelines, single knowledge piece, etc.
|
|
9731
|
-
* Note: In contrast to JSON.stringify, this function ensures that **embedding index** is on single line
|
|
9732
|
-
*
|
|
9733
|
-
* @public exported from `@promptbook/core`
|
|
9734
|
-
*/
|
|
9735
|
-
function stringifyPipelineJson(pipeline) {
|
|
9736
|
-
if (!isSerializableAsJson(pipeline)) {
|
|
9737
|
-
throw new UnexpectedError(spaceTrim("\n Cannot stringify the pipeline, because it is not serializable as JSON\n\n There can be multiple reasons:\n 1) The pipeline contains circular references\n 2) It is not a valid PipelineJson\n "));
|
|
9738
|
-
}
|
|
9739
|
-
var pipelineJsonStringified = JSON.stringify(pipeline, null, 4);
|
|
9740
|
-
for (var i = 0; i < LOOP_LIMIT; i++) {
|
|
9741
|
-
pipelineJsonStringified = pipelineJsonStringified.replace(/(-?0\.\d+),[\n\s]+(-?0\.\d+)/gms, "$1".concat(REPLACING_NONCE, "$2"));
|
|
9742
|
-
}
|
|
9743
|
-
pipelineJsonStringified = pipelineJsonStringified.split(REPLACING_NONCE).join(', ');
|
|
9744
|
-
pipelineJsonStringified += '\n';
|
|
9745
|
-
return pipelineJsonStringified;
|
|
9746
|
-
}
|
|
9747
|
-
/**
|
|
9748
|
-
* TODO: [🐝] Not Working propperly @see https://promptbook.studio/examples/mixed-knowledge.book.md
|
|
9749
|
-
* TODO: [🧠][0] Maybe rename to `stringifyPipelineJson`, `stringifyIndexedJson`,...
|
|
9750
|
-
* TODO: [🧠] Maybe more elegant solution than replacing via regex
|
|
9751
|
-
* TODO: [🍙] Make some standard order of json properties
|
|
9752
|
-
*/
|
|
9753
|
-
|
|
9754
9609
|
/**
|
|
9755
9610
|
* Delagates the user interaction to a async callback function
|
|
9756
9611
|
* You need to provide your own implementation of this callback function and its bind to UI.
|
|
@@ -11130,5 +10985,5 @@ var PrefixStorage = /** @class */ (function () {
|
|
|
11130
10985
|
return PrefixStorage;
|
|
11131
10986
|
}());
|
|
11132
10987
|
|
|
11133
|
-
export { $llmToolsMetadataRegister, $llmToolsRegister, $scrapersMetadataRegister, $scrapersRegister, ADMIN_EMAIL, ADMIN_GITHUB_NAME, AbstractFormatError, BOOK_LANGUAGE_VERSION, BlackholeStorage, BoilerplateError, BoilerplateFormfactorDefinition, CLAIM, CallbackInterfaceTools, ChatbotFormfactorDefinition, CollectionError, CsvFormatDefinition, CsvFormatError, DEFAULT_BOOKS_DIRNAME, DEFAULT_CSV_SETTINGS, DEFAULT_EXECUTIONS_CACHE_DIRNAME, DEFAULT_INTERMEDIATE_FILES_STRATEGY, DEFAULT_IS_AUTO_INSTALLED, DEFAULT_IS_VERBOSE, DEFAULT_MAX_EXECUTION_ATTEMPTS, DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH, DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL, DEFAULT_MAX_PARALLEL_COUNT, DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME, DEFAULT_REMOTE_URL, DEFAULT_REMOTE_URL_PATH, DEFAULT_SCRAPE_CACHE_DIRNAME, DEFAULT_TITLE, EXPECTATION_UNITS, EnvironmentMismatchError, ExecutionReportStringOptionsDefaults, ExpectError, FORMFACTOR_DEFINITIONS, GENERIC_PIPELINE_INTERFACE, GeneratorFormfactorDefinition, GenericFormfactorDefinition, KnowledgeScrapeError, LOGO_DARK_SRC, LOGO_LIGHT_SRC, LimitReachedError, MANDATORY_CSV_SETTINGS, MAX_FILENAME_LENGTH, MODEL_VARIANTS, MatcherFormfactorDefinition, MemoryStorage, MissingToolsError, MultipleLlmExecutionTools, NAME, NonTaskSectionTypes, NotFoundError, NotYetImplementedError, ORDER_OF_PIPELINE_JSON, PROMPTBOOK_ENGINE_VERSION, PROMPTBOOK_ERRORS, ParseError, PipelineExecutionError, PipelineLogicError, PipelineUrlError, PrefixStorage, RESERVED_PARAMETER_NAMES, SET_IS_VERBOSE, SectionTypes, SheetsFormfactorDefinition, TaskTypes, TextFormatDefinition, TranslatorFormfactorDefinition, UNCERTAIN_USAGE, UnexpectedError, ZERO_USAGE, _AnthropicClaudeMetadataRegistration, _AzureOpenAiMetadataRegistration, _DocumentScraperMetadataRegistration, _GoogleMetadataRegistration, _LegacyDocumentScraperMetadataRegistration, _MarkdownScraperMetadataRegistration, _OpenAiAssistantMetadataRegistration, _OpenAiMetadataRegistration, _PdfScraperMetadataRegistration, _WebsiteScraperMetadataRegistration, addUsage, assertsExecutionSuccessful, cacheLlmTools, collectionToJson, compilePipeline, countTotalUsage, createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createLlmToolsFromConfiguration, createPipelineExecutor, createSubcollection, embeddingVectorToString, executionReportJsonToString, extractParameterNamesFromTask, getPipelineInterface, isPassingExpectations, isPipelineImplementingInterface, isPipelineInterfacesEqual, isPipelinePrepared, joinLlmExecutionTools, limitTotalUsage, makeKnowledgeSourceHandler, pipelineJsonToString, precompilePipeline, prepareKnowledgePieces, preparePersona, preparePipeline, prepareTasks, prettifyPipelineString,
|
|
10988
|
+
export { $llmToolsMetadataRegister, $llmToolsRegister, $scrapersMetadataRegister, $scrapersRegister, ADMIN_EMAIL, ADMIN_GITHUB_NAME, AbstractFormatError, BOOK_LANGUAGE_VERSION, BlackholeStorage, BoilerplateError, BoilerplateFormfactorDefinition, CLAIM, CallbackInterfaceTools, ChatbotFormfactorDefinition, CollectionError, CsvFormatDefinition, CsvFormatError, DEFAULT_BOOKS_DIRNAME, DEFAULT_CSV_SETTINGS, DEFAULT_EXECUTIONS_CACHE_DIRNAME, DEFAULT_INTERMEDIATE_FILES_STRATEGY, DEFAULT_IS_AUTO_INSTALLED, DEFAULT_IS_VERBOSE, DEFAULT_MAX_EXECUTION_ATTEMPTS, DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH, DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL, DEFAULT_MAX_PARALLEL_COUNT, DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME, DEFAULT_REMOTE_URL, DEFAULT_REMOTE_URL_PATH, DEFAULT_SCRAPE_CACHE_DIRNAME, DEFAULT_TITLE, EXPECTATION_UNITS, EnvironmentMismatchError, ExecutionReportStringOptionsDefaults, ExpectError, FORMFACTOR_DEFINITIONS, GENERIC_PIPELINE_INTERFACE, GeneratorFormfactorDefinition, GenericFormfactorDefinition, KnowledgeScrapeError, LOGO_DARK_SRC, LOGO_LIGHT_SRC, LimitReachedError, MANDATORY_CSV_SETTINGS, MAX_FILENAME_LENGTH, MODEL_VARIANTS, MatcherFormfactorDefinition, MemoryStorage, MissingToolsError, MultipleLlmExecutionTools, NAME, NonTaskSectionTypes, NotFoundError, NotYetImplementedError, ORDER_OF_PIPELINE_JSON, PROMPTBOOK_ENGINE_VERSION, PROMPTBOOK_ERRORS, ParseError, PipelineExecutionError, PipelineLogicError, PipelineUrlError, PrefixStorage, RESERVED_PARAMETER_NAMES, SET_IS_VERBOSE, SectionTypes, SheetsFormfactorDefinition, TaskTypes, TextFormatDefinition, TranslatorFormfactorDefinition, UNCERTAIN_USAGE, UnexpectedError, ZERO_USAGE, _AnthropicClaudeMetadataRegistration, _AzureOpenAiMetadataRegistration, _DocumentScraperMetadataRegistration, _GoogleMetadataRegistration, _LegacyDocumentScraperMetadataRegistration, _MarkdownScraperMetadataRegistration, _OpenAiAssistantMetadataRegistration, _OpenAiMetadataRegistration, _PdfScraperMetadataRegistration, _WebsiteScraperMetadataRegistration, addUsage, assertsExecutionSuccessful, cacheLlmTools, collectionToJson, compilePipeline, countTotalUsage, createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createLlmToolsFromConfiguration, createPipelineExecutor, createSubcollection, embeddingVectorToString, executionReportJsonToString, extractParameterNamesFromTask, getPipelineInterface, isPassingExpectations, isPipelineImplementingInterface, isPipelineInterfacesEqual, isPipelinePrepared, joinLlmExecutionTools, limitTotalUsage, makeKnowledgeSourceHandler, pipelineJsonToString, precompilePipeline, prepareKnowledgePieces, preparePersona, preparePipeline, prepareTasks, prettifyPipelineString, unpreparePipeline, usageToHuman, usageToWorktime, validatePipeline };
|
|
11134
10989
|
//# sourceMappingURL=index.es.js.map
|