createSecretAnonymizer(options: __type): (data: T) => T| Name | Type | Description |
|---|---|---|
options | __type |
Build an anonymizer pre-loaded with DEFAULT_SECRET_RULES suitable for
passing to new Client({ anonymizer }). It redacts detected secrets from run
inputs, outputs, and metadata client-side, before they are uploaded.
import { Client } from "langsmith";
import { createSecretAnonymizer } from "langsmith/anonymizer";
const client = new Client({ anonymizer: createSecretAnonymizer() });