# configure_langsmith_secret_redaction

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/config/configure_langsmith_secret_redaction)

Install the LangSmith SDK secret anonymizer for active agent tracing.

This is a fail-closed security control: when redaction is requested but the
redacting client cannot be installed, tracing is disabled rather than risk
uploading unredacted secrets to LangSmith.

## Signature

```python
configure_langsmith_secret_redaction() -> bool
```

## Returns

`bool`

`True` when a redacting LangSmith client was configured, `False` when

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/config.py#L3131)