redact
AI Agent Redaction utilities for action trace. Provides deterministic redaction of sensitive data in tool arguments and results. Uses only stdlib for zero dependencies.Import
Functions
redact_dict()
Redact sensitive values from a dictionary.
scrub_pii_text()
Redact API keys, passwords, SSNs, credit cards, and emails from free text.
enable_pii_redaction()
Register a BEFORE_LLM hook that scrubs secrets from every message.
disable_pii_redaction()
Unregister the PII-redaction hook. No-op if never enabled.
redact_string()
Redact potential secrets from a string.

