@promptbook/node
Advanced tools
Comparing version 0.59.0-21 to 0.59.0-23
@@ -1,2 +0,2 @@ | ||
import { prettifyPromptbookStringCli } from '../conversion/prettify/prettifyPromptbookStringCli'; | ||
import { promptbookCli } from '../cli/promptbookCli'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
@@ -8,4 +8,4 @@ export { PROMPTBOOK_VERSION }; | ||
declare const __: { | ||
prettifyPromptbookStringCli: typeof prettifyPromptbookStringCli; | ||
promptbookCli: typeof promptbookCli; | ||
}; | ||
export { __ }; |
@@ -23,7 +23,7 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { prepareKnowledgeFromMarkdown } from '../knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown'; | ||
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise'; | ||
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources'; | ||
import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl'; | ||
import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary'; | ||
import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary'; | ||
import { createLibraryFromJson } from '../library/constructors/createLibraryFromJson'; | ||
import { createLibraryFromPromise } from '../library/constructors/createLibraryFromPromise'; | ||
import { createLibraryFromUrl } from '../library/constructors/createLibraryFromUrl'; | ||
import { createSublibrary } from '../library/constructors/createSublibrary'; | ||
import { libraryToJson } from '../library/libraryToJson'; | ||
import { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlmExecutionTools'; | ||
@@ -38,3 +38,3 @@ import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString'; | ||
export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prepareKnowledgeFromMarkdown, prettifyPromptbookString, usageToWorktime, }; | ||
export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { createLibraryFromJson, createLibraryFromPromise, createLibraryFromUrl, createSublibrary, libraryToJson }; | ||
export { SimplePromptInterfaceTools }; | ||
@@ -41,0 +41,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson }; |
@@ -1,4 +0,4 @@ | ||
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory'; | ||
import { createLibraryFromDirectory } from '../library/constructors/createLibraryFromDirectory'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { createPromptbookLibraryFromDirectory }; | ||
export { createLibraryFromDirectory }; |
@@ -9,2 +9,3 @@ import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions'; | ||
import type { PromptbookLibrary } from '../library/PromptbookLibrary'; | ||
import type { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary'; | ||
import type { ExecutionType } from '../types/ExecutionTypes'; | ||
@@ -30,5 +31,5 @@ import type { ModelRequirements, ModelVariant } from '../types/ModelRequirements'; | ||
export { EXPECTATION_UNITS }; | ||
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, 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, }; | ||
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimplePromptbookLibrary, 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, }; | ||
/** | ||
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here | ||
*/ |
@@ -9,2 +9,3 @@ import type { Prompt } from '../types/Prompt'; | ||
* | ||
* @private use `createLibraryFromJson` instead | ||
* @see https://github.com/webgptorg/promptbook#promptbook-library | ||
@@ -19,4 +20,5 @@ */ | ||
* | ||
* @private Use instead `createLibraryFromJson` | ||
* Note: During the construction logic of all promptbooks are validated | ||
* Note: It is not recommended to use this constructor directly, use `createPromptbookLibraryFromSources` *(or other variant)* instead | ||
* Note: It is not recommended to use this constructor directly, use `createLibraryFromJson` *(or other variant)* instead | ||
*/ | ||
@@ -23,0 +25,0 @@ constructor(...promptbooks: Array<PromptbookJson>); |
@@ -13,3 +13,3 @@ import type { IDestroyable } from 'destroyable'; | ||
/** | ||
* TODO: [β] Expose the library to be able to connect to same library via createPromptbookLibraryFromUrl | ||
* TODO: [β] Expose the library to be able to connect to same library via createLibraryFromUrl | ||
* TODO: Handle progress - support streaming | ||
@@ -16,0 +16,0 @@ * TODO: [π€ΉββοΈ] Do not hang up immediately but wait until client closes OR timeout |
{ | ||
"name": "@promptbook/node", | ||
"version": "0.59.0-21", | ||
"version": "0.59.0-23", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -51,3 +51,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.59.0-21" | ||
"@promptbook/core": "0.59.0-23" | ||
}, | ||
@@ -54,0 +54,0 @@ "main": "./umd/index.umd.js", |
@@ -1,2 +0,2 @@ | ||
import { prettifyPromptbookStringCli } from '../conversion/prettify/prettifyPromptbookStringCli'; | ||
import { promptbookCli } from '../cli/promptbookCli'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
@@ -8,4 +8,4 @@ export { PROMPTBOOK_VERSION }; | ||
declare const __: { | ||
prettifyPromptbookStringCli: typeof prettifyPromptbookStringCli; | ||
promptbookCli: typeof promptbookCli; | ||
}; | ||
export { __ }; |
@@ -23,7 +23,7 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { prepareKnowledgeFromMarkdown } from '../knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown'; | ||
import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise'; | ||
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources'; | ||
import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl'; | ||
import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary'; | ||
import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary'; | ||
import { createLibraryFromJson } from '../library/constructors/createLibraryFromJson'; | ||
import { createLibraryFromPromise } from '../library/constructors/createLibraryFromPromise'; | ||
import { createLibraryFromUrl } from '../library/constructors/createLibraryFromUrl'; | ||
import { createSublibrary } from '../library/constructors/createSublibrary'; | ||
import { libraryToJson } from '../library/libraryToJson'; | ||
import { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlmExecutionTools'; | ||
@@ -38,3 +38,3 @@ import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString'; | ||
export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prepareKnowledgeFromMarkdown, prettifyPromptbookString, usageToWorktime, }; | ||
export { createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { createLibraryFromJson, createLibraryFromPromise, createLibraryFromUrl, createSublibrary, libraryToJson }; | ||
export { SimplePromptInterfaceTools }; | ||
@@ -41,0 +41,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson }; |
@@ -1,4 +0,4 @@ | ||
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory'; | ||
import { createLibraryFromDirectory } from '../library/constructors/createLibraryFromDirectory'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { createPromptbookLibraryFromDirectory }; | ||
export { createLibraryFromDirectory }; |
@@ -9,2 +9,3 @@ import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions'; | ||
import type { PromptbookLibrary } from '../library/PromptbookLibrary'; | ||
import type { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary'; | ||
import type { ExecutionType } from '../types/ExecutionTypes'; | ||
@@ -30,5 +31,5 @@ import type { ModelRequirements, ModelVariant } from '../types/ModelRequirements'; | ||
export { EXPECTATION_UNITS }; | ||
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, 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, }; | ||
export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, KnowledgeJson, LlmExecutionTools, LlmTemplateJson, MaterialKnowledgePieceJson, ModelRequirements, ModelVariant, Parameters, Prompt, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimplePromptbookLibrary, 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, }; | ||
/** | ||
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here | ||
*/ |
@@ -9,2 +9,3 @@ import type { Prompt } from '../types/Prompt'; | ||
* | ||
* @private use `createLibraryFromJson` instead | ||
* @see https://github.com/webgptorg/promptbook#promptbook-library | ||
@@ -19,4 +20,5 @@ */ | ||
* | ||
* @private Use instead `createLibraryFromJson` | ||
* Note: During the construction logic of all promptbooks are validated | ||
* Note: It is not recommended to use this constructor directly, use `createPromptbookLibraryFromSources` *(or other variant)* instead | ||
* Note: It is not recommended to use this constructor directly, use `createLibraryFromJson` *(or other variant)* instead | ||
*/ | ||
@@ -23,0 +25,0 @@ constructor(...promptbooks: Array<PromptbookJson>); |
@@ -13,3 +13,3 @@ import type { IDestroyable } from 'destroyable'; | ||
/** | ||
* TODO: [β] Expose the library to be able to connect to same library via createPromptbookLibraryFromUrl | ||
* TODO: [β] Expose the library to be able to connect to same library via createLibraryFromUrl | ||
* TODO: Handle progress - support streaming | ||
@@ -16,0 +16,0 @@ * TODO: [π€ΉββοΈ] Do not hang up immediately but wait until client closes OR timeout |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
576
970940
15112