首页/数据 & AI/gws-modelarmor-sanitize-response
G

gws-modelarmor-sanitize-response

by @googleworkspacev
4.6(136)

通过Google Model Armor对模型响应进行安全净化,确保输出内容安全合规。

llm-output-filteringai-safetyresponse-sanitizationgoogle-workspacecontent-moderationGitHub
安装方式
npx skills add https://github.com/googleworkspace/cli --skill gws-modelarmor-sanitize-response
compare_arrows

Before / After 效果对比

1 组
使用前

直接使用模型的原始响应,可能包含不安全或不适当的内容,存在风险。

使用后

通过Model Armor模板清理模型响应,确保输出安全合规,避免潜在问题。

SKILL.md

modelarmor +sanitize-response

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Sanitize a model response through a Model Armor template

Usage

gws modelarmor +sanitize-response --template <NAME>

Flags

FlagRequiredDefaultDescription
--template✓—Full template resource name (projects/PROJECT/locations/LOCATION/templates/TEMPLATE)
--text——Text content to sanitize
--json——Full JSON request body (overrides --text)

Examples

gws modelarmor +sanitize-response --template projects/P/locations/L/templates/T --text 'model output'
model_cmd | gws modelarmor +sanitize-response --template ...

Tips

  • Use for outbound safety (model -> user).
  • For inbound safety (user -> model), use +sanitize-prompt.

See Also

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量29.4K
评分4.6 / 5.0
版本
更新日期2026年10月22日
对比案例1 组

用户评分

4.6(136)
5
24%
4
51%
3
24%
2
2%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月16日
最后更新2026年10月22日
🎁 Agent 知识卡片
调研问卷