langchain.js
    Preparing search index...
    • 'Merge' two statuses. If either value passed is 'error', it will return 'error'. Else it will return 'success'.

      Parameters

      • Optionalleft: "success" | "error"

        The existing value to 'merge' with the new value.

      • Optionalright: "success" | "error"

        The new value to 'merge' with the existing value

      Returns undefined | "success" | "error"

      The 'merged' value.