content-safety-implementation

Solid

Azure Content Safety API integration, multi-layer defense pipeline, output validation, and operational safety controls

AI & Automation 3 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Content Safety Implementation Implementation patterns for Azure Content Safety API integration, multi-layer defense pipelines, and operational safety controls for AI-facing applications. > **Last validated**: April 2026 (Prompt Shields GA, Groundedness Detection, Custom Categories) --- ## Azure Content Safety API ```typescript import ContentSafetyClient from '@azure-rest/ai-content-safety'; interface ContentSafetyConfig { endpoint: string; // from Key Vault apiKey: string; // from Key Vault thresholds: { hate: 'low' | 'medium' | 'high'; sexual: 'low' | 'medium' | 'high'; selfHarm: 'low' | 'medium' | 'high'; violence: 'low' | 'medium' | 'high'; }; } ``` ### Threshold Selection Guide | Category | Low (strict) | Medium | High (permissive) | |----------|-------------|--------|-------------------| | **Hate** | Consumer apps, children | General audiences | Historical fiction, education | | **Sexual** | Most applications | Dating/health apps | Medical/clinical | | **Self-Harm** | Default — always strict | Crisis support apps | Clinical research | | **Violence** | Most applications | News, crime fiction | Medical, forensic | ### Usage Pattern ```typescript async function analyzeContent(text: string, config: ContentSafetyConfig): Promise<SafetyResult> { const client = ContentSafetyClient(config.endpoint, { key: config.apiKey }); const result = await client.path('/text:analyze').post({ body: { text, categories: ['Hate', 'Sexual...

Details

Author
fabioc-aloha
Repository
fabioc-aloha/Alex_Skill_Mall
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category