@promptbook/types 0.63.0 → 0.63.1

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.
@@ -1,6 +1,7 @@
1
1
  declare const _default: ({
2
- title: string;
3
2
  pipelineUrl: string;
3
+ sourceFile: string;
4
+ title: string;
4
5
  promptbookVersion: string;
5
6
  parameters: {
6
7
  name: string;
@@ -78,10 +79,10 @@ declare const _default: ({
78
79
  };
79
80
  };
80
81
  }[];
81
- sourceFile: string;
82
82
  } | {
83
- title: string;
84
83
  pipelineUrl: string;
84
+ sourceFile: string;
85
+ title: string;
85
86
  promptbookVersion: string;
86
87
  parameters: {
87
88
  name: string;
@@ -165,10 +166,10 @@ declare const _default: ({
165
166
  };
166
167
  };
167
168
  }[];
168
- sourceFile: string;
169
169
  } | {
170
- title: string;
171
170
  pipelineUrl: string;
171
+ sourceFile: string;
172
+ title: string;
172
173
  promptbookVersion: string;
173
174
  parameters: {
174
175
  name: string;
@@ -247,6 +248,5 @@ declare const _default: ({
247
248
  };
248
249
  };
249
250
  }[];
250
- sourceFile: string;
251
251
  })[];
252
252
  export default _default;
@@ -7,6 +7,7 @@ import { titleToName } from '../conversion/utils/titleToName';
7
7
  import { forEachAsync } from '../execution/utils/forEachAsync';
8
8
  import { isValidJsonString } from '../formats/json/utils/isValidJsonString';
9
9
  import { extractBlock } from '../postprocessing/utils/extractBlock';
10
+ import { clonePipeline } from '../utils/clonePipeline';
10
11
  import { $currentDate } from '../utils/currentDate';
11
12
  import { deepClone } from '../utils/deepClone';
12
13
  import { deepFreeze } from '../utils/deepFreeze';
@@ -74,6 +75,7 @@ export { titleToName };
74
75
  export { forEachAsync };
75
76
  export { isValidJsonString };
76
77
  export { extractBlock };
78
+ export { clonePipeline };
77
79
  export { $currentDate };
78
80
  export { deepClone };
79
81
  export { deepFreeze };
@@ -18,7 +18,7 @@ export declare class MultipleLlmExecutionTools implements LlmExecutionTools {
18
18
  /**
19
19
  * Array of execution tools in order of priority
20
20
  */
21
- private llmExecutionTools;
21
+ private readonly llmExecutionTools;
22
22
  /**
23
23
  * Gets array of execution tools in order of priority
24
24
  */
@@ -0,0 +1,13 @@
1
+ import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
2
+ /**
3
+ * @@@
4
+ *
5
+ * Note: It is usefull @@@
6
+ *
7
+ * @param pipeline
8
+ * @public exported from `@promptbook/utils`
9
+ */
10
+ export declare function clonePipeline(pipeline: PipelineJson): PipelineJson;
11
+ /**
12
+ * TODO: [🍙] Make some standart order of json properties
13
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/types",
3
- "version": "0.63.0",
3
+ "version": "0.63.1",
4
4
  "description": "Supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -45,6 +45,6 @@
45
45
  ],
46
46
  "typings": "./esm/typings/src/_packages/types.index.d.ts",
47
47
  "peerDependencies": {
48
- "@promptbook/core": "0.63.0"
48
+ "@promptbook/core": "0.63.1"
49
49
  }
50
50
  }