Type Alias AiPiiScanResult
AiPiiScanResult:
| { detected: false }
| { detected: true; matchedTypes: string[]; redactedPrompt: string }
Type Declaration
- { detected: false }
- { detected: true; matchedTypes: string[]; redactedPrompt: string }
-
detected: true
-
matchedTypes: string[]
-
redactedPrompt: string
Outcome of screening one prompt. On a detection the prompt is replaced by redactedPrompt everywhere it would otherwise be stored, so the audit trail records that a request was refused and why without restating the values that caused it.