> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Outbound Redactor • AI Agent SDK

> OutboundRedactor: Overridable contract for scrubbing outbound text before dispatch.

# OutboundRedactor

> Defined in the [**secrets**](../modules/secrets) module.

<Badge color="blue">AI Agent</Badge>

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

<CardGroup cols={2}>
  <Card title="redact()" icon="function" href="../functions/OutboundRedactor-redact">
    Instance method — `redact(self, text: str) -> str`.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/secrets.py#L364">
  `praisonaiagents/secrets.py` at line 364
</Card>
