@promptbook/markitdown 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
|
@@ -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-
|
|
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
|
|
@@ -4943,7 +4943,7 @@ function validatePromptResult(options) {
|
|
|
4943
4943
|
*/
|
|
4944
4944
|
async function executeAttempts(options) {
|
|
4945
4945
|
const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
|
|
4946
|
-
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
|
|
4946
|
+
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
|
|
4947
4947
|
const $ongoingTaskResult = {
|
|
4948
4948
|
$result: null,
|
|
4949
4949
|
$resultString: null,
|
|
@@ -5187,6 +5187,10 @@ async function executeAttempts(options) {
|
|
|
5187
5187
|
result: $ongoingTaskResult.$resultString,
|
|
5188
5188
|
error: error,
|
|
5189
5189
|
});
|
|
5190
|
+
// Report failed attempt
|
|
5191
|
+
onProgress({
|
|
5192
|
+
errors: [error],
|
|
5193
|
+
});
|
|
5190
5194
|
}
|
|
5191
5195
|
finally {
|
|
5192
5196
|
if (!isJokerAttempt &&
|