Skip to main content

OutboundRedactor

Defined in the secrets module.
AI Agent Overridable contract for scrubbing outbound text before dispatch. A @runtime_checkable Protocol. The default implementation is redact_outbound. A deployment may supply its own (e.g. one that also applies a PII policy) and inject it at the wrapper’s delivery seam without importing anything heavy into core.

Methods

redact()

Instance method — redact(self, text: str) -> str.

Source

View on GitHub

praisonaiagents/secrets.py at line 364