@promptbook/legacy-documents 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
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
28
28
  * @generated
29
29
  * @see https://github.com/webgptorg/promptbook
30
30
  */
31
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-18';
31
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-20';
32
32
  /**
33
33
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
34
34
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2272,12 +2272,18 @@ function isPipelinePrepared(pipeline) {
2272
2272
  // Note: Ignoring `pipeline.preparations` @@@
2273
2273
  // Note: Ignoring `pipeline.knowledgePieces` @@@
2274
2274
  if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
2275
+ // TODO: !!! Comment this out
2276
+ console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
2275
2277
  return false;
2276
2278
  }
2277
2279
  if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
2280
+ // TODO: !!! Comment this out
2281
+ console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
2278
2282
  return false;
2279
2283
  }
2280
2284
  if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
2285
+ // TODO: !!! Comment this out
2286
+ console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
2281
2287
  return false;
2282
2288
  }
2283
2289
  /*
@@ -5513,7 +5519,7 @@ async function executeTask(options) {
5513
5519
  const usedParameterNames = extractParameterNamesFromTask(currentTask);
5514
5520
  const dependentParameterNames = new Set(currentTask.dependentParameterNames);
5515
5521
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
5516
- if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
5522
+ if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
5517
5523
  throw new UnexpectedError(spaceTrim((block) => `
5518
5524
  Dependent parameters are not consistent with used parameters:
5519
5525