@promptbook/core 0.59.0-23 → 0.59.0-25

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
@@ -199,7 +199,7 @@ var PromptbookSyntaxError = /** @class */ (function (_super) {
199
199
  return PromptbookSyntaxError;
200
200
  }(Error));
201
201
 
202
- var promptbookLibrary = [{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-21",parameters:[{name:"content",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledge",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"knowledge"}],knowledge:[]}];
202
+ var promptbookLibrary = [{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-24",parameters:[{name:"content",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledge",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"knowledge"}],knowledge:[]}];
203
203
 
204
204
  /**
205
205
  * This error indicates errors during the execution of the promptbook
@@ -524,7 +524,7 @@ function isValidJsonString(value /* <-[👨‍⚖️] */) {
524
524
  /**
525
525
  * The version of the Promptbook library
526
526
  */
527
- var PROMPTBOOK_VERSION = '0.59.0-21';
527
+ var PROMPTBOOK_VERSION = '0.59.0-24';
528
528
 
529
529
  /**
530
530
  * Function `addUsage` will add multiple usages into one
@@ -4,7 +4,7 @@ export { PROMPTBOOK_VERSION };
4
4
  /**
5
5
  * Hidden utilities which should not be used by external consumers.
6
6
  */
7
- declare const __: {
8
- promptbookCli: typeof promptbookCli;
7
+ declare const __CLI: {
8
+ __initialize: typeof promptbookCli;
9
9
  };
10
- export { __ };
10
+ export { __CLI };
@@ -6,3 +6,7 @@ export declare const LOOP_LIMIT = 1000;
6
6
  * The maximum number of iterations for a loops which adds characters one by one
7
7
  */
8
8
  export declare const CHARACTER_LOOP_LIMIT = 100000;
9
+ /**
10
+ * The name of the builded promptbook library made by CLI `promptbook make` and for lookup in `createLibraryFromDirectory`
11
+ */
12
+ export declare const PROMPTBOOK_MAKED_BASE_FILENAME = "promptbook-library";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/core",
3
- "version": "0.59.0-23",
3
+ "version": "0.59.0-25",
4
4
  "description": "Library to supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
package/umd/index.umd.js CHANGED
@@ -206,7 +206,7 @@
206
206
  return PromptbookSyntaxError;
207
207
  }(Error));
208
208
 
209
- var promptbookLibrary = [{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-21",parameters:[{name:"content",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledge",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"knowledge"}],knowledge:[]}];
209
+ var promptbookLibrary = [{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-24",parameters:[{name:"content",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledge",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"knowledge"}],knowledge:[]}];
210
210
 
211
211
  /**
212
212
  * This error indicates errors during the execution of the promptbook
@@ -531,7 +531,7 @@
531
531
  /**
532
532
  * The version of the Promptbook library
533
533
  */
534
- var PROMPTBOOK_VERSION = '0.59.0-21';
534
+ var PROMPTBOOK_VERSION = '0.59.0-24';
535
535
 
536
536
  /**
537
537
  * Function `addUsage` will add multiple usages into one
@@ -4,7 +4,7 @@ export { PROMPTBOOK_VERSION };
4
4
  /**
5
5
  * Hidden utilities which should not be used by external consumers.
6
6
  */
7
- declare const __: {
8
- promptbookCli: typeof promptbookCli;
7
+ declare const __CLI: {
8
+ __initialize: typeof promptbookCli;
9
9
  };
10
- export { __ };
10
+ export { __CLI };
@@ -6,3 +6,7 @@ export declare const LOOP_LIMIT = 1000;
6
6
  * The maximum number of iterations for a loops which adds characters one by one
7
7
  */
8
8
  export declare const CHARACTER_LOOP_LIMIT = 100000;
9
+ /**
10
+ * The name of the builded promptbook library made by CLI `promptbook make` and for lookup in `createLibraryFromDirectory`
11
+ */
12
+ export declare const PROMPTBOOK_MAKED_BASE_FILENAME = "promptbook-library";