# RuleNodeProcessor

> **Class** in `langsmith`

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

String node processor that uses a list of rules to replace sensitive data.

## Signature

```python
RuleNodeProcessor(
    self,
    rules: list[StringNodeRule],
)
```

## Extends

- `StringNodeProcessor`

## Constructors

```python
__init__(
    self,
    rules: list[StringNodeRule],
)
```

| Name | Type |
|------|------|
| `rules` | `list[StringNodeRule]` |


## Properties

- `rules`

## Methods

- [`mask_nodes()`](https://reference.langchain.com/python/langsmith/anonymizer/RuleNodeProcessor/mask_nodes)

---

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