@promptbook/core 0.71.0-18 → 0.71.0-20

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.
Files changed (88) hide show
  1. package/README.md +0 -6
  2. package/esm/index.es.js +83 -86
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/src/_packages/core.index.d.ts +22 -18
  5. package/esm/typings/src/_packages/types.index.d.ts +2 -2
  6. package/esm/typings/src/collection/PipelineCollection.d.ts +1 -1
  7. package/esm/typings/src/collection/SimplePipelineCollection.d.ts +2 -2
  8. package/esm/typings/src/collection/collectionToJson.d.ts +1 -1
  9. package/esm/typings/src/collection/constructors/createCollectionFromJson.d.ts +1 -1
  10. package/esm/typings/src/collection/constructors/createCollectionFromPromise.d.ts +1 -1
  11. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +5 -5
  12. package/esm/typings/src/config.d.ts +21 -14
  13. package/esm/typings/src/execution/EmbeddingVector.d.ts +1 -1
  14. package/esm/typings/src/execution/LlmExecutionTools.d.ts +1 -1
  15. package/esm/typings/src/execution/PipelineExecutorResult.d.ts +2 -2
  16. package/esm/typings/src/execution/assertsExecutionSuccessful.d.ts +1 -0
  17. package/esm/typings/src/execution/createPipelineExecutor/00-CreatePipelineExecutorOptions.d.ts +29 -6
  18. package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +2 -11
  19. package/esm/typings/src/execution/createPipelineExecutor/20-executeTemplate.d.ts +4 -13
  20. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +9 -14
  21. package/esm/typings/src/execution/utils/addUsage.d.ts +1 -1
  22. package/esm/typings/src/execution/utils/forEachAsync.d.ts +1 -1
  23. package/esm/typings/src/formats/_common/FormatDefinition.d.ts +2 -2
  24. package/esm/typings/src/formats/_common/FormatSubvalueDefinition.d.ts +2 -2
  25. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForCli.d.ts +2 -2
  26. package/esm/typings/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +1 -1
  27. package/esm/typings/src/llm-providers/_common/utils/cache/CacheLlmToolsOptions.d.ts +4 -1
  28. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
  29. package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
  30. package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
  31. package/esm/typings/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +1 -1
  32. package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +1 -1
  33. package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +1 -1
  34. package/esm/typings/src/llm-providers/multiple/MultipleLlmExecutionTools.d.ts +3 -3
  35. package/esm/typings/src/llm-providers/multiple/joinLlmExecutionTools.d.ts +1 -1
  36. package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +1 -1
  37. package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
  38. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -1
  39. package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_ListModels_Response.d.ts +1 -1
  40. package/esm/typings/src/prepare/PrepareAndScrapeOptions.d.ts +4 -4
  41. package/esm/typings/src/prepare/prepareTemplates.d.ts +1 -1
  42. package/esm/typings/src/scrapers/_common/Scraper.d.ts +1 -5
  43. package/esm/typings/src/scrapers/_common/prepareKnowledgePieces.d.ts +1 -1
  44. package/esm/typings/src/scrapers/_common/register/$provideScrapersForBrowser.d.ts +1 -1
  45. package/esm/typings/src/scrapers/_common/register/$provideScrapersForNode.d.ts +1 -1
  46. package/esm/typings/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +2 -2
  47. package/esm/typings/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +2 -2
  48. package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +1 -1
  49. package/esm/typings/src/scrapers/document/DocumentScraper.d.ts +1 -1
  50. package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +1 -1
  51. package/esm/typings/src/scrapers/document/register-metadata.d.ts +1 -1
  52. package/esm/typings/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
  53. package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +1 -1
  54. package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +1 -1
  55. package/esm/typings/src/scrapers/markdown/MarkdownScraper.d.ts +1 -1
  56. package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +1 -1
  57. package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +1 -1
  58. package/esm/typings/src/scrapers/pdf/PdfScraper.d.ts +1 -1
  59. package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +1 -1
  60. package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +1 -1
  61. package/esm/typings/src/scrapers/website/WebsiteScraper.d.ts +1 -1
  62. package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +1 -1
  63. package/esm/typings/src/scrapers/website/register-metadata.d.ts +1 -1
  64. package/esm/typings/src/scripting/javascript/utils/preserve.d.ts +1 -1
  65. package/esm/typings/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +1 -1
  66. package/esm/typings/src/types/Arrayable.d.ts +1 -1
  67. package/esm/typings/src/types/IntermediateFilesStrategy.d.ts +7 -0
  68. package/esm/typings/src/types/PipelineJson/KnowledgePieceJson.d.ts +4 -4
  69. package/esm/typings/src/types/PipelineJson/KnowledgeSourceJson.d.ts +1 -1
  70. package/esm/typings/src/types/PipelineJson/PersonaJson.d.ts +1 -1
  71. package/esm/typings/src/types/Prompt.d.ts +1 -1
  72. package/esm/typings/src/types/execution-report/ExecutionReportJson.d.ts +1 -1
  73. package/esm/typings/src/utils/$Register.d.ts +1 -1
  74. package/esm/typings/src/utils/FromtoItems.d.ts +1 -1
  75. package/esm/typings/src/utils/arrayableToArray.d.ts +1 -1
  76. package/esm/typings/src/utils/emojis.d.ts +1 -1
  77. package/esm/typings/src/utils/expectation-counters/countSentences.d.ts +1 -1
  78. package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +1 -1
  79. package/esm/typings/src/utils/markdown/splitMarkdownIntoSections.d.ts +1 -1
  80. package/esm/typings/src/utils/organization/TODO_USE.d.ts +1 -1
  81. package/esm/typings/src/utils/organization/keepUnused.d.ts +1 -1
  82. package/esm/typings/src/utils/random/$randomSeed.d.ts +1 -1
  83. package/esm/typings/src/utils/sets/intersection.d.ts +1 -1
  84. package/esm/typings/src/utils/sets/union.d.ts +1 -1
  85. package/package.json +1 -1
  86. package/umd/index.umd.js +93 -94
  87. package/umd/index.umd.js.map +1 -1
  88. package/esm/typings/src/execution/createPipelineExecutor/00-CreatePipelineExecutorSettings.d.ts +0 -29
