@promptbook/core 0.100.0-25 → 0.100.0-27
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 +6 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +6 -1
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +0 -5
- package/esm/typings/src/types/ModelRequirements.d.ts +0 -2
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +6 -2
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
|
30
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-27';
|
|
31
31
|
/**
|
|
32
32
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
33
33
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -6109,7 +6109,7 @@ function validatePromptResult(options) {
|
|
|
6109
6109
|
*/
|
|
6110
6110
|
async function executeAttempts(options) {
|
|
6111
6111
|
const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
|
|
6112
|
-
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
|
|
6112
|
+
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
|
|
6113
6113
|
const $ongoingTaskResult = {
|
|
6114
6114
|
$result: null,
|
|
6115
6115
|
$resultString: null,
|
|
@@ -6353,6 +6353,10 @@ async function executeAttempts(options) {
|
|
|
6353
6353
|
result: $ongoingTaskResult.$resultString,
|
|
6354
6354
|
error: error,
|
|
6355
6355
|
});
|
|
6356
|
+
// Report failed attempt
|
|
6357
|
+
onProgress({
|
|
6358
|
+
errors: [error],
|
|
6359
|
+
});
|
|
6356
6360
|
}
|
|
6357
6361
|
finally {
|
|
6358
6362
|
if (!isJokerAttempt &&
|