StringNodeProcessor#

class langsmith.anonymizer.StringNodeProcessor[source]#

Processes a list of string nodes for masking.

Methods

__init__()

mask_nodes(nodes)

Accept and return a list of string nodes to be masked.

__init__()#
abstract mask_nodes(nodes: List[StringNode]) List[StringNode][source]#

Accept and return a list of string nodes to be masked.

Parameters:

nodes (List[StringNode])

Return type:

List[StringNode]