Anonymize PII (LLM)
, Fixed PII Filter
).PII Detector
).return false
).text
module is imported to enable regular expression operations (text.re_replace
).[\w\.-]+@[\w\.-]+\.\w+
filter
function accepts an input string (e.g., tool output) and:
text.re_replace
to identify email addresses.[REDACTED EMAIL]
.Support Ticket Viewer
, which retrieves user tickets from a system. These tickets often contain email addresses. Middleware ensures that no sensitive email information is included in the output sent to the LLM.