Security and Privacy
Mask PII During Runs
pip install --upgrade "glaip-sdk[privacy]"from glaip_sdk import Agent
agent = Agent(name="secure-processor", instruction="Process sensitive inputs.")
response = agent.run(
"Process <EMAIL_1> order",
pii_mapping={
"<EMAIL_1>": "customer@example.com",
"<NAME_1>": "Alex Taylor",
},
)
print(response)curl -X POST "$AIP_API_URL/agents/$AGENT_ID/run" \
-H "Content-Type: application/json" \
-H "X-API-Key: $AIP_API_KEY" \
-d '{
"input": "Process <EMAIL_1> order",
"pii_mapping": {
"<EMAIL_1>": "customer@example.com",
"<NAME_1>": "Alex Taylor"
}
}'Common security gaps
Symptom
Likely cause
Fix
Control Tool Output Sharing
Manage Memory Scope
API Key Hygiene
Presigned Artifact Management
Audit Trails
Related Documentation
Last updated