package/README.md CHANGED
@@ -20,12 +20,6 @@ Build responsible, controlled and transparent applications on top of LLM models!
20
20
 
21
21
  - ✨ **Support of [OpenAI o1 model](https://openai.com/o1/)**
22
22
 
23
- <blockquote style="color: #ff8811">
24
- <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
25
- </blockquote>
26
-
27
-
28
-
29
23
  <blockquote style="color: #ff8811">
30
24
  <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
31
25
  </blockquote>
package/esm/index.es.js CHANGED
@@ -14,7 +14,7 @@ import moment from 'moment';
14
14
  /**
15
15
  * The version of the Promptbook library
16
16
  */
17
- var PROMPTBOOK_VERSION = '0.71.0-17';
17
+ var PROMPTBOOK_VERSION = '0.71.0-19';
18
18
  // TODO: [main] !!!! List here all the versions and annotate + put into script
19
19
 
20
20
  /*! *****************************************************************************
@@ -221,7 +221,6 @@ function pipelineJsonToString(pipelineJson) {
221
221
  pipelineString += '\n\n';
222
222
  pipelineString += description;
223
223
  }
224
- // TODO:> const commands: Array<Command>
225
224
  var commands = [];
226
225
  if (pipelineUrl) {
227
226
  commands.push("PIPELINE URL ".concat(pipelineUrl));
@@ -277,7 +276,6 @@ function pipelineJsonToString(pipelineJson) {
277
276
  pipelineString += '\n\n';
278
277
  pipelineString += description_1;
279
278
  }
280
- // TODO:> const commands: Array<Command>
281
279
  var commands_1 = [];
282
280
  var contentLanguage = 'text';
283
281
  if (templateType === 'PROMPT_TEMPLATE') {
@@ -637,7 +635,7 @@ var GENERATOR_WARNING = "\u26A0\uFE0F WARNING: This code has been generated so t
637
635
  *
638
636
  * @public exported from `@promptbook/core`
639
637
  */
640
- var CLAIM = "Supercharge LLM models with Promptbook";
638
+ var CLAIM = "Build responsible, controlled and transparent applications on top of LLM models!";
641
639
  // <- TODO: [🧠] Better system for generator warnings - not always "code" and "by `@promptbook/cli`"
642
640
  /**
643
641
  * The maximum number of iterations for a loops
@@ -652,37 +650,44 @@ var LOOP_LIMIT = 1000;
652
650
  */
653
651
  var IMMEDIATE_TIME = 10;
654
652
  /**
655
- * The maximum number of (LLM) tasks running in parallel
653
+ * The maximum length of the (generated) filename
656
654
  *
657
655
  * @public exported from `@promptbook/core`
658
656
  */
659
- var MAX_PARALLEL_COUNT = 5; // <- TODO: [🤹‍♂️]
657
+ var MAX_FILENAME_LENGTH = 30;
660
658
  /**
661
- * The maximum number of attempts to execute LLM task before giving up
659
+ * Strategy for caching the intermediate results for knowledge sources
662
660
  *
663
661
  * @public exported from `@promptbook/core`
664
662
  */
665
- var MAX_EXECUTION_ATTEMPTS = 3; // <- TODO: [🤹‍♂️]
663
+ var DEFAULT_INTERMEDIATE_FILES_STRATEGY = 'HIDE_AND_KEEP';
664
+ // <- TODO: [😡] Change to 'VISIBLE'
666
665
  /**
667
- * The maximum length of the (generated) filename
666
+ * The maximum number of (LLM) tasks running in parallel
668
667
  *
669
668
  * @public exported from `@promptbook/core`
670
669
  */
671
- var MAX_FILENAME_LENGTH = 30;
670
+ var DEFAULT_MAX_PARALLEL_COUNT = 5; // <- TODO: [🤹‍♂️]
671
+ /**
672
+ * The maximum number of attempts to execute LLM task before giving up
673
+ *
674
+ * @public exported from `@promptbook/core`
675
+ */
676
+ var DEFAULT_MAX_EXECUTION_ATTEMPTS = 3; // <- TODO: [🤹‍♂️]
672
677
  /**
673
678
  * @@@
674
679
  * TODO: [🐝][main] !!! Use
675
680
  *
676
681
  * @public exported from `@promptbook/core`
677
682
  */
678
- var MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH = 3;
683
+ var DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH = 3;
679
684
  /**
680
685
  * @@@
681
686
  * TODO: [🐝][main] !!! Use
682
687
  *
683
688
  * @public exported from `@promptbook/core`
684
689
  */
685
- var MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL = 200;
690
+ var DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL = 200;
686
691
  /**
687
692
  * Where to store the cache of executions for promptbook CLI
688
693
  *
@@ -690,7 +695,7 @@ var MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL = 200;
690
695
  *
691
696
  * @public exported from `@promptbook/core`
692
697
  */
693
- var EXECUTIONS_CACHE_DIRNAME = '/.promptbook/executions-cache';
698
+ var DEFAULT_EXECUTIONS_CACHE_DIRNAME = '/.promptbook/executions-cache';
694
699
  /**
695
700
  * Where to store the scrape cache
696
701
  *
@@ -698,13 +703,13 @@ var EXECUTIONS_CACHE_DIRNAME = '/.promptbook/executions-cache';
698
703
  *
699
704
  * @public exported from `@promptbook/core`
700
705
  */
701
- var SCRAPE_CACHE_DIRNAME = '/.promptbook/scrape-cache';
706
+ var DEFAULT_SCRAPE_CACHE_DIRNAME = '/.promptbook/scrape-cache';
702
707
  /**
703
708
  * The name of the builded pipeline collection made by CLI `ptbk make` and for lookup in `createCollectionFromDirectory`
704
709
  *
705
710
  * @public exported from `@promptbook/core`
706
711
  */
707
- var PIPELINE_COLLECTION_BASE_FILENAME = "index";
712
+ var DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME = "index";
708
713
  /**
709
714
  * Nonce which is used for replacing things in strings
710
715
  *
@@ -777,13 +782,13 @@ var DEFAULT_CSV_SETTINGS = Object.freeze({
777
782
  *
778
783
  * @public exported from `@promptbook/core`
779
784
  */
780
- var IS_VERBOSE = false;
785
+ var DEFAULT_IS_VERBOSE = false;
781
786
  /**
782
787
  * @@@
783
788
  *
784
789
  * @public exported from `@promptbook/core`
785
790
  */
786
- var IS_AUTO_INSTALLED = false;
791
+ var DEFAULT_IS_AUTO_INSTALLED = false;
787
792
  /**
788
793
  * @@@
789
794
  *
@@ -1532,7 +1537,7 @@ function createCollectionFromUrl(url, options) {
1532
1537
  return __generator(this, function (_d) {
1533
1538
  switch (_d.label) {
1534
1539
  case 0:
1535
- _a = options || {}, _b = _a.isVerbose, isVerbose = _b === void 0 ? IS_VERBOSE : _b, _c = _a.isLazyLoaded, isLazyLoaded = _c === void 0 ? false : _c;
1540
+ _a = options || {}, _b = _a.isVerbose, isVerbose = _b === void 0 ? DEFAULT_IS_VERBOSE : _b, _c = _a.isLazyLoaded, isLazyLoaded = _c === void 0 ? false : _c;
1536
1541
  collection = createCollectionFromPromise(function () { return __awaiter(_this, void 0, void 0, function () {
1537
1542
  return __generator(this, function (_a) {
1538
1543
  if (isVerbose) {
@@ -2407,6 +2412,7 @@ function assertsExecutionSuccessful(executionResult) {
2407
2412
  }
2408
2413
  }
2409
2414
  /**
2415
+ * TODO: [🐚] This function should be removed OR changed OR be completely rewritten
2410
2416
  * TODO: [🧠] Can this return type be better typed than void
2411
2417
  */
2412
2418
 
@@ -3735,12 +3741,11 @@ function isPassingExpectations(expectations, value) {
3735
3741
  */
3736
3742
  function executeAttempts(options) {
3737
3743
  return __awaiter(this, void 0, void 0, function () {
3738
- var jokerParameterNames, priority, maxAttempts, preparedContent, parameters, template, preparedPipeline, tools, settings, $executionReport, pipelineIdentification, maxExecutionAttempts, $ongoingTemplateResult, _llms, llmTools, _loop_1, attempt, state_1;
3744
+ var jokerParameterNames, priority, maxAttempts, preparedContent, parameters, template, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, $ongoingTemplateResult, _llms, llmTools, _loop_1, attempt, state_1;
3739
3745
  return __generator(this, function (_a) {
3740
3746
  switch (_a.label) {
3741
3747
  case 0:
3742
- jokerParameterNames = options.jokerParameterNames, priority = options.priority, maxAttempts = options.maxAttempts, preparedContent = options.preparedContent, parameters = options.parameters, template = options.template, preparedPipeline = options.preparedPipeline, tools = options.tools, settings = options.settings, $executionReport = options.$executionReport, pipelineIdentification = options.pipelineIdentification;
3743
- maxExecutionAttempts = settings.maxExecutionAttempts;
3748
+ jokerParameterNames = options.jokerParameterNames, priority = options.priority, maxAttempts = options.maxAttempts, preparedContent = options.preparedContent, parameters = options.parameters, template = options.template, preparedPipeline = options.preparedPipeline, tools = options.tools, $executionReport = options.$executionReport, pipelineIdentification = options.pipelineIdentification, maxExecutionAttempts = options.maxExecutionAttempts;
3744
3749
  $ongoingTemplateResult = {
3745
3750
  $result: null,
3746
3751
  $resultString: null,
@@ -4106,12 +4111,12 @@ function executeAttempts(options) {
4106
4111
  */
4107
4112
  function executeFormatSubvalues(options) {
4108
4113
  return __awaiter(this, void 0, void 0, function () {
4109
- var template, jokerParameterNames, parameters, priority, pipelineIdentification, settings, parameterValue, formatDefinition, subvalueDefinition, formatSettings, resultString;
4114
+ var template, jokerParameterNames, parameters, priority, csvSettings, pipelineIdentification, parameterValue, formatDefinition, subvalueDefinition, formatSettings, resultString;
4110
4115
  var _this = this;
4111
4116
  return __generator(this, function (_a) {
4112
4117
  switch (_a.label) {
4113
4118
  case 0:
4114
- template = options.template, jokerParameterNames = options.jokerParameterNames, parameters = options.parameters, priority = options.priority, pipelineIdentification = options.pipelineIdentification, settings = options.settings;
4119
+ template = options.template, jokerParameterNames = options.jokerParameterNames, parameters = options.parameters, priority = options.priority, csvSettings = options.csvSettings, pipelineIdentification = options.pipelineIdentification;
4115
4120
  if (template.foreach === undefined) {
4116
4121
  return [2 /*return*/, /* not await */ executeAttempts(options)];
4117
4122
  }
@@ -4141,7 +4146,7 @@ function executeFormatSubvalues(options) {
4141
4146
  .join('\n')), "\n\n [\u26F7] This should never happen because subformat name should be validated during parsing\n\n ").concat(block(pipelineIdentification), "\n "); }));
4142
4147
  }
4143
4148
  if (formatDefinition.formatName === 'CSV') {
4144
- formatSettings = settings.csvSettings;
4149
+ formatSettings = csvSettings;
4145
4150
  // <- TODO: [🤹‍♂️] More universal, make simmilar pattern for other formats for example \n vs \r\n in text
4146
4151
  }
4147
4152
  return [4 /*yield*/, subvalueDefinition.mapValues(parameterValue, template.foreach.outputSubparameterName, formatSettings, function (subparameters, index) { return __awaiter(_this, void 0, void 0, function () {
@@ -4294,13 +4299,12 @@ function getReservedParametersForTemplate(options) {
4294
4299
  */
4295
4300
  function executeTemplate(options) {
4296
4301
  return __awaiter(this, void 0, void 0, function () {
4297
- var currentTemplate, preparedPipeline, parametersToPass, tools, onProgress, settings, $executionReport, pipelineIdentification, maxExecutionAttempts, name, title, priority, usedParameterNames, dependentParameterNames, definedParameters, _a, _b, _c, definedParameterNames, parameters, _loop_1, _d, _e, parameterName, maxAttempts, jokerParameterNames, preparedContent, resultString;
4298
- var e_1, _f, _g;
4299
- return __generator(this, function (_h) {
4300
- switch (_h.label) {
4302
+ var currentTemplate, preparedPipeline, parametersToPass, tools, onProgress, $executionReport, pipelineIdentification, _a, maxExecutionAttempts, name, title, priority, usedParameterNames, dependentParameterNames, definedParameters, _b, _c, _d, definedParameterNames, parameters, _loop_1, _e, _f, parameterName, maxAttempts, jokerParameterNames, preparedContent, resultString;
4303
+ var e_1, _g, _h;
4304
+ return __generator(this, function (_j) {
4305
+ switch (_j.label) {
4301
4306
  case 0:
4302
- currentTemplate = options.currentTemplate, preparedPipeline = options.preparedPipeline, parametersToPass = options.parametersToPass, tools = options.tools, onProgress = options.onProgress, settings = options.settings, $executionReport = options.$executionReport, pipelineIdentification = options.pipelineIdentification;
4303
- maxExecutionAttempts = settings.maxExecutionAttempts;
4307
+ currentTemplate = options.currentTemplate, preparedPipeline = options.preparedPipeline, parametersToPass = options.parametersToPass, tools = options.tools, onProgress = options.onProgress, $executionReport = options.$executionReport, pipelineIdentification = options.pipelineIdentification, _a = options.maxExecutionAttempts, maxExecutionAttempts = _a === void 0 ? DEFAULT_MAX_EXECUTION_ATTEMPTS : _a;
4304
4308
  name = "pipeline-executor-frame-".concat(currentTemplate.name);
4305
4309
  title = currentTemplate.title;
4306
4310
  priority = preparedPipeline.templates.length - preparedPipeline.templates.indexOf(currentTemplate);
@@ -4315,7 +4319,7 @@ function executeTemplate(options) {
4315
4319
  // <- [🍸]
4316
4320
  })];
4317
4321
  case 1:
4318
- _h.sent();
4322
+ _j.sent();
4319
4323
  usedParameterNames = extractParameterNamesFromTemplate(currentTemplate);
4320
4324
  dependentParameterNames = new Set(currentTemplate.dependentParameterNames);
4321
4325
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
@@ -4326,15 +4330,15 @@ function executeTemplate(options) {
4326
4330
  .map(function (name) { return "{".concat(name, "}"); })
4327
4331
  .join(', '), "\n\n ").concat(block(pipelineIdentification), "\n\n "); }));
4328
4332
  }
4329
- _b = (_a = Object).freeze;
4330
- _c = [{}];
4333
+ _c = (_b = Object).freeze;
4334
+ _d = [{}];
4331
4335
  return [4 /*yield*/, getReservedParametersForTemplate({
4332
4336
  preparedPipeline: preparedPipeline,
4333
4337
  template: currentTemplate,
4334
4338
  pipelineIdentification: pipelineIdentification,
4335
4339
  })];
4336
4340
  case 2:
4337
- definedParameters = _b.apply(_a, [__assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), parametersToPass])]);
4341
+ definedParameters = _c.apply(_b, [__assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), parametersToPass])]);
4338
4342
  definedParameterNames = new Set(Object.keys(definedParameters));
4339
4343
  parameters = {};
4340
4344
  _loop_1 = function (parameterName) {
@@ -4354,15 +4358,15 @@ function executeTemplate(options) {
4354
4358
  try {
4355
4359
  // Note: [2] Check that all used parameters are defined and removing unused parameters for this template
4356
4360
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
4357
- for (_d = __values(Array.from(union(definedParameterNames, usedParameterNames, dependentParameterNames))), _e = _d.next(); !_e.done; _e = _d.next()) {
4358
- parameterName = _e.value;
4361
+ for (_e = __values(Array.from(union(definedParameterNames, usedParameterNames, dependentParameterNames))), _f = _e.next(); !_f.done; _f = _e.next()) {
4362
+ parameterName = _f.value;
4359
4363
  _loop_1(parameterName);
4360
4364
  }
4361
4365
  }
4362
4366
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
4363
4367
  finally {
4364
4368
  try {
4365
- if (_e && !_e.done && (_f = _d.return)) _f.call(_d);
4369
+ if (_f && !_f.done && (_g = _e.return)) _g.call(_e);
4366
4370
  }
4367
4371
  finally { if (e_1) throw e_1.error; }
4368
4372
  }
@@ -4382,12 +4386,11 @@ function executeTemplate(options) {
4382
4386
  template: currentTemplate,
4383
4387
  preparedPipeline: preparedPipeline,
4384
4388
  tools: tools,
4385
- settings: settings,
4386
4389
  $executionReport: $executionReport,
4387
4390
  pipelineIdentification: pipelineIdentification,
4388
4391
  })];
4389
4392
  case 3:
4390
- resultString = _h.sent();
4393
+ resultString = _j.sent();
4391
4394
  return [4 /*yield*/, onProgress({
4392
4395
  name: name,
4393
4396
  title: title,
@@ -4399,12 +4402,12 @@ function executeTemplate(options) {
4399
4402
  // <- [🍸]
4400
4403
  })];
4401
4404
  case 4:
4402
- _h.sent();
4403
- return [2 /*return*/, Object.freeze((_g = {},
4404
- _g[currentTemplate.resultingParameterName] =
4405
+ _j.sent();
4406
+ return [2 /*return*/, Object.freeze((_h = {},
4407
+ _h[currentTemplate.resultingParameterName] =
4405
4408
  // <- Note: [👩‍👩‍👧] No need to detect parameter collision here because pipeline checks logic consistency during construction
4406
4409
  resultString,
4407
- _g))];
4410
+ _h))];
4408
4411
  }
4409
4412
  });
4410
4413
  });
@@ -4463,13 +4466,12 @@ function filterJustOutputParameters(options) {
4463
4466
  */
4464
4467
  function executePipeline(options) {
4465
4468
  return __awaiter(this, void 0, void 0, function () {
4466
- var inputParameters, tools, onProgress, pipeline, setPreparedPipeline, pipelineIdentification, settings, maxParallelCount, rootDirname, _a, isVerbose, preparedPipeline, errors, warnings, executionReport, isReturned, _b, _c, parameter, e_1_1, _loop_1, _d, _e, parameterName, state_1, e_2_1, parametersToPass, resovedParameterNames_1, unresovedTemplates_1, resolving_1, loopLimit, _loop_2, error_1, usage_1, outputParameters_1, usage, outputParameters;
4469
+ var inputParameters, tools, onProgress, pipeline, setPreparedPipeline, pipelineIdentification, maxParallelCount, rootDirname, _a, isVerbose, preparedPipeline, errors, warnings, executionReport, isReturned, _b, _c, parameter, e_1_1, _loop_1, _d, _e, parameterName, state_1, e_2_1, parametersToPass, resovedParameterNames_1, unresovedTemplates_1, resolving_1, loopLimit, _loop_2, error_1, usage_1, outputParameters_1, usage, outputParameters;
4467
4470
  var e_1, _f, e_2, _g;
4468
4471
  return __generator(this, function (_h) {
4469
4472
  switch (_h.label) {
4470
4473
  case 0:
4471
- inputParameters = options.inputParameters, tools = options.tools, onProgress = options.onProgress, pipeline = options.pipeline, setPreparedPipeline = options.setPreparedPipeline, pipelineIdentification = options.pipelineIdentification, settings = options.settings;
4472
- maxParallelCount = settings.maxParallelCount, rootDirname = settings.rootDirname, _a = settings.isVerbose, isVerbose = _a === void 0 ? IS_VERBOSE : _a;
4474
+ inputParameters = options.inputParameters, tools = options.tools, onProgress = options.onProgress, pipeline = options.pipeline, setPreparedPipeline = options.setPreparedPipeline, pipelineIdentification = options.pipelineIdentification, maxParallelCount = options.maxParallelCount, rootDirname = options.rootDirname, _a = options.isVerbose, isVerbose = _a === void 0 ? DEFAULT_IS_VERBOSE : _a;
4473
4475
  preparedPipeline = options.preparedPipeline;
4474
4476
  if (!(preparedPipeline === undefined)) return [3 /*break*/, 2];
4475
4477
  return [4 /*yield*/, preparePipeline(pipeline, tools, {
@@ -4654,12 +4656,7 @@ function executePipeline(options) {
4654
4656
  return [3 /*break*/, 4];
4655
4657
  case 3:
4656
4658
  unresovedTemplates_1 = unresovedTemplates_1.filter(function (template) { return template !== currentTemplate; });
4657
- work_1 = executeTemplate({
4658
- currentTemplate: currentTemplate,
4659
- preparedPipeline: preparedPipeline,
4660
- parametersToPass: parametersToPass,
4661
- tools: tools,
4662
- onProgress: function (progress) {
4659
+ work_1 = executeTemplate(__assign(__assign({}, options), { currentTemplate: currentTemplate, preparedPipeline: preparedPipeline, parametersToPass: parametersToPass, tools: tools, onProgress: function (progress) {
4663
4660
  if (isReturned) {
4664
4661
  throw new UnexpectedError(spaceTrim$1(function (block) { return "\n Can not call `onProgress` after pipeline execution is finished\n\n ".concat(block(pipelineIdentification), "\n\n ").concat(block(JSON.stringify(progress, null, 4)
4665
4662
  .split('\n')
@@ -4669,11 +4666,7 @@ function executePipeline(options) {
4669
4666
  if (onProgress) {
4670
4667
  onProgress(progress);
4671
4668
  }
4672
- },
4673
- settings: settings,
4674
- $executionReport: executionReport,
4675
- pipelineIdentification: spaceTrim$1(function (block) { return "\n ".concat(block(pipelineIdentification), "\n Template name: ").concat(currentTemplate.name, "\n Template title: ").concat(currentTemplate.title, "\n "); }),
4676
- })
4669
+ }, $executionReport: executionReport, pipelineIdentification: spaceTrim$1(function (block) { return "\n ".concat(block(pipelineIdentification), "\n Template name: ").concat(currentTemplate.name, "\n Template title: ").concat(currentTemplate.title, "\n "); }) }))
4677
4670
  .then(function (newParametersToPass) {
4678
4671
  parametersToPass = __assign(__assign({}, newParametersToPass), parametersToPass);
4679
4672
  resovedParameterNames_1 = __spreadArray(__spreadArray([], __read(resovedParameterNames_1), false), [currentTemplate.resultingParameterName], false);
@@ -4777,8 +4770,7 @@ function executePipeline(options) {
4777
4770
  */
4778
4771
  function createPipelineExecutor(options) {
4779
4772
  var _this = this;
4780
- var pipeline = options.pipeline, tools = options.tools, _a = options.settings, settings = _a === void 0 ? {} : _a;
4781
- var _b = settings.maxExecutionAttempts, maxExecutionAttempts = _b === void 0 ? MAX_EXECUTION_ATTEMPTS : _b, _c = settings.maxParallelCount, maxParallelCount = _c === void 0 ? MAX_PARALLEL_COUNT : _c, _d = settings.csvSettings, csvSettings = _d === void 0 ? DEFAULT_CSV_SETTINGS : _d, _e = settings.isVerbose, isVerbose = _e === void 0 ? IS_VERBOSE : _e, _f = settings.isNotPreparedWarningSupressed, isNotPreparedWarningSupressed = _f === void 0 ? false : _f, _g = settings.rootDirname, rootDirname = _g === void 0 ? null : _g;
4773
+ var pipeline = options.pipeline, tools = options.tools, _a = options.maxExecutionAttempts, maxExecutionAttempts = _a === void 0 ? DEFAULT_MAX_EXECUTION_ATTEMPTS : _a, _b = options.maxParallelCount, maxParallelCount = _b === void 0 ? DEFAULT_MAX_PARALLEL_COUNT : _b, _c = options.csvSettings, csvSettings = _c === void 0 ? DEFAULT_CSV_SETTINGS : _c, _d = options.isVerbose, isVerbose = _d === void 0 ? DEFAULT_IS_VERBOSE : _d, _e = options.isNotPreparedWarningSupressed, isNotPreparedWarningSupressed = _e === void 0 ? false : _e, _f = options.rootDirname, rootDirname = _f === void 0 ? null : _f;
4782
4774
  validatePipeline(pipeline);
4783
4775
  var pipelineIdentification = (function () {
4784
4776
  // Note: This is a 😐 implementation of [🚞]
@@ -4812,14 +4804,12 @@ function createPipelineExecutor(options) {
4812
4804
  tools: tools,
4813
4805
  onProgress: onProgress,
4814
4806
  pipelineIdentification: spaceTrim$1(function (block) { return "\n ".concat(block(pipelineIdentification), "\n ").concat(runCount === 1 ? '' : "Run #".concat(runCount), "\n "); }),
4815
- settings: {
4816
- maxExecutionAttempts: maxExecutionAttempts,
4817
- maxParallelCount: maxParallelCount,
4818
- csvSettings: csvSettings,
4819
- isVerbose: isVerbose,
4820
- isNotPreparedWarningSupressed: isNotPreparedWarningSupressed,
4821
- rootDirname: rootDirname,
4822
- },
4807
+ maxExecutionAttempts: maxExecutionAttempts,
4808
+ maxParallelCount: maxParallelCount,
4809
+ csvSettings: csvSettings,
4810
+ isVerbose: isVerbose,
4811
+ isNotPreparedWarningSupressed: isNotPreparedWarningSupressed,
4812
+ rootDirname: rootDirname,
4823
4813
  })];
4824
4814
  });
4825
4815
  }); };
@@ -4842,7 +4832,7 @@ function preparePersona(personaDescription, tools, options) {
4842
4832
  return __generator(this, function (_d) {
4843
4833
  switch (_d.label) {
4844
4834
  case 0:
4845
- _a = options.isVerbose, isVerbose = _a === void 0 ? IS_VERBOSE : _a;
4835
+ _a = options.isVerbose, isVerbose = _a === void 0 ? DEFAULT_IS_VERBOSE : _a;
4846
4836
  if (tools === undefined || tools.llm === undefined) {
4847
4837
  throw new MissingToolsError('LLM tools are required for preparing persona');
4848
4838
  }
@@ -5024,7 +5014,7 @@ var $Register = /** @class */ (function () {
5024
5014
  this.storage = globalScope[storageName];
5025
5015
  }
5026
5016
  $Register.prototype.list = function () {
5027
- // <- TODO: ReadonlyDeep<Array<TRegistered>>
5017
+ // <- TODO: ReadonlyDeep<ReadonlyArray<TRegistered>>
5028
5018
  return this.storage;
5029
5019
  };
5030
5020
  $Register.prototype.register = function (registered) {
@@ -5342,7 +5332,7 @@ function isValidFilePath(filename) {
5342
5332
  /**
5343
5333
  * @@@
5344
5334
  *
5345
- * @private for scraper utilities
5335
+ * @public exported from `@promptbook/core`
5346
5336
  */
5347
5337
  function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
5348
5338
  var _a;
@@ -5355,7 +5345,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
5355
5345
  case 0:
5356
5346
  sourceContent = knowledgeSource.sourceContent;
5357
5347
  name = knowledgeSource.name;
5358
- _b = options || {}, _c = _b.rootDirname, rootDirname = _c === void 0 ? null : _c, _d = _b.isVerbose, isVerbose = _d === void 0 ? IS_VERBOSE : _d;
5348
+ _b = options || {}, _c = _b.rootDirname, rootDirname = _c === void 0 ? null : _c, _d = _b.isVerbose, isVerbose = _d === void 0 ? DEFAULT_IS_VERBOSE : _d;
5359
5349
  TODO_USE(isVerbose);
5360
5350
  if (!name) {
5361
5351
  name = sourceContentToName(sourceContent);
@@ -5508,7 +5498,7 @@ function prepareKnowledgePieces(knowledgeSources, tools, options) {
5508
5498
  return __generator(this, function (_c) {
5509
5499
  switch (_c.label) {
5510
5500
  case 0:
5511
- _a = options.maxParallelCount, maxParallelCount = _a === void 0 ? MAX_PARALLEL_COUNT : _a, rootDirname = options.rootDirname, _b = options.isVerbose, isVerbose = _b === void 0 ? IS_VERBOSE : _b;
5501
+ _a = options.maxParallelCount, maxParallelCount = _a === void 0 ? DEFAULT_MAX_PARALLEL_COUNT : _a, rootDirname = options.rootDirname, _b = options.isVerbose, isVerbose = _b === void 0 ? DEFAULT_IS_VERBOSE : _b;
5512
5502
  knowledgePreparedUnflatten = new Array(knowledgeSources.length);
5513
5503
  return [4 /*yield*/, forEachAsync(knowledgeSources, { maxParallelCount: maxParallelCount }, function (knowledgeSource, index) { return __awaiter(_this, void 0, void 0, function () {
5514
5504
  var partialPieces, sourceHandler, _a, _b, scraper, partialPiecesUnchecked, e_1_1, pieces;
@@ -5537,7 +5527,8 @@ function prepareKnowledgePieces(knowledgeSources, tools, options) {
5537
5527
  case 4:
5538
5528
  partialPiecesUnchecked = _d.sent();
5539
5529
  if (partialPiecesUnchecked !== null) {
5540
- partialPieces = partialPiecesUnchecked;
5530
+ partialPieces = __spreadArray([], __read(partialPiecesUnchecked), false);
5531
+ // <- TODO: [🪓] Here should be no need for spreading new array, just `partialPieces = partialPiecesUnchecked`
5541
5532
  return [3 /*break*/, 6];
5542
5533
  }
5543
5534
  _d.label = 5;
@@ -5585,7 +5576,7 @@ TODO: [🧊] This is how it can look in future
5585
5576
  > /**
5586
5577
  > * Unprepared knowledge
5587
5578
  > * /
5588
- > readonly knowledgeSources: Array<KnowledgeSourceJson>;
5579
+ > readonly knowledgeSources: ReadonlyArray<KnowledgeSourceJson>;
5589
5580
  > };
5590
5581
  >
5591
5582
  > export async function prepareKnowledgePieces(
@@ -5643,7 +5634,7 @@ function prepareTemplates(pipeline, tools, options) {
5643
5634
  return __generator(this, function (_b) {
5644
5635
  switch (_b.label) {
5645
5636
  case 0:
5646
- _a = options.maxParallelCount, maxParallelCount = _a === void 0 ? MAX_PARALLEL_COUNT : _a;
5637
+ _a = options.maxParallelCount, maxParallelCount = _a === void 0 ? DEFAULT_MAX_PARALLEL_COUNT : _a;
5647
5638
  templates = pipeline.templates, parameters = pipeline.parameters, knowledgePiecesCount = pipeline.knowledgePiecesCount;
5648
5639
  // TODO: [main] !!!!! Apply samples to each template (if missing and is for the template defined)
5649
5640
  TODO_USE(parameters);
@@ -5705,7 +5696,7 @@ function preparePipeline(pipeline, tools, options) {
5705
5696
  if (isPipelinePrepared(pipeline)) {
5706
5697
  return [2 /*return*/, pipeline];
5707
5698
  }
5708
- rootDirname = options.rootDirname, _a = options.maxParallelCount, maxParallelCount = _a === void 0 ? MAX_PARALLEL_COUNT : _a, _b = options.isVerbose, isVerbose = _b === void 0 ? IS_VERBOSE : _b;
5699
+ rootDirname = options.rootDirname, _a = options.maxParallelCount, maxParallelCount = _a === void 0 ? DEFAULT_MAX_PARALLEL_COUNT : _a, _b = options.isVerbose, isVerbose = _b === void 0 ? DEFAULT_IS_VERBOSE : _b;
5709
5700
  parameters = pipeline.parameters, templates = pipeline.templates, knowledgeSources = pipeline.knowledgeSources, personas = pipeline.personas;
5710
5701
  if (tools === undefined || tools.llm === undefined) {
5711
5702
  throw new MissingToolsError('LLM tools are required for preparing the pipeline');
@@ -5763,7 +5754,9 @@ function preparePipeline(pipeline, tools, options) {
5763
5754
  // ----- /Templates preparation -----
5764
5755
  // Note: Count total usage
5765
5756
  currentPreparation.usage = llmToolsWithUsage.getTotalUsage();
5766
- return [2 /*return*/, $asDeeplyFrozenSerializableJson('Prepared PipelineJson', __assign(__assign({}, clonePipeline(pipeline)), { templates: templatesPrepared, knowledgeSources: knowledgeSourcesPrepared, knowledgePieces: knowledgePiecesPrepared, personas: preparedPersonas, preparations: preparations }))];
5757
+ return [2 /*return*/, $asDeeplyFrozenSerializableJson('Prepared PipelineJson', __assign(__assign({}, clonePipeline(pipeline)), { templates: __spreadArray([], __read(templatesPrepared), false),
5758
+ // <- TODO: [🪓] Here should be no need for spreading new array, just ` templates: templatesPrepared`
5759
+ knowledgeSources: knowledgeSourcesPrepared, knowledgePieces: knowledgePiecesPrepared, personas: preparedPersonas, preparations: __spreadArray([], __read(preparations), false) }))];
5767
5760
  }
5768
5761
  });
5769
5762
  });
@@ -8933,7 +8926,7 @@ function $registeredLlmToolsMessage() {
8933
8926
  */
8934
8927
  function createLlmToolsFromConfiguration(configuration, options) {
8935
8928
  if (options === void 0) { options = {}; }
8936
- var _a = options.isVerbose, isVerbose = _a === void 0 ? IS_VERBOSE : _a;
8929
+ var _a = options.isVerbose, isVerbose = _a === void 0 ? DEFAULT_IS_VERBOSE : _a;
8937
8930
  var llmTools = configuration.map(function (llmConfiguration) {
8938
8931
  var registeredItem = $llmToolsRegister
8939
8932
  .list()
@@ -9034,7 +9027,7 @@ function $currentDate() {
9034
9027
  function cacheLlmTools(llmTools, options) {
9035
9028
  var _this = this;
9036
9029
  if (options === void 0) { options = {}; }
9037
- var _a = options.storage, storage = _a === void 0 ? new MemoryStorage() : _a, _b = options.isReloaded, isReloaded = _b === void 0 ? false : _b;
9030
+ var _a = options.storage, storage = _a === void 0 ? new MemoryStorage() : _a, _b = options.isCacheReloaded, isCacheReloaded = _b === void 0 ? false : _b;
9038
9031
  var proxyTools = __assign(__assign({}, llmTools), {
9039
9032
  // <- Note: [🥫]
9040
9033
  get title() {
@@ -9056,7 +9049,7 @@ function cacheLlmTools(llmTools, options) {
9056
9049
  key = titleToName(prompt.title.substring(0, MAX_FILENAME_LENGTH - 10) +
9057
9050
  '-' +
9058
9051
  sha256(hexEncoder.parse(JSON.stringify(prompt.parameters))).toString( /* hex */));
9059
- if (!!isReloaded) return [3 /*break*/, 2];
9052
+ if (!!isCacheReloaded) return [3 /*break*/, 2];
9060
9053
  return [4 /*yield*/, storage.getItem(key)];
9061
9054
  case 1:
9062
9055
  _a = _c.sent();
@@ -9318,7 +9311,11 @@ var legacyDocumentScraperMetadata = $deepFreeze({
9318
9311
  mimeTypes: ['application/msword', 'text/rtf'],
9319
9312
  documentationUrl: 'https://github.com/webgptorg/promptbook/discussions/@@',
9320
9313
  isAvilableInBrowser: false,
9321
- requiredExecutables: ['!!!!!!'],
9314
+ requiredExecutables: [
9315
+ 'Pandoc',
9316
+ 'LibreOffice',
9317
+ // <- TODO: [🧠] Should be 'LibreOffice' here, its dependency of dependency
9318
+ ],
9322
9319
  }); /* <- TODO: [🤛] */
9323
9320
  /**
9324
9321
  * Registration of known scraper metadata
@@ -9342,7 +9339,7 @@ var documentScraperMetadata = $deepFreeze({
9342
9339
  mimeTypes: ['application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
9343
9340
  documentationUrl: 'https://github.com/webgptorg/promptbook/discussions/@@',
9344
9341
  isAvilableInBrowser: false,
9345
- requiredExecutables: ['!!!!!!'],
9342
+ requiredExecutables: ['Pandoc'],
9346
9343
  }); /* <- TODO: [🤛] */
9347
9344
  /**
9348
9345
  * Registration of known scraper metadata
@@ -9366,7 +9363,7 @@ var markdownScraperMetadata = $deepFreeze({
9366
9363
  mimeTypes: ['text/markdown', 'text/plain'],
9367
9364
  documentationUrl: 'https://github.com/webgptorg/promptbook/discussions/@@',
9368
9365
  isAvilableInBrowser: true,
9369
- requiredExecutables: ['!!!!!!'],
9366
+ requiredExecutables: [],
9370
9367
  }); /* <- TODO: [🤛] */
9371
9368
  /**
9372
9369
  * Registration of known scraper metadata
@@ -9390,7 +9387,7 @@ var pdfScraperMetadata = $deepFreeze({
9390
9387
  mimeTypes: ['application/pdf'],
9391
9388
  documentationUrl: 'https://github.com/webgptorg/promptbook/discussions/@@',
9392
9389
  isAvilableInBrowser: true,
9393
- requiredExecutables: ['!!!!!!'],
9390
+ requiredExecutables: [],
9394
9391
  }); /* <- TODO: [🤛] */
9395
9392
  /**
9396
9393
  * Registration of known scraper metadata
@@ -9414,7 +9411,7 @@ var websiteScraperMetadata = $deepFreeze({
9414
9411
  mimeTypes: ['text/html'],
9415
9412
  documentationUrl: 'https://github.com/webgptorg/promptbook/discussions/@@',
9416
9413
  isAvilableInBrowser: false,
9417
- requiredExecutables: ['!!!!!!'],
9414
+ requiredExecutables: [],
9418
9415
  }); /* <- TODO: [🤛] */
9419
9416
  /**
9420
9417
  * Registration of known scraper metadata
@@ -9776,5 +9773,5 @@ function executionReportJsonToString(executionReportJson, options) {
9776
9773
  * TODO: [🧠] Should be in generated file GENERATOR_WARNING
9777
9774
  */
9778
9775
 
9779
- export { $llmToolsMetadataRegister, $llmToolsRegister, $scrapersMetadataRegister, $scrapersRegister, AbstractFormatError, CLAIM, CallbackInterfaceTools, CollectionError, CsvFormatDefinition, CsvFormatError, DEFAULT_CSV_SETTINGS, DEFAULT_REMOTE_URL, DEFAULT_REMOTE_URL_PATH, ERRORS, EXECUTIONS_CACHE_DIRNAME, EXPECTATION_UNITS, EnvironmentMismatchError, ExecutionReportStringOptionsDefaults, ExpectError, IS_AUTO_INSTALLED, IS_VERBOSE, KnowledgeScrapeError, LimitReachedError, MANDATORY_CSV_SETTINGS, MAX_EXECUTION_ATTEMPTS, MAX_FILENAME_LENGTH, MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH, MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL, MAX_PARALLEL_COUNT, MODEL_VARIANTS, MemoryStorage, MissingToolsError, MultipleLlmExecutionTools, NotFoundError, NotYetImplementedError, PIPELINE_COLLECTION_BASE_FILENAME, PROMPTBOOK_VERSION, ParseError, PipelineExecutionError, PipelineLogicError, PipelineUrlError, PrefixStorage, RESERVED_PARAMETER_NAMES, SCRAPE_CACHE_DIRNAME, TemplateTypes, TextFormatDefinition, UnexpectedError, ZERO_USAGE, _AnthropicClaudeMetadataRegistration, _AzureOpenAiMetadataRegistration, _DocumentScraperMetadataRegistration, _LegacyDocumentScraperMetadataRegistration, _MarkdownScraperMetadataRegistration, _OpenAiMetadataRegistration, _PdfScraperMetadataRegistration, _WebsiteScraperMetadataRegistration, addUsage, assertsExecutionSuccessful, cacheLlmTools, collectionToJson, countTotalUsage, createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createLlmToolsFromConfiguration, createPipelineExecutor, createSubcollection, embeddingVectorToString, executionReportJsonToString, isPassingExpectations, isPipelinePrepared, joinLlmExecutionTools, limitTotalUsage, pipelineJsonToString, pipelineStringToJson, pipelineStringToJsonSync, prepareKnowledgePieces, preparePersona, preparePipeline, prepareTemplates, prettifyPipelineString, stringifyPipelineJson, unpreparePipeline, usageToHuman, usageToWorktime, validatePipeline };
9776
+ export { $llmToolsMetadataRegister, $llmToolsRegister, $scrapersMetadataRegister, $scrapersRegister, AbstractFormatError, CLAIM, CallbackInterfaceTools, CollectionError, CsvFormatDefinition, CsvFormatError, 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, ERRORS, EXPECTATION_UNITS, EnvironmentMismatchError, ExecutionReportStringOptionsDefaults, ExpectError, KnowledgeScrapeError, LimitReachedError, MANDATORY_CSV_SETTINGS, MAX_FILENAME_LENGTH, MODEL_VARIANTS, MemoryStorage, MissingToolsError, MultipleLlmExecutionTools, NotFoundError, NotYetImplementedError, PROMPTBOOK_VERSION, ParseError, PipelineExecutionError, PipelineLogicError, PipelineUrlError, PrefixStorage, RESERVED_PARAMETER_NAMES, TemplateTypes, TextFormatDefinition, UnexpectedError, ZERO_USAGE, _AnthropicClaudeMetadataRegistration, _AzureOpenAiMetadataRegistration, _DocumentScraperMetadataRegistration, _LegacyDocumentScraperMetadataRegistration, _MarkdownScraperMetadataRegistration, _OpenAiMetadataRegistration, _PdfScraperMetadataRegistration, _WebsiteScraperMetadataRegistration, addUsage, assertsExecutionSuccessful, cacheLlmTools, collectionToJson, countTotalUsage, createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createLlmToolsFromConfiguration, createPipelineExecutor, createSubcollection, embeddingVectorToString, executionReportJsonToString, isPassingExpectations, isPipelinePrepared, joinLlmExecutionTools, limitTotalUsage, makeKnowledgeSourceHandler, pipelineJsonToString, pipelineStringToJson, pipelineStringToJsonSync, prepareKnowledgePieces, preparePersona, preparePipeline, prepareTemplates, prettifyPipelineString, stringifyPipelineJson, unpreparePipeline, usageToHuman, usageToWorktime, validatePipeline };
9780
9777
  //# sourceMappingURL=index.es.js.map