MCPcopy Create free account
hub / github.com/astercloud/aster / sanitizeContent

Method sanitizeContent

pkg/knowledge/manager.go:841–846  ·  view source on GitHub ↗

sanitizeContent 内容净化(PII检测)

(item *KnowledgeItem)

Source from the content-addressed store, hash-verified

839
840// sanitizeContent 内容净化(PII检测)
841func (m *manager) sanitizeContent(item *KnowledgeItem) *KnowledgeItem {
842 if m.piiStrategy == nil {
843 return item
844 }
845 return m.piiStrategy.Sanitize(item)
846}
847
848// updateCache 更新缓存
849func (m *manager) updateCache(item *KnowledgeItem) {

Callers 2

AddMethod · 0.95
UpdateMethod · 0.95

Calls 1

SanitizeMethod · 0.65

Tested by

no test coverage detected