Skip to main content
The TealTiger Playground ships with 15 enterprise-ready policy templates organized into six categories. Each template is fully customizable — adjust parameters, preview the generated code, and save to your workspace.

Quick Start

  1. Open the Template Library from the sidebar
  2. Pick a template by category or search by name
  3. Click the template card to open the Template Customizer
  4. Adjust parameters using the form inputs
  5. Preview the generated code
  6. Click “Save to Workspace” to create a policy from the template

Template Categories

Security Templates

1. PII Detection and Redaction

Detects PII in requests and responses, then blocks, redacts, or monitors. Compliance: GDPR Article 32, OWASP ASI02, SOC2 CC6.1

2. Content Moderation

Filters harmful content using toxicity scoring. Categories: hate speech, violence, sexual content, self-harm, harassment.

3. Prompt Injection Detection

Detects jailbreaks, role-playing exploits, instruction overrides, delimiter attacks, and encoding attacks.

4. RBAC Enforcement

Restricts AI model and feature access based on user roles with permission inheritance.

Cost Control Templates

5. Budget Enforcement

Per-request, daily, and monthly budget limits.

6. Rate Limiting

Sliding window rate limiting per user or API key.

7. Token Optimization

Caps input/output tokens with optional prompt compression.

Reliability Templates

8. Circuit Breaker

Prevents cascading failures. States: CLOSED → OPEN → HALF_OPEN → CLOSED.

9. Retry Strategy

Exponential backoff with jitter for transient failures.

10. Model Fallback

Automatically switches to alternative models on failure.

Compliance Templates

11. Audit Logging

Tamper-proof audit logs with PII redaction. Log levels: minimal, standard, detailed.

12. Data Residency

Geographic restrictions on data processing. Supports 10 regions.

Routing & Performance Templates

13. Multi-Provider Routing

Routes across providers using cost-optimized, latency-optimized, round-robin, or weighted strategies.

14. Semantic Cache

Caches responses for semantically similar queries. Configurable similarity threshold and TTL.

15. Load Balancing

Distributes requests using round-robin, least-connections, weighted, or random algorithms.

Combining Templates

Create each template as a separate policy, then configure your evaluation pipeline to run them in sequence. Security policies should run first, followed by routing, then cost controls.