@promptbook/remote-client
Advanced tools
Comparing version 0.55.0 to 0.56.0-3
@@ -156,3 +156,8 @@ import { io } from 'socket.io-client'; | ||
export { RemoteLlmExecutionTools }; | ||
/** | ||
* The version of the Promptbook library | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.56.0-2'; | ||
export { PROMPTBOOK_VERSION, RemoteLlmExecutionTools }; | ||
//# sourceMappingURL=index.es.js.map |
import { AnthropicClaudeExecutionTools } from '../execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionTools'; | ||
import { AnthropicClaudeExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { AnthropicClaudeExecutionTools, AnthropicClaudeExecutionToolsOptions }; |
import { AzureOpenAiExecutionTools } from '../execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionTools'; | ||
import { AzureOpenAiExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { AzureOpenAiExecutionTools, AzureOpenAiExecutionToolsOptions }; |
import { prettifyPromptbookStringCli } from '../conversion/prettify/prettifyPromptbookStringCli'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
/** | ||
@@ -3,0 +5,0 @@ * Hidden utilities which should not be used by external consumers. |
@@ -23,3 +23,2 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { usageToWorktime } from '../execution/utils/usageToWorktime'; | ||
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory'; | ||
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources'; | ||
@@ -34,6 +33,7 @@ import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { justTestFsImport }; | ||
export { ExecutionTypes, PROMPTBOOK_VERSION }; | ||
export { ExecutionTypes }; | ||
export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, usageToWorktime, }; | ||
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { SimplePromptInterfaceTools }; | ||
@@ -40,0 +40,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson }; |
@@ -22,2 +22,4 @@ import spaceTrim from 'spacetrim'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
declare const POSTPROCESSING_FUNCTIONS: { | ||
@@ -24,0 +26,0 @@ spaceTrim: typeof spaceTrim; |
import { LangtailExecutionTools } from '../execution/plugins/llm-execution-tools/langtail/LangtailExecutionTools'; | ||
import { LangtailExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/langtail/LangtailExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { LangtailExecutionTools, LangtailExecutionToolsOptions }; |
import { OPENAI_MODELS } from '../execution/plugins/llm-execution-tools/openai/openai-models'; | ||
import { OpenAiExecutionTools } from '../execution/plugins/llm-execution-tools/openai/OpenAiExecutionTools'; | ||
import { OpenAiExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/openai/OpenAiExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { OPENAI_MODELS, OpenAiExecutionTools, OpenAiExecutionToolsOptions }; |
import { RemoteServerOptions } from '../execution/plugins/llm-execution-tools/remote/interfaces/RemoteServerOptions'; | ||
import { RemoteLlmExecutionTools } from '../execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionTools'; | ||
import { RemoteLlmExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { RemoteLlmExecutionTools, RemoteLlmExecutionToolsOptions, RemoteServerOptions }; |
import { RemoteServerOptions } from '../execution/plugins/llm-execution-tools/remote/interfaces/RemoteServerOptions'; | ||
import { startRemoteServer } from '../execution/plugins/llm-execution-tools/remote/startRemoteServer'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { RemoteServerOptions, startRemoteServer }; |
@@ -23,6 +23,7 @@ import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions'; | ||
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'; | ||
import { FromtoItems } from '../utils/FromtoItems'; | ||
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, 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, }; | ||
import type { FromtoItems } from '../utils/FromtoItems'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
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, }; | ||
/** | ||
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here | ||
*/ |
@@ -50,3 +50,4 @@ import { spaceTrim } from 'spacetrim'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
export { forEachAsync }; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { forEachAsync, PROMPTBOOK_VERSION }; | ||
export { extractAllBlocksFromMarkdown, // <- [๐ป] | ||
@@ -53,0 +54,0 @@ extractAllListItemsFromMarkdown, extractBlock, // <- [๐ป] |
@@ -13,4 +13,3 @@ import type { Expectations } from '../../../../types/PromptbookJson/PromptTemplateJson'; | ||
/** | ||
* TODO: [๐] Implement better - create FakeLLM from this | ||
* TODO: [๐] Unite object for expecting amount and format - use here also a format | ||
*/ |
@@ -44,11 +44,1 @@ import type { string_folder_path } from '../../types/typeAliases'; | ||
export {}; | ||
/*** | ||
* TODO: [๐ง ] Maybe do not do hacks like [1] and just create package @promptbook/node | ||
* [๐][๐ฏ] maybe make `@promptbook/library` package | ||
* TODO: Fix the dynamic import issue in Webpack (! Not working !) | ||
* > ./node_modules/@promptbook/core/esm/index.es.js | ||
* > Critical dependency: the request of a dependency is an expression | ||
* | ||
* Note: [1] Using require(just('fs/promises')) to allow | ||
* the `@promptbook/core` work for both Node.js and browser environments | ||
*/ |
@@ -24,4 +24,1 @@ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
export declare function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory: Promise<Array<PromptbookJson | PromptbookString>> | (() => Promise<Array<PromptbookJson | PromptbookString>>)): PromptbookLibrary; | ||
/*** | ||
* TODO: [๐][๐ฏ] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
@@ -14,4 +14,1 @@ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
export declare function createPromptbookLibraryFromSources(...promptbookSources: Array<PromptbookJson | PromptbookString>): SimplePromptbookLibrary; | ||
/*** | ||
* TODO: [๐][๐ฏ] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
@@ -27,5 +27,1 @@ import type { string_url } from '../../types/typeAliases'; | ||
export {}; | ||
/*** | ||
* TODO: [โ] Compatible with remote server | ||
* TODO: [๐][๐ฏ] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
@@ -13,4 +13,1 @@ import type { string_promptbook_url } from '../../types/typeAliases'; | ||
export declare function createPromptbookSublibrary(library: PromptbookLibrary, predicate: (url: string_promptbook_url) => boolean): PromptbookLibrary; | ||
/*** | ||
* TODO: [๐][๐ฏ] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
{ | ||
"name": "@promptbook/remote-client", | ||
"version": "0.55.0", | ||
"version": "0.56.0-3", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.55.0" | ||
"@promptbook/core": "0.56.0-3" | ||
}, | ||
@@ -53,0 +53,0 @@ "main": "./umd/index.umd.js", |
@@ -318,2 +318,3 @@ # ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook | ||
- **[@promptbook/core](https://www.npmjs.com/package/@promptbook/core)** - Core of the library, it contains the main logic for promptbooks | ||
- **[@promptbook/node](https://www.npmjs.com/package/@promptbook/node)** - Core of the library for Node.js | ||
- โญ **[@promptbook/utils](https://www.npmjs.com/package/@promptbook/utils)** - Utility functions used in the library but also useful for individual use in preprocessing and postprocessing LLM inputs and outputs | ||
@@ -326,3 +327,3 @@ - _(Not finished)_ **[@promptbook/wizzard](https://www.npmjs.com/package/@promptbook/wizzard)** - Wizard for creating+running promptbooks in single line | ||
- **[@promptbook/langtail](https://www.npmjs.com/package/@promptbook/langtail)** - Execution tools for Langtail API, wrapper around Langtail SDK | ||
- **[@promptbook/mock](https://www.npmjs.com/package/@promptbook/mock)** - Mocked execution tools for testing the library and saving the tokens | ||
- **[@promptbook/fake-llm](https://www.npmjs.com/package/@promptbook/fake-llm)** - Mocked execution tools for testing the library and saving the tokens | ||
- **[@promptbook/remote-client](https://www.npmjs.com/package/@promptbook/remote-client)** - Remote client for remote execution of promptbooks | ||
@@ -512,3 +513,3 @@ - **[@promptbook/remote-server](https://www.npmjs.com/package/@promptbook/remote-server)** - Remote server for remote execution of promptbooks | ||
### ๐ Jokers (conditions) | ||
### ๐ Jokers (conditions) | ||
@@ -515,0 +516,0 @@ Joker is a previously defined parameter that is used to bypass some parts of the pipeline. |
@@ -160,2 +160,8 @@ (function (global, factory) { | ||
/** | ||
* The version of the Promptbook library | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.56.0-2'; | ||
exports.PROMPTBOOK_VERSION = PROMPTBOOK_VERSION; | ||
exports.RemoteLlmExecutionTools = RemoteLlmExecutionTools; | ||
@@ -162,0 +168,0 @@ |
import { AnthropicClaudeExecutionTools } from '../execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionTools'; | ||
import { AnthropicClaudeExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { AnthropicClaudeExecutionTools, AnthropicClaudeExecutionToolsOptions }; |
import { AzureOpenAiExecutionTools } from '../execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionTools'; | ||
import { AzureOpenAiExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { AzureOpenAiExecutionTools, AzureOpenAiExecutionToolsOptions }; |
import { prettifyPromptbookStringCli } from '../conversion/prettify/prettifyPromptbookStringCli'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
/** | ||
@@ -3,0 +5,0 @@ * Hidden utilities which should not be used by external consumers. |
@@ -23,3 +23,2 @@ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString'; | ||
import { usageToWorktime } from '../execution/utils/usageToWorktime'; | ||
import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory'; | ||
import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources'; | ||
@@ -34,6 +33,7 @@ import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { justTestFsImport }; | ||
export { ExecutionTypes, PROMPTBOOK_VERSION }; | ||
export { ExecutionTypes }; | ||
export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, usageToWorktime, }; | ||
export { createPromptbookLibraryFromDirectory, createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, }; | ||
export { SimplePromptInterfaceTools }; | ||
@@ -40,0 +40,0 @@ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson }; |
@@ -22,2 +22,4 @@ import spaceTrim from 'spacetrim'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
declare const POSTPROCESSING_FUNCTIONS: { | ||
@@ -24,0 +26,0 @@ spaceTrim: typeof spaceTrim; |
import { LangtailExecutionTools } from '../execution/plugins/llm-execution-tools/langtail/LangtailExecutionTools'; | ||
import { LangtailExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/langtail/LangtailExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { LangtailExecutionTools, LangtailExecutionToolsOptions }; |
import { OPENAI_MODELS } from '../execution/plugins/llm-execution-tools/openai/openai-models'; | ||
import { OpenAiExecutionTools } from '../execution/plugins/llm-execution-tools/openai/OpenAiExecutionTools'; | ||
import { OpenAiExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/openai/OpenAiExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { OPENAI_MODELS, OpenAiExecutionTools, OpenAiExecutionToolsOptions }; |
import { RemoteServerOptions } from '../execution/plugins/llm-execution-tools/remote/interfaces/RemoteServerOptions'; | ||
import { RemoteLlmExecutionTools } from '../execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionTools'; | ||
import { RemoteLlmExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionToolsOptions'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { RemoteLlmExecutionTools, RemoteLlmExecutionToolsOptions, RemoteServerOptions }; |
import { RemoteServerOptions } from '../execution/plugins/llm-execution-tools/remote/interfaces/RemoteServerOptions'; | ||
import { startRemoteServer } from '../execution/plugins/llm-execution-tools/remote/startRemoteServer'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { PROMPTBOOK_VERSION }; | ||
export { RemoteServerOptions, startRemoteServer }; |
@@ -23,6 +23,7 @@ import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions'; | ||
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'; | ||
import { FromtoItems } from '../utils/FromtoItems'; | ||
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, 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, }; | ||
import type { FromtoItems } from '../utils/FromtoItems'; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
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, }; | ||
/** | ||
* TODO: Delete type aliases (from ../types/typeAliases) that are not exported here | ||
*/ |
@@ -50,3 +50,4 @@ import { spaceTrim } from 'spacetrim'; | ||
import { unwrapResult } from '../utils/unwrapResult'; | ||
export { forEachAsync }; | ||
import { PROMPTBOOK_VERSION } from '../version'; | ||
export { forEachAsync, PROMPTBOOK_VERSION }; | ||
export { extractAllBlocksFromMarkdown, // <- [๐ป] | ||
@@ -53,0 +54,0 @@ extractAllListItemsFromMarkdown, extractBlock, // <- [๐ป] |
@@ -13,4 +13,3 @@ import type { Expectations } from '../../../../types/PromptbookJson/PromptTemplateJson'; | ||
/** | ||
* TODO: [๐] Implement better - create FakeLLM from this | ||
* TODO: [๐] Unite object for expecting amount and format - use here also a format | ||
*/ |
@@ -44,11 +44,1 @@ import type { string_folder_path } from '../../types/typeAliases'; | ||
export {}; | ||
/*** | ||
* TODO: [๐ง ] Maybe do not do hacks like [1] and just create package @promptbook/node | ||
* [๐][๐ฏ] maybe make `@promptbook/library` package | ||
* TODO: Fix the dynamic import issue in Webpack (! Not working !) | ||
* > ./node_modules/@promptbook/core/esm/index.es.js | ||
* > Critical dependency: the request of a dependency is an expression | ||
* | ||
* Note: [1] Using require(just('fs/promises')) to allow | ||
* the `@promptbook/core` work for both Node.js and browser environments | ||
*/ |
@@ -24,4 +24,1 @@ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
export declare function createPromptbookLibraryFromPromise(promptbookSourcesPromiseOrFactory: Promise<Array<PromptbookJson | PromptbookString>> | (() => Promise<Array<PromptbookJson | PromptbookString>>)): PromptbookLibrary; | ||
/*** | ||
* TODO: [๐][๐ฏ] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
@@ -14,4 +14,1 @@ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
export declare function createPromptbookLibraryFromSources(...promptbookSources: Array<PromptbookJson | PromptbookString>): SimplePromptbookLibrary; | ||
/*** | ||
* TODO: [๐][๐ฏ] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
@@ -27,5 +27,1 @@ import type { string_url } from '../../types/typeAliases'; | ||
export {}; | ||
/*** | ||
* TODO: [โ] Compatible with remote server | ||
* TODO: [๐][๐ฏ] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
@@ -13,4 +13,1 @@ import type { string_promptbook_url } from '../../types/typeAliases'; | ||
export declare function createPromptbookSublibrary(library: PromptbookLibrary, predicate: (url: string_promptbook_url) => boolean): PromptbookLibrary; | ||
/*** | ||
* TODO: [๐][๐ฏ] !!! Add to README and samples + maybe make `@promptbook/library` package | ||
*/ |
Sorry, the diff of this file is not supported yet
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
464306
534
7987
701