@promptbook/pdf 0.92.0-27 → 0.92.0-29
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
|
@@ -26,7 +26,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
26
26
|
* @generated
|
|
27
27
|
* @see https://github.com/webgptorg/promptbook
|
|
28
28
|
*/
|
|
29
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
29
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-29';
|
|
30
30
|
/**
|
|
31
31
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
32
32
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -4107,7 +4107,7 @@ function union(...sets) {
|
|
|
4107
4107
|
}
|
|
4108
4108
|
|
|
4109
4109
|
/**
|
|
4110
|
-
*
|
|
4110
|
+
* Contains configuration options for parsing and generating CSV files, such as delimiters and quoting rules.
|
|
4111
4111
|
*
|
|
4112
4112
|
* @public exported from `@promptbook/core`
|
|
4113
4113
|
*/
|
|
@@ -4805,8 +4805,12 @@ function checkExpectations(expectations, value) {
|
|
|
4805
4805
|
*/
|
|
4806
4806
|
|
|
4807
4807
|
/**
|
|
4808
|
-
*
|
|
4808
|
+
* Executes a pipeline task with multiple attempts, including joker and retry logic. Handles different task types
|
|
4809
|
+
* (prompt, script, dialog, etc.), applies postprocessing, checks expectations, and updates the execution report.
|
|
4810
|
+
* Throws errors if execution fails after all attempts.
|
|
4809
4811
|
*
|
|
4812
|
+
* @param options - The options for execution, including task, parameters, pipeline, and configuration.
|
|
4813
|
+
* @returns The result string of the executed task.
|
|
4810
4814
|
* @private internal utility of `createPipelineExecutor`
|
|
4811
4815
|
*/
|
|
4812
4816
|
async function executeAttempts(options) {
|
|
@@ -5264,8 +5268,12 @@ async function executeFormatSubvalues(options) {
|
|
|
5264
5268
|
}
|
|
5265
5269
|
|
|
5266
5270
|
/**
|
|
5267
|
-
*
|
|
5271
|
+
* Returns the context for a given task, typically used to provide additional information or variables
|
|
5272
|
+
* required for the execution of the task within a pipeline. The context is returned as a string value
|
|
5273
|
+
* that may include markdown formatting.
|
|
5268
5274
|
*
|
|
5275
|
+
* @param task - The task for which the context is being generated. This should be a deeply immutable TaskJson object.
|
|
5276
|
+
* @returns The context as a string, formatted as markdown and parameter value.
|
|
5269
5277
|
* @private internal utility of `createPipelineExecutor`
|
|
5270
5278
|
*/
|
|
5271
5279
|
async function getContextForTask(task) {
|
|
@@ -5273,7 +5281,7 @@ async function getContextForTask(task) {
|
|
|
5273
5281
|
}
|
|
5274
5282
|
|
|
5275
5283
|
/**
|
|
5276
|
-
*
|
|
5284
|
+
* Retrieves example values or templates for a given task, used to guide or validate pipeline execution.
|
|
5277
5285
|
*
|
|
5278
5286
|
* @private internal utility of `createPipelineExecutor`
|
|
5279
5287
|
*/
|
|
@@ -5320,9 +5328,8 @@ function knowledgePiecesToString(knowledgePieces) {
|
|
|
5320
5328
|
}
|
|
5321
5329
|
|
|
5322
5330
|
/**
|
|
5323
|
-
*
|
|
5324
|
-
*
|
|
5325
|
-
* Here is the place where RAG (retrieval-augmented generation) happens
|
|
5331
|
+
* Retrieves the most relevant knowledge pieces for a given task using embedding-based similarity search.
|
|
5332
|
+
* This is where retrieval-augmented generation (RAG) is performed to enhance the task with external knowledge.
|
|
5326
5333
|
*
|
|
5327
5334
|
* @private internal utility of `createPipelineExecutor`
|
|
5328
5335
|
*/
|
|
@@ -5541,7 +5548,8 @@ async function executeTask(options) {
|
|
|
5541
5548
|
*/
|
|
5542
5549
|
|
|
5543
5550
|
/**
|
|
5544
|
-
*
|
|
5551
|
+
* Filters and returns only the output parameters from the provided pipeline execution options.
|
|
5552
|
+
* Adds warnings for any expected output parameters that are missing.
|
|
5545
5553
|
*
|
|
5546
5554
|
* @private internal utility of `createPipelineExecutor`
|
|
5547
5555
|
*/
|