Toxicity Detection
Detect and filter toxic, harmful, or offensive content in user inputs and agent outputs.Configuration
Threshold Guidelines
Example
Prompt Injection Detection
Protect agents from malicious prompt manipulation attacks that attempt to override instructions or extract sensitive information.Configuration
What It Detects
- Instruction override attempts (“Ignore previous instructions…”)
- Role manipulation (“You are now a different AI…”)
- System prompt extraction (“Print your system prompt…”)
- Jailbreak attempts
- Encoded/obfuscated malicious prompts
Advanced Configuration
PII Detection
Detect and handle Personally Identifiable Information to protect user privacy and ensure compliance.Configuration
PII Types Reference
Actions Reference
GDPR-Compliant Configuration
Secrets Detection
Prevent API keys, passwords, tokens, and other secrets from being exposed in conversations.Configuration
Actions Reference
What It Detects
- API keys (OpenAI, AWS, Google, etc.)
- Access tokens and bearer tokens
- Passwords and passphrases
- Private keys (SSH, PGP, etc.)
- Database connection strings
- JWT tokens
- OAuth secrets
Example
NSFW Detection
Detect and filter Not Safe For Work content including adult content, violence, and inappropriate material.Configuration
Threshold Guidelines
Advanced Configuration
Topic Control
Restrict agents to specific topics using allowlists and blocklists.Banned Topics (Blocklist)
Allowed Topics (Allowlist)
Combined Configuration
Keyword Filtering
Filter messages containing specific keywords or phrases.Configuration
Use Cases
Fairness and Bias Detection
Detect and prevent biased or unfair responses.Configuration
Combining Features
Create comprehensive policies by combining multiple features:Monitoring and Testing
Test Your Policy
Best Practices
- Start Strict: Begin with stricter settings and relax based on needs
- Layer Defenses: Combine multiple features for comprehensive protection
- Test Thoroughly: Test with edge cases before production
- Monitor: Review blocked content to tune thresholds
- Document: Keep records of policy changes and rationale
- Compliance: Align policies with regulatory requirements (GDPR, HIPAA, etc.)