@promptbook/openai 0.39.4 → 0.40.0-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.
@@ -1,3 +1,5 @@
1
+ import { ExpectError } from '../errors/ExpectError';
2
+ import { NotFoundError } from '../errors/NotFoundError';
1
3
  import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
2
4
  import type { ExecutionTools } from '../execution/ExecutionTools';
3
5
  import type { NaturalExecutionTools } from '../execution/NaturalExecutionTools';
@@ -21,6 +23,8 @@ import type { string_char_emoji } from '../types/typeAliasEmoji';
21
23
  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';
22
24
  import { FromtoItems } from '../utils/FromtoItems';
23
25
  export { CommonExecutionToolsOptions, EXPECTATION_UNITS, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, ExpectationUnit, FromtoItems, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, client_id, 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, };
26
+ export { ExpectError, NotFoundError };
24
27
  /**
25
- * TODO: Delete type aliases that are not exported here
28
+ * TODO: [🧠] Is this the best package to export custom errors from?
29
+ * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
26
30
  */
@@ -5,6 +5,3 @@ export declare class ExpectError extends Error {
5
5
  readonly name = "ExpectError";
6
6
  constructor(message: string);
7
7
  }
8
- /**
9
- * TODO: [🧠] Should be this exported from the library
10
- */
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This error !!!
3
+ */
4
+ export declare class NotFoundError extends Error {
5
+ readonly name = "NotFoundError";
6
+ constructor(message: string);
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/openai",
3
- "version": "0.39.4",
3
+ "version": "0.40.0-0",
4
4
  "description": "Library to supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -37,7 +37,7 @@
37
37
  "openai": "4.2.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@promptbook/core": "0.39.4"
40
+ "@promptbook/core": "0.40.0-0"
41
41
  },
42
42
  "main": "./umd/index.umd.js",
43
43
  "module": "./esm/index.es.js",
@@ -1,3 +1,5 @@
1
+ import { ExpectError } from '../errors/ExpectError';
2
+ import { NotFoundError } from '../errors/NotFoundError';
1
3
  import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
2
4
  import type { ExecutionTools } from '../execution/ExecutionTools';
3
5
  import type { NaturalExecutionTools } from '../execution/NaturalExecutionTools';
@@ -21,6 +23,8 @@ import type { string_char_emoji } from '../types/typeAliasEmoji';
21
23
  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';
22
24
  import { FromtoItems } from '../utils/FromtoItems';
23
25
  export { CommonExecutionToolsOptions, EXPECTATION_UNITS, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, ExpectationUnit, FromtoItems, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, client_id, 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, };
26
+ export { ExpectError, NotFoundError };
24
27
  /**
25
- * TODO: Delete type aliases that are not exported here
28
+ * TODO: [🧠] Is this the best package to export custom errors from?
29
+ * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
26
30
  */
@@ -5,6 +5,3 @@ export declare class ExpectError extends Error {
5
5
  readonly name = "ExpectError";
6
6
  constructor(message: string);
7
7
  }
8
- /**
9
- * TODO: [🧠] Should be this exported from the library
10
- */
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This error !!!
3
+ */
4
+ export declare class NotFoundError extends Error {
5
+ readonly name = "NotFoundError";
6
+ constructor(message: string);
7
+ }