langsmith.anonymizer.CallableNodeProcessor#

class langsmith.anonymizer.CallableNodeProcessor(func: Callable[[str], str] | Callable[[str, List[str | int]], str])[source]#

String node processor that uses a callable function to replace sensitive data.

Initialize the processor with a callable function.

Parameters:

func (Callable[[str], str] | Callable[[str, List[str | int]], str]) –