@promptbook/remote-server 0.69.0-19 → 0.69.0-20

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$1, { spaceTrim } from 'spacetrim';
7
7
  /**
8
8
  * The version of the Promptbook library
9
9
  */
10
- var PROMPTBOOK_VERSION = '0.69.0-18';
10
+ var PROMPTBOOK_VERSION = '0.69.0-19';
11
11
  // TODO:[main] !!!! List here all the versions and annotate + put into script
12
12
 
13
13
  /*! *****************************************************************************
@@ -15,7 +15,7 @@ export type PipelineExecutorResult = {
15
15
  *
16
16
  * Note: If the execution was not successful, there are only some of the result parameters
17
17
  */
18
- readonly outputParameters: Parameters;
18
+ readonly outputParameters: Readonly<Parameters>;
19
19
  /**
20
20
  * Whether the execution was successful, details are aviable in `executionReport`
21
21
  */
@@ -23,19 +23,19 @@ export type PipelineExecutorResult = {
23
23
  /**
24
24
  * Added usage of whole execution, detailed usage is aviable in `executionReport`
25
25
  */
26
- readonly usage: PromptResultUsage;
26
+ readonly usage: ReadonlyDeep<PromptResultUsage>;
27
27
  /**
28
28
  * Errors that occured during the execution, details are aviable in `executionReport`
29
29
  */
30
- readonly errors: Array<ErrorJson>;
30
+ readonly errors: ReadonlyDeep<Array<ErrorJson>>;
31
31
  /**
32
32
  * Warnings that occured during the execution, details are aviable in `executionReport`
33
33
  */
34
- readonly warnings: Array<ErrorJson>;
34
+ readonly warnings: ReadonlyDeep<Array<ErrorJson>>;
35
35
  /**
36
36
  * The report of the execution with all details
37
37
  */
38
- readonly executionReport: ExecutionReportJson;
38
+ readonly executionReport: ReadonlyDeep<ExecutionReportJson>;
39
39
  /**
40
40
  * The prepared pipeline that was used for the execution
41
41
  *
@@ -45,7 +45,6 @@ export type PipelineExecutorResult = {
45
45
  readonly preparedPipeline: ReadonlyDeep<PipelineJson>;
46
46
  };
47
47
  /**
48
- * TODO: !!!!!! Maybe add ReadonlyDeep< to all
49
48
  * TODO: [🧠] Should this file be in /execution or /types folder?
50
49
  * TODO: [🧠] Maybe constrain `ErrorJson` -> `ErrorJson & { name: 'PipelineExecutionError' | 'Error' }`
51
50
  */
@@ -10,12 +10,36 @@ import type { PromptResult } from '../PromptResult';
10
10
  * @private internal utility of `createPipelineExecutor`
11
11
  */
12
12
  export type $OngoingTemplateResult = {
13
+ /**
14
+ * @@@
15
+ */
13
16
  $prompt?: Prompt;
17
+ /**
18
+ * @@@
19
+ */
14
20
  $chatResult?: ChatPromptResult;
21
+ /**
22
+ * @@@
23
+ */
15
24
  $completionResult?: CompletionPromptResult;
25
+ /**
26
+ * @@@
27
+ */
16
28
  $embeddingResult?: EmbeddingPromptResult;
29
+ /**
30
+ * @@@
31
+ */
17
32
  $result: PromptResult | null;
33
+ /**
34
+ * @@@
35
+ */
18
36
  $resultString: string | null;
37
+ /**
38
+ * @@@
39
+ */
19
40
  $expectError: ExpectError | null;
41
+ /**
42
+ * @@@
43
+ */
20
44
  $scriptPipelineExecutionErrors: Array<Error>;
21
45
  };
@@ -33,7 +33,7 @@ export type ExecuteAttemptsOptions = {
33
33
  /**
34
34
  * @@@
35
35
  */
36
- readonly parameters: ReadonlyDeep<Parameters>;
36
+ readonly parameters: Readonly<Parameters>;
37
37
  /**
38
38
  * @@@
39
39
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-server",
3
- "version": "0.69.0-19",
3
+ "version": "0.69.0-20",
4
4
  "description": "Supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -51,7 +51,7 @@
51
51
  "module": "./esm/index.es.js",
52
52
  "typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
53
53
  "peerDependencies": {
54
- "@promptbook/core": "0.69.0-19"
54
+ "@promptbook/core": "0.69.0-20"
55
55
  },
56
56
  "dependencies": {
57
57
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /**
15
15
  * The version of the Promptbook library
16
16
  */
17
- var PROMPTBOOK_VERSION = '0.69.0-18';
17
+ var PROMPTBOOK_VERSION = '0.69.0-19';
18
18
  // TODO:[main] !!!! List here all the versions and annotate + put into script
19
19
 
20
20
  /*! *****************************************************************************