Skip to content
masterclass Buddy

LangSmith · Function

create_anonymizer

Creates a callable that anonymizes sensitive text in nested data. It accepts replacement rules or a custom string replacer and can limit recursion depth.

Last updated

Since
v0.5

Syntax

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

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • StringNodeProcessor
  • RuleNodeProcessor
  • CallableNodeProcessor
  • Client
  • hide_inputs
  • hide_outputs

Source: create_anonymizer | langsmith | LangChain Reference. Checked 2026-11-03.