Default
The Default mode is what Custodian Agents use when privacy_enabled is on. It works
in two steps:
- Sanitization. Personal details are replaced with labels such as
[PII_1]before the model sees them. - Rehydration. When the reply comes back, every original detail is put back, so the user gets a complete, personal answer.
User: Hi, I'm Dana Reyes, call me on 415-555-0123 about my knee.
Model sees: Hi, I'm [PII_1], call me on [PII_2] about my knee.
Model says: Thanks [PII_1], a nurse will call [PII_2] today.
User sees: Thanks Dana Reyes, a nurse will call 415-555-0123 today.
By default it covers names, phone numbers, ages and dates.
Turn it on
Set privacy_enabled on an agent. There's nothing else to call.
Custodian(model="gpt-6-luna", system_prompt="...", privacy_enabled=True)
new Custodian({ model: "gpt-6-luna", systemPrompt: "...", privacyEnabled: true });
Compared with the other modes
| Mode | The model or reader sees | Use it when |
|---|---|---|
| Default | [PII_1] | Users should get a complete, personal answer from an agent |
| Transform | Maria Lopez | You want realistic text, such as test data or analytics |
| Masking | D***** | You need to show that data was removed |
| Placeholder | [NAME] | You want to keep the type of data but not the value |
Transform, Masking and Placeholder are for calling Guardian Layer directly, from the SDKs, the API or the Dashboard.