@promptbook/wizard 0.104.0-4 → 0.104.0-5

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
@@ -36,7 +36,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
36
36
  * @generated
37
37
  * @see https://github.com/webgptorg/promptbook
38
38
  */
39
- const PROMPTBOOK_ENGINE_VERSION = '0.104.0-4';
39
+ const PROMPTBOOK_ENGINE_VERSION = '0.104.0-5';
40
40
  /**
41
41
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
42
42
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -19170,12 +19170,13 @@ function cacheLlmTools(llmTools, options = {}) {
19170
19170
  }
19171
19171
  }
19172
19172
  catch (error) {
19173
+ assertsError(error);
19173
19174
  // If validation throws an unexpected error, don't cache
19174
19175
  shouldCache = false;
19175
19176
  if (isVerbose) {
19176
19177
  console.info('Not caching result due to validation error for key:', key, {
19177
19178
  content: promptResult.content,
19178
- validationError: error instanceof Error ? error.message : String(error),
19179
+ validationError: serializeError(error),
19179
19180
  });
19180
19181
  }
19181
19182
  }