@promptbook/legacy-documents 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 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.100.0-25';
31
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.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
@@ -5107,7 +5107,7 @@ function validatePromptResult(options) {
5107
5107
  */
5108
5108
  async function executeAttempts(options) {
5109
5109
  const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
5110
- preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
5110
+ preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
5111
5111
  const $ongoingTaskResult = {
5112
5112
  $result: null,
5113
5113
  $resultString: null,
@@ -5351,6 +5351,10 @@ async function executeAttempts(options) {
5351
5351
  result: $ongoingTaskResult.$resultString,
5352
5352
  error: error,
5353
5353
  });
5354
+ // Report failed attempt
5355
+ onProgress({
5356
+ errors: [error],
5357
+ });
5354
5358
  }
5355
5359
  finally {
5356
5360
  if (!isJokerAttempt &&