Module redact
Expand description
Category-based redaction for durable memory content.
redact rewrites matches for the enabled RedactCategory set to
[REDACTED:<category>] placeholders before content is persisted. The
write path applies it only when [memory.policy].redact_on_write is
enabled; the category list comes from
[memory.policy].redact_categories.
Structs§
- Redaction
Hit - A single redaction: the category and the replaced byte range.
Enums§
- Redact
Category - A redactable content category.
Functions§
- redact
- Replace matches for the enabled categories with
[REDACTED:<category>]placeholders. Returns the rewritten content and the list of replacements made.