@promptbook/node 0.92.0-18 → 0.92.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.
package/esm/index.es.js CHANGED
@@ -30,7 +30,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
30
30
  * @generated
31
31
  * @see https://github.com/webgptorg/promptbook
32
32
  */
33
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-18';
33
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-20';
34
34
  /**
35
35
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
36
36
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1662,12 +1662,18 @@ function isPipelinePrepared(pipeline) {
1662
1662
  // Note: Ignoring `pipeline.preparations` @@@
1663
1663
  // Note: Ignoring `pipeline.knowledgePieces` @@@
1664
1664
  if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
1665
+ // TODO: !!! Comment this out
1666
+ console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
1665
1667
  return false;
1666
1668
  }
1667
1669
  if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
1670
+ // TODO: !!! Comment this out
1671
+ console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
1668
1672
  return false;
1669
1673
  }
1670
1674
  if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
1675
+ // TODO: !!! Comment this out
1676
+ console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
1671
1677
  return false;
1672
1678
  }
1673
1679
  /*
@@ -4285,7 +4291,7 @@ async function executeTask(options) {
4285
4291
  const usedParameterNames = extractParameterNamesFromTask(currentTask);
4286
4292
  const dependentParameterNames = new Set(currentTask.dependentParameterNames);
4287
4293
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
4288
- if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
4294
+ if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
4289
4295
  throw new UnexpectedError(spaceTrim$1((block) => `
4290
4296
  Dependent parameters are not consistent with used parameters:
4291
4297