@promptbook/core 0.92.0-18 → 0.92.0-19

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/esm/index.es.js CHANGED
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
27
27
  * @generated
28
28
  * @see https://github.com/webgptorg/promptbook
29
29
  */
30
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-18';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-19';
31
31
  /**
32
32
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
33
33
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1852,12 +1852,18 @@ function isPipelinePrepared(pipeline) {
1852
1852
  // Note: Ignoring `pipeline.preparations` @@@
1853
1853
  // Note: Ignoring `pipeline.knowledgePieces` @@@
1854
1854
  if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
1855
+ // TODO: !!! Comment this out
1856
+ console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
1855
1857
  return false;
1856
1858
  }
1857
1859
  if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
1860
+ // TODO: !!! Comment this out
1861
+ console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
1858
1862
  return false;
1859
1863
  }
1860
1864
  if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
1865
+ // TODO: !!! Comment this out
1866
+ console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
1861
1867
  return false;
1862
1868
  }
1863
1869
  /*
@@ -4536,7 +4542,7 @@ async function executeTask(options) {
4536
4542
  const usedParameterNames = extractParameterNamesFromTask(currentTask);
4537
4543
  const dependentParameterNames = new Set(currentTask.dependentParameterNames);
4538
4544
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
4539
- if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
4545
+ if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
4540
4546
  throw new UnexpectedError(spaceTrim$1((block) => `
4541
4547
  Dependent parameters are not consistent with used parameters:
4542
4548