redact_string
Function
This function is defined in the redact module.Redact potential secrets from a string. This is a best-effort function that looks for common patterns like “api_key=xxx” or “password: xxx” in strings.
Signature
Parameters
str
required
String to redact
bool
default:"True"
If False, returns text unchanged
Returns
str
String with potential secrets redacted
Uses
_REDACT_KV_PATTERN.sub
Used By
Source
View on GitHub
praisonaiagents/trace/redact.py at line 227
