> ## 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.

# Redact Dict • AI Agent SDK

> redact_dict: Redact sensitive values from a dictionary.

# redact\_dict

Function

> This function is defined in the [**redact**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/redact.md) module.

Redact sensitive values from a dictionary.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def redact_dict(data: Dict[str, Any], enabled: bool) -> Dict[str, Any]
```

## Parameters

**data** `Dict[str, Any]` *required*

Dictionary to redact

**enabled** `bool` (default: True)

If False, returns data unchanged

### Returns

**Returns** `Dict[str, Any]`

New dictionary with sensitive values redacted

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/trace/redact.py#L90)
>
> `praisonaiagents/trace/redact.py` at line 90


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.