PIIType

org.llm4s.agent.guardrails.patterns.PIIPatterns.PIIType
See thePIIType companion trait
object PIIType

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
PIIType.type

Members list

Type members

Classlikes

case object BankAccount extends PIIType

Bank Account Numbers (8-17 digits, simple pattern)

Bank Account Numbers (8-17 digits, simple pattern)

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PIIType
class Object
trait Matchable
class Any
Show all
Self type
case object CreditCard extends PIIType

Credit Card Numbers (major providers: Visa, MasterCard, Amex, Discover) Supports common formats with spaces, dashes, or no separators

Credit Card Numbers (major providers: Visa, MasterCard, Amex, Discover) Supports common formats with spaces, dashes, or no separators

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PIIType
class Object
trait Matchable
class Any
Show all
Self type
CreditCard.type
case object DateOfBirth extends PIIType

Date of Birth (common formats: MM/DD/YYYY, YYYY-MM-DD)

Date of Birth (common formats: MM/DD/YYYY, YYYY-MM-DD)

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PIIType
class Object
trait Matchable
class Any
Show all
Self type
case object Email extends PIIType

Email addresses (RFC 5322 simplified)

Email addresses (RFC 5322 simplified)

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PIIType
class Object
trait Matchable
class Any
Show all
Self type
Email.type
case object IPAddress extends PIIType

IP Addresses (IPv4)

IP Addresses (IPv4)

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PIIType
class Object
trait Matchable
class Any
Show all
Self type
IPAddress.type
case object Passport extends PIIType

US Passport Numbers (9 alphanumeric characters)

US Passport Numbers (9 alphanumeric characters)

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PIIType
class Object
trait Matchable
class Any
Show all
Self type
Passport.type
case object Phone extends PIIType

Phone numbers (US formats: (XXX) XXX-XXXX, XXX-XXX-XXXX, XXX.XXX.XXXX)

Phone numbers (US formats: (XXX) XXX-XXXX, XXX-XXX-XXXX, XXX.XXX.XXXX)

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PIIType
class Object
trait Matchable
class Any
Show all
Self type
Phone.type
case object SSN extends PIIType

Social Security Number (US format: XXX-XX-XXXX) Validates against known invalid SSNs (000, 666, 9XX prefix)

Social Security Number (US format: XXX-XX-XXXX) Validates against known invalid SSNs (000, 666, 9XX prefix)

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PIIType
class Object
trait Matchable
class Any
Show all
Self type
SSN.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete fields

val all: Seq[PIIType]

All PII types for comprehensive scanning.

All PII types for comprehensive scanning.

Attributes

val default: Seq[PIIType]

Default set of high-confidence PII types (lower false positive rate). Excludes BankAccount which has high false positive rate with random numbers.

Default set of high-confidence PII types (lower false positive rate). Excludes BankAccount which has high false positive rate with random numbers.

Attributes

val sensitive: Seq[PIIType]

Sensitive set including financial information.

Sensitive set including financial information.

Attributes