@promptbook/remote-client 0.61.0-26 โ†’ 0.61.0-28

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 (31) hide show
  1. package/esm/index.es.js +2 -2
  2. package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +0 -1
  3. package/esm/typings/src/conversion/utils/stringifyPipelineJson.d.ts +1 -1
  4. package/esm/typings/src/conversion/validation/validatePipeline.d.ts +6 -6
  5. package/esm/typings/src/execution/PipelineExecutor.d.ts +1 -1
  6. package/esm/typings/src/execution/PromptResult.d.ts +15 -0
  7. package/esm/typings/src/execution/createPipelineExecutor.d.ts +3 -3
  8. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
  9. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -1
  10. package/esm/typings/src/llm-providers/remote/startRemoteServer.d.ts +2 -2
  11. package/esm/typings/src/prepare/isPipelinePrepared.d.ts +3 -3
  12. package/esm/typings/src/prepare/preparePipeline.d.ts +1 -1
  13. package/esm/typings/src/prepare/prepareTemplates.d.ts +1 -1
  14. package/esm/typings/src/types/ModelRequirements.d.ts +1 -1
  15. package/esm/typings/src/utils/extractParameterNames.d.ts +0 -3
  16. package/package.json +2 -2
  17. package/umd/index.umd.js +2 -2
  18. package/umd/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +0 -1
  19. package/umd/typings/src/conversion/utils/stringifyPipelineJson.d.ts +1 -1
  20. package/umd/typings/src/conversion/validation/validatePipeline.d.ts +6 -6
  21. package/umd/typings/src/execution/PipelineExecutor.d.ts +1 -1
  22. package/umd/typings/src/execution/PromptResult.d.ts +15 -0
  23. package/umd/typings/src/execution/createPipelineExecutor.d.ts +3 -3
  24. package/umd/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
  25. package/umd/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -1
  26. package/umd/typings/src/llm-providers/remote/startRemoteServer.d.ts +2 -2
  27. package/umd/typings/src/prepare/isPipelinePrepared.d.ts +3 -3
  28. package/umd/typings/src/prepare/preparePipeline.d.ts +1 -1
  29. package/umd/typings/src/prepare/prepareTemplates.d.ts +1 -1
  30. package/umd/typings/src/types/ModelRequirements.d.ts +1 -1
  31. package/umd/typings/src/utils/extractParameterNames.d.ts +0 -3
package/esm/index.es.js CHANGED
@@ -208,13 +208,13 @@ var RemoteLlmExecutionTools = /** @class */ (function () {
208
208
  }());
209
209
  /**
210
210
  * TODO: [๐Ÿ“] Allow to list compatible models with each variant
211
- * TODO: [๐Ÿคนโ€โ™‚๏ธ] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
211
+ * TODO: [๐Ÿ—ฏ] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
212
212
  */
213
213
 
214
214
  /**
215
215
  * The version of the Promptbook library
216
216
  */
217
- var PROMPTBOOK_VERSION = '0.61.0-25';
217
+ var PROMPTBOOK_VERSION = '0.61.0-27';
218
218
  // TODO: !!!! List here all the versions and annotate + put into script
219
219
 
220
220
  export { PROMPTBOOK_VERSION, RemoteLlmExecutionTools };
@@ -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_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
  */
@@ -1,5 +1,6 @@
1
1
  import type { string_date_iso8601 } from '../types/typeAliases';
2
2
  import type { string_model_name } from '../types/typeAliases';
3
+ import type { string_prompt } from '../types/typeAliases';
3
4
  import type { TODO_object } from '../utils/organization/TODO_object';
4
5
  import type { EmbeddingVector } from './EmbeddingVector';
5
6
  import type { PromptResultUsage } from './PromptResultUsage';
@@ -69,8 +70,22 @@ export type CommonPromptResult = {
69
70
  * Usage of the prompt execution
70
71
  */
71
72
  readonly usage: PromptResultUsage;
73
+ /**
74
+ * Exact text of the prompt (with all replacements)
75
+ *
76
+ * Note: This contains redundant information
77
+ */
78
+ readonly rawPromptContent: string_prompt;
79
+ /**
80
+ * Raw request to the model
81
+ *
82
+ * Note: This contains redundant information
83
+ */
84
+ readonly rawRequest: TODO_object | null;
72
85
  /**
73
86
  * Raw response from the model
87
+ *
88
+ * Note: This contains redundant information
74
89
  */
75
90
  readonly rawResponse: TODO_object;
76
91
  };
@@ -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
@@ -50,5 +50,5 @@ export declare class RemoteLlmExecutionTools implements LlmExecutionTools {
50
50
  }
51
51
  /**
52
52
  * TODO: [๐Ÿ“] Allow to list compatible models with each variant
53
- * TODO: [๐Ÿคนโ€โ™‚๏ธ] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
53
+ * TODO: [๐Ÿ—ฏ] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
54
54
  */
@@ -12,8 +12,8 @@ export declare function startRemoteServer(options: RemoteServerOptions): IDestro
12
12
  /**
13
13
  * TODO: [โš–] Expose the collection to be able to connect to same collection via createCollectionFromUrl
14
14
  * TODO: Handle progress - support streaming
15
- * TODO: [๐Ÿคนโ€โ™‚๏ธ] Do not hang up immediately but wait until client closes OR timeout
16
- * TODO: [๐Ÿคนโ€โ™‚๏ธ] Timeout on chat to free up resources
15
+ * TODO: [๐Ÿ—ฏ] Do not hang up immediately but wait until client closes OR timeout
16
+ * TODO: [๐Ÿ—ฏ] Timeout on chat to free up resources
17
17
  * TODO: [๐Ÿƒ] Pass here some security token to prevent malitious usage and/or DDoS
18
18
  * TODO: [0] Set unavailable models as undefined in `RemoteLlmExecutionTools` NOT throw error here
19
19
  */
@@ -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`)
@@ -7,6 +7,3 @@ import type { string_template } from '../types/typeAliases';
7
7
  * @returns the list of parameter names
8
8
  */
9
9
  export declare function extractParameterNames(template: string_template): Set<string_parameter_name>;
10
- /**
11
- * TODO: !!!!! Rename to extractParameterNames
12
- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-client",
3
- "version": "0.61.0-26",
3
+ "version": "0.61.0-28",
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-26"
50
+ "@promptbook/core": "0.61.0-28"
51
51
  },
52
52
  "main": "./umd/index.umd.js",
53
53
  "module": "./esm/index.es.js",
package/umd/index.umd.js CHANGED
@@ -212,13 +212,13 @@
212
212
  }());
213
213
  /**
214
214
  * TODO: [๐Ÿ“] Allow to list compatible models with each variant
215
- * TODO: [๐Ÿคนโ€โ™‚๏ธ] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
215
+ * TODO: [๐Ÿ—ฏ] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
216
216
  */
217
217
 
218
218
  /**
219
219
  * The version of the Promptbook library
220
220
  */
221
- var PROMPTBOOK_VERSION = '0.61.0-25';
221
+ var PROMPTBOOK_VERSION = '0.61.0-27';
222
222
  // TODO: !!!! List here all the versions and annotate + put into script
223
223
 
224
224
  exports.PROMPTBOOK_VERSION = PROMPTBOOK_VERSION;
@@ -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_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
  */
@@ -1,5 +1,6 @@
1
1
  import type { string_date_iso8601 } from '../types/typeAliases';
2
2
  import type { string_model_name } from '../types/typeAliases';
3
+ import type { string_prompt } from '../types/typeAliases';
3
4
  import type { TODO_object } from '../utils/organization/TODO_object';
4
5
  import type { EmbeddingVector } from './EmbeddingVector';
5
6
  import type { PromptResultUsage } from './PromptResultUsage';
@@ -69,8 +70,22 @@ export type CommonPromptResult = {
69
70
  * Usage of the prompt execution
70
71
  */
71
72
  readonly usage: PromptResultUsage;
73
+ /**
74
+ * Exact text of the prompt (with all replacements)
75
+ *
76
+ * Note: This contains redundant information
77
+ */
78
+ readonly rawPromptContent: string_prompt;
79
+ /**
80
+ * Raw request to the model
81
+ *
82
+ * Note: This contains redundant information
83
+ */
84
+ readonly rawRequest: TODO_object | null;
72
85
  /**
73
86
  * Raw response from the model
87
+ *
88
+ * Note: This contains redundant information
74
89
  */
75
90
  readonly rawResponse: TODO_object;
76
91
  };
@@ -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
@@ -50,5 +50,5 @@ export declare class RemoteLlmExecutionTools implements LlmExecutionTools {
50
50
  }
51
51
  /**
52
52
  * TODO: [๐Ÿ“] Allow to list compatible models with each variant
53
- * TODO: [๐Ÿคนโ€โ™‚๏ธ] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
53
+ * TODO: [๐Ÿ—ฏ] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
54
54
  */
@@ -12,8 +12,8 @@ export declare function startRemoteServer(options: RemoteServerOptions): IDestro
12
12
  /**
13
13
  * TODO: [โš–] Expose the collection to be able to connect to same collection via createCollectionFromUrl
14
14
  * TODO: Handle progress - support streaming
15
- * TODO: [๐Ÿคนโ€โ™‚๏ธ] Do not hang up immediately but wait until client closes OR timeout
16
- * TODO: [๐Ÿคนโ€โ™‚๏ธ] Timeout on chat to free up resources
15
+ * TODO: [๐Ÿ—ฏ] Do not hang up immediately but wait until client closes OR timeout
16
+ * TODO: [๐Ÿ—ฏ] Timeout on chat to free up resources
17
17
  * TODO: [๐Ÿƒ] Pass here some security token to prevent malitious usage and/or DDoS
18
18
  * TODO: [0] Set unavailable models as undefined in `RemoteLlmExecutionTools` NOT throw error here
19
19
  */
@@ -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`)
@@ -7,6 +7,3 @@ import type { string_template } from '../types/typeAliases';
7
7
  * @returns the list of parameter names
8
8
  */
9
9
  export declare function extractParameterNames(template: string_template): Set<string_parameter_name>;
10
- /**
11
- * TODO: !!!!! Rename to extractParameterNames
12
- */