@promptbook/remote-client
Advanced tools
Comparing version 0.52.0 to 0.53.0
@@ -1,2 +0,2 @@ | ||
import { PromptbookString } from '../../types/PromptbookString'; | ||
import type { PromptbookString } from '../../types/PromptbookString'; | ||
import type { PrettifyOptions } from './PrettifyOptions'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,3 @@ | ||
import type { PromptbookJson, PromptTemplateJson } from '../../_packages/types.index'; | ||
import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import type { PromptTemplateJson } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import type { string_href } from '../../types/typeAliases'; | ||
@@ -3,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { PromptTemplateJson } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import { string_name } from '../../types/typeAliases'; | ||
import type { PromptTemplateJson } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import type { string_name } from '../../types/typeAliases'; | ||
/** | ||
@@ -13,2 +13,2 @@ * Parses the prompt template and returns the set of all used parameters | ||
* TODO: [🔣] If script require contentLanguage | ||
*/ | ||
*/ |
@@ -1,2 +0,3 @@ | ||
import { string_javascript, string_javascript_name } from '../../types/typeAliases'; | ||
import type { string_javascript } from '../../types/typeAliases'; | ||
import type { string_javascript_name } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Parses the given script and returns the list of all used variables that are not defined in the script |
@@ -1,3 +0,3 @@ | ||
import { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import { PromptbookString } from '../../types/PromptbookString'; | ||
import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import type { PromptbookString } from '../../types/PromptbookString'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Import the text file |
@@ -1,4 +0,4 @@ | ||
import { PromptbookJson } from '../_packages/types.index'; | ||
import { ExecutionTools } from './ExecutionTools'; | ||
import { PromptbookExecutor } from './PromptbookExecutor'; | ||
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson'; | ||
import type { ExecutionTools } from './ExecutionTools'; | ||
import type { PromptbookExecutor } from './PromptbookExecutor'; | ||
type CreatePromptbookExecutorSettings = { | ||
@@ -5,0 +5,0 @@ /** |
import type { Promisable } from 'type-fest'; | ||
import type { ModelVariant } from '../types/ModelRequirements'; | ||
import type { Prompt } from '../types/Prompt'; | ||
import type { string_model_name, string_title } from '../types/typeAliases'; | ||
import type { PromptChatResult, PromptCompletionResult } from './PromptResult'; | ||
import type { string_model_name } from '../types/typeAliases'; | ||
import type { string_title } from '../types/typeAliases'; | ||
import type { PromptChatResult } from './PromptResult'; | ||
import type { PromptCompletionResult } from './PromptResult'; | ||
/** | ||
@@ -7,0 +9,0 @@ * Container for all the tools needed to execute prompts to large language models like GPT-4 |
@@ -1,2 +0,2 @@ | ||
import { number_usd } from '../../../../types/typeAliases'; | ||
import type { number_usd } from '../../../../types/typeAliases'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
@@ -3,0 +3,0 @@ /** |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AnthropicClaudeExecutionToolsOptions } from './AnthropicClaudeExecutionToolsOptions'; | ||
@@ -5,0 +7,0 @@ /** |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AzureOpenAiExecutionToolsOptions } from './AzureOpenAiExecutionToolsOptions'; | ||
@@ -5,0 +7,0 @@ /** |
@@ -1,2 +0,3 @@ | ||
import { string_name, string_token } from '../../../../types/typeAliases'; | ||
import type { string_name } from '../../../../types/typeAliases'; | ||
import type { string_token } from '../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
@@ -3,0 +4,0 @@ /** |
import type { Expectations } from '../../../../types/PromptbookJson/PromptTemplateJson'; | ||
import { PostprocessingFunction } from '../../script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
import type { PostprocessingFunction } from '../../script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Gets the expectations and creates a fake text that meets the expectations |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
/** | ||
@@ -6,0 +8,0 @@ * Mocked execution Tools for just echoing the requests for testing purposes. |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
/** | ||
@@ -6,0 +8,0 @@ * Mocked execution Tools for just faking expected responses for testing purposes |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
/** | ||
@@ -5,0 +7,0 @@ * Multiple LLM Execution Tools is a proxy server that uses multiple execution tools internally and exposes the executor interface externally. |
@@ -1,2 +0,3 @@ | ||
import type { client_id, string_uri } from '../../../../types/typeAliases'; | ||
import type { client_id } from '../../../../types/typeAliases'; | ||
import type { string_uri } from '../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
@@ -3,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { number_usd } from '../../../../types/typeAliases'; | ||
import type { number_usd } from '../../../../types/typeAliases'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
@@ -3,0 +3,0 @@ /** |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
import type { OpenAiExecutionToolsOptions } from './OpenAiExecutionToolsOptions'; | ||
@@ -5,0 +7,0 @@ /** |
import type { ClientOptions } from 'openai'; | ||
import type { string_token } from '../../../.././types/typeAliases'; | ||
import type { string_token } from '../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { TaskProgress } from '../../../../../types/TaskProgress'; | ||
import type { TaskProgress } from '../../../../../types/TaskProgress'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Socket.io progress for remote text generation |
@@ -1,2 +0,2 @@ | ||
import { PromptResult } from '../../../../PromptResult'; | ||
import type { PromptResult } from '../../../../PromptResult'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Socket.io error for remote text generation |
import type { PromptbookLibrary } from '../../../../../library/PromptbookLibrary'; | ||
import type { client_id, string_uri } from '../../../../../types/typeAliases'; | ||
import type { client_id } from '../../../../../types/typeAliases'; | ||
import type { string_uri } from '../../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../../CommonExecutionToolsOptions'; | ||
@@ -4,0 +5,0 @@ import type { LlmExecutionTools } from '../../../../LlmExecutionTools'; |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
import type { RemoteLlmExecutionToolsOptions } from './RemoteLlmExecutionToolsOptions'; | ||
@@ -5,0 +7,0 @@ /** |
@@ -1,2 +0,3 @@ | ||
import type { client_id, string_uri } from '../../../../types/typeAliases'; | ||
import type { client_id } from '../../../../types/typeAliases'; | ||
import type { string_uri } from '../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
@@ -3,0 +4,0 @@ /** |
import type { IDestroyable } from 'destroyable'; | ||
import { RemoteServerOptions } from './interfaces/RemoteServerOptions'; | ||
import type { RemoteServerOptions } from './interfaces/RemoteServerOptions'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally. |
@@ -1,3 +0,4 @@ | ||
import { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { ScriptExecutionTools } from '../../../ScriptExecutionTools'; | ||
import type { ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
/** | ||
@@ -4,0 +5,0 @@ * ScriptExecutionTools for Python |
@@ -1,3 +0,4 @@ | ||
import { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { ScriptExecutionTools } from '../../../ScriptExecutionTools'; | ||
import type { ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
/** | ||
@@ -4,0 +5,0 @@ * ScriptExecutionTools for TypeScript |
@@ -1,3 +0,4 @@ | ||
import { UserInterfaceTools, UserInterfaceToolsPromptDialogOptions } from '../../../UserInterfaceTools'; | ||
import { CallbackInterfaceToolsOptions } from './CallbackInterfaceToolsOptions'; | ||
import type { UserInterfaceTools } from '../../../UserInterfaceTools'; | ||
import type { UserInterfaceToolsPromptDialogOptions } from '../../../UserInterfaceTools'; | ||
import type { CallbackInterfaceToolsOptions } from './CallbackInterfaceToolsOptions'; | ||
/** | ||
@@ -4,0 +5,0 @@ * Delagates the user interaction to a async callback function |
@@ -1,3 +0,4 @@ | ||
import { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import { UserInterfaceTools, UserInterfaceToolsPromptDialogOptions } from '../../../UserInterfaceTools'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { UserInterfaceTools } from '../../../UserInterfaceTools'; | ||
import type { UserInterfaceToolsPromptDialogOptions } from '../../../UserInterfaceTools'; | ||
/** | ||
@@ -4,0 +5,0 @@ * Wrapper around `window.prompt` synchronous function that interacts with the user via browser prompt |
@@ -1,2 +0,6 @@ | ||
import type { number_positive_or_zero, number_tokens, number_usd, string_date_iso8601, string_model_name } from '.././types/typeAliases'; | ||
import type { number_positive_or_zero } from '../types/typeAliases'; | ||
import type { number_tokens } from '../types/typeAliases'; | ||
import type { number_usd } from '../types/typeAliases'; | ||
import type { string_date_iso8601 } from '../types/typeAliases'; | ||
import type { string_model_name } from '../types/typeAliases'; | ||
/** | ||
@@ -3,0 +7,0 @@ * Prompt result is the simplest concept of execution. |
@@ -1,2 +0,3 @@ | ||
import type { string_name, string_script } from '.././types/typeAliases'; | ||
import type { string_name } from '../types/typeAliases'; | ||
import type { string_script } from '../types/typeAliases'; | ||
import type { ScriptLanguage } from '../types/ScriptLanguage'; | ||
@@ -3,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { AutomaticTranslator } from './AutomaticTranslator'; | ||
import type { AutomaticTranslator } from './AutomaticTranslator'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This will wrap an automatic translator and log each translation into the console |
@@ -1,2 +0,2 @@ | ||
import { AutomaticTranslator } from './AutomaticTranslator'; | ||
import type { AutomaticTranslator } from './AutomaticTranslator'; | ||
export declare class FakeAutomaticTranslator implements AutomaticTranslator { | ||
@@ -3,0 +3,0 @@ constructor(); |
@@ -1,3 +0,3 @@ | ||
import { AutomaticTranslator } from './AutomaticTranslator'; | ||
import { TranslatorOptions } from './TranslatorOptions'; | ||
import type { AutomaticTranslator } from './AutomaticTranslator'; | ||
import type { TranslatorOptions } from './TranslatorOptions'; | ||
interface LindatAutomaticTranslatorOptions extends TranslatorOptions { | ||
@@ -4,0 +4,0 @@ apiUrl: URL; |
@@ -1,5 +0,5 @@ | ||
import { AutomaticTranslator } from './automatic-translators/AutomaticTranslator'; | ||
import { TranslatorOptions } from './automatic-translators/TranslatorOptions'; | ||
import type { AutomaticTranslator } from './automatic-translators/AutomaticTranslator'; | ||
import type { TranslatorOptions } from './automatic-translators/TranslatorOptions'; | ||
export declare function translateMessages({ automaticTranslator, from, to, }: { | ||
automaticTranslator: AutomaticTranslator; | ||
} & TranslatorOptions): Promise<void>; |
@@ -1,2 +0,3 @@ | ||
import type { number_integer, number_positive } from '../types/typeAliases'; | ||
import type { number_integer } from '../types/typeAliases'; | ||
import type { number_positive } from '../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Represents all the tools needed to interact with the user. |
@@ -1,3 +0,3 @@ | ||
import { Parameters } from '../../types/Parameters'; | ||
import { string_template } from '../../types/typeAliases'; | ||
import type { Parameters } from '../../types/Parameters'; | ||
import type { string_template } from '../../types/typeAliases'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Replaces parameters in template with values from parameters object |
@@ -1,3 +0,3 @@ | ||
import { string_folder_path } from '../../types/typeAliases'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
import type { string_folder_path } from '../../types/typeAliases'; | ||
import type { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Options for `createPromptbookLibraryFromDirectory` function |
import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import { PromptbookString } from '../../types/PromptbookString'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
import type { PromptbookString } from '../../types/PromptbookString'; | ||
import type { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Constructs Promptbook from async sources |
@@ -1,2 +0,3 @@ | ||
import { PromptbookJson, PromptbookString } from '../../_packages/types.index'; | ||
import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import type { PromptbookString } from '../../types/PromptbookString'; | ||
import { SimplePromptbookLibrary } from '../SimplePromptbookLibrary'; | ||
@@ -3,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { string_url } from '../../types/typeAliases'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
import type { string_url } from '../../types/typeAliases'; | ||
import type { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Options for `createPromptbookLibraryFromDirectory` function |
import type { string_promptbook_url } from '../../types/typeAliases'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
import type { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Creates PromptbookLibrary as a subset of another PromptbookLibrary |
import type { Prompt } from '../types/Prompt'; | ||
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson'; | ||
import type { string_promptbook_url } from '../types/typeAliases'; | ||
import { PromptbookLibrary } from './PromptbookLibrary'; | ||
import type { PromptbookLibrary } from './PromptbookLibrary'; | ||
/** | ||
@@ -6,0 +6,0 @@ * Library of promptbooks that groups together promptbooks for an application. |
@@ -1,5 +0,8 @@ | ||
import type { string_markdown_text, string_name, string_version } from '.././types/typeAliases'; | ||
import type { string_markdown_text } from './typeAliases'; | ||
import type { string_name } from './typeAliases'; | ||
import type { string_version } from './typeAliases'; | ||
import type { ExecutionType } from './ExecutionTypes'; | ||
import type { ModelRequirements } from './ModelRequirements'; | ||
import type { ExpectationAmount, ExpectationUnit } from './PromptbookJson/PromptTemplateJson'; | ||
import type { ExpectationAmount } from './PromptbookJson/PromptTemplateJson'; | ||
import type { ExpectationUnit } from './PromptbookJson/PromptTemplateJson'; | ||
/** | ||
@@ -6,0 +9,0 @@ * Command is one piece of the prompt template which adds some logic to the prompt template or the whole pipeline. |
@@ -1,2 +0,2 @@ | ||
import { FromtoItems } from '../../utils/FromtoItems'; | ||
import type { FromtoItems } from '../../utils/FromtoItems'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Count the duration of working time |
import type { PromptResult } from '../../execution/PromptResult'; | ||
import type { Prompt } from '../Prompt'; | ||
import type { string_promptbook_url, string_version } from '../typeAliases'; | ||
import type { string_promptbook_url } from '../typeAliases'; | ||
import type { string_version } from '../typeAliases'; | ||
/** | ||
@@ -5,0 +6,0 @@ * ExecutionReport is result of executing one promptbook |
@@ -1,2 +0,5 @@ | ||
import type { string_name, string_prompt, string_promptbook_url_with_hashtemplate, string_title } from '.././types/typeAliases'; | ||
import type { string_name } from './typeAliases'; | ||
import type { string_prompt } from './typeAliases'; | ||
import type { string_promptbook_url_with_hashtemplate } from './typeAliases'; | ||
import type { string_title } from './typeAliases'; | ||
import type { PostprocessingFunction } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
@@ -3,0 +6,0 @@ import type { ModelRequirements } from './ModelRequirements'; |
@@ -1,2 +0,3 @@ | ||
import type { string_promptbook_url, string_version } from '../typeAliases'; | ||
import type { string_promptbook_url } from '../typeAliases'; | ||
import type { string_version } from '../typeAliases'; | ||
import type { PromptTemplateJson } from './PromptTemplateJson'; | ||
@@ -3,0 +4,0 @@ import type { PromptTemplateParameterJson } from './PromptTemplateParameterJson'; |
@@ -5,3 +5,10 @@ import type { ExpectFormatCommand } from '../Command'; | ||
import type { ScriptLanguage } from '../ScriptLanguage'; | ||
import type { number_integer, number_positive_or_zero, string_javascript, string_javascript_name, string_markdown, string_name, string_prompt, string_template } from '../typeAliases'; | ||
import type { number_integer } from '../typeAliases'; | ||
import type { number_positive_or_zero } from '../typeAliases'; | ||
import type { string_javascript } from '../typeAliases'; | ||
import type { string_javascript_name } from '../typeAliases'; | ||
import type { string_markdown } from '../typeAliases'; | ||
import type { string_name } from '../typeAliases'; | ||
import type { string_prompt } from '../typeAliases'; | ||
import type { string_template } from '../typeAliases'; | ||
/** | ||
@@ -8,0 +15,0 @@ * Describes one prompt template in the promptbook |
import type { ExecutionType } from './ExecutionTypes'; | ||
import type { string_markdown_text, string_name } from './typeAliases'; | ||
import type { string_markdown_text } from './typeAliases'; | ||
import type { string_name } from './typeAliases'; | ||
/** | ||
@@ -4,0 +5,0 @@ * TaskProgress represents the progress of a Promptbook execution. |
@@ -1,2 +0,2 @@ | ||
import { string_char_emoji } from '../types/typeAliasEmoji'; | ||
import type { string_char_emoji } from '../types/typeAliasEmoji'; | ||
/** | ||
@@ -3,0 +3,0 @@ * All possible emoji chars like "🍆", "🍡", "🍤"... |
@@ -1,2 +0,3 @@ | ||
import type { ExpectationAmount, ExpectationUnit } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import type { ExpectationAmount } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import type { ExpectationUnit } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Index of all counter functions |
@@ -1,2 +0,3 @@ | ||
import { string_name, string_template } from '../types/typeAliases'; | ||
import type { string_name } from '../types/typeAliases'; | ||
import type { string_template } from '../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Parses the template and returns the list of all parameter names |
@@ -1,2 +0,2 @@ | ||
import { MarkdownStructure } from './MarkdownStructure'; | ||
import type { MarkdownStructure } from './MarkdownStructure'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Computes the deepness of the markdown structure. |
@@ -1,2 +0,2 @@ | ||
import { MarkdownStructure } from './MarkdownStructure'; | ||
import type { MarkdownStructure } from './MarkdownStructure'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Parse a markdown string into a MarkdownStructure object. |
@@ -1,2 +0,3 @@ | ||
import type { string_markdown, string_name } from '../../types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { string_name } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Add or modify an auto-generated section in a markdown file |
@@ -1,3 +0,3 @@ | ||
import { string_markdown } from '../../types/typeAliases'; | ||
import { FromtoItems } from '../FromtoItems'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { FromtoItems } from '../FromtoItems'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Options for creating a markdown chart |
@@ -1,2 +0,3 @@ | ||
import { string_markdown, string_markdown_text } from '../../types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { string_markdown_text } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Create a markdown table from a 2D array of strings |
@@ -1,2 +0,2 @@ | ||
import { string_markdown_text } from '../../types/typeAliases'; | ||
import type { string_markdown_text } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Function escapeMarkdownBlock will escape markdown block if needed |
@@ -1,2 +0,3 @@ | ||
import { string_markdown, string_markdown_text } from '../.././types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { string_markdown_text } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Utility function to extract all list items from markdown |
@@ -1,3 +0,3 @@ | ||
import { string_markdown } from '../.././types/typeAliases'; | ||
import { CodeBlock } from './extractAllBlocksFromMarkdown'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { CodeBlock } from './extractAllBlocksFromMarkdown'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Extracts exactly ONE code block from markdown. |
@@ -1,2 +0,3 @@ | ||
import { string_html, string_markdown } from '../../types/typeAliases'; | ||
import type { string_html } from '../../types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Removes HTML or Markdown comments from a string. |
@@ -1,2 +0,2 @@ | ||
import { string_markdown_text } from '../../types/typeAliases'; | ||
import type { string_markdown_text } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Removes Markdown formatting tags from a string. |
@@ -1,2 +0,2 @@ | ||
import { string_keyword } from './IKeywords'; | ||
import type { string_keyword } from './IKeywords'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Tests if keyword is valid |
@@ -1,2 +0,2 @@ | ||
import { IKeywords } from './IKeywords'; | ||
import type { IKeywords } from './IKeywords'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Parses keywords from any object and recursively walks through |
@@ -1,2 +0,2 @@ | ||
import { IKeywords } from './IKeywords'; | ||
import type { IKeywords } from './IKeywords'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Parses keywords from a string |
@@ -1,2 +0,2 @@ | ||
import { IKeywords } from './IKeywords'; | ||
import type { IKeywords } from './IKeywords'; | ||
/** | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
import { string_markdown } from '../../types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Extracts code block from markdown. |
{ | ||
"name": "@promptbook/remote-client", | ||
"version": "0.52.0", | ||
"version": "0.53.0", | ||
"description": "Library to supercharge your use of large language models", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.52.0" | ||
"@promptbook/core": "0.53.0" | ||
}, | ||
@@ -53,0 +53,0 @@ "main": "./umd/index.umd.js", |
@@ -1,2 +0,2 @@ | ||
import { PromptbookString } from '../../types/PromptbookString'; | ||
import type { PromptbookString } from '../../types/PromptbookString'; | ||
import type { PrettifyOptions } from './PrettifyOptions'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,3 @@ | ||
import type { PromptbookJson, PromptTemplateJson } from '../../_packages/types.index'; | ||
import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import type { PromptTemplateJson } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import type { string_href } from '../../types/typeAliases'; | ||
@@ -3,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { PromptTemplateJson } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import { string_name } from '../../types/typeAliases'; | ||
import type { PromptTemplateJson } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import type { string_name } from '../../types/typeAliases'; | ||
/** | ||
@@ -13,2 +13,2 @@ * Parses the prompt template and returns the set of all used parameters | ||
* TODO: [🔣] If script require contentLanguage | ||
*/ | ||
*/ |
@@ -1,2 +0,3 @@ | ||
import { string_javascript, string_javascript_name } from '../../types/typeAliases'; | ||
import type { string_javascript } from '../../types/typeAliases'; | ||
import type { string_javascript_name } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Parses the given script and returns the list of all used variables that are not defined in the script |
@@ -1,3 +0,3 @@ | ||
import { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import { PromptbookString } from '../../types/PromptbookString'; | ||
import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import type { PromptbookString } from '../../types/PromptbookString'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Import the text file |
@@ -1,4 +0,4 @@ | ||
import { PromptbookJson } from '../_packages/types.index'; | ||
import { ExecutionTools } from './ExecutionTools'; | ||
import { PromptbookExecutor } from './PromptbookExecutor'; | ||
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson'; | ||
import type { ExecutionTools } from './ExecutionTools'; | ||
import type { PromptbookExecutor } from './PromptbookExecutor'; | ||
type CreatePromptbookExecutorSettings = { | ||
@@ -5,0 +5,0 @@ /** |
import type { Promisable } from 'type-fest'; | ||
import type { ModelVariant } from '../types/ModelRequirements'; | ||
import type { Prompt } from '../types/Prompt'; | ||
import type { string_model_name, string_title } from '../types/typeAliases'; | ||
import type { PromptChatResult, PromptCompletionResult } from './PromptResult'; | ||
import type { string_model_name } from '../types/typeAliases'; | ||
import type { string_title } from '../types/typeAliases'; | ||
import type { PromptChatResult } from './PromptResult'; | ||
import type { PromptCompletionResult } from './PromptResult'; | ||
/** | ||
@@ -7,0 +9,0 @@ * Container for all the tools needed to execute prompts to large language models like GPT-4 |
@@ -1,2 +0,2 @@ | ||
import { number_usd } from '../../../../types/typeAliases'; | ||
import type { number_usd } from '../../../../types/typeAliases'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
@@ -3,0 +3,0 @@ /** |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AnthropicClaudeExecutionToolsOptions } from './AnthropicClaudeExecutionToolsOptions'; | ||
@@ -5,0 +7,0 @@ /** |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AzureOpenAiExecutionToolsOptions } from './AzureOpenAiExecutionToolsOptions'; | ||
@@ -5,0 +7,0 @@ /** |
@@ -1,2 +0,3 @@ | ||
import { string_name, string_token } from '../../../../types/typeAliases'; | ||
import type { string_name } from '../../../../types/typeAliases'; | ||
import type { string_token } from '../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
@@ -3,0 +4,0 @@ /** |
import type { Expectations } from '../../../../types/PromptbookJson/PromptTemplateJson'; | ||
import { PostprocessingFunction } from '../../script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
import type { PostprocessingFunction } from '../../script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Gets the expectations and creates a fake text that meets the expectations |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
/** | ||
@@ -6,0 +8,0 @@ * Mocked execution Tools for just echoing the requests for testing purposes. |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
/** | ||
@@ -6,0 +8,0 @@ * Mocked execution Tools for just faking expected responses for testing purposes |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
/** | ||
@@ -5,0 +7,0 @@ * Multiple LLM Execution Tools is a proxy server that uses multiple execution tools internally and exposes the executor interface externally. |
@@ -1,2 +0,3 @@ | ||
import type { client_id, string_uri } from '../../../../types/typeAliases'; | ||
import type { client_id } from '../../../../types/typeAliases'; | ||
import type { string_uri } from '../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
@@ -3,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { number_usd } from '../../../../types/typeAliases'; | ||
import type { number_usd } from '../../../../types/typeAliases'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
@@ -3,0 +3,0 @@ /** |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
import type { OpenAiExecutionToolsOptions } from './OpenAiExecutionToolsOptions'; | ||
@@ -5,0 +7,0 @@ /** |
import type { ClientOptions } from 'openai'; | ||
import type { string_token } from '../../../.././types/typeAliases'; | ||
import type { string_token } from '../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { TaskProgress } from '../../../../../types/TaskProgress'; | ||
import type { TaskProgress } from '../../../../../types/TaskProgress'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Socket.io progress for remote text generation |
@@ -1,2 +0,2 @@ | ||
import { PromptResult } from '../../../../PromptResult'; | ||
import type { PromptResult } from '../../../../PromptResult'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Socket.io error for remote text generation |
import type { PromptbookLibrary } from '../../../../../library/PromptbookLibrary'; | ||
import type { client_id, string_uri } from '../../../../../types/typeAliases'; | ||
import type { client_id } from '../../../../../types/typeAliases'; | ||
import type { string_uri } from '../../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../../CommonExecutionToolsOptions'; | ||
@@ -4,0 +5,0 @@ import type { LlmExecutionTools } from '../../../../LlmExecutionTools'; |
import type { Prompt } from '../../../../types/Prompt'; | ||
import type { AvailableModel, LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult, PromptCompletionResult } from '../../../PromptResult'; | ||
import type { AvailableModel } from '../../../LlmExecutionTools'; | ||
import type { LlmExecutionTools } from '../../../LlmExecutionTools'; | ||
import type { PromptChatResult } from '../../../PromptResult'; | ||
import type { PromptCompletionResult } from '../../../PromptResult'; | ||
import type { RemoteLlmExecutionToolsOptions } from './RemoteLlmExecutionToolsOptions'; | ||
@@ -5,0 +7,0 @@ /** |
@@ -1,2 +0,3 @@ | ||
import type { client_id, string_uri } from '../../../../types/typeAliases'; | ||
import type { client_id } from '../../../../types/typeAliases'; | ||
import type { string_uri } from '../../../../types/typeAliases'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
@@ -3,0 +4,0 @@ /** |
import type { IDestroyable } from 'destroyable'; | ||
import { RemoteServerOptions } from './interfaces/RemoteServerOptions'; | ||
import type { RemoteServerOptions } from './interfaces/RemoteServerOptions'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally. |
@@ -1,3 +0,4 @@ | ||
import { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { ScriptExecutionTools } from '../../../ScriptExecutionTools'; | ||
import type { ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
/** | ||
@@ -4,0 +5,0 @@ * ScriptExecutionTools for Python |
@@ -1,3 +0,4 @@ | ||
import { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { ScriptExecutionTools } from '../../../ScriptExecutionTools'; | ||
import type { ScriptExecutionToolsExecuteOptions } from '../../../ScriptExecutionTools'; | ||
/** | ||
@@ -4,0 +5,0 @@ * ScriptExecutionTools for TypeScript |
@@ -1,3 +0,4 @@ | ||
import { UserInterfaceTools, UserInterfaceToolsPromptDialogOptions } from '../../../UserInterfaceTools'; | ||
import { CallbackInterfaceToolsOptions } from './CallbackInterfaceToolsOptions'; | ||
import type { UserInterfaceTools } from '../../../UserInterfaceTools'; | ||
import type { UserInterfaceToolsPromptDialogOptions } from '../../../UserInterfaceTools'; | ||
import type { CallbackInterfaceToolsOptions } from './CallbackInterfaceToolsOptions'; | ||
/** | ||
@@ -4,0 +5,0 @@ * Delagates the user interaction to a async callback function |
@@ -1,3 +0,4 @@ | ||
import { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import { UserInterfaceTools, UserInterfaceToolsPromptDialogOptions } from '../../../UserInterfaceTools'; | ||
import type { CommonExecutionToolsOptions } from '../../../CommonExecutionToolsOptions'; | ||
import type { UserInterfaceTools } from '../../../UserInterfaceTools'; | ||
import type { UserInterfaceToolsPromptDialogOptions } from '../../../UserInterfaceTools'; | ||
/** | ||
@@ -4,0 +5,0 @@ * Wrapper around `window.prompt` synchronous function that interacts with the user via browser prompt |
@@ -1,2 +0,6 @@ | ||
import type { number_positive_or_zero, number_tokens, number_usd, string_date_iso8601, string_model_name } from '.././types/typeAliases'; | ||
import type { number_positive_or_zero } from '../types/typeAliases'; | ||
import type { number_tokens } from '../types/typeAliases'; | ||
import type { number_usd } from '../types/typeAliases'; | ||
import type { string_date_iso8601 } from '../types/typeAliases'; | ||
import type { string_model_name } from '../types/typeAliases'; | ||
/** | ||
@@ -3,0 +7,0 @@ * Prompt result is the simplest concept of execution. |
@@ -1,2 +0,3 @@ | ||
import type { string_name, string_script } from '.././types/typeAliases'; | ||
import type { string_name } from '../types/typeAliases'; | ||
import type { string_script } from '../types/typeAliases'; | ||
import type { ScriptLanguage } from '../types/ScriptLanguage'; | ||
@@ -3,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { AutomaticTranslator } from './AutomaticTranslator'; | ||
import type { AutomaticTranslator } from './AutomaticTranslator'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This will wrap an automatic translator and log each translation into the console |
@@ -1,2 +0,2 @@ | ||
import { AutomaticTranslator } from './AutomaticTranslator'; | ||
import type { AutomaticTranslator } from './AutomaticTranslator'; | ||
export declare class FakeAutomaticTranslator implements AutomaticTranslator { | ||
@@ -3,0 +3,0 @@ constructor(); |
@@ -1,3 +0,3 @@ | ||
import { AutomaticTranslator } from './AutomaticTranslator'; | ||
import { TranslatorOptions } from './TranslatorOptions'; | ||
import type { AutomaticTranslator } from './AutomaticTranslator'; | ||
import type { TranslatorOptions } from './TranslatorOptions'; | ||
interface LindatAutomaticTranslatorOptions extends TranslatorOptions { | ||
@@ -4,0 +4,0 @@ apiUrl: URL; |
@@ -1,5 +0,5 @@ | ||
import { AutomaticTranslator } from './automatic-translators/AutomaticTranslator'; | ||
import { TranslatorOptions } from './automatic-translators/TranslatorOptions'; | ||
import type { AutomaticTranslator } from './automatic-translators/AutomaticTranslator'; | ||
import type { TranslatorOptions } from './automatic-translators/TranslatorOptions'; | ||
export declare function translateMessages({ automaticTranslator, from, to, }: { | ||
automaticTranslator: AutomaticTranslator; | ||
} & TranslatorOptions): Promise<void>; |
@@ -1,2 +0,3 @@ | ||
import type { number_integer, number_positive } from '../types/typeAliases'; | ||
import type { number_integer } from '../types/typeAliases'; | ||
import type { number_positive } from '../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Represents all the tools needed to interact with the user. |
@@ -1,3 +0,3 @@ | ||
import { Parameters } from '../../types/Parameters'; | ||
import { string_template } from '../../types/typeAliases'; | ||
import type { Parameters } from '../../types/Parameters'; | ||
import type { string_template } from '../../types/typeAliases'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Replaces parameters in template with values from parameters object |
@@ -1,3 +0,3 @@ | ||
import { string_folder_path } from '../../types/typeAliases'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
import type { string_folder_path } from '../../types/typeAliases'; | ||
import type { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Options for `createPromptbookLibraryFromDirectory` function |
import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import { PromptbookString } from '../../types/PromptbookString'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
import type { PromptbookString } from '../../types/PromptbookString'; | ||
import type { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Constructs Promptbook from async sources |
@@ -1,2 +0,3 @@ | ||
import { PromptbookJson, PromptbookString } from '../../_packages/types.index'; | ||
import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson'; | ||
import type { PromptbookString } from '../../types/PromptbookString'; | ||
import { SimplePromptbookLibrary } from '../SimplePromptbookLibrary'; | ||
@@ -3,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { string_url } from '../../types/typeAliases'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
import type { string_url } from '../../types/typeAliases'; | ||
import type { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Options for `createPromptbookLibraryFromDirectory` function |
import type { string_promptbook_url } from '../../types/typeAliases'; | ||
import { PromptbookLibrary } from '../PromptbookLibrary'; | ||
import type { PromptbookLibrary } from '../PromptbookLibrary'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Creates PromptbookLibrary as a subset of another PromptbookLibrary |
import type { Prompt } from '../types/Prompt'; | ||
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson'; | ||
import type { string_promptbook_url } from '../types/typeAliases'; | ||
import { PromptbookLibrary } from './PromptbookLibrary'; | ||
import type { PromptbookLibrary } from './PromptbookLibrary'; | ||
/** | ||
@@ -6,0 +6,0 @@ * Library of promptbooks that groups together promptbooks for an application. |
@@ -1,5 +0,8 @@ | ||
import type { string_markdown_text, string_name, string_version } from '.././types/typeAliases'; | ||
import type { string_markdown_text } from './typeAliases'; | ||
import type { string_name } from './typeAliases'; | ||
import type { string_version } from './typeAliases'; | ||
import type { ExecutionType } from './ExecutionTypes'; | ||
import type { ModelRequirements } from './ModelRequirements'; | ||
import type { ExpectationAmount, ExpectationUnit } from './PromptbookJson/PromptTemplateJson'; | ||
import type { ExpectationAmount } from './PromptbookJson/PromptTemplateJson'; | ||
import type { ExpectationUnit } from './PromptbookJson/PromptTemplateJson'; | ||
/** | ||
@@ -6,0 +9,0 @@ * Command is one piece of the prompt template which adds some logic to the prompt template or the whole pipeline. |
@@ -1,2 +0,2 @@ | ||
import { FromtoItems } from '../../utils/FromtoItems'; | ||
import type { FromtoItems } from '../../utils/FromtoItems'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Count the duration of working time |
import type { PromptResult } from '../../execution/PromptResult'; | ||
import type { Prompt } from '../Prompt'; | ||
import type { string_promptbook_url, string_version } from '../typeAliases'; | ||
import type { string_promptbook_url } from '../typeAliases'; | ||
import type { string_version } from '../typeAliases'; | ||
/** | ||
@@ -5,0 +6,0 @@ * ExecutionReport is result of executing one promptbook |
@@ -1,2 +0,5 @@ | ||
import type { string_name, string_prompt, string_promptbook_url_with_hashtemplate, string_title } from '.././types/typeAliases'; | ||
import type { string_name } from './typeAliases'; | ||
import type { string_prompt } from './typeAliases'; | ||
import type { string_promptbook_url_with_hashtemplate } from './typeAliases'; | ||
import type { string_title } from './typeAliases'; | ||
import type { PostprocessingFunction } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions'; | ||
@@ -3,0 +6,0 @@ import type { ModelRequirements } from './ModelRequirements'; |
@@ -1,2 +0,3 @@ | ||
import type { string_promptbook_url, string_version } from '../typeAliases'; | ||
import type { string_promptbook_url } from '../typeAliases'; | ||
import type { string_version } from '../typeAliases'; | ||
import type { PromptTemplateJson } from './PromptTemplateJson'; | ||
@@ -3,0 +4,0 @@ import type { PromptTemplateParameterJson } from './PromptTemplateParameterJson'; |
@@ -5,3 +5,10 @@ import type { ExpectFormatCommand } from '../Command'; | ||
import type { ScriptLanguage } from '../ScriptLanguage'; | ||
import type { number_integer, number_positive_or_zero, string_javascript, string_javascript_name, string_markdown, string_name, string_prompt, string_template } from '../typeAliases'; | ||
import type { number_integer } from '../typeAliases'; | ||
import type { number_positive_or_zero } from '../typeAliases'; | ||
import type { string_javascript } from '../typeAliases'; | ||
import type { string_javascript_name } from '../typeAliases'; | ||
import type { string_markdown } from '../typeAliases'; | ||
import type { string_name } from '../typeAliases'; | ||
import type { string_prompt } from '../typeAliases'; | ||
import type { string_template } from '../typeAliases'; | ||
/** | ||
@@ -8,0 +15,0 @@ * Describes one prompt template in the promptbook |
import type { ExecutionType } from './ExecutionTypes'; | ||
import type { string_markdown_text, string_name } from './typeAliases'; | ||
import type { string_markdown_text } from './typeAliases'; | ||
import type { string_name } from './typeAliases'; | ||
/** | ||
@@ -4,0 +5,0 @@ * TaskProgress represents the progress of a Promptbook execution. |
@@ -1,2 +0,2 @@ | ||
import { string_char_emoji } from '../types/typeAliasEmoji'; | ||
import type { string_char_emoji } from '../types/typeAliasEmoji'; | ||
/** | ||
@@ -3,0 +3,0 @@ * All possible emoji chars like "🍆", "🍡", "🍤"... |
@@ -1,2 +0,3 @@ | ||
import type { ExpectationAmount, ExpectationUnit } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import type { ExpectationAmount } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
import type { ExpectationUnit } from '../../types/PromptbookJson/PromptTemplateJson'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Index of all counter functions |
@@ -1,2 +0,3 @@ | ||
import { string_name, string_template } from '../types/typeAliases'; | ||
import type { string_name } from '../types/typeAliases'; | ||
import type { string_template } from '../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Parses the template and returns the list of all parameter names |
@@ -1,2 +0,2 @@ | ||
import { MarkdownStructure } from './MarkdownStructure'; | ||
import type { MarkdownStructure } from './MarkdownStructure'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Computes the deepness of the markdown structure. |
@@ -1,2 +0,2 @@ | ||
import { MarkdownStructure } from './MarkdownStructure'; | ||
import type { MarkdownStructure } from './MarkdownStructure'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Parse a markdown string into a MarkdownStructure object. |
@@ -1,2 +0,3 @@ | ||
import type { string_markdown, string_name } from '../../types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { string_name } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Add or modify an auto-generated section in a markdown file |
@@ -1,3 +0,3 @@ | ||
import { string_markdown } from '../../types/typeAliases'; | ||
import { FromtoItems } from '../FromtoItems'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { FromtoItems } from '../FromtoItems'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Options for creating a markdown chart |
@@ -1,2 +0,3 @@ | ||
import { string_markdown, string_markdown_text } from '../../types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { string_markdown_text } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Create a markdown table from a 2D array of strings |
@@ -1,2 +0,2 @@ | ||
import { string_markdown_text } from '../../types/typeAliases'; | ||
import type { string_markdown_text } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Function escapeMarkdownBlock will escape markdown block if needed |
@@ -1,2 +0,3 @@ | ||
import { string_markdown, string_markdown_text } from '../.././types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { string_markdown_text } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Utility function to extract all list items from markdown |
@@ -1,3 +0,3 @@ | ||
import { string_markdown } from '../.././types/typeAliases'; | ||
import { CodeBlock } from './extractAllBlocksFromMarkdown'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
import type { CodeBlock } from './extractAllBlocksFromMarkdown'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Extracts exactly ONE code block from markdown. |
@@ -1,2 +0,3 @@ | ||
import { string_html, string_markdown } from '../../types/typeAliases'; | ||
import type { string_html } from '../../types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Removes HTML or Markdown comments from a string. |
@@ -1,2 +0,2 @@ | ||
import { string_markdown_text } from '../../types/typeAliases'; | ||
import type { string_markdown_text } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Removes Markdown formatting tags from a string. |
@@ -1,2 +0,2 @@ | ||
import { string_keyword } from './IKeywords'; | ||
import type { string_keyword } from './IKeywords'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Tests if keyword is valid |
@@ -1,2 +0,2 @@ | ||
import { IKeywords } from './IKeywords'; | ||
import type { IKeywords } from './IKeywords'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Parses keywords from any object and recursively walks through |
@@ -1,2 +0,2 @@ | ||
import { IKeywords } from './IKeywords'; | ||
import type { IKeywords } from './IKeywords'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Parses keywords from a string |
@@ -1,2 +0,2 @@ | ||
import { IKeywords } from './IKeywords'; | ||
import type { IKeywords } from './IKeywords'; | ||
/** | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
import { string_markdown } from '../../types/typeAliases'; | ||
import type { string_markdown } from '../../types/typeAliases'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Extracts code block from markdown. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
455928
7806