@promptbook/core 0.66.0-0 → 0.66.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.es.js +108 -56
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/anthropic-claude.index.d.ts +2 -0
- package/esm/typings/src/_packages/core.index.d.ts +6 -2
- package/esm/typings/src/config.d.ts +22 -0
- package/esm/typings/src/execution/LlmExecutionTools.d.ts +11 -5
- package/esm/typings/src/llm-providers/_common/config.d.ts +1 -6
- package/esm/typings/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +18 -0
- package/esm/typings/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.test.d.ts +4 -0
- package/esm/typings/src/llm-providers/anthropic-claude/register1.d.ts +4 -0
- package/esm/typings/src/llm-providers/openai/computeOpenaiUsage.d.ts +5 -1
- package/esm/typings/src/llm-providers/openai/computeOpenaiUsage.test.d.ts +3 -0
- package/esm/typings/src/llm-providers/remote/interfaces/RemoteLlmExecutionToolsOptions.d.ts +4 -1
- package/esm/typings/src/utils/environment/getGlobalScope.d.ts +3 -0
- package/package.json +1 -1
- package/umd/index.umd.js +110 -56
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -14,7 +14,7 @@ import moment from 'moment';
|
|
|
14
14
|
/**
|
|
15
15
|
* The version of the Promptbook library
|
|
16
16
|
*/
|
|
17
|
-
var PROMPTBOOK_VERSION = '0.
|
|
17
|
+
var PROMPTBOOK_VERSION = '0.66.0-0';
|
|
18
18
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
19
19
|
|
|
20
20
|
/*! *****************************************************************************
|
|
@@ -583,6 +583,59 @@ var RESERVED_PARAMETER_RESTRICTED = 'RESTRICTED-' + REPLACING_NONCE;
|
|
|
583
583
|
var MOMENT_ARG_THRESHOLDS = {
|
|
584
584
|
ss: 3, // <- least number of seconds to be counted in seconds, minus 1. Must be set after setting the `s` unit or without setting the `s` unit.
|
|
585
585
|
};
|
|
586
|
+
/**
|
|
587
|
+
* @@@
|
|
588
|
+
*
|
|
589
|
+
* @public exported from `@promptbook/core`
|
|
590
|
+
*/
|
|
591
|
+
var DEFAULT_REMOTE_URL = 'https://api.pavolhejny.com/';
|
|
592
|
+
/**
|
|
593
|
+
* @@@
|
|
594
|
+
*
|
|
595
|
+
* @public exported from `@promptbook/core`
|
|
596
|
+
*/
|
|
597
|
+
var DEFAULT_REMOTE_URL_PATH = '/promptbook/socket.io';
|
|
598
|
+
// <- TODO: [🧜♂️]
|
|
599
|
+
/**
|
|
600
|
+
* @@@
|
|
601
|
+
*
|
|
602
|
+
* @public exported from `@promptbook/core`
|
|
603
|
+
*/
|
|
604
|
+
var BOILERPLATE_LLM_TOOLS_CONFIGURATION_ = [
|
|
605
|
+
{
|
|
606
|
+
title: 'Open AI',
|
|
607
|
+
packageName: '@promptbook/openai',
|
|
608
|
+
className: 'OpenAiExecutionTools',
|
|
609
|
+
options: {
|
|
610
|
+
apiKey: 'sk-',
|
|
611
|
+
},
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
title: 'Anthropic Claude',
|
|
615
|
+
packageName: '@promptbook/anthropic-claude',
|
|
616
|
+
className: 'AnthropicClaudeExecutionTools',
|
|
617
|
+
options: {
|
|
618
|
+
apiKey: 'sk-ant-api03-',
|
|
619
|
+
isProxied: true,
|
|
620
|
+
remoteUrl: DEFAULT_REMOTE_URL,
|
|
621
|
+
path: DEFAULT_REMOTE_URL_PATH,
|
|
622
|
+
},
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
title: 'Azure Open AI',
|
|
626
|
+
packageName: '@promptbook/azure-openai',
|
|
627
|
+
className: 'AzureOpenAiExecutionTools',
|
|
628
|
+
options: {
|
|
629
|
+
// TODO: !!!> resourceName
|
|
630
|
+
// TODO: !!!> deploymentName
|
|
631
|
+
apiKey: 'sk-',
|
|
632
|
+
},
|
|
633
|
+
},
|
|
634
|
+
// <- Note: [🦑] Add here new LLM provider
|
|
635
|
+
];
|
|
636
|
+
/**
|
|
637
|
+
* TODO: [🧠][🧜♂️] Maybe join remoteUrl and path into single value
|
|
638
|
+
*/
|
|
586
639
|
|
|
587
640
|
/**
|
|
588
641
|
* This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
|
|
@@ -1630,7 +1683,7 @@ function forEachAsync(array, options, callbackfunction) {
|
|
|
1630
1683
|
});
|
|
1631
1684
|
}
|
|
1632
1685
|
|
|
1633
|
-
var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.
|
|
1686
|
+
var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.66.0-0",parameters:[{name:"knowledgeContent",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledgePieces",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{blockType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {knowledgeContent}",dependentParameterNames:["knowledgeContent"],resultingParameterName:"knowledgePieces"}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-from-markdown.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.ptbk.md",promptbookVersion:"0.66.0-0",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],promptTemplates:[{blockType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {knowledgePieceContent}",dependentParameterNames:["knowledgePieceContent"],resultingParameterName:"keywords"}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-keywords.ptbk.md"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.ptbk.md",promptbookVersion:"0.66.0-0",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],promptTemplates:[{blockType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Title should be concise and clear\n- Write maximum 5 words for the title\n\n# The document\n\n> {knowledgePieceContent}",expectations:{words:{min:1,max:8}},dependentParameterNames:["knowledgePieceContent"],resultingParameterName:"title"}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-title.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-persona.ptbk.md",promptbookVersion:"0.66.0-0",parameters:[{name:"availableModelNames",description:"List of available model names separated by comma (,)",isInput:true,isOutput:false},{name:"personaDescription",description:"Description of the persona",isInput:true,isOutput:false},{name:"modelRequirements",description:"Specific requirements for the model",isInput:false,isOutput:true}],promptTemplates:[{blockType:"PROMPT_TEMPLATE",name:"make-model-requirements",title:"Make modelRequirements",modelRequirements:{modelVariant:"CHAT",modelName:"gpt-4-turbo"},content:"You are experienced AI engineer, you need to create virtual assistant.\nWrite\n\n## Sample\n\n```json\n{\n\"modelName\": \"gpt-4o\",\n\"systemMessage\": \"You are experienced AI engineer and helpfull assistant.\",\n\"temperature\": 0.7\n}\n```\n\n## Instructions\n\n### Option `modelName`\n\nPick from the following models:\n\n- {availableModelNames}\n\n### Option `systemMessage`\n\nThe system message is used to communicate instructions or provide context to the model at the beginning of a conversation. It is displayed in a different format compared to user messages, helping the model understand its role in the conversation. The system message typically guides the model's behavior, sets the tone, or specifies desired output from the model. By utilizing the system message effectively, users can steer the model towards generating more accurate and relevant responses.\n\nFor example:\n\n> You are an experienced AI engineer and helpful assistant.\n\n> You are a friendly and knowledgeable chatbot.\n\n### Option `temperature`\n\nThe sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.\n\nYou can pick a value between 0 and 2. For example:\n\n- `0.1`: Low temperature, extremely conservative and deterministic\n- `0.5`: Medium temperature, balanced between conservative and creative\n- `1.0`: High temperature, creative and bit random\n- `1.5`: Very high temperature, extremely creative and often chaotic and unpredictable\n- `2.0`: Maximum temperature, completely random and unpredictable, for some extreme creative use cases\n\n# The assistant\n\nTake this description of the persona:\n\n> {personaDescription}",expectFormat:"JSON",dependentParameterNames:["availableModelNames","personaDescription"],resultingParameterName:"modelRequirements"}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-persona.ptbk.md"}];
|
|
1634
1687
|
|
|
1635
1688
|
var defaultDiacriticsRemovalMap = [
|
|
1636
1689
|
{
|
|
@@ -6718,6 +6771,15 @@ var ANTHROPIC_CLAUDE_MODELS = [
|
|
|
6718
6771
|
* TODO: [🎰] Some mechanism to auto-update available models
|
|
6719
6772
|
*/
|
|
6720
6773
|
|
|
6774
|
+
/**
|
|
6775
|
+
* Get current date in ISO 8601 format
|
|
6776
|
+
*
|
|
6777
|
+
* @private internal utility
|
|
6778
|
+
*/
|
|
6779
|
+
function getCurrentIsoDate() {
|
|
6780
|
+
return new Date().toISOString();
|
|
6781
|
+
}
|
|
6782
|
+
|
|
6721
6783
|
/**
|
|
6722
6784
|
* Helper of usage compute
|
|
6723
6785
|
*
|
|
@@ -6752,13 +6814,42 @@ function uncertainNumber(value) {
|
|
|
6752
6814
|
}
|
|
6753
6815
|
|
|
6754
6816
|
/**
|
|
6755
|
-
*
|
|
6817
|
+
* Computes the usage of the Anthropic Claude API based on the response from Anthropic Claude
|
|
6756
6818
|
*
|
|
6757
|
-
* @
|
|
6819
|
+
* @param promptContent The content of the prompt
|
|
6820
|
+
* @param resultContent The content of the result (for embedding prompts or failed prompts pass empty string)
|
|
6821
|
+
* @param rawResponse The raw response from Anthropic Claude API
|
|
6822
|
+
* @throws {PipelineExecutionError} If the usage is not defined in the response from Anthropic Claude
|
|
6823
|
+
* @private internal utility of `AnthropicClaudeExecutionTools`
|
|
6758
6824
|
*/
|
|
6759
|
-
function
|
|
6760
|
-
|
|
6825
|
+
function computeAnthropicClaudeUsage(promptContent, // <- Note: Intentionally using [] to access type properties to bring jsdoc from Prompt/PromptResult to consumer
|
|
6826
|
+
resultContent, rawResponse) {
|
|
6827
|
+
var _a, _b;
|
|
6828
|
+
if (rawResponse.usage === undefined) {
|
|
6829
|
+
throw new PipelineExecutionError('The usage is not defined in the response from Anthropic Claude');
|
|
6830
|
+
}
|
|
6831
|
+
if (((_a = rawResponse.usage) === null || _a === void 0 ? void 0 : _a.input_tokens) === undefined) {
|
|
6832
|
+
throw new PipelineExecutionError('In Anthropic Claude response `usage.prompt_tokens` not defined');
|
|
6833
|
+
}
|
|
6834
|
+
var inputTokens = rawResponse.usage.input_tokens;
|
|
6835
|
+
var outputTokens = ((_b = rawResponse.usage) === null || _b === void 0 ? void 0 : _b.output_tokens) || 0;
|
|
6836
|
+
var modelInfo = ANTHROPIC_CLAUDE_MODELS.find(function (model) { return model.modelName === rawResponse.model; });
|
|
6837
|
+
var price;
|
|
6838
|
+
if (modelInfo === undefined || modelInfo.pricing === undefined) {
|
|
6839
|
+
price = uncertainNumber();
|
|
6840
|
+
}
|
|
6841
|
+
else {
|
|
6842
|
+
price = uncertainNumber(inputTokens * modelInfo.pricing.prompt + outputTokens * modelInfo.pricing.output);
|
|
6843
|
+
}
|
|
6844
|
+
return {
|
|
6845
|
+
price: price,
|
|
6846
|
+
input: __assign({ tokensCount: uncertainNumber(rawResponse.usage.input_tokens) }, computeUsageCounts(promptContent)),
|
|
6847
|
+
output: __assign({ tokensCount: uncertainNumber(outputTokens) }, computeUsageCounts(resultContent)),
|
|
6848
|
+
};
|
|
6761
6849
|
}
|
|
6850
|
+
/**
|
|
6851
|
+
* TODO: [🤝] DRY Maybe some common abstraction between `computeOpenaiUsage` and `computeAnthropicClaudeUsage`
|
|
6852
|
+
*/
|
|
6762
6853
|
|
|
6763
6854
|
/**
|
|
6764
6855
|
* Execution Tools for calling Anthropic Claude API.
|
|
@@ -6779,9 +6870,8 @@ var AnthropicClaudeExecutionTools = /** @class */ (function () {
|
|
|
6779
6870
|
var anthropicOptions = __assign({}, options);
|
|
6780
6871
|
delete anthropicOptions.isVerbose;
|
|
6781
6872
|
delete anthropicOptions.isProxied;
|
|
6782
|
-
this.client = new Anthropic(
|
|
6783
|
-
//
|
|
6784
|
-
anthropicOptions);
|
|
6873
|
+
this.client = new Anthropic(anthropicOptions);
|
|
6874
|
+
// <- TODO: !!!!!! Lazy-load client
|
|
6785
6875
|
}
|
|
6786
6876
|
Object.defineProperty(AnthropicClaudeExecutionTools.prototype, "title", {
|
|
6787
6877
|
get: function () {
|
|
@@ -6852,15 +6942,10 @@ var AnthropicClaudeExecutionTools = /** @class */ (function () {
|
|
|
6852
6942
|
if (contentBlock.type !== 'text') {
|
|
6853
6943
|
throw new PipelineExecutionError("Returned content is not \"text\" type but \"".concat(contentBlock.type, "\""));
|
|
6854
6944
|
}
|
|
6855
|
-
console.log('!!!!!! rawResponse.usage', rawResponse.usage);
|
|
6856
6945
|
resultContent = contentBlock.text;
|
|
6857
6946
|
// eslint-disable-next-line prefer-const
|
|
6858
6947
|
complete = getCurrentIsoDate();
|
|
6859
|
-
usage =
|
|
6860
|
-
price: { value: 0, isUncertain: true } /* <- TODO: [🐞] !!!!!! Compute usage */,
|
|
6861
|
-
input: __assign({ tokensCount: uncertainNumber(rawResponse.usage.input_tokens) }, computeUsageCounts(prompt.content)),
|
|
6862
|
-
output: __assign({ tokensCount: uncertainNumber(rawResponse.usage.output_tokens) }, computeUsageCounts(prompt.content)),
|
|
6863
|
-
};
|
|
6948
|
+
usage = computeAnthropicClaudeUsage(content, '', rawResponse);
|
|
6864
6949
|
return [2 /*return*/, {
|
|
6865
6950
|
content: resultContent,
|
|
6866
6951
|
modelName: rawResponse.model,
|
|
@@ -7385,9 +7470,8 @@ var AzureOpenAiExecutionTools = /** @class */ (function () {
|
|
|
7385
7470
|
this.options = options;
|
|
7386
7471
|
this.client = new OpenAIClient(
|
|
7387
7472
|
// <- TODO: [🧱] Implement in a functional (not new Class) way
|
|
7388
|
-
"https://".concat(options.resourceName, ".openai.azure.com/"), new AzureKeyCredential(
|
|
7389
|
-
//
|
|
7390
|
-
options.apiKey));
|
|
7473
|
+
"https://".concat(options.resourceName, ".openai.azure.com/"), new AzureKeyCredential(options.apiKey));
|
|
7474
|
+
// <- TODO: !!!!!! Lazy-load client
|
|
7391
7475
|
}
|
|
7392
7476
|
Object.defineProperty(AzureOpenAiExecutionTools.prototype, "title", {
|
|
7393
7477
|
get: function () {
|
|
@@ -7657,6 +7741,9 @@ resultContent, rawResponse) {
|
|
|
7657
7741
|
output: __assign({ tokensCount: uncertainNumber(outputTokens) }, computeUsageCounts(resultContent)),
|
|
7658
7742
|
};
|
|
7659
7743
|
}
|
|
7744
|
+
/**
|
|
7745
|
+
* TODO: [🤝] DRY Maybe some common abstraction between `computeOpenaiUsage` and `computeAnthropicClaudeUsage`
|
|
7746
|
+
*/
|
|
7660
7747
|
|
|
7661
7748
|
/**
|
|
7662
7749
|
* Execution Tools for calling OpenAI API.
|
|
@@ -7677,6 +7764,7 @@ var OpenAiExecutionTools = /** @class */ (function () {
|
|
|
7677
7764
|
delete openAiOptions.isVerbose;
|
|
7678
7765
|
delete openAiOptions.user;
|
|
7679
7766
|
this.client = new OpenAI(__assign({}, openAiOptions));
|
|
7767
|
+
// <- TODO: !!!!!! Lazy-load client
|
|
7680
7768
|
}
|
|
7681
7769
|
Object.defineProperty(OpenAiExecutionTools.prototype, "title", {
|
|
7682
7770
|
get: function () {
|
|
@@ -7962,42 +8050,6 @@ var OpenAiExecutionTools = /** @class */ (function () {
|
|
|
7962
8050
|
* TODO: [🧠][🌰] Allow to pass `title` for tracking purposes
|
|
7963
8051
|
*/
|
|
7964
8052
|
|
|
7965
|
-
/**
|
|
7966
|
-
* @public exported from `@promptbook/core`
|
|
7967
|
-
*/
|
|
7968
|
-
var LLM_CONFIGURATION_BOILERPLATES = [
|
|
7969
|
-
{
|
|
7970
|
-
title: 'Open AI',
|
|
7971
|
-
packageName: '@promptbook/openai',
|
|
7972
|
-
className: 'OpenAiExecutionTools',
|
|
7973
|
-
options: {
|
|
7974
|
-
apiKey: 'sk-',
|
|
7975
|
-
},
|
|
7976
|
-
},
|
|
7977
|
-
{
|
|
7978
|
-
title: 'Anthropic Claude',
|
|
7979
|
-
packageName: '@promptbook/anthropic-claude',
|
|
7980
|
-
className: 'AnthropicClaudeExecutionTools',
|
|
7981
|
-
options: {
|
|
7982
|
-
apiKey: 'sk-ant-api03-',
|
|
7983
|
-
isProxied: true,
|
|
7984
|
-
remoteUrl: "https://api.pavolhejny.com/",
|
|
7985
|
-
path: '/promptbook/socket.io', // <- TODO: !!!!!! To config DEFAULT_REMOTE_URL_PATH
|
|
7986
|
-
},
|
|
7987
|
-
},
|
|
7988
|
-
{
|
|
7989
|
-
title: 'Azure Open AI',
|
|
7990
|
-
packageName: '@promptbook/azure-openai',
|
|
7991
|
-
className: 'AzureOpenAiExecutionTools',
|
|
7992
|
-
options: {
|
|
7993
|
-
// TODO: !!!> resourceName
|
|
7994
|
-
// TODO: !!!> deploymentName
|
|
7995
|
-
apiKey: 'sk-',
|
|
7996
|
-
},
|
|
7997
|
-
},
|
|
7998
|
-
// <- TODO: !!!!!! To config
|
|
7999
|
-
// <- Note: [🦑] Add here new LLM provider
|
|
8000
|
-
];
|
|
8001
8053
|
/**
|
|
8002
8054
|
* @private internal type for `createLlmToolsFromConfiguration`
|
|
8003
8055
|
*/
|
|
@@ -8014,7 +8066,7 @@ var EXECUTION_TOOLS_CLASSES = {
|
|
|
8014
8066
|
// <- Note: [🦑] Add here new LLM provider
|
|
8015
8067
|
};
|
|
8016
8068
|
/**
|
|
8017
|
-
* TODO:
|
|
8069
|
+
* TODO: !!!!!!! Make global register for this
|
|
8018
8070
|
* TODO: [🧠][🎌] Adding this should be responsibility of each provider package NOT this one central place
|
|
8019
8071
|
*/
|
|
8020
8072
|
|
|
@@ -8622,5 +8674,5 @@ function executionReportJsonToString(executionReportJson, options) {
|
|
|
8622
8674
|
* TODO: [🧠] Should be in generated file GENERATOR_WARNING
|
|
8623
8675
|
*/
|
|
8624
8676
|
|
|
8625
|
-
export { BlockTypes, CLAIM, CallbackInterfaceTools, CollectionError, EXECUTIONS_CACHE_DIRNAME, EXPECTATION_UNITS, EnvironmentMismatchError, ExecutionReportStringOptionsDefaults,
|
|
8677
|
+
export { BOILERPLATE_LLM_TOOLS_CONFIGURATION_, BlockTypes, CLAIM, CallbackInterfaceTools, CollectionError, DEFAULT_REMOTE_URL, DEFAULT_REMOTE_URL_PATH, EXECUTIONS_CACHE_DIRNAME, EXPECTATION_UNITS, EnvironmentMismatchError, ExecutionReportStringOptionsDefaults, LimitReachedError, MAX_EXECUTION_ATTEMPTS, MAX_FILENAME_LENGTH, MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH, MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL, MAX_PARALLEL_COUNT, MODEL_VARIANTS, MemoryStorage, NotFoundError, NotYetImplementedError, PIPELINE_COLLECTION_BASE_FILENAME, PROMPTBOOK_VERSION, ParsingError, PipelineExecutionError, PipelineLogicError, PrefixStorage, RESERVED_PARAMETER_NAMES, ReferenceError$1 as ReferenceError, UnexpectedError, VersionMismatchError, ZERO_USAGE, addUsage, assertsExecutionSuccessful, cacheLlmTools, collectionToJson, countTotalUsage, createCollectionFromJson, createCollectionFromPromise, createCollectionFromUrl, createLlmToolsFromConfiguration, createPipelineExecutor, createSubcollection, embeddingVectorToString, executionReportJsonToString, isPassingExpectations, isPipelinePrepared, joinLlmExecutionTools, limitTotalUsage, pipelineJsonToString, pipelineStringToJson, pipelineStringToJsonSync, prepareKnowledgeFromMarkdown, prepareKnowledgePieces, preparePersona, preparePipeline, prepareTemplates, prettifyPipelineString, stringifyPipelineJson, unpreparePipeline, usageToHuman, usageToWorktime, validatePipeline };
|
|
8626
8678
|
//# sourceMappingURL=index.es.js.map
|