@promptbook/legacy-documents 0.92.0-27 → 0.92.0-28
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 +17 -9
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +4 -4
- package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +0 -2
- package/esm/typings/src/constants.d.ts +35 -0
- package/esm/typings/src/executables/$provideExecutablesForNode.d.ts +1 -1
- package/esm/typings/src/executables/apps/locateLibreoffice.d.ts +2 -1
- package/esm/typings/src/executables/apps/locatePandoc.d.ts +2 -1
- package/esm/typings/src/executables/platforms/locateAppOnLinux.d.ts +2 -1
- package/esm/typings/src/executables/platforms/locateAppOnMacOs.d.ts +2 -1
- package/esm/typings/src/executables/platforms/locateAppOnWindows.d.ts +2 -1
- package/esm/typings/src/execution/AbstractTaskResult.d.ts +1 -1
- package/esm/typings/src/execution/LlmExecutionToolsConstructor.d.ts +2 -1
- package/esm/typings/src/execution/PipelineExecutorResult.d.ts +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/$OngoingTaskResult.d.ts +12 -9
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +20 -14
- package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +7 -6
- package/esm/typings/src/execution/createPipelineExecutor/getContextForTask.d.ts +5 -1
- package/esm/typings/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +8 -11
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +4 -4
- package/esm/typings/src/formats/csv/CsvSettings.d.ts +2 -2
- package/esm/typings/src/formfactors/chatbot/ChatbotFormfactorDefinition.d.ts +2 -2
- package/esm/typings/src/formfactors/completion/CompletionFormfactorDefinition.d.ts +1 -1
- package/esm/typings/src/formfactors/generator/GeneratorFormfactorDefinition.d.ts +2 -1
- package/esm/typings/src/formfactors/generic/GenericFormfactorDefinition.d.ts +2 -2
- package/esm/typings/src/formfactors/index.d.ts +3 -3
- package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +4 -37
- package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/deepseek/deepseek-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
- package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +2 -2
- package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +2 -2
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +17 -9
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-28';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -4258,7 +4258,7 @@ function union(...sets) {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
|
|
4260
4260
|
/**
|
|
4261
|
-
*
|
|
4261
|
+
* Contains configuration options for parsing and generating CSV files, such as delimiters and quoting rules.
|
|
4262
4262
|
*
|
|
4263
4263
|
* @public exported from `@promptbook/core`
|
|
4264
4264
|
*/
|
|
@@ -4956,8 +4956,12 @@ function checkExpectations(expectations, value) {
|
|
|
4956
4956
|
*/
|
|
4957
4957
|
|
|
4958
4958
|
/**
|
|
4959
|
-
*
|
|
4959
|
+
* Executes a pipeline task with multiple attempts, including joker and retry logic. Handles different task types
|
|
4960
|
+
* (prompt, script, dialog, etc.), applies postprocessing, checks expectations, and updates the execution report.
|
|
4961
|
+
* Throws errors if execution fails after all attempts.
|
|
4960
4962
|
*
|
|
4963
|
+
* @param options - The options for execution, including task, parameters, pipeline, and configuration.
|
|
4964
|
+
* @returns The result string of the executed task.
|
|
4961
4965
|
* @private internal utility of `createPipelineExecutor`
|
|
4962
4966
|
*/
|
|
4963
4967
|
async function executeAttempts(options) {
|
|
@@ -5415,8 +5419,12 @@ async function executeFormatSubvalues(options) {
|
|
|
5415
5419
|
}
|
|
5416
5420
|
|
|
5417
5421
|
/**
|
|
5418
|
-
*
|
|
5422
|
+
* Returns the context for a given task, typically used to provide additional information or variables
|
|
5423
|
+
* required for the execution of the task within a pipeline. The context is returned as a string value
|
|
5424
|
+
* that may include markdown formatting.
|
|
5419
5425
|
*
|
|
5426
|
+
* @param task - The task for which the context is being generated. This should be a deeply immutable TaskJson object.
|
|
5427
|
+
* @returns The context as a string, formatted as markdown and parameter value.
|
|
5420
5428
|
* @private internal utility of `createPipelineExecutor`
|
|
5421
5429
|
*/
|
|
5422
5430
|
async function getContextForTask(task) {
|
|
@@ -5424,7 +5432,7 @@ async function getContextForTask(task) {
|
|
|
5424
5432
|
}
|
|
5425
5433
|
|
|
5426
5434
|
/**
|
|
5427
|
-
*
|
|
5435
|
+
* Retrieves example values or templates for a given task, used to guide or validate pipeline execution.
|
|
5428
5436
|
*
|
|
5429
5437
|
* @private internal utility of `createPipelineExecutor`
|
|
5430
5438
|
*/
|
|
@@ -5471,9 +5479,8 @@ function knowledgePiecesToString(knowledgePieces) {
|
|
|
5471
5479
|
}
|
|
5472
5480
|
|
|
5473
5481
|
/**
|
|
5474
|
-
*
|
|
5475
|
-
*
|
|
5476
|
-
* Here is the place where RAG (retrieval-augmented generation) happens
|
|
5482
|
+
* Retrieves the most relevant knowledge pieces for a given task using embedding-based similarity search.
|
|
5483
|
+
* This is where retrieval-augmented generation (RAG) is performed to enhance the task with external knowledge.
|
|
5477
5484
|
*
|
|
5478
5485
|
* @private internal utility of `createPipelineExecutor`
|
|
5479
5486
|
*/
|
|
@@ -5692,7 +5699,8 @@ async function executeTask(options) {
|
|
|
5692
5699
|
*/
|
|
5693
5700
|
|
|
5694
5701
|
/**
|
|
5695
|
-
*
|
|
5702
|
+
* Filters and returns only the output parameters from the provided pipeline execution options.
|
|
5703
|
+
* Adds warnings for any expected output parameters that are missing.
|
|
5696
5704
|
*
|
|
5697
5705
|
* @private internal utility of `createPipelineExecutor`
|
|
5698
5706
|
*/
|