@promptbook/openai 0.53.0 → 0.54.0
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.
|
@@ -2,6 +2,15 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptb
|
|
|
2
2
|
import { promptbookJsonToString } from '../conversion/promptbookJsonToString';
|
|
3
3
|
import { promptbookStringToJson } from '../conversion/promptbookStringToJson';
|
|
4
4
|
import { validatePromptbookJson } from '../conversion/validation/validatePromptbookJson';
|
|
5
|
+
import { ExpectError } from '../errors/_ExpectError';
|
|
6
|
+
import { PromptbookExecutionError } from '../errors/PromptbookExecutionError';
|
|
7
|
+
import { PromptbookLibraryError } from '../errors/PromptbookLibraryError';
|
|
8
|
+
import { PromptbookLogicError } from '../errors/PromptbookLogicError';
|
|
9
|
+
import { PromptbookNotFoundError } from '../errors/PromptbookNotFoundError';
|
|
10
|
+
import { PromptbookReferenceError } from '../errors/PromptbookReferenceError';
|
|
11
|
+
import { PromptbookSyntaxError } from '../errors/PromptbookSyntaxError';
|
|
12
|
+
import { TemplateError } from '../errors/TemplateError';
|
|
13
|
+
import { UnexpectedError } from '../errors/UnexpectedError';
|
|
5
14
|
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
|
|
6
15
|
import { createPromptbookExecutor } from '../execution/createPromptbookExecutor';
|
|
7
16
|
import { MultipleLlmExecutionTools } from '../execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionTools';
|
|
@@ -27,3 +36,4 @@ export { SimplePromptInterfaceTools };
|
|
|
27
36
|
export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson };
|
|
28
37
|
export { createPromptbookExecutor, MultipleLlmExecutionTools };
|
|
29
38
|
export { CallbackInterfaceTools, CallbackInterfaceToolsOptions };
|
|
39
|
+
export { ExpectError, PromptbookExecutionError, PromptbookLibraryError, PromptbookLogicError, PromptbookNotFoundError, PromptbookReferenceError, PromptbookSyntaxError, TemplateError, UnexpectedError, };
|
|
@@ -23,6 +23,5 @@ import type { client_id, string_char, string_chat_prompt, string_completion_prom
|
|
|
23
23
|
import { FromtoItems } from '../utils/FromtoItems';
|
|
24
24
|
export { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, EXPECTATION_UNITS, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, 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, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
|
|
25
25
|
/**
|
|
26
|
-
* TODO: [🧠][🆔] Is this the best package to export custom errors from?
|
|
27
26
|
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
|
|
28
27
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/openai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
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.
|
|
51
|
+
"@promptbook/core": "0.54.0"
|
|
52
52
|
},
|
|
53
53
|
"main": "./umd/index.umd.js",
|
|
54
54
|
"module": "./esm/index.es.js",
|
|
@@ -2,6 +2,15 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptb
|
|
|
2
2
|
import { promptbookJsonToString } from '../conversion/promptbookJsonToString';
|
|
3
3
|
import { promptbookStringToJson } from '../conversion/promptbookStringToJson';
|
|
4
4
|
import { validatePromptbookJson } from '../conversion/validation/validatePromptbookJson';
|
|
5
|
+
import { ExpectError } from '../errors/_ExpectError';
|
|
6
|
+
import { PromptbookExecutionError } from '../errors/PromptbookExecutionError';
|
|
7
|
+
import { PromptbookLibraryError } from '../errors/PromptbookLibraryError';
|
|
8
|
+
import { PromptbookLogicError } from '../errors/PromptbookLogicError';
|
|
9
|
+
import { PromptbookNotFoundError } from '../errors/PromptbookNotFoundError';
|
|
10
|
+
import { PromptbookReferenceError } from '../errors/PromptbookReferenceError';
|
|
11
|
+
import { PromptbookSyntaxError } from '../errors/PromptbookSyntaxError';
|
|
12
|
+
import { TemplateError } from '../errors/TemplateError';
|
|
13
|
+
import { UnexpectedError } from '../errors/UnexpectedError';
|
|
5
14
|
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
|
|
6
15
|
import { createPromptbookExecutor } from '../execution/createPromptbookExecutor';
|
|
7
16
|
import { MultipleLlmExecutionTools } from '../execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionTools';
|
|
@@ -27,3 +36,4 @@ export { SimplePromptInterfaceTools };
|
|
|
27
36
|
export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson };
|
|
28
37
|
export { createPromptbookExecutor, MultipleLlmExecutionTools };
|
|
29
38
|
export { CallbackInterfaceTools, CallbackInterfaceToolsOptions };
|
|
39
|
+
export { ExpectError, PromptbookExecutionError, PromptbookLibraryError, PromptbookLogicError, PromptbookNotFoundError, PromptbookReferenceError, PromptbookSyntaxError, TemplateError, UnexpectedError, };
|
|
@@ -23,6 +23,5 @@ import type { client_id, string_char, string_chat_prompt, string_completion_prom
|
|
|
23
23
|
import { FromtoItems } from '../utils/FromtoItems';
|
|
24
24
|
export { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, EXPECTATION_UNITS, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, 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, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
|
|
25
25
|
/**
|
|
26
|
-
* TODO: [🧠][🆔] Is this the best package to export custom errors from?
|
|
27
26
|
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
|
|
28
27
|
*/
|