@promptbook/remote-server 0.100.0-25 → 0.100.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 +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 +2 -2
- package/umd/index.umd.js +6 -2
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -33,7 +33,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
33
33
|
* @generated
|
|
34
34
|
* @see https://github.com/webgptorg/promptbook
|
|
35
35
|
*/
|
|
36
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
|
36
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-28';
|
|
37
37
|
/**
|
|
38
38
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
39
39
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -5282,7 +5282,7 @@ function validatePromptResult(options) {
|
|
|
5282
5282
|
*/
|
|
5283
5283
|
async function executeAttempts(options) {
|
|
5284
5284
|
const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
|
|
5285
|
-
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
|
|
5285
|
+
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
|
|
5286
5286
|
const $ongoingTaskResult = {
|
|
5287
5287
|
$result: null,
|
|
5288
5288
|
$resultString: null,
|
|
@@ -5526,6 +5526,10 @@ async function executeAttempts(options) {
|
|
|
5526
5526
|
result: $ongoingTaskResult.$resultString,
|
|
5527
5527
|
error: error,
|
|
5528
5528
|
});
|
|
5529
|
+
// Report failed attempt
|
|
5530
|
+
onProgress({
|
|
5531
|
+
errors: [error],
|
|
5532
|
+
});
|
|
5529
5533
|
}
|
|
5530
5534
|
finally {
|
|
5531
5535
|
if (!isJokerAttempt &&
|