Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/provider / / PromptRedactionViolation
Interface: PromptRedactionViolation
Defined in: packages/provider/src/middleware/with-redaction.ts:60
Sanitized record handed to onViolation. Carries metadata only; never the matched value.
Stable
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
action | readonly | "throw" | "redact" | "block-and-prompt-user" | packages/provider/src/middleware/with-redaction.ts:66 |
fieldPath | readonly | string | packages/provider/src/middleware/with-redaction.ts:62 |
matchLength | readonly | number | packages/provider/src/middleware/with-redaction.ts:64 |
patternName | readonly | string | packages/provider/src/middleware/with-redaction.ts:61 |
role? | readonly | string | packages/provider/src/middleware/with-redaction.ts:63 |
trustClass? | readonly | LocalProviderTrust | packages/provider/src/middleware/with-redaction.ts:65 |