@promptbook/remote-server 0.36.2 → 0.36.3
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
|
@@ -59,7 +59,7 @@ function __generator(thisArg, body) {
|
|
|
59
59
|
/**
|
|
60
60
|
* The version of the Promptbook library
|
|
61
61
|
*/
|
|
62
|
-
var PROMPTBOOK_VERSION = '0.36.
|
|
62
|
+
var PROMPTBOOK_VERSION = '0.36.2';
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|
|
@@ -5,6 +5,19 @@ import { PromptbookExecutor } from '../execution/PromptbookExecutor';
|
|
|
5
5
|
import { Prompt } from '../types/Prompt';
|
|
6
6
|
import { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
|
|
7
7
|
import { PromptbookString } from '../types/PromptbookString';
|
|
8
|
+
/**
|
|
9
|
+
* Options for PromptbookLibrary
|
|
10
|
+
*/
|
|
11
|
+
type PromptbookLibraryOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* The library of promptbooks
|
|
14
|
+
*/
|
|
15
|
+
readonly library: Record<string_name, PromptbookJson>;
|
|
16
|
+
/**
|
|
17
|
+
* Optional settings for creating a PromptbookExecutor
|
|
18
|
+
*/
|
|
19
|
+
readonly settings?: Partial<CreatePromptbookExecutorSettings>;
|
|
20
|
+
};
|
|
8
21
|
/**
|
|
9
22
|
* Library of promptbooks that groups together promptbooks for an application. This is a very thin wrapper around the Array / Set of promptbooks.
|
|
10
23
|
*
|
|
@@ -15,7 +28,7 @@ import { PromptbookString } from '../types/PromptbookString';
|
|
|
15
28
|
* @see https://github.com/webgptorg/promptbook#prompt-template-pipeline-library
|
|
16
29
|
*/
|
|
17
30
|
export declare class PromptbookLibrary {
|
|
18
|
-
|
|
31
|
+
protected readonly options: PromptbookLibraryOptions;
|
|
19
32
|
/**
|
|
20
33
|
* Constructs Promptbook from any sources
|
|
21
34
|
*
|
|
@@ -45,6 +58,7 @@ export declare class PromptbookLibrary {
|
|
|
45
58
|
*/
|
|
46
59
|
createExecutor(name: string_name, tools: ExecutionTools): PromptbookExecutor;
|
|
47
60
|
}
|
|
61
|
+
export {};
|
|
48
62
|
/**
|
|
49
63
|
* TODO: [🈴] Identify promptbooks by url `promptbookUrls` + `getPromptbookByUrl`
|
|
50
64
|
* TODO: !! [👐][🧠] Split of Promptbook,PromptbookLibrary between interface and class
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-server",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.3",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"spacetrim": "0.11.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@promptbook/core": "0.36.
|
|
41
|
+
"@promptbook/core": "0.36.3"
|
|
42
42
|
},
|
|
43
43
|
"main": "./umd/index.umd.js",
|
|
44
44
|
"module": "./esm/index.es.js",
|
package/umd/index.umd.js
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
/**
|
|
67
67
|
* The version of the Promptbook library
|
|
68
68
|
*/
|
|
69
|
-
var PROMPTBOOK_VERSION = '0.36.
|
|
69
|
+
var PROMPTBOOK_VERSION = '0.36.2';
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|
|
@@ -5,6 +5,19 @@ import { PromptbookExecutor } from '../execution/PromptbookExecutor';
|
|
|
5
5
|
import { Prompt } from '../types/Prompt';
|
|
6
6
|
import { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
|
|
7
7
|
import { PromptbookString } from '../types/PromptbookString';
|
|
8
|
+
/**
|
|
9
|
+
* Options for PromptbookLibrary
|
|
10
|
+
*/
|
|
11
|
+
type PromptbookLibraryOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* The library of promptbooks
|
|
14
|
+
*/
|
|
15
|
+
readonly library: Record<string_name, PromptbookJson>;
|
|
16
|
+
/**
|
|
17
|
+
* Optional settings for creating a PromptbookExecutor
|
|
18
|
+
*/
|
|
19
|
+
readonly settings?: Partial<CreatePromptbookExecutorSettings>;
|
|
20
|
+
};
|
|
8
21
|
/**
|
|
9
22
|
* Library of promptbooks that groups together promptbooks for an application. This is a very thin wrapper around the Array / Set of promptbooks.
|
|
10
23
|
*
|
|
@@ -15,7 +28,7 @@ import { PromptbookString } from '../types/PromptbookString';
|
|
|
15
28
|
* @see https://github.com/webgptorg/promptbook#prompt-template-pipeline-library
|
|
16
29
|
*/
|
|
17
30
|
export declare class PromptbookLibrary {
|
|
18
|
-
|
|
31
|
+
protected readonly options: PromptbookLibraryOptions;
|
|
19
32
|
/**
|
|
20
33
|
* Constructs Promptbook from any sources
|
|
21
34
|
*
|
|
@@ -45,6 +58,7 @@ export declare class PromptbookLibrary {
|
|
|
45
58
|
*/
|
|
46
59
|
createExecutor(name: string_name, tools: ExecutionTools): PromptbookExecutor;
|
|
47
60
|
}
|
|
61
|
+
export {};
|
|
48
62
|
/**
|
|
49
63
|
* TODO: [🈴] Identify promptbooks by url `promptbookUrls` + `getPromptbookByUrl`
|
|
50
64
|
* TODO: !! [👐][🧠] Split of Promptbook,PromptbookLibrary between interface and class
|