Description
azure-ai-contentsafety-py is an agent skill for Python code that screens text and images with the Azure AI Content Safety SDK. It connects your code to Microsoft's content moderation API, which classifies each item across four harm categories (hate, sexual content, violence and self-harm) and returns a severity score for each. The skill explains how to make one call per request and read the category results, and how to set thresholds that fit your platform. It also covers custom blocklists for filtering terms that matter only to your product. The skill's own argument for it is that building and maintaining classifiers for four categories, each with calibrated severity levels, is a large job that the managed API replaces with one function call. Typical uses are checking user comments before they appear on a forum, reviewing AI-generated replies before they are shown to a user, filtering images on a file-sharing site, and blocking domain-specific terms. The skill is part of Microsoft's skills collection and is installed with the command shown on this page.…
Highlights
- Text and image moderation from Python
- Four harm categories with severity scores
- Custom blocklists
- One request per check
- Thresholds you set per platform
Ratings & Reviews
No ratings yet
Be the first to rate microsoft/azure-ai-contentsafety-py.
People also visit

gws-modelarmor-sanitize-response
Sanitize model responses through Google Model Armor templates
microsoft/azure-ai-contentsafety-py FAQ
What does this skill do?
It guides a coding assistant to add content moderation to Python code using the Azure AI Content Safety SDK.
How do I install it?
Run npx skills add https://github.com/microsoft/skills --skill azure-ai-contentsafety-py, or paste the skill link into your coding assistant and ask it to install the skill.
Does it check images as well as text?
Yes. The page says the SDK analyzes both text and images for harmful content.
Does it need custom training?
No. The managed service covers the four harm categories, so you do not train your own classifiers.
What are the best microsoft/azure-ai-contentsafety-py alternatives?
Popular alternatives to microsoft/azure-ai-contentsafety-py include microsoft/azure-ai-contentsafety-ts, microsoft/azure-ai-contentsafety-java and gws-modelarmor. See all microsoft/azure-ai-contentsafety-py alternatives





.png)

