@promptbook/types 0.61.0-24 → 0.61.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/README.md +3 -3
- package/esm/index.es.js +1 -1
- package/esm/typings/src/config.d.ts +5 -1
- package/esm/typings/src/conversion/utils/extractParametersFromPromptTemplate.d.ts +1 -1
- package/esm/typings/src/execution/createPipelineExecutor.d.ts +2 -0
- package/esm/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts +1 -1
- package/esm/typings/src/utils/extractParameters.d.ts +3 -0
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/typings/src/config.d.ts +5 -1
- package/umd/typings/src/conversion/utils/extractParametersFromPromptTemplate.d.ts +1 -1
- package/umd/typings/src/execution/createPipelineExecutor.d.ts +2 -0
- package/umd/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts +1 -1
- package/umd/typings/src/utils/extractParameters.d.ts +3 -0
package/README.md
CHANGED
|
@@ -109,7 +109,7 @@ File `write-website-content.ptbk.md`:
|
|
|
109
109
|
> - PROMPTBOOK VERSION 0.0.1
|
|
110
110
|
> - INPUT PARAM `{rawTitle}` Automatically suggested a site name or empty text
|
|
111
111
|
> - INPUT PARAM `{rawAssigment}` Automatically generated site entry from image recognition
|
|
112
|
-
> - OUTPUT PARAM `{
|
|
112
|
+
> - OUTPUT PARAM `{websiteContent}` Web content
|
|
113
113
|
> - OUTPUT PARAM `{keywords}` Keywords
|
|
114
114
|
>
|
|
115
115
|
> ## 👤 Specifying the assigment
|
|
@@ -268,7 +268,7 @@ File `write-website-content.ptbk.md`:
|
|
|
268
268
|
> {contentBody}
|
|
269
269
|
> ```
|
|
270
270
|
>
|
|
271
|
-
> `-> {
|
|
271
|
+
> `-> {websiteContent}`
|
|
272
272
|
|
|
273
273
|
|
|
274
274
|
|
|
@@ -308,7 +308,7 @@ flowchart LR
|
|
|
308
308
|
templateCombineTheBeginning--"{contentBeginning}"-->templateCombineTheContent
|
|
309
309
|
templateWriteTheContent--"{contentBody}"-->templateCombineTheContent
|
|
310
310
|
|
|
311
|
-
templateCombineTheContent--"{
|
|
311
|
+
templateCombineTheContent--"{websiteContent}"-->output
|
|
312
312
|
output((Output)):::output
|
|
313
313
|
|
|
314
314
|
classDef input color: grey;
|
package/esm/index.es.js
CHANGED
|
@@ -10,7 +10,7 @@ var EXPECTATION_UNITS = ['CHARACTERS', 'WORDS', 'SENTENCES', 'LINES', 'PARAGRAPH
|
|
|
10
10
|
/**
|
|
11
11
|
* The version of the Promptbook library
|
|
12
12
|
*/
|
|
13
|
-
var PROMPTBOOK_VERSION = '0.61.0-
|
|
13
|
+
var PROMPTBOOK_VERSION = '0.61.0-24';
|
|
14
14
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
15
15
|
|
|
16
16
|
export { EXPECTATION_UNITS, PROMPTBOOK_VERSION };
|
|
@@ -43,11 +43,15 @@ export declare const REPLACING_NONCE = "u$k42k%!V2zo34w7Fu#@QUHYPW";
|
|
|
43
43
|
/**
|
|
44
44
|
* The names of the parameters that are reserved for special purposes
|
|
45
45
|
*/
|
|
46
|
-
export declare const RESERVED_PARAMETER_NAMES: readonly ["context", "knowledge", "samples", "modelName", "currentDate"];
|
|
46
|
+
export declare const RESERVED_PARAMETER_NAMES: readonly ["content", "context", "knowledge", "samples", "modelName", "currentDate"];
|
|
47
47
|
/**
|
|
48
48
|
* @@@
|
|
49
49
|
*/
|
|
50
50
|
export declare const RESERVED_PARAMETER_MISSING_VALUE: string;
|
|
51
|
+
/**
|
|
52
|
+
* @@@
|
|
53
|
+
*/
|
|
54
|
+
export declare const RESERVED_PARAMETER_RESTRICTED: string;
|
|
51
55
|
/**
|
|
52
56
|
* @@@
|
|
53
57
|
*/
|
|
@@ -7,7 +7,7 @@ import type { string_parameter_name } from '../../types/typeAliases';
|
|
|
7
7
|
* @returns the set of parameter names
|
|
8
8
|
* @throws {ParsingError} if the script is invalid
|
|
9
9
|
*/
|
|
10
|
-
export declare function extractParametersFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'jokerParameterNames'>): Set<string_parameter_name>;
|
|
10
|
+
export declare function extractParametersFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
|
|
11
11
|
/**
|
|
12
12
|
* TODO: [🔣] If script require contentLanguage
|
|
13
13
|
*/
|
|
@@ -47,6 +47,8 @@ interface CreatePipelineExecutorOptions {
|
|
|
47
47
|
export declare function createPipelineExecutor(options: CreatePipelineExecutorOptions): PipelineExecutor;
|
|
48
48
|
export {};
|
|
49
49
|
/**
|
|
50
|
+
* TODO: !!!! return `preparedPipeline` from execution
|
|
51
|
+
* TODO: !!!! `isNotPreparedWarningSupressed`
|
|
50
52
|
* TODO: Use isVerbose here (not only pass to `preparePipeline`)
|
|
51
53
|
* TODO: [🪂] Use maxParallelCount here (not only pass to `preparePipeline`)
|
|
52
54
|
* TODO: [♈] Probbably move expectations from templates to parameters
|
package/esm/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { string_markdown } from '../../../types/typeAliases';
|
|
|
4
4
|
/**
|
|
5
5
|
* @@@
|
|
6
6
|
*/
|
|
7
|
-
export declare function prepareKnowledgeFromMarkdown(
|
|
7
|
+
export declare function prepareKnowledgeFromMarkdown(knowledgeContent: string_markdown, options: PrepareOptions): Promise<Array<Omit<KnowledgePiecePreparedJson, 'sources' | 'preparationIds'>>>;
|
|
8
8
|
/**
|
|
9
9
|
* TODO: [🐝][🔼] !!! Export via `@promptbook/markdown`
|
|
10
10
|
* TODO: [🪂] Do it in parallel 11:11
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/types",
|
|
3
|
-
"version": "0.61.0-
|
|
3
|
+
"version": "0.61.0-25",
|
|
4
4
|
"description": "Supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@promptbook/core": "0.61.0-
|
|
48
|
+
"@promptbook/core": "0.61.0-25"
|
|
49
49
|
},
|
|
50
50
|
"main": "./umd/index.umd.js",
|
|
51
51
|
"module": "./esm/index.es.js",
|
package/umd/index.umd.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* The version of the Promptbook library
|
|
18
18
|
*/
|
|
19
|
-
var PROMPTBOOK_VERSION = '0.61.0-
|
|
19
|
+
var PROMPTBOOK_VERSION = '0.61.0-24';
|
|
20
20
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
21
21
|
|
|
22
22
|
exports.EXPECTATION_UNITS = EXPECTATION_UNITS;
|
|
@@ -43,11 +43,15 @@ export declare const REPLACING_NONCE = "u$k42k%!V2zo34w7Fu#@QUHYPW";
|
|
|
43
43
|
/**
|
|
44
44
|
* The names of the parameters that are reserved for special purposes
|
|
45
45
|
*/
|
|
46
|
-
export declare const RESERVED_PARAMETER_NAMES: readonly ["context", "knowledge", "samples", "modelName", "currentDate"];
|
|
46
|
+
export declare const RESERVED_PARAMETER_NAMES: readonly ["content", "context", "knowledge", "samples", "modelName", "currentDate"];
|
|
47
47
|
/**
|
|
48
48
|
* @@@
|
|
49
49
|
*/
|
|
50
50
|
export declare const RESERVED_PARAMETER_MISSING_VALUE: string;
|
|
51
|
+
/**
|
|
52
|
+
* @@@
|
|
53
|
+
*/
|
|
54
|
+
export declare const RESERVED_PARAMETER_RESTRICTED: string;
|
|
51
55
|
/**
|
|
52
56
|
* @@@
|
|
53
57
|
*/
|
|
@@ -7,7 +7,7 @@ import type { string_parameter_name } from '../../types/typeAliases';
|
|
|
7
7
|
* @returns the set of parameter names
|
|
8
8
|
* @throws {ParsingError} if the script is invalid
|
|
9
9
|
*/
|
|
10
|
-
export declare function extractParametersFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'jokerParameterNames'>): Set<string_parameter_name>;
|
|
10
|
+
export declare function extractParametersFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
|
|
11
11
|
/**
|
|
12
12
|
* TODO: [🔣] If script require contentLanguage
|
|
13
13
|
*/
|
|
@@ -47,6 +47,8 @@ interface CreatePipelineExecutorOptions {
|
|
|
47
47
|
export declare function createPipelineExecutor(options: CreatePipelineExecutorOptions): PipelineExecutor;
|
|
48
48
|
export {};
|
|
49
49
|
/**
|
|
50
|
+
* TODO: !!!! return `preparedPipeline` from execution
|
|
51
|
+
* TODO: !!!! `isNotPreparedWarningSupressed`
|
|
50
52
|
* TODO: Use isVerbose here (not only pass to `preparePipeline`)
|
|
51
53
|
* TODO: [🪂] Use maxParallelCount here (not only pass to `preparePipeline`)
|
|
52
54
|
* TODO: [♈] Probbably move expectations from templates to parameters
|
package/umd/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { string_markdown } from '../../../types/typeAliases';
|
|
|
4
4
|
/**
|
|
5
5
|
* @@@
|
|
6
6
|
*/
|
|
7
|
-
export declare function prepareKnowledgeFromMarkdown(
|
|
7
|
+
export declare function prepareKnowledgeFromMarkdown(knowledgeContent: string_markdown, options: PrepareOptions): Promise<Array<Omit<KnowledgePiecePreparedJson, 'sources' | 'preparationIds'>>>;
|
|
8
8
|
/**
|
|
9
9
|
* TODO: [🐝][🔼] !!! Export via `@promptbook/markdown`
|
|
10
10
|
* TODO: [🪂] Do it in parallel 11:11
|