@promptbook/openai 0.56.0-3 → 0.56.0-4

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
@@ -1032,7 +1032,7 @@ var OpenAiExecutionTools = /** @class */ (function () {
1032
1032
  /**
1033
1033
  * The version of the Promptbook library
1034
1034
  */
1035
- var PROMPTBOOK_VERSION = '0.56.0-2';
1035
+ var PROMPTBOOK_VERSION = '0.56.0-3';
1036
1036
 
1037
1037
  export { OPENAI_MODELS, OpenAiExecutionTools, PROMPTBOOK_VERSION };
1038
1038
  //# sourceMappingURL=index.es.js.map
@@ -20,20 +20,19 @@ import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-
20
20
  import { addUsage } from '../execution/utils/addUsage';
21
21
  import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
22
22
  import { usageToWorktime } from '../execution/utils/usageToWorktime';
23
+ import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
23
24
  import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
24
25
  import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl';
25
26
  import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
26
- import { justTestFsImport } from '../library/constructors/justTestFsImport';
27
27
  import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
28
28
  import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';
29
29
  import { ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
30
30
  import { ExecutionTypes } from '../types/ExecutionTypes';
31
31
  import { PROMPTBOOK_VERSION } from '../version';
32
32
  export { PROMPTBOOK_VERSION };
33
- export { justTestFsImport };
34
33
  export { ExecutionTypes };
35
34
  export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, usageToWorktime, };
36
- export { createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
35
+ export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
37
36
  export { SimplePromptInterfaceTools };
38
37
  export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson };
39
38
  export { createPromptbookExecutor, MultipleLlmExecutionTools };
@@ -22,7 +22,9 @@ import type { string_char_emoji } from '../types/typeAliasEmoji';
22
22
  import type { client_id, string_char, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version } from '../types/typeAliases';
23
23
  import type { FromtoItems } from '../utils/FromtoItems';
24
24
  import { PROMPTBOOK_VERSION } from '../version';
25
- export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, EXPECTATION_UNITS, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, Prompt, PROMPTBOOK_VERSION, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
25
+ export { PROMPTBOOK_VERSION };
26
+ export { EXPECTATION_UNITS };
27
+ export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
26
28
  /**
27
29
  * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
28
30
  */
@@ -18,6 +18,6 @@ import type { PromptbookLibrary } from '../PromptbookLibrary';
18
18
  *
19
19
  * @param promptbookSourcesPromiseOrFactory
20
20
  * @returns PromptbookLibrary
21
- * @private Just internal tool for other constructor functions
21
+ * @deprecated Do not use, it will became internal tool for other constructor functions
22
22
  */
23
23
  export declare function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory: Promise<Array<PromptbookJson | PromptbookString>> | (() => Promise<Array<PromptbookJson | PromptbookString>>)): PromptbookLibrary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/openai",
3
- "version": "0.56.0-3",
3
+ "version": "0.56.0-4",
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.56.0-3"
51
+ "@promptbook/core": "0.56.0-4"
52
52
  },
53
53
  "main": "./umd/index.umd.js",
54
54
  "module": "./esm/index.es.js",
package/umd/index.umd.js CHANGED
@@ -1040,7 +1040,7 @@
1040
1040
  /**
1041
1041
  * The version of the Promptbook library
1042
1042
  */
1043
- var PROMPTBOOK_VERSION = '0.56.0-2';
1043
+ var PROMPTBOOK_VERSION = '0.56.0-3';
1044
1044
 
1045
1045
  exports.OPENAI_MODELS = OPENAI_MODELS;
1046
1046
  exports.OpenAiExecutionTools = OpenAiExecutionTools;
@@ -20,20 +20,19 @@ import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-
20
20
  import { addUsage } from '../execution/utils/addUsage';
21
21
  import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
22
22
  import { usageToWorktime } from '../execution/utils/usageToWorktime';
23
+ import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
23
24
  import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
24
25
  import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl';
25
26
  import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
26
- import { justTestFsImport } from '../library/constructors/justTestFsImport';
27
27
  import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
28
28
  import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';
29
29
  import { ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
30
30
  import { ExecutionTypes } from '../types/ExecutionTypes';
31
31
  import { PROMPTBOOK_VERSION } from '../version';
32
32
  export { PROMPTBOOK_VERSION };
33
- export { justTestFsImport };
34
33
  export { ExecutionTypes };
35
34
  export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, usageToWorktime, };
36
- export { createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
35
+ export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
37
36
  export { SimplePromptInterfaceTools };
38
37
  export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson };
39
38
  export { createPromptbookExecutor, MultipleLlmExecutionTools };
@@ -22,7 +22,9 @@ import type { string_char_emoji } from '../types/typeAliasEmoji';
22
22
  import type { client_id, string_char, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version } from '../types/typeAliases';
23
23
  import type { FromtoItems } from '../utils/FromtoItems';
24
24
  import { PROMPTBOOK_VERSION } from '../version';
25
- export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, EXPECTATION_UNITS, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, Prompt, PROMPTBOOK_VERSION, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
25
+ export { PROMPTBOOK_VERSION };
26
+ export { EXPECTATION_UNITS };
27
+ export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
26
28
  /**
27
29
  * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
28
30
  */
@@ -18,6 +18,6 @@ import type { PromptbookLibrary } from '../PromptbookLibrary';
18
18
  *
19
19
  * @param promptbookSourcesPromiseOrFactory
20
20
  * @returns PromptbookLibrary
21
- * @private Just internal tool for other constructor functions
21
+ * @deprecated Do not use, it will became internal tool for other constructor functions
22
22
  */
23
23
  export declare function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory: Promise<Array<PromptbookJson | PromptbookString>> | (() => Promise<Array<PromptbookJson | PromptbookString>>)): PromptbookLibrary;