langchain_experimental.comprehend_moderation.pii
.ComprehendPII¶
- class langchain_experimental.comprehend_moderation.pii.ComprehendPII(client: Any, callback: Optional[Any] = None, unique_id: Optional[str] = None, chain_id: Optional[str] = None)[source]¶
处理个人信息(PII)审查的类。
方法
__init__
(client[, callback, unique_id, chain_id])validate
(prompt_value[, config])- 参数
client (Any) –
callback (Optional[Any]) –
unique_id (Optional[str]) –
chain_id (Optional[str]) –