@promptbook/remote-server 0.69.0-7 โ†’ 0.69.0-8

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-6';
10
+ var PROMPTBOOK_VERSION = '0.69.0-7';
11
11
  // TODO: !!!! List here all the versions and annotate + put into script
12
12
 
13
13
  /*! *****************************************************************************
@@ -0,0 +1,21 @@
1
+ import { ExpectError } from '../../errors/ExpectError';
2
+ import type { Prompt } from '../../types/Prompt';
3
+ import type { ChatPromptResult } from '../PromptResult';
4
+ import type { CompletionPromptResult } from '../PromptResult';
5
+ import type { EmbeddingPromptResult } from '../PromptResult';
6
+ import type { PromptResult } from '../PromptResult';
7
+ /**
8
+ * @@@
9
+ *
10
+ * @private internal utility of `createPipelineExecutor`
11
+ */
12
+ export type $OngoingTemplateResult = {
13
+ $prompt?: Prompt;
14
+ $chatResult?: ChatPromptResult;
15
+ $completionResult?: CompletionPromptResult;
16
+ $embeddingResult?: EmbeddingPromptResult;
17
+ $result: PromptResult | null;
18
+ $resultString: string | null;
19
+ $expectError: ExpectError | null;
20
+ $scriptPipelineExecutionErrors: Array<Error>;
21
+ };
@@ -28,3 +28,6 @@ export type CreatePipelineExecutorSettings = {
28
28
  */
29
29
  readonly isNotPreparedWarningSupressed: boolean;
30
30
  };
31
+ /**
32
+ * TODO: [๐Ÿคนโ€โ™‚๏ธ] More granular setting for limits of execution + better waiting for queue
33
+ */
@@ -1,10 +1,10 @@
1
1
  import type { Promisable, ReadonlyDeep } from 'type-fest';
2
- import type { CreatePipelineExecutorSettings } from './00-CreatePipelineExecutorSettings';
3
2
  import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';
4
3
  import type { TaskProgress } from '../../types/TaskProgress';
5
4
  import type { Parameters } from '../../types/typeAliases';
6
5
  import type { ExecutionTools } from '../ExecutionTools';
7
6
  import type { PipelineExecutorResult } from '../PipelineExecutorResult';
