SDK Version
Current Version: 0.6.4Configuration Methods
Global Configuration (Recommended)
Configure once and use everywhere:Per-Call Configuration
Pass configuration to eachprotect() call:
Configuration Options
Required Configuration
apiKey
Your Continum API key:Automatic Configuration
preset
Automatically configure detection types for your use case:customer-support- PII, content policy, biaslegal-ai- PII, legal compliance, hallucination, biasfintech-ai- PII, financial compliance, security, biashealthcare-ai- PII, content policy, bias, hallucinationcoding-assistant- Security, supply chain, prompt injectionagent- Agent safety, prompt injection, data exfiltrationcontent-generation- Content policy, bias, hallucinationinternal-tool- PII, security auditdata-pipeline- PII, data exfiltration, securityeducation-ai- Content policy, bias, hallucination
comply
Specify compliance frameworks:GDPR,CCPA,HIPAA,SOC2,ISO_27001EU_AI_ACT,FINRA,PCI_DSS,NIST_AI_RMFFCA,PDPA,PIPEDA,UK_DPA_2018
Manual Sandbox Configuration
For advanced use cases, configure sandboxes directly:PII_DETECTION,BIAS_DETECTION,SECURITY_AUDITPROMPT_INJECTION,DATA_EXFILTRATION,AGENT_SAFETYHALLUCINATION_DETECTION,CONTENT_POLICYFINANCIAL_COMPLIANCE,LEGAL_COMPLIANCEMULTI_TURN_ATTACK,SUPPLY_CHAIN_INTEGRITYFULL_SPECTRUM,CUSTOM
Environment Configuration
environment
Specify the environment:region
Specify the region for data residency:Blocking Mode
Wait for audit results before returning response:LOW- Block all violationsMEDIUM- Block MEDIUM, HIGH, CRITICALHIGH- Block HIGH, CRITICALCRITICAL- Block only CRITICAL
Alerts
Configure real-time alerts:Violation Handlers
React to specific violations in code:Error Handling
Handle audit errors:Custom Endpoint
For self-hosted deployments:Per-Call Overrides
Override global configuration for specific calls:Environment-Specific Configuration
Development
Staging
Production
Configuration Best Practices
1. Use Environment Variables
Never hardcode API keys:2. Start with Presets
Use presets instead of manual configuration:3. Validate Configuration
Check configuration at startup:4. Use Global Configuration
Configure once, use everywhere:Next Steps
Presets
Explore presets and compliance frameworks
Alerts
Set up real-time alerts
Blocking Mode
Block requests based on violations
Configuration
Advanced SDK configuration

