Skip to content

createPiiInputGuard

function createPiiInputGuard(options?): InputProcessor;

PII guard over inbound user text. redact mode rewrites the message before the model (and persisted history) sees the raw value — credit-card redaction inbound is the PCI-relevant default for commerce agents.

Parameter Type

options

PiiGuardOptions

InputProcessor