@promptbook/markdown-utils 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 +1 -1
- package/umd/index.umd.js +6 -2
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -25,7 +25,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
25
25
|
* @generated
|
|
26
26
|
* @see https://github.com/webgptorg/promptbook
|
|
27
27
|
*/
|
|
28
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
|
28
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-28';
|
|
29
29
|
/**
|
|
30
30
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
31
31
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -4911,7 +4911,7 @@ function validatePromptResult(options) {
|
|
|
4911
4911
|
*/
|
|
4912
4912
|
async function executeAttempts(options) {
|
|
4913
4913
|
const { jokerParameterNames, priority, maxAttempts, // <- Note: [💂]
|
|
4914
|
-
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, } = options;
|
|
4914
|
+
preparedContent, parameters, task, preparedPipeline, tools, $executionReport, pipelineIdentification, maxExecutionAttempts, onProgress, } = options;
|
|
4915
4915
|
const $ongoingTaskResult = {
|
|
4916
4916
|
$result: null,
|
|
4917
4917
|
$resultString: null,
|
|
@@ -5155,6 +5155,10 @@ async function executeAttempts(options) {
|
|
|
5155
5155
|
result: $ongoingTaskResult.$resultString,
|
|
5156
5156
|
error: error,
|
|
5157
5157
|
});
|
|
5158
|
+
// Report failed attempt
|
|
5159
|
+
onProgress({
|
|
5160
|
+
errors: [error],
|
|
5161
|
+
});
|
|
5158
5162
|
}
|
|
5159
5163
|
finally {
|
|
5160
5164
|
if (!isJokerAttempt &&
|