@promptbook/openai 0.50.0-8 → 0.50.0
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.
|
@@ -20,8 +20,10 @@ export type ExecutionTools = {
|
|
|
20
20
|
script: Array<ScriptExecutionTools>;
|
|
21
21
|
/**
|
|
22
22
|
* Tools for interacting with the user
|
|
23
|
+
*
|
|
24
|
+
* Note: When undefined, the user interface is disabled and promptbook which requires user interaction will fail
|
|
23
25
|
*/
|
|
24
|
-
userInterface
|
|
26
|
+
userInterface?: UserInterfaceTools;
|
|
25
27
|
};
|
|
26
28
|
/**
|
|
27
29
|
* TODO: [🍓] !!!! Allow to have more LlmExecutionTools
|
|
@@ -11,7 +11,7 @@ import type { string_name } from '../types/typeAliases';
|
|
|
11
11
|
* @see https://github.com/webgptorg/promptbook#executor
|
|
12
12
|
*/
|
|
13
13
|
export type PromptbookExecutor = {
|
|
14
|
-
(inputParameters: Record<string_name, string>, onProgress
|
|
14
|
+
(inputParameters: Record<string_name, string>, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<{
|
|
15
15
|
/**
|
|
16
16
|
* Whether the execution was successful
|
|
17
17
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/openai",
|
|
3
|
-
"version": "0.50.0
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@promptbook/core": "0.50.0
|
|
51
|
+
"@promptbook/core": "0.50.0"
|
|
52
52
|
},
|
|
53
53
|
"main": "./umd/index.umd.js",
|
|
54
54
|
"module": "./esm/index.es.js",
|
|
@@ -20,8 +20,10 @@ export type ExecutionTools = {
|
|
|
20
20
|
script: Array<ScriptExecutionTools>;
|
|
21
21
|
/**
|
|
22
22
|
* Tools for interacting with the user
|
|
23
|
+
*
|
|
24
|
+
* Note: When undefined, the user interface is disabled and promptbook which requires user interaction will fail
|
|
23
25
|
*/
|
|
24
|
-
userInterface
|
|
26
|
+
userInterface?: UserInterfaceTools;
|
|
25
27
|
};
|
|
26
28
|
/**
|
|
27
29
|
* TODO: [🍓] !!!! Allow to have more LlmExecutionTools
|
|
@@ -11,7 +11,7 @@ import type { string_name } from '../types/typeAliases';
|
|
|
11
11
|
* @see https://github.com/webgptorg/promptbook#executor
|
|
12
12
|
*/
|
|
13
13
|
export type PromptbookExecutor = {
|
|
14
|
-
(inputParameters: Record<string_name, string>, onProgress
|
|
14
|
+
(inputParameters: Record<string_name, string>, onProgress?: (taskProgress: TaskProgress) => Promisable<void>): Promise<{
|
|
15
15
|
/**
|
|
16
16
|
* Whether the execution was successful
|
|
17
17
|
*/
|