langchain.utilities.opaqueprompts.desanitize

langchain.utilities.opaqueprompts.desanitize(sanitized_text: str, secure_context: bytes) str[source]

Restore the original sensitive data from the sanitized text.

Parameters
  • sanitized_text – Sanitized text.

  • secure_context – Secure context returned by the sanitize function.

Returns

De-sanitized text.