desanitize#

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

Restore the original sensitive data from the sanitized text.

Parameters:
  • sanitized_text (str) – Sanitized text.

  • secure_context (bytes) – Secure context returned by the sanitize function.

Returns:

De-sanitized text.

Return type:

str