PIIDetector

org.llm4s.agent.guardrails.builtin.PIIDetector
See thePIIDetector companion class
object PIIDetector

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Create a PIIDetector with default settings (Block mode, standard PII types).

Create a PIIDetector with default settings (Block mode, standard PII types).

Attributes

def apply(piiTypes: Seq[PIIType]): PIIDetector

Create a PIIDetector with custom PII types.

Create a PIIDetector with custom PII types.

Value parameters

piiTypes

Types of PII to detect

Attributes

Create a PIIDetector with custom action mode.

Create a PIIDetector with custom action mode.

Value parameters

onFail

Action to take when PII is detected

Attributes

def apply(piiTypes: Seq[PIIType], onFail: GuardrailAction): PIIDetector

Create a PIIDetector with custom settings.

Create a PIIDetector with custom settings.

Value parameters

onFail

Action to take when PII is detected

piiTypes

Types of PII to detect

Attributes

Preset: Contact info - detects emails and phone numbers. Masking mode (redacts on detection).

Preset: Contact info - detects emails and phone numbers. Masking mode (redacts on detection).

Attributes

Preset: Financial - detects credit cards, bank accounts, SSNs. Strict mode (blocks on detection).

Preset: Financial - detects credit cards, bank accounts, SSNs. Strict mode (blocks on detection).

Attributes

Preset: Masking mode - automatically redacts detected PII. Detects default PII types.

Preset: Masking mode - automatically redacts detected PII. Detects default PII types.

Attributes

Preset: Monitoring mode - warns but allows processing. Detects default PII types.

Preset: Monitoring mode - warns but allows processing. Detects default PII types.

Attributes

Preset: Strict mode - blocks on any PII detection. Detects all PII types.

Preset: Strict mode - blocks on any PII detection. Detects all PII types.

Attributes