@promptbook/remote-server 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
@@ -33,7 +33,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
33
33
  * @generated
34
34
  * @see https://github.com/webgptorg/promptbook
35
35
  */
36
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-18';
36
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-20';
37
37
  /**
38
38
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
39
39
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1785,12 +1785,18 @@ function isPipelinePrepared(pipeline) {
1785
1785
  // Note: Ignoring `pipeline.preparations` @@@
1786
1786
  // Note: Ignoring `pipeline.knowledgePieces` @@@
1787
1787
  if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
1788
+ // TODO: !!! Comment this out
1789
+ console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
1788
1790
  return false;
1789
1791
  }
1790
1792
  if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
1793
+ // TODO: !!! Comment this out
1794
+ console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
1791
1795
  return false;
1792
1796
  }
1793
1797
  if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
1798
+ // TODO: !!! Comment this out
1799
+ console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
1794
1800
  return false;
1795
1801
  }
1796
1802
  /*
@@ -5697,7 +5703,7 @@ async function executeTask(options) {
5697
5703
  const usedParameterNames = extractParameterNamesFromTask(currentTask);
5698
5704
  const dependentParameterNames = new Set(currentTask.dependentParameterNames);
5699
5705
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
5700
- if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
5706
+ if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
5701
5707
  throw new UnexpectedError(spaceTrim$1((block) => `
5702
5708
  Dependent parameters are not consistent with used parameters:
5703
5709