ComprehendPII#

class langchain_experimental.comprehend_moderation.pii.ComprehendPII(client: Any, callback: Any | None = None, unique_id: str | None = None, chain_id: str | None = None)[source]#

Class to handle Personally Identifiable Information (PII) moderation.

Methods

__init__(client[, callback, unique_id, chain_id])

validate(prompt_value[, config])

Parameters:
  • client (Any) –

  • callback (Any | None) –

  • unique_id (str | None) –

  • chain_id (str | None) –

__init__(client: Any, callback: Any | None = None, unique_id: str | None = None, chain_id: str | None = None) None[source]#
Parameters:
  • client (Any) –

  • callback (Any | None) –

  • unique_id (str | None) –

  • chain_id (str | None) –

Return type:

None

validate(prompt_value: str, config: Any = None) str[source]#
Parameters:
  • prompt_value (str) –

  • config (Any) –

Return type:

str