@promptbook/pdf 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
@@ -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.100.0-25';
29
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.0-28';
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
@@ -4956,7 +4956,7 @@ function validatePromptResult(options) {
4956
4956
  */
4957
4957
  async function executeAttempts(options) {
4958
4958
  const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
4959
- preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
4959
+ preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
4960
4960
  const $ongoingTaskResult = {
4961
4961
  $result: null,
4962
4962
  $resultString: null,
@@ -5200,6 +5200,10 @@ async function executeAttempts(options) {
5200
5200
  result: $ongoingTaskResult.$resultString,
5201
5201
  error: error,
5202
5202
  });
5203
+ // Report failed attempt
5204
+ onProgress({
5205
+ errors: [error],
5206
+ });
5203
5207
  }
5204
5208
  finally {
5205
5209
  if (!isJokerAttempt &&