Overview
Guardian is Continum’s pre-LLM protection layer that runs before your LLM call. It scans user input for PII and sensitive data, then either blocks, redacts, or allows the request based on your configuration.Key Characteristics:
- Runs synchronously (blocks LLM call if needed)
- Adds ~50-100ms latency
- Can prevent LLM call entirely
- Can modify prompt before LLM sees it
How It Works
Automatic Integration
Guardian runs automatically when enabled:Configuration
Guardian Actions
Configure how Guardian handles detected PII:Disable Guardian
Per-Call Override
Detected Entities
Guardian detects the following PII types:Personal Identifiers
- EMAIL: Email addresses (
john@example.com) - PHONE: Phone numbers (
+1-555-123-4567) - ADDRESS: Physical addresses
Government IDs
- SSN: US Social Security Numbers (
123-45-6789) - PASSPORT: UK/US Passport numbers
- HEALTH_ID: Medical record numbers
Financial Data
- CREDIT_CARD: Credit/debit card numbers (
4111-1111-1111-1111)
Sensitive Topics
- SENSITIVE_TOPIC: Medical conditions, financial info, legal issues
Response Structure
Guardian returns detailed information about detected entities:Example Response
Manual Scanning
You can manually scan prompts before sending to LLM:Sandbox Configuration
Guardian behavior is controlled by sandbox configuration:Performance
Guardian is optimized for production use:| Operation | Latency | Notes |
|---|---|---|
| Local pattern matching | 10-30ms | Regex-based |
| Entity detection | 50-80ms | ML-based |
| Total Guardian overhead | < 100ms | Acceptable for production |
Error Handling
Handle Guardian blocks gracefully:Use Cases
Customer Support Chat
Form Submission
Best Practices
When to Enable Guardian
✅ Enable Guardian when:- Users can input free-form text
- Application handles sensitive data
- Compliance requires pre-LLM protection
- GDPR/CCPA/HIPAA applies
- Input is fully controlled (no user input)
- Performance is critical (< 100ms not acceptable)
- Data is already sanitized
- Testing/development environment
Choosing Guardian Action
REDACT_AND_CONTINUE (Recommended):- Best for most use cases
- Maintains user experience
- Protects LLM from PII
- Logs violations for monitoring
- Maximum protection
- Use for highly sensitive applications
- May frustrate users if false positives
- Show helpful error message
- Monitoring mode only
- Use during testing/rollout
- Logs detections without blocking
- Upgrade to REDACT after validation
Limitations
False Positives
Guardian may flag non-PII as PII:False Negatives
Guardian may miss obfuscated PII:Next Steps
Mirror
Learn about post-LLM auditing
Sandbox Management
Configure sandboxes programmatically
Configuration
Advanced SDK configuration
API Reference
Guardian API documentation

