@promptbook/node 0.92.0-20 → 0.92.0-21

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-20';
33
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-21';
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
@@ -328,15 +328,12 @@ function jsonParse(value) {
328
328
  }
329
329
  throw new Error(spaceTrim((block) => `
330
330
  ${block(error.message)}
331
-
331
+
332
332
  The JSON text:
333
333
  ${block(value)}
334
334
  `));
335
335
  }
336
336
  }
337
- /**
338
- * TODO: !!!! Use in Promptbook.studio
339
- */
340
337
 
341
338
  /**
342
339
  * Orders JSON object by keys
@@ -6955,6 +6952,43 @@ const ChatbotFormfactorDefinition = {
6955
6952
  },
6956
6953
  };
6957
6954
 
6955
+ /**
6956
+ * Completion is formfactor that emulates completion models
6957
+ *
6958
+ * @public exported from `@promptbook/core`
6959
+ */
6960
+ const CompletionFormfactorDefinition = {
6961
+ name: 'COMPLETION',
6962
+ description: `@@@`,
6963
+ documentationUrl: `https://github.com/webgptorg/promptbook/discussions/@@`,
6964
+ // <- TODO: https://github.com/webgptorg/promptbook/discussions/new?category=concepts
6965
+ // "🔠 Completion Formfactor"
6966
+ pipelineInterface: {
6967
+ inputParameters: [
6968
+ {
6969
+ name: 'inputText',
6970
+ description: `Input text to be completed`,
6971
+ isInput: true,
6972
+ isOutput: false,
6973
+ },
6974
+ {
6975
+ name: 'instructions',
6976
+ description: `Additional instructions for the model, for example the required length, empty by default`,
6977
+ isInput: true,
6978
+ isOutput: false,
6979
+ },
6980
+ ],
6981
+ outputParameters: [
6982
+ {
6983
+ name: 'followingText',
6984
+ description: `Text that follows the input text`,
6985
+ isInput: false,
6986
+ isOutput: true,
6987
+ },
6988
+ ],
6989
+ },
6990
+ };
6991
+
6958
6992
  /**
6959
6993
  * Generator is form of app that @@@
6960
6994
  *
@@ -7139,6 +7173,8 @@ const FORMFACTOR_DEFINITIONS = [
7139
7173
  MatcherFormfactorDefinition,
7140
7174
  GeneratorFormfactorDefinition,
7141
7175
  ImageGeneratorFormfactorDefinition,
7176
+ CompletionFormfactorDefinition,
7177
+ // <- [🛬] When making new formfactor, copy the _boilerplate and link it here
7142
7178
  ];
7143
7179
  /**
7144
7180
  * Note: [💞] Ignore a discrepancy between file name and entity name