Mask sensitive information in your prompts before sending them to a third-party LLM.
maskPrompt
method will return a Promise
that resolves to an array with exactly 2 values:unmaskResponse
function will result in an error being thrown.Note: The unmask function is only valid for the specific masked prompt that was provided. It cannot be used to unmask other prompts.