@promptbook/remote-client 0.61.0-25 → 0.61.0-27

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.
Files changed (35) hide show
  1. package/esm/index.es.js +1 -1
  2. package/esm/typings/src/_packages/utils.index.d.ts +4 -4
  3. package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +0 -1
  4. package/esm/typings/src/conversion/utils/{extractParametersFromPromptTemplate.d.ts → extractParameterNamesFromPromptTemplate.d.ts} +1 -1
  5. package/esm/typings/src/conversion/utils/stringifyPipelineJson.d.ts +1 -1
  6. package/esm/typings/src/conversion/validation/validatePipeline.d.ts +6 -6
  7. package/esm/typings/src/execution/PipelineExecutor.d.ts +1 -1
  8. package/esm/typings/src/execution/createPipelineExecutor.d.ts +3 -3
  9. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
  10. package/esm/typings/src/prepare/isPipelinePrepared.d.ts +3 -3
  11. package/esm/typings/src/prepare/preparePipeline.d.ts +1 -1
  12. package/esm/typings/src/prepare/prepareTemplates.d.ts +1 -1
  13. package/esm/typings/src/types/ModelRequirements.d.ts +1 -1
  14. package/esm/typings/src/types/PipelineJson/PipelineJson.d.ts +1 -1
  15. package/esm/typings/src/utils/{extractParameters.d.ts → extractParameterNames.d.ts} +1 -4
  16. package/package.json +2 -2
  17. package/umd/index.umd.js +1 -1
  18. package/umd/typings/src/_packages/utils.index.d.ts +4 -4
  19. package/umd/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +0 -1
  20. package/umd/typings/src/conversion/utils/{extractParametersFromPromptTemplate.d.ts → extractParameterNamesFromPromptTemplate.d.ts} +1 -1
  21. package/umd/typings/src/conversion/utils/stringifyPipelineJson.d.ts +1 -1
  22. package/umd/typings/src/conversion/validation/validatePipeline.d.ts +6 -6
  23. package/umd/typings/src/execution/PipelineExecutor.d.ts +1 -1
  24. package/umd/typings/src/execution/createPipelineExecutor.d.ts +3 -3
  25. package/umd/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
  26. package/umd/typings/src/prepare/isPipelinePrepared.d.ts +3 -3
  27. package/umd/typings/src/prepare/preparePipeline.d.ts +1 -1
  28. package/umd/typings/src/prepare/prepareTemplates.d.ts +1 -1
  29. package/umd/typings/src/types/ModelRequirements.d.ts +1 -1
  30. package/umd/typings/src/types/PipelineJson/PipelineJson.d.ts +1 -1
  31. package/umd/typings/src/utils/{extractParameters.d.ts → extractParameterNames.d.ts} +1 -4
  32. /package/esm/typings/src/conversion/utils/{extractParametersFromPromptTemplate.test.d.ts → extractParameterNamesFromPromptTemplate.test.d.ts} +0 -0
  33. /package/esm/typings/src/utils/{extractParameters.test.d.ts → extractParameterNames.test.d.ts} +0 -0
  34. /package/umd/typings/src/conversion/utils/{extractParametersFromPromptTemplate.test.d.ts → extractParameterNamesFromPromptTemplate.test.d.ts} +0 -0
  35. /package/umd/typings/src/utils/{extractParameters.test.d.ts → extractParameterNames.test.d.ts} +0 -0
