redactionStrategy 默认 PII 脱敏策略
| 80 | |
| 81 | // redactionStrategy 默认 PII 脱敏策略 |
| 82 | type redactionStrategy struct { |
| 83 | redactor security.ContentRedactor |
| 84 | } |
| 85 | |
| 86 | func (r *redactionStrategy) Sanitize(item *KnowledgeItem) *KnowledgeItem { |
| 87 | if r == nil || r.redactor == nil || item == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected