@promptbook/remote-server 0.65.0-1 → 0.65.0-2

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
@@ -7,7 +7,7 @@ import { spaceTrim } from 'spacetrim';
7
7
  /**
8
8
  * The version of the Promptbook library
9
9
  */
10
- var PROMPTBOOK_VERSION = '0.65.0-0';
10
+ var PROMPTBOOK_VERSION = '0.65.0-1';
11
11
  // TODO: !!!! List here all the versions and annotate + put into script
12
12
 
13
13
  /*! *****************************************************************************
@@ -45,6 +45,7 @@ import { CallbackInterfaceTools } from '../knowledge/dialogs/callback/CallbackIn
45
45
  import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callback/CallbackInterfaceToolsOptions';
46
46
  import { prepareKnowledgePieces } from '../knowledge/prepare-knowledge/_common/prepareKnowledgePieces';
47
47
  import { prepareKnowledgeFromMarkdown } from '../knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown';
48
+ import { createLlmToolsFromConfiguration } from '../llm-providers/_common/createLlmToolsFromConfiguration';
48
49
  import { cacheLlmTools } from '../llm-providers/_common/utils/cache/cacheLlmTools';
49
50
  import { countTotalUsage } from '../llm-providers/_common/utils/count-total-usage/countTotalUsage';
50
51
  import { limitTotalUsage } from '../llm-providers/_common/utils/count-total-usage/limitTotalUsage';
@@ -108,6 +109,7 @@ export { CallbackInterfaceTools };
108
109
  export type { CallbackInterfaceToolsOptions };
109
110
  export { prepareKnowledgePieces };
110
111
  export { prepareKnowledgeFromMarkdown };
112
+ export { createLlmToolsFromConfiguration };
111
113
  export { cacheLlmTools };
112
114
  export { countTotalUsage };
113
115
  export { limitTotalUsage };
@@ -1,14 +1,12 @@
1
1
  import { PROMPTBOOK_VERSION } from '../version';
2
2
  import { createCollectionFromDirectory } from '../collection/constructors/createCollectionFromDirectory';
3
3
  import { LLM_CONFIGURATION_BOILERPLATES } from '../llm-providers/_common/config';
4
- import { createLlmToolsFromConfiguration } from '../llm-providers/_common/createLlmToolsFromConfiguration';
5
4
  import { createLlmToolsFromConfigurationFromEnv } from '../llm-providers/_common/createLlmToolsFromConfigurationFromEnv';
6
5
  import { createLlmToolsFromEnv } from '../llm-providers/_common/createLlmToolsFromEnv';
7
6
  import { FilesStorage } from '../storage/files-storage/FilesStorage';
8
7
  export { PROMPTBOOK_VERSION };
9
8
  export { createCollectionFromDirectory };
10
9
  export { LLM_CONFIGURATION_BOILERPLATES };
11
- export { createLlmToolsFromConfiguration };
12
10
  export { createLlmToolsFromConfigurationFromEnv };
13
11
  export { createLlmToolsFromEnv };
14
12
  export { FilesStorage };
@@ -19,14 +19,14 @@ export type CreateLlmToolsFromConfigurationOptions = {
19
19
  * Note: This function is not cached, every call creates new instance of `MultipleLlmExecutionTools`
20
20
  *
21
21
  * @returns @@@
22
- * @public exported from `@promptbook/node`
22
+ * @public exported from `@promptbook/core`
23
23
  */
24
24
  export declare function createLlmToolsFromConfiguration(configuration: LlmToolsConfiguration, options?: CreateLlmToolsFromConfigurationOptions): MultipleLlmExecutionTools;
25
25
  /**
26
+ * TODO: [🎌] Togethere with `createLlmToolsFromConfiguration` + 'EXECUTION_TOOLS_CLASSES' gets to `@promptbook/core` ALL model providers, make this more efficient
26
27
  * TODO: [🧠][🎌] Dynamically install required providers
27
28
  * TODO: @@@ write discussion about this - wizzard
28
29
  * TODO: [🧠][🍛] Which name is better `createLlmToolsFromConfig` or `createLlmToolsFromConfiguration`?
29
30
  * TODO: [🧠] Is there some meaningfull way how to test this util
30
- * Note: [🟢] This code should never be published outside of `@promptbook/node` and `@promptbook/cli` and `@promptbook/cli`
31
31
  * TODO: This should be maybe not under `_common` but under `utils`
32
32
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-server",
3
- "version": "0.65.0-1",
3
+ "version": "0.65.0-2",
4
4
  "description": "Supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -47,7 +47,7 @@
47
47
  "module": "./esm/index.es.js",
48
48
  "typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
49
49
  "peerDependencies": {
50
- "@promptbook/core": "0.65.0-1"
50
+ "@promptbook/core": "0.65.0-2"
51
51
  },
52
52
  "dependencies": {
53
53
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -13,7 +13,7 @@
13
13
  /**
14
14
  * The version of the Promptbook library
15
15
  */
16
- var PROMPTBOOK_VERSION = '0.65.0-0';
16
+ var PROMPTBOOK_VERSION = '0.65.0-1';
17
17
  // TODO: !!!! List here all the versions and annotate + put into script
18
18
 
19
19
  /*! *****************************************************************************