Skip to main content

SDK Version

Current Version: 0.6.4

Configuration Methods

Configure once and use everywhere:

Per-Call Configuration

Pass configuration to each protect() call:

Configuration Options

Required Configuration

apiKey

Your Continum API key:
Get your API key from the dashboard.

Automatic Configuration

preset

Automatically configure detection types for your use case:
Available presets:
  • customer-support - PII, content policy, bias
  • legal-ai - PII, legal compliance, hallucination, bias
  • fintech-ai - PII, financial compliance, security, bias
  • healthcare-ai - PII, content policy, bias, hallucination
  • coding-assistant - Security, supply chain, prompt injection
  • agent - Agent safety, prompt injection, data exfiltration
  • content-generation - Content policy, bias, hallucination
  • internal-tool - PII, security audit
  • data-pipeline - PII, data exfiltration, security
  • education-ai - Content policy, bias, hallucination
Learn more about presets →

comply

Specify compliance frameworks:
Supported frameworks:
  • GDPR, CCPA, HIPAA, SOC2, ISO_27001
  • EU_AI_ACT, FINRA, PCI_DSS, NIST_AI_RMF
  • FCA, PDPA, PIPEDA, UK_DPA_2018
Learn more about compliance →

Manual Sandbox Configuration

For advanced use cases, configure sandboxes directly:
Available detection types:
  • PII_DETECTION, BIAS_DETECTION, SECURITY_AUDIT
  • PROMPT_INJECTION, DATA_EXFILTRATION, AGENT_SAFETY
  • HALLUCINATION_DETECTION, CONTENT_POLICY
  • FINANCIAL_COMPLIANCE, LEGAL_COMPLIANCE
  • MULTI_TURN_ATTACK, SUPPLY_CHAIN_INTEGRITY
  • FULL_SPECTRUM, CUSTOM

Environment Configuration

environment

Specify the environment:

region

Specify the region for data residency:

Blocking Mode

Wait for audit results before returning response:
Risk levels:
  • LOW - Block all violations
  • MEDIUM - Block MEDIUM, HIGH, CRITICAL
  • HIGH - Block HIGH, CRITICAL
  • CRITICAL - Block only CRITICAL
Learn more about blocking mode →

Alerts

Configure real-time alerts:
Learn more about alerts →

Violation Handlers

React to specific violations in code:
Learn more about violation handlers →

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