Ssn Rule • Rust AI Agent SDK

ssn_rule: Create a rule to block PII (Social Security Numbers).

ssn_rule

Function

</div>

This function is defined in the policy module.

Create a rule to block PII (Social Security Numbers).

Signature

python
def ssn_rule() -> PolicyRule

Returns

ResponseField PolicyRule

The result of the operation.

Uses

  • description
  • pattern
  • action
  • replacement

Source

View on GitHub

praisonai/src/policy/mod.rs at line 390