Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / guardrails / piiDetection

Function: piiDetection()

ts
function piiDetection<TValue>(opts?): GuardrailDefinition<TValue>;

Defined in: packages/security/src/guardrails/builtins/pii-detection.ts:98

Construct the PII detection guardrail.

Type Parameters

Type ParameterDefault type
TValueunknown

Parameters

ParameterType
optsPiiDetectionOptions

Returns

GuardrailDefinition&lt;TValue&gt;

Stable