@promptbook/types 0.63.0 → 0.63.2

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;
@@ -36,6 +36,7 @@ import type { LlmExecutionToolsWithTotalUsage } from '../llm-providers/_common/u
36
36
  import type { AnthropicClaudeExecutionToolsOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
37
37
  import type { AzureOpenAiExecutionToolsOptions } from '../llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions';
38
38
  import type { LangtailExecutionToolsOptions } from '../llm-providers/langtail/LangtailExecutionToolsOptions';
39
+ import type { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlmExecutionTools';
39
40
  import type { OpenAiExecutionToolsOptions } from '../llm-providers/openai/OpenAiExecutionToolsOptions';
40
41
  import type { Promptbook_Server_Error } from '../llm-providers/remote/interfaces/Promptbook_Server_Error';
41
42
  import type { Promptbook_Server_Progress } from '../llm-providers/remote/interfaces/Promptbook_Server_Progress';
@@ -242,6 +243,7 @@ export type { LlmExecutionToolsWithTotalUsage };
242
243
  export type { AnthropicClaudeExecutionToolsOptions };
243
244
  export type { AzureOpenAiExecutionToolsOptions };
244
245
  export type { LangtailExecutionToolsOptions };
246
+ export type { MultipleLlmExecutionTools };
245
247
  export type { OpenAiExecutionToolsOptions };
246
248
  export type { Promptbook_Server_Error };
247
249
  export type { Promptbook_Server_Progress };
@@ -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 };
@@ -12,13 +12,14 @@ import type { string_title } from '../../types/typeAliases';
12
12
  /**
13
13
  * Multiple LLM Execution Tools is a proxy server that uses multiple execution tools internally and exposes the executor interface externally.
14
14
  *
15
- * @private internal utility of `joinLlmExecutionTools`
15
+ * Note: Internal utility of `joinLlmExecutionTools` but exposed type
16
+ * @public exported from `@promptbook/types`
16
17
  */
17
18
  export declare class MultipleLlmExecutionTools implements LlmExecutionTools {
18
19
  /**
19
20
  * Array of execution tools in order of priority
20
21
  */
21
- private llmExecutionTools;
22
+ private readonly llmExecutionTools;
22
23
  /**
23
24
  * Gets array of execution tools in order of priority
24
25
  */
@@ -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.2",
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.2"
49
49
  }
50
50
  }