Commit ec50070
committed
Fix invalid inline-checks doc examples; document missing-score fail-safe
Address review:
- The XML doc examples used invalid SDK enum values (PROMPT_ATTACK, US_SSN)
that would fail-closed on every call if copied. Use real constants
(JAILBREAK/PROMPT_INJECTION/PROMPT_LEAKAGE; US_SOCIAL_SECURITY_NUMBER/EMAIL/PHONE).
- Expand the comment on ChecksTripped's missing-score handling to make the
deliberate fail-safe (deny) trade-off explicit.1 parent fd73155 commit ec50070
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments