azure-ai-contentsafety-py
构建 Azure Content Safety 检查
团队需要可靠的方法在文本和图像内容触达用户之前对其进行审核。此技能展示如何使用 Azure AI Content Safety Python SDK 进行分析、严重性评分和自定义阻止列表管理。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "azure-ai-contentsafety-py" from https://skillstore.io/skills/sickn33-azure-ai-contentsafety-py.md and its manifest at https://skillstore.io/api/skills/sickn33-azure-ai-contentsafety-py/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“azure-ai-contentsafety-py”。 使用 ContentSafetyClient 分析用户评论。
预期结果:
一个简短的 Python 大纲,用于创建客户端、提交文本、检查每个类别,并打印严重性结果。
正在使用“azure-ai-contentsafety-py”。 为产品必须拒绝的词项创建阻止列表。
预期结果:
一个分步计划,用于创建阻止列表、添加项目,并在命中阻止列表时拒绝内容。
正在使用“azure-ai-contentsafety-py”。 解释在审核队列中应使用哪种严重性模式。
预期结果:
对比默认严重性级别与八级输出的指导,以支持更精细的审核决策。
安全审计
安全All 32 static findings are false positives caused by Markdown fences, inline code formatting, documented placeholders, and standard environment-based Azure configuration. The reviewed file contains no executable scripts, prompt injection, credential disclosure, or suspicious data-exfiltration intent.
风险因素
⚙️ 外部命令 (27)
🌐 网络访问 (2)
🔑 环境变量 (3)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/sickn33-azure-ai-contentsafety-py/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-azure-ai-contentsafety-py?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-azure-ai-contentsafety-py?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-azure-ai-contentsafety-py/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-azure-ai-contentsafety-py.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
sickn33. (2026). azure-ai-contentsafety-py security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-azure-ai-contentsafety-py/audits/5BibTeX 引用
@techreport{sickn33-sickn33-azure-ai-contentsafety-py-2026,
author = {sickn33},
title = {azure-ai-contentsafety-py security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/sickn33-azure-ai-contentsafety-py/audits/5},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "azure-ai-contentsafety-py security audit report (audit version 5)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/sickn33-azure-ai-contentsafety-py/audits/5"
identifiers:
- type: other
value: "skillstore:sickn33-azure-ai-contentsafety-py:audit:5"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
审核社区帖子
在帖子、评论或评价对其他用户可见之前添加文本检查。
筛查 AI 输出
在应用程序中展示生成的文本或图像之前,检查其是否包含有害内容。
管理领域阻止列表
创建自定义词项列表,并在出现被阻止词项时阻止内容。
试试这些提示
向我展示如何安装 Azure AI Content Safety Python SDK,并使用环境变量创建客户端。
编写一个 Python 示例,将文本发送到 Azure AI Content Safety,并打印每个危害类别的严重性。
展示如何在 Python 中使用 Azure AI Content Safety 分析本地图像文件和图像 URL。
设计一个 Python 工作流,用于创建文本阻止列表、添加词项,并在出现匹配项时停止文本分析。
最佳实践
- 使用环境变量或托管身份处理凭据;切勿硬编码密钥。
- 按产品区域设置严重性阈值,并通过人工监督审查结果。
- 记录审核决策,但不要存储不必要的用户内容。
避免
- 不要将严重性分数视为法律、医疗或心理健康建议。
- 未经同意和数据处理批准,不要将私密内容发送到 Azure。
- 在需要类别分析时,不要只依赖单一阻止列表。