# create_anonymizer

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/anonymizer/create_anonymizer)

Create an anonymizer function.

## Signature

```python
create_anonymizer(
    replacer: ReplacerType,
    *,
    max_depth: Optional[int] = None,
) -> Callable[[Any], Any]
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/ce9e9e8973442b33e98ec3ce1b9c2dd3f58a43a7/python/langsmith/anonymizer.py#L175)