Skip to main content

Overview

Presets automatically configure the right detection types for your use case. Instead of manually selecting sandbox types, specify a preset and Continum will enable the appropriate checks.

Available Presets

customer-support

For customer support bots, help desks, and Q&A systems.
{ preset: 'customer-support' }
Automatically enables:
  • PII Detection
  • Content Policy
  • Bias Detection
  • Hallucination Detection
Best for: Chat support, help desk automation, FAQ bots
For legal research, document analysis, and compliance tools.
{ preset: 'legal-ai' }
Automatically enables:
  • PII Detection
  • Legal Compliance
  • Hallucination Detection
  • Bias Detection
  • Citation Verification
Best for: Legal research, contract analysis, compliance tools

fintech-ai

For financial services, trading, and investment advice.
{ preset: 'fintech-ai' }
Automatically enables:
  • PII Detection
  • Financial Compliance
  • Security Audit
  • Bias Detection
  • Hallucination Detection
Best for: Trading bots, financial advisors, investment analysis

healthcare-ai

For medical advice, diagnosis, and healthcare applications.
{ preset: 'healthcare-ai' }
Automatically enables:
  • PII Detection (including health data)
  • Content Policy
  • Bias Detection
  • Hallucination Detection
  • Medical Compliance
Best for: Medical chatbots, diagnosis tools, health records

coding-assistant

For code generation, review, and development tools.
{ preset: 'coding-assistant' }
Automatically enables:
  • Security Audit
  • Supply Chain Integrity
  • Prompt Injection
  • Secret Leak Detection
Best for: Code generation, code review, IDE assistants

agent

For AI agents with tool use and autonomous actions.
{ preset: 'agent' }
Automatically enables:
  • Agent Safety
  • Prompt Injection
  • Data Exfiltration
  • Security Audit
  • Scope Creep Detection
Best for: Autonomous agents, tool-using AI, multi-step workflows

content-generation

For writing, marketing, and creative content.
{ preset: 'content-generation' }
Automatically enables:
  • Content Policy
  • Bias Detection
  • Hallucination Detection
  • Copyright Compliance
Best for: Content writing, marketing copy, creative tools

internal-tool

For internal team productivity and automation.
{ preset: 'internal-tool' }
Automatically enables:
  • PII Detection
  • Security Audit
  • Data Exfiltration
Best for: Internal chatbots, productivity tools, automation

data-pipeline

For ETL, data processing, and analysis.
{ preset: 'data-pipeline' }
Automatically enables:
  • PII Detection
  • Data Exfiltration
  • Security Audit
Best for: Data processing, ETL pipelines, analytics

education-ai

For tutoring, learning, and training applications.
{ preset: 'education-ai' }
Automatically enables:
  • Content Policy
  • Bias Detection
  • Hallucination Detection
  • Age-Appropriate Content
Best for: Tutoring bots, learning platforms, training tools

Compliance Frameworks

Specify compliance frameworks to automatically enable required checks:
{
  preset: 'customer-support',
  comply: ['GDPR', 'SOC2', 'HIPAA']
}

Supported Frameworks

FrameworkDescriptionAutomatically Enables
GDPREU data protectionPII detection, data minimization, consent tracking
CCPACalifornia privacyPII detection, data rights, opt-out mechanisms
HIPAAUS healthcare dataHealth data detection, access controls, audit logs
SOC2Security & availabilitySecurity audit, access controls, monitoring
ISO_27001Information securitySecurity audit, risk management, incident response
EU_AI_ACTEU AI regulationBias detection, transparency, human oversight
FINRAUS financial servicesFinancial compliance, record keeping, supervision
PCI_DSSPayment card securitySecurity audit, encryption, access controls
NIST_AI_RMFAI risk managementRisk assessment, bias detection, transparency
FCAUK financial conductFinancial compliance, consumer protection
PDPASingapore data protectionPII detection, consent, data rights
PIPEDACanada privacyPII detection, consent, accountability
UK_DPA_2018UK data protectionPII detection, data rights, lawful basis

Combining Presets and Frameworks

Presets and frameworks work together to provide comprehensive coverage:
import { continum } from '@continum/sdk';

continum.configure({
  apiKey: process.env.CONTINUM_API_KEY!,
  preset: 'fintech-ai',           // Base detection types
  comply: ['FINRA', 'SOC2']       // Additional compliance checks
});
This configuration will enable:
  • All checks from fintech-ai preset
  • Additional checks required by FINRA and SOC2

Custom Detection Types

For advanced use cases, you can specify detection types directly:
import { continum } from '@continum/sdk';

continum.configure({
  apiKey: process.env.CONTINUM_API_KEY!,
  sandbox: {
    types: [
      'PII_DETECTION',
      'SECURITY_AUDIT',
      'PROMPT_INJECTION',
      'CUSTOM'
    ],
    customRules: ['CUSTOM_RULE_1', 'CUSTOM_RULE_2']
  }
});
Available detection types:
  • PII_DETECTION - Personal information
  • BIAS_DETECTION - Discrimination and bias
  • SECURITY_AUDIT - Code injection, vulnerabilities
  • PROMPT_INJECTION - Jailbreaks, goal hijacking
  • DATA_EXFILTRATION - Data leaks, cross-user leaks
  • AGENT_SAFETY - Irreversible actions, scope creep
  • HALLUCINATION_DETECTION - False information
  • CONTENT_POLICY - Harmful content
  • FINANCIAL_COMPLIANCE - Financial regulations
  • LEGAL_COMPLIANCE - Legal requirements
  • MULTI_TURN_ATTACK - Multi-step attacks
  • SUPPLY_CHAIN_INTEGRITY - Dependency security
  • FULL_SPECTRUM - All detection types
  • CUSTOM - Custom rules

Environment-Specific Configuration

Use different presets for different environments:
import { continum } from '@continum/sdk';

const preset = process.env.NODE_ENV === 'production'
  ? 'customer-support'
  : 'internal-tool';

continum.configure({
  apiKey: process.env.CONTINUM_API_KEY!,
  preset,
  environment: process.env.NODE_ENV as 'production' | 'staging' | 'development'
});

Best Practices

1. Start with a Preset

Always start with a preset that matches your use case:
// ✅ Good
{ preset: 'customer-support', comply: ['GDPR'] }

// ❌ Avoid (unless you have specific requirements)
{ sandbox: { types: ['PII_DETECTION', 'BIAS_DETECTION', ...] } }

2. Add Compliance Frameworks

Specify all applicable frameworks:
{
  preset: 'healthcare-ai',
  comply: ['HIPAA', 'GDPR', 'SOC2']
}

3. Use Environment Variables

Keep configuration flexible:
const frameworks = process.env.COMPLIANCE_FRAMEWORKS?.split(',') || [];

continum.configure({
  apiKey: process.env.CONTINUM_API_KEY!,
  preset: 'customer-support',
  comply: frameworks as ComplianceFramework[]
});

4. Use Environment Variables

Keep configuration flexible:
const frameworks = process.env.COMPLIANCE_FRAMEWORKS?.split(',') || [];

continum.configure({
  apiKey: process.env.CONTINUM_API_KEY!,
  preset: 'customer-support',
  comply: frameworks as ComplianceFramework[]
});

Next Steps

Alerts

Set up real-time alerts for violations

Blocking Mode

Use blocking mode for high-risk scenarios

Violation Handlers

React to specific violations in code

Configuration

Advanced SDK configuration