Using a Redactor
Pass aredactor to import_conversations():
Writing a Custom Redactor
Redactors extendBasePiiRedactor and implement two methods:
redact(trajectory)— return a new trajectory with PII removedpreview(trajectories)— dry-run that reports what would be redacted
Preview Before Redacting
Usepreview() to check what a redactor would catch without modifying any data: