@promptbook/legacy-documents 0.103.0-45 → 0.103.0-46

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 = '2.0.0';
26
26
  * @generated
27
27
  * @see https://github.com/webgptorg/promptbook
28
28
  */
29
- const PROMPTBOOK_ENGINE_VERSION = '0.103.0-45';
29
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-46';
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
@@ -2052,6 +2052,8 @@ function isValidJsonString(value /* <- [👨‍⚖️] */) {
2052
2052
  * Function `validatePipelineString` will validate the if the string is a valid pipeline string
2053
2053
  * It does not check if the string is fully logically correct, but if it is a string that can be a pipeline string or the string looks completely different.
2054
2054
  *
2055
+ * Note: [🔂] This function is idempotent.
2056
+ *
2055
2057
  * @param {string} pipelineString the candidate for a pipeline string
2056
2058
  * @returns {PipelineString} the same string as input, but validated as valid
2057
2059
  * @throws {ParseError} if the string is not a valid pipeline string
@@ -2641,6 +2643,8 @@ function isValidPipelineUrl(url) {
2641
2643
  * - if it is valid json
2642
2644
  * - if it is meaningful
2643
2645
  *
2646
+ * Note: [🔂] This function is idempotent.
2647
+ *
2644
2648
  * @param pipeline valid or invalid PipelineJson
2645
2649
  * @returns the same pipeline if it is logically valid
2646
2650
  * @throws {PipelineLogicError} on logical error in the pipeline
@@ -6076,6 +6080,8 @@ function checkExpectations(expectations, value) {
6076
6080
  * This function provides a common abstraction for result validation that can be used
6077
6081
  * by both execution logic and caching logic to ensure consistency.
6078
6082
  *
6083
+ * Note: [🔂] This function is idempotent.
6084
+ *
6079
6085
  * @param options - The validation options including result string, expectations, and format
6080
6086
  * @returns Validation result with processed string and validity status
6081
6087
  * @private internal function of `createPipelineExecutor` and `cacheLlmTools`