@promptbook/core 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
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
27
27
  * @generated
28
28
  * @see https://github.com/webgptorg/promptbook
29
29
  */
30
- const PROMPTBOOK_ENGINE_VERSION = '0.104.0-4';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.104.0-5';
31
31
  /**
32
32
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
33
33
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -16978,12 +16978,13 @@ function cacheLlmTools(llmTools, options = {}) {
16978
16978
  }
16979
16979
  }
16980
16980
  catch (error) {
16981
+ assertsError(error);
16981
16982
  // If validation throws an unexpected error, don't cache
16982
16983
  shouldCache = false;
16983
16984
  if (isVerbose) {
16984
16985
  console.info('Not caching result due to validation error for key:', key, {
16985
16986
  content: promptResult.content,
16986
- validationError: error instanceof Error ? error.message : String(error),
16987
+ validationError: serializeError(error),
16987
16988
  });
16988
16989
  }
16989
16990
  }