package/esm/index.es.js CHANGED
@@ -214,7 +214,7 @@ var RemoteLlmExecutionTools = /** @class */ (function () {
214
214
  /**
215
215
  * The version of the Promptbook library
216
216
  */
217
- var PROMPTBOOK_VERSION = '0.61.0-24';
217
+ var PROMPTBOOK_VERSION = '0.61.0-26';
218
218
  // TODO: !!!! List here all the versions and annotate + put into script
219
219
 
220
220
  export { PROMPTBOOK_VERSION, RemoteLlmExecutionTools };
@@ -1,6 +1,6 @@
1
1
  import { spaceTrim } from 'spacetrim';
2
2
  import { renderPromptbookMermaid } from '../conversion/prettify/renderPipelineMermaidOptions';
3
- import { extractParametersFromPromptTemplate } from '../conversion/utils/extractParametersFromPromptTemplate';
3
+ import { extractParameterNamesFromPromptTemplate } from '../conversion/utils/extractParameterNamesFromPromptTemplate';
4
4
  import { extractVariables } from '../conversion/utils/extractVariables';
5
5
  import { renameParameter } from '../conversion/utils/renameParameter';
6
6
  import { titleToName } from '../conversion/utils/titleToName';
@@ -15,7 +15,7 @@ import { countParagraphs } from '../utils/expectation-counters/countParagraphs';
15
15
  import { countSentences, splitIntoSentences } from '../utils/expectation-counters/countSentences';
16
16
  import { countWords } from '../utils/expectation-counters/countWords';
17
17
  import { CountUtils } from '../utils/expectation-counters/index';
18
- import { extractParameters } from '../utils/extractParameters';
18
+ import { extractParameterNames } from '../utils/extractParameterNames';
19
19
  import { DIACRITIC_VARIANTS_LETTERS } from '../utils/normalization/DIACRITIC_VARIANTS_LETTERS';
20
20
  import type { IKeywords, string_keyword } from '../utils/normalization/IKeywords';
21
21
  import { capitalize } from '../utils/normalization/capitalize';
@@ -55,7 +55,7 @@ import { isValidUrl } from '../utils/validators/url/isValidUrl';
55
55
  import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
56
56
  import { PROMPTBOOK_VERSION } from '../version';
57
57
  export { forEachAsync, PROMPTBOOK_VERSION };
58
- export { extractParameters, extractVariables, replaceParameters, spaceTrim };
58
+ export { extractParameterNames, extractVariables, replaceParameters, spaceTrim };
59
59
  export { $currentDate, $randomSeed, extractBlock, // <- [🌻] + maybe export through `@promptbook/markdown-utils`
60
60
  isHostnameOnPrivateNetwork, isUrlOnPrivateNetwork, isValidFilePath, isValidJavascriptName, isValidJsonString, isValidPipelineUrl, isValidPromptbookVersion, isValidSemanticVersion, isValidUrl, isValidUuid, parseNumber, // <- [🌻]
61
61
  removeEmojis, removeQuotes, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
@@ -70,7 +70,7 @@ export declare const normalizeTo: {
70
70
  };
71
71
  export { capitalize, decapitalize, DIACRITIC_VARIANTS_LETTERS, IKeywords, isValidKeyword, nameToUriPart, nameToUriParts, normalizeTo_camelCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_snake_case, normalizeToKebabCase, normalizeWhitespaces, parseKeywords, parseKeywordsFromString, removeDiacritics, searchKeywords, string_keyword, titleToName, };
72
72
  export type { string_camelCase, string_kebab_case, string_PascalCase, string_SCREAMING_CASE, string_snake_case };
73
- export { extractParametersFromPromptTemplate, renameParameter, renderPromptbookMermaid };
73
+ export { extractParameterNamesFromPromptTemplate, renameParameter, renderPromptbookMermaid };
74
74
  export { difference, intersection, union };
75
75
  /**
76
76
  * Note: [🕙] It does not make sence to have simple lower / UPPER case normalization
@@ -43,6 +43,5 @@ type CreatePipelineCollectionFromDirectoryOptions = PipelineStringToJsonOptions
43
43
  export declare function createCollectionFromDirectory(path: string_folder_path, options?: CreatePipelineCollectionFromDirectoryOptions): Promise<PipelineCollection>;
44
44
  export {};
45
45
  /**
46
- * TODO: !!!! [🧠] Library precompilation and do not mix markdown and json pipelines
47
46
  * Note: [🟢] This code should never be published outside of `@pipeline/node`
48
47
  */
@@ -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' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
10
+ export declare function extractParameterNamesFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
11
11
  /**
12
12
  * TODO: [🔣] If script require contentLanguage
13
13
  */
@@ -7,7 +7,7 @@ import type { string_json } from '../../types/typeAliases';
7
7
  */
8
8
  export declare function stringifyPipelineJson<TType>(pipeline: TType): string_json<TType>;
9
9
  /**
10
- * TODO: !!!! Not Working propperly @see https://promptbook.studio/samples/mixed-knowledge.ptbk.md
10
+ * TODO: [🐝] Not Working propperly @see https://promptbook.studio/samples/mixed-knowledge.ptbk.md
11
11
  * TODO: [🧠][0] Maybe rename to `stringifyPipelineJson`, `stringifyIndexedJson`,...
12
12
  * TODO: [🧠] Maybe more elegant solution than replacing via regex
13
13
  * TODO: [🍙] Make some standart order of json properties
@@ -26,11 +26,11 @@ export declare function validatePipeline(pipeline: PipelineJson): PipelineJson;
26
26
  * > ex port function validatePipeline(promptbook: really_unknown): asserts promptbook is PipelineJson {
27
27
  */
28
28
  /**
29
- * TODO: [🧠][🐣] !!!! Validate that all samples match expectations
30
- * TODO: [🧠][🐣] !!!! Validate that knowledge is valid (non-void)
31
- * TODO: [🧠][🐣] !!!! Validate that persona can be used only with CHAT variant
32
- * TODO: !!!! Validate that parameter with reserved name not used RESERVED_PARAMETER_NAMES
33
- * TODO: !!!! Validate that reserved parameter is not used as joker
34
- * TODO: [🧠] !!! Validationg not only logic itself but imports around - files and websites and rerefenced pipelines exists
29
+ * TODO: [🐣] !!!! Validate that all samples match expectations
30
+ * TODO: [🐣][🐝] !!!! Validate that knowledge is valid (non-void)
31
+ * TODO: [🐣] !!!! Validate that persona can be used only with CHAT variant
32
+ * TODO: [🐣] !!!! Validate that parameter with reserved name not used RESERVED_PARAMETER_NAMES
33
+ * TODO: [🐣] !!!! Validate that reserved parameter is not used as joker
34
+ * TODO: [🧠] Validation not only logic itself but imports around - files and websites and rerefenced pipelines exists
35
35
  * TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
36
36
  */
@@ -48,5 +48,5 @@ export type PipelineExecutorResult = {
48
48
  };
49
49
  /**
50
50
  * TODO: [🧠] Should this file be in /execution or /types folder?
51
- * TODO: [💷] !!!! `assertsExecutionSuccessful` should be the method of `PipelineExecutor` result
51
+ * TODO: [💷] `assertsExecutionSuccessful` should be the method of `PipelineExecutor` result
52
52
  */
@@ -47,8 +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
+ * TODO: !!!!! return `preparedPipeline` from execution
51
+ * TODO: !!!!! `isNotPreparedWarningSupressed`
52
52
  * TODO: Use isVerbose here (not only pass to `preparePipeline`)
53
53
  * TODO: [🪂] Use maxParallelCount here (not only pass to `preparePipeline`)
54
54
  * TODO: [♈] Probbably move expectations from templates to parameters
@@ -57,5 +57,5 @@ export {};
57
57
  * Note: CreatePipelineExecutorOptions are just connected to PipelineExecutor so do not extract to types folder
58
58
  * TODO: [🧠][3] transparent = (report intermediate parameters) / opaque execution = (report only output parameters) progress reporting mode
59
59
  * TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
60
- * TODO: [💷] !!!! `assertsExecutionSuccessful` should be the method of `PipelineExecutor` result
60
+ * TODO: [🧠][💷] `assertsExecutionSuccessful` should be the method of `PipelineExecutor` result BUT maybe NOT to preserve pure JSON object
61
61
  */
@@ -41,7 +41,7 @@ export declare class AnthropicClaudeExecutionTools implements LlmExecutionTools
41
41
  listModels(): Array<AvailableModel>;
42
42
  }
43
43
  /**
44
- * TODO: !!!! [🍆] JSON mode
44
+ * TODO: [🍆] JSON mode
45
45
  * TODO: [🧠] Maybe handle errors via transformAnthropicError (like transformAzureError)
46
46
  * TODO: Maybe Create some common util for callChatModel and callCompletionModel
47
47
  * TODO: Maybe make custom OpenaiError
@@ -8,7 +8,7 @@ export declare function isPipelinePrepared(pipeline: PipelineJson): boolean;
8
8
  * TODO: [🔼] Export via core or utils
9
9
  * TODO: [🧊] Pipeline can be partially prepared, this should return true ONLY if fully prepared
10
10
  * TODO: [🧿] Maybe do same process with same granularity and subfinctions as `preparePipeline`
11
- * - Is context in each template
12
- * - Are samples prepared
13
- * - Are templates prepared
11
+ * - [🏍] ? Is context in each template
12
+ * - [♨] Are samples prepared
13
+ * - [♨] Are templates prepared
14
14
  */
@@ -12,6 +12,6 @@ export declare function preparePipeline(pipeline: PipelineJson, options: Prepare
12
12
  * TODO: Write tests for `preparePipeline`
13
13
  * TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch
14
14
  * TODO: [🧊] In future one preparation can take data from previous preparation and save tokens and time
15
- * TODO: [🎐] !!!! Use here countTotalUsage
15
+ * TODO: [🎐] !!!!!! Use here countTotalUsage
16
16
  * TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
17
17
  */
@@ -21,7 +21,7 @@ export {};
21
21
  /**
22
22
  * TODO: [🧠] Add context to each template (if missing)
23
23
  * TODO: [🧠] What is better name `prepareTemplate` or `prepareTemplateAndParameters`
24
- * TODO: !!!!! Index the samples and maybe templates
24
+ * TODO: [♨] !!! Prepare index the samples and maybe templates
25
25
  * TODO: [🔼] !!! Export via `@promptbook/core`
26
26
  * TODO: Write tests for `preparePipeline`
27
27
  * TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch
@@ -91,7 +91,7 @@ export type CommonModelRequirements = {
91
91
  readonly maxTokens?: number;
92
92
  };
93
93
  /**
94
- * TODO: [🔼] !!!! Export all from `@promptbook/types`
94
+ * TODO: [🔼] !!!!! (<- To all [🔼]) Export all from `@promptbook/types`
95
95
  * TODO: [🧠][🈁] `seed` should maybe be somewhere else (not in `ModelRequirements`) (simmilar that `user` identification is not here)
96
96
  * TODO: [🧠][💱] Add more model options: `stop_token`, `logit_bias`, `logprobs` (`top_logprobs`), `top_k`, `top_p`, `presence_penalty`, `frequency_penalty`, `bestOf`, `logitBias`, `logitBiasType`,...
97
97
  * [💱] Probbably keep using just `temperature` in Promptbook (not `top_k` and `top_p`)
@@ -81,7 +81,7 @@ export type PipelineJson = {
81
81
  /**
82
82
  * TODO: [🍙] Make some standart order of json properties
83
83
  * TODO: [🧠] Maybe wrap all {parameterNames} in brackets for example { "resultingParameterName": "{foo}" }
84
- * Note: There was a proposal for multiple types of promptbook objects 78816ff33e2705ee1a187aa2eb8affd976d4ea1a
84
+ * Note: [💼] There was a proposal for multiple types of promptbook objects 78816ff33e2705ee1a187aa2eb8affd976d4ea1a
85
85
  * But then immediately reverted back to the single type
86
86
  * With knowledge as part of the promptbook and collection just as a collection of promptbooks
87
87
  */
@@ -6,7 +6,4 @@ import type { string_template } from '../types/typeAliases';
6
6
  * @param template the template with parameters in {curly} braces
7
7
  * @returns the list of parameter names
8
8
  */
9
- export declare function extractParameters(template: string_template): Set<string_parameter_name>;
10
- /**
11
- * TODO: !!!!! Rename to extractParameterNames
12
- */
9
+ export declare function extractParameterNames(template: string_template): Set<string_parameter_name>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-client",
3
- "version": "0.61.0-25",
3
+ "version": "0.61.0-27",
4
4
  "description": "Supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -47,7 +47,7 @@
47
47
  }
48
48
  ],
49
49
  "peerDependencies": {
50
- "@promptbook/core": "0.61.0-25"
50
+ "@promptbook/core": "0.61.0-27"
51
51
  },
52
52
  "main": "./umd/index.umd.js",
53
53
  "module": "./esm/index.es.js",
package/umd/index.umd.js CHANGED
@@ -218,7 +218,7 @@
218
218
  /**
219
219
  * The version of the Promptbook library
220
220
  */
221
- var PROMPTBOOK_VERSION = '0.61.0-24';
221
+ var PROMPTBOOK_VERSION = '0.61.0-26';
222
222
  // TODO: !!!! List here all the versions and annotate + put into script
223
223
 
224
224
  exports.PROMPTBOOK_VERSION = PROMPTBOOK_VERSION;
@@ -1,6 +1,6 @@
1
1
  import { spaceTrim } from 'spacetrim';
2
2
  import { renderPromptbookMermaid } from '../conversion/prettify/renderPipelineMermaidOptions';
3
- import { extractParametersFromPromptTemplate } from '../conversion/utils/extractParametersFromPromptTemplate';
3
+ import { extractParameterNamesFromPromptTemplate } from '../conversion/utils/extractParameterNamesFromPromptTemplate';
4
4
  import { extractVariables } from '../conversion/utils/extractVariables';
5
5
  import { renameParameter } from '../conversion/utils/renameParameter';
6
6
  import { titleToName } from '../conversion/utils/titleToName';
@@ -15,7 +15,7 @@ import { countParagraphs } from '../utils/expectation-counters/countParagraphs';
15
15
  import { countSentences, splitIntoSentences } from '../utils/expectation-counters/countSentences';
16
16
  import { countWords } from '../utils/expectation-counters/countWords';
17
17
  import { CountUtils } from '../utils/expectation-counters/index';
18
- import { extractParameters } from '../utils/extractParameters';
18
+ import { extractParameterNames } from '../utils/extractParameterNames';
19
19
  import { DIACRITIC_VARIANTS_LETTERS } from '../utils/normalization/DIACRITIC_VARIANTS_LETTERS';
20
20
  import type { IKeywords, string_keyword } from '../utils/normalization/IKeywords';
21
21
  import { capitalize } from '../utils/normalization/capitalize';
@@ -55,7 +55,7 @@ import { isValidUrl } from '../utils/validators/url/isValidUrl';
55
55
  import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
56
56
  import { PROMPTBOOK_VERSION } from '../version';
57
57
  export { forEachAsync, PROMPTBOOK_VERSION };
58
- export { extractParameters, extractVariables, replaceParameters, spaceTrim };
58
+ export { extractParameterNames, extractVariables, replaceParameters, spaceTrim };
59
59
  export { $currentDate, $randomSeed, extractBlock, // <- [🌻] + maybe export through `@promptbook/markdown-utils`
60
60
  isHostnameOnPrivateNetwork, isUrlOnPrivateNetwork, isValidFilePath, isValidJavascriptName, isValidJsonString, isValidPipelineUrl, isValidPromptbookVersion, isValidSemanticVersion, isValidUrl, isValidUuid, parseNumber, // <- [🌻]
61
61
  removeEmojis, removeQuotes, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
@@ -70,7 +70,7 @@ export declare const normalizeTo: {
70
70
  };
71
71
  export { capitalize, decapitalize, DIACRITIC_VARIANTS_LETTERS, IKeywords, isValidKeyword, nameToUriPart, nameToUriParts, normalizeTo_camelCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_snake_case, normalizeToKebabCase, normalizeWhitespaces, parseKeywords, parseKeywordsFromString, removeDiacritics, searchKeywords, string_keyword, titleToName, };
72
72
  export type { string_camelCase, string_kebab_case, string_PascalCase, string_SCREAMING_CASE, string_snake_case };
73
- export { extractParametersFromPromptTemplate, renameParameter, renderPromptbookMermaid };
73
+ export { extractParameterNamesFromPromptTemplate, renameParameter, renderPromptbookMermaid };
74
74
  export { difference, intersection, union };
75
75
  /**
76
76
  * Note: [🕙] It does not make sence to have simple lower / UPPER case normalization
@@ -43,6 +43,5 @@ type CreatePipelineCollectionFromDirectoryOptions = PipelineStringToJsonOptions
43
43
  export declare function createCollectionFromDirectory(path: string_folder_path, options?: CreatePipelineCollectionFromDirectoryOptions): Promise<PipelineCollection>;
44
44
  export {};
45
45
  /**
46
- * TODO: !!!! [🧠] Library precompilation and do not mix markdown and json pipelines
47
46
  * Note: [🟢] This code should never be published outside of `@pipeline/node`
48
47
  */
@@ -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' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
10
+ export declare function extractParameterNamesFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
11
11
  /**
12
12
  * TODO: [🔣] If script require contentLanguage
13
13
  */
@@ -7,7 +7,7 @@ import type { string_json } from '../../types/typeAliases';
7
7
  */
8
8
  export declare function stringifyPipelineJson<TType>(pipeline: TType): string_json<TType>;
9
9
  /**
10
- * TODO: !!!! Not Working propperly @see https://promptbook.studio/samples/mixed-knowledge.ptbk.md
10
+ * TODO: [🐝] Not Working propperly @see https://promptbook.studio/samples/mixed-knowledge.ptbk.md
11
11
  * TODO: [🧠][0] Maybe rename to `stringifyPipelineJson`, `stringifyIndexedJson`,...
12
12
  * TODO: [🧠] Maybe more elegant solution than replacing via regex
13
13
  * TODO: [🍙] Make some standart order of json properties
@@ -26,11 +26,11 @@ export declare function validatePipeline(pipeline: PipelineJson): PipelineJson;
26
26
  * > ex port function validatePipeline(promptbook: really_unknown): asserts promptbook is PipelineJson {
27
27
  */
28
28
  /**
29
- * TODO: [🧠][🐣] !!!! Validate that all samples match expectations
30
- * TODO: [🧠][🐣] !!!! Validate that knowledge is valid (non-void)
31
- * TODO: [🧠][🐣] !!!! Validate that persona can be used only with CHAT variant
32
- * TODO: !!!! Validate that parameter with reserved name not used RESERVED_PARAMETER_NAMES
33
- * TODO: !!!! Validate that reserved parameter is not used as joker
34
- * TODO: [🧠] !!! Validationg not only logic itself but imports around - files and websites and rerefenced pipelines exists
29
+ * TODO: [🐣] !!!! Validate that all samples match expectations
30
+ * TODO: [🐣][🐝] !!!! Validate that knowledge is valid (non-void)
31
+ * TODO: [🐣] !!!! Validate that persona can be used only with CHAT variant
32
+ * TODO: [🐣] !!!! Validate that parameter with reserved name not used RESERVED_PARAMETER_NAMES
33
+ * TODO: [🐣] !!!! Validate that reserved parameter is not used as joker
34
+ * TODO: [🧠] Validation not only logic itself but imports around - files and websites and rerefenced pipelines exists
35
35
  * TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
36
36
  */
@@ -48,5 +48,5 @@ export type PipelineExecutorResult = {
48
48
  };
49
49
  /**
50
50
  * TODO: [🧠] Should this file be in /execution or /types folder?
51
- * TODO: [💷] !!!! `assertsExecutionSuccessful` should be the method of `PipelineExecutor` result
51
+ * TODO: [💷] `assertsExecutionSuccessful` should be the method of `PipelineExecutor` result
52
52
  */
@@ -47,8 +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
+ * TODO: !!!!! return `preparedPipeline` from execution
51
+ * TODO: !!!!! `isNotPreparedWarningSupressed`
52
52
  * TODO: Use isVerbose here (not only pass to `preparePipeline`)
53
53
  * TODO: [🪂] Use maxParallelCount here (not only pass to `preparePipeline`)
54
54
  * TODO: [♈] Probbably move expectations from templates to parameters
@@ -57,5 +57,5 @@ export {};
57
57
  * Note: CreatePipelineExecutorOptions are just connected to PipelineExecutor so do not extract to types folder
58
58
  * TODO: [🧠][3] transparent = (report intermediate parameters) / opaque execution = (report only output parameters) progress reporting mode
59
59
  * TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
60
- * TODO: [💷] !!!! `assertsExecutionSuccessful` should be the method of `PipelineExecutor` result
60
+ * TODO: [🧠][💷] `assertsExecutionSuccessful` should be the method of `PipelineExecutor` result BUT maybe NOT to preserve pure JSON object
61
61
  */
@@ -41,7 +41,7 @@ export declare class AnthropicClaudeExecutionTools implements LlmExecutionTools
41
41
  listModels(): Array<AvailableModel>;
42
42
  }
43
43
  /**
44
- * TODO: !!!! [🍆] JSON mode
44
+ * TODO: [🍆] JSON mode
45
45
  * TODO: [🧠] Maybe handle errors via transformAnthropicError (like transformAzureError)
46
46
  * TODO: Maybe Create some common util for callChatModel and callCompletionModel
47
47
  * TODO: Maybe make custom OpenaiError
@@ -8,7 +8,7 @@ export declare function isPipelinePrepared(pipeline: PipelineJson): boolean;
8
8
  * TODO: [🔼] Export via core or utils
9
9
  * TODO: [🧊] Pipeline can be partially prepared, this should return true ONLY if fully prepared
10
10
  * TODO: [🧿] Maybe do same process with same granularity and subfinctions as `preparePipeline`
11
- * - Is context in each template
12
- * - Are samples prepared
13
- * - Are templates prepared
11
+ * - [🏍] ? Is context in each template
12
+ * - [♨] Are samples prepared
13
+ * - [♨] Are templates prepared
14
14
  */
@@ -12,6 +12,6 @@ export declare function preparePipeline(pipeline: PipelineJson, options: Prepare
12
12
  * TODO: Write tests for `preparePipeline`
13
13
  * TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch
14
14
  * TODO: [🧊] In future one preparation can take data from previous preparation and save tokens and time
15
- * TODO: [🎐] !!!! Use here countTotalUsage
15
+ * TODO: [🎐] !!!!!! Use here countTotalUsage
16
16
  * TODO: [🛠] Actions, instruments (and maybe knowledge) => Functions and tools
17
17
  */
@@ -21,7 +21,7 @@ export {};
21
21
  /**
22
22
  * TODO: [🧠] Add context to each template (if missing)
23
23
  * TODO: [🧠] What is better name `prepareTemplate` or `prepareTemplateAndParameters`
24
- * TODO: !!!!! Index the samples and maybe templates
24
+ * TODO: [♨] !!! Prepare index the samples and maybe templates
25
25
  * TODO: [🔼] !!! Export via `@promptbook/core`
26
26
  * TODO: Write tests for `preparePipeline`
27
27
  * TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch
@@ -91,7 +91,7 @@ export type CommonModelRequirements = {
91
91
  readonly maxTokens?: number;
92
92
  };
93
93
  /**
94
- * TODO: [🔼] !!!! Export all from `@promptbook/types`
94
+ * TODO: [🔼] !!!!! (<- To all [🔼]) Export all from `@promptbook/types`
95
95
  * TODO: [🧠][🈁] `seed` should maybe be somewhere else (not in `ModelRequirements`) (simmilar that `user` identification is not here)
96
96
  * TODO: [🧠][💱] Add more model options: `stop_token`, `logit_bias`, `logprobs` (`top_logprobs`), `top_k`, `top_p`, `presence_penalty`, `frequency_penalty`, `bestOf`, `logitBias`, `logitBiasType`,...
97
97
  * [💱] Probbably keep using just `temperature` in Promptbook (not `top_k` and `top_p`)
@@ -81,7 +81,7 @@ export type PipelineJson = {
81
81
  /**
82
82
  * TODO: [🍙] Make some standart order of json properties
83
83
  * TODO: [🧠] Maybe wrap all {parameterNames} in brackets for example { "resultingParameterName": "{foo}" }
84
- * Note: There was a proposal for multiple types of promptbook objects 78816ff33e2705ee1a187aa2eb8affd976d4ea1a
84
+ * Note: [💼] There was a proposal for multiple types of promptbook objects 78816ff33e2705ee1a187aa2eb8affd976d4ea1a
85
85
  * But then immediately reverted back to the single type
86
86
  * With knowledge as part of the promptbook and collection just as a collection of promptbooks
87
87
  */
@@ -6,7 +6,4 @@ import type { string_template } from '../types/typeAliases';
6
6
  * @param template the template with parameters in {curly} braces
7
7
  * @returns the list of parameter names
8
8
  */
9
- export declare function extractParameters(template: string_template): Set<string_parameter_name>;
10
- /**
11
- * TODO: !!!!! Rename to extractParameterNames
12
- */
9
+ export declare function extractParameterNames(template: string_template): Set<string_parameter_name>;