7
+ import type { CreatePipelineExecutorSettings } from './00-CreatePipelineExecutorSettings';
8
8
  /**
9
9
  * @@@
10
10
  *
@@ -0,0 +1,15 @@
1
+ import type { TODO_any } from '../../utils/organization/TODO_any';
2
+ import type { ExecuteAttemptsOptions } from './40-executeAttempts';
3
+ /**
4
+ * @@@
5
+ *
6
+ * @private internal type of `executeFormatCells`
7
+ */
8
+ type ExecuteFormatCellsOptions = ExecuteAttemptsOptions;
9
+ /**
10
+ * @@@
11
+ *
12
+ * @private internal utility of `createPipelineExecutor`
13
+ */
14
+ export declare function executeFormatCells(options: ExecuteFormatCellsOptions): Promise<TODO_any>;
15
+ export {};
@@ -0,0 +1,80 @@
1
+ import type { ReadonlyDeep } from 'type-fest';
2
+ import { MultipleLlmExecutionTools } from '../../llm-providers/multiple/MultipleLlmExecutionTools';
3
+ import type { ExecutionReportJson } from '../../types/execution-report/ExecutionReportJson';
4
+ import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';
5
+ import type { TemplateJson } from '../../types/PipelineJson/TemplateJson';
6
+ import type { Parameters } from '../../types/typeAliases';
7
+ import type { string_parameter_name } from '../../types/typeAliases';
8
+ import type { TODO_any } from '../../utils/organization/TODO_any';
9
+ import type { TODO_string } from '../../utils/organization/TODO_string';
10
+ import type { ExecutionTools } from '../ExecutionTools';
11
+ import type { $OngoingTemplateResult } from './$OngoingTemplateResult';
12
+ import type { CreatePipelineExecutorSettings } from './00-CreatePipelineExecutorSettings';
13
+ /**
14
+ * @@@
15
+ *
16
+ * @private internal type of `executeAttempts`
17
+ */
18
+ export type ExecuteAttemptsOptions = {
19
+ /**
20
+ * @@@
21
+ */
22
+ readonly $ongoingTemplateResult: $OngoingTemplateResult;
23
+ /**
24
+ * @@@
25
+ */
26
+ readonly jokerParameterNames: Readonly<Array<string_parameter_name>>;
27
+ /**
28
+ * @@@
29
+ */
30
+ readonly priority: number;
31
+ /**
32
+ * @@@
33
+ */
34
+ readonly maxAttempts: number;
35
+ /**
36
+ * @@@
37
+ */
38
+ readonly preparedContent: TODO_string;
39
+ /**
40
+ * @@@
41
+ */
42
+ readonly parameters: ReadonlyDeep<Parameters>;
43
+ /**
44
+ * @@@
45
+ */
46
+ readonly template: ReadonlyDeep<TemplateJson>;
47
+ /**
48
+ * @@@
49
+ */
50
+ readonly preparedPipeline: ReadonlyDeep<PipelineJson>;
51
+ /**
52
+ * @@@
53
+ */
54
+ readonly tools: Omit<ExecutionTools, 'llm'>;
55
+ /**
56
+ * @@@
57
+ */
58
+ readonly llmTools: MultipleLlmExecutionTools;
59
+ /**
60
+ * Settings for the pipeline executor
61
+ */
62
+ readonly settings: CreatePipelineExecutorSettings;
63
+ /**
64
+ * @@@
65
+ */
66
+ readonly $executionReport: ExecutionReportJson;
67
+ /**
68
+ * @@@
69
+ */
70
+ readonly pipelineIdentification: string;
71
+ };
72
+ /**
73
+ * @@@
74
+ *
75
+ * @private internal utility of `createPipelineExecutor`
76
+ */
77
+ export declare function executeAttempts(options: ExecuteAttemptsOptions): Promise<TODO_any>;
78
+ /**
79
+ * TODO: Break into smaller functions
80
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-server",
3
- "version": "0.69.0-7",
3
+ "version": "0.69.0-8",
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.69.0-7"
50
+ "@promptbook/core": "0.69.0-8"
51
51
  },
52
52
  "dependencies": {
53
53
  "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-6';
17
+ var PROMPTBOOK_VERSION = '0.69.0-7';
18
18
  // TODO: !!!! List here all the versions and annotate + put into script
19
19
 
20
20
  /*! *****************************************************************************
@@ -1,30 +0,0 @@
1
- import type { ReadonlyDeep } from 'type-fest';
2
- import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';
3
- import type { TemplateJson } from '../../types/PipelineJson/TemplateJson';
4
- import type { TODO_any } from '../../utils/organization/TODO_any';
5
- /**
6
- * @@@
7
- *
8
- * @private internal type of `executeFormatCell`
9
- */
10
- type ExecuteFormatCellOptions = {
11
- /**
12
- * @@@
13
- */
14
- readonly preparedPipeline: ReadonlyDeep<PipelineJson>;
15
- /**
16
- * @@@
17
- */
18
- readonly template: ReadonlyDeep<TemplateJson>;
19
- /**
20
- * @@@
21
- */
22
- readonly pipelineIdentification: string;
23
- };
24
- /**
25
- * @@@
26
- *
27
- * @private internal utility of `createPipelineExecutor`
28
- */
29
- export declare function executeFormatCell(options: ExecuteFormatCellOptions): Promise<TODO_any>;
30
- export {};
@@ -1,30 +0,0 @@
1
- import type { ReadonlyDeep } from 'type-fest';
2
- import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';
3
- import type { TemplateJson } from '../../types/PipelineJson/TemplateJson';
4
- import type { TODO_any } from '../../utils/organization/TODO_any';
5
- /**
6
- * @@@
7
- *
8
- * @private internal type of `executeAttempt`
9
- */
10
- type ExecuteAttemptOptions = {
11
- /**
12
- * @@@
13
- */
14
- readonly preparedPipeline: ReadonlyDeep<PipelineJson>;
15
- /**
16
- * @@@
17
- */
18
- readonly template: ReadonlyDeep<TemplateJson>;
19
- /**
20
- * @@@
21
- */
22
- readonly pipelineIdentification: string;
23
- };
24
- /**
25
- * @@@
26
- *
27
- * @private internal utility of `createPipelineExecutor`
28
- */
29
- export declare function executeAttempt(options: ExecuteAttemptOptions): Promise<TODO_any>;
30
- export {};