gws-modelarmor-sanitize-response

Sanitize model outputs with a Model Armor template via gws.

Updated May 25, 2025
One-click install
npx skills add https://github.com/temple-slope/dotfiles --skill gws-modelarmor-sanitize-response-temple-slope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor-sanitize-response
Source: https://github.com/temple-slope/dotfiles/tree/main/.agents/skills/gws-modelarmor-sanitize-response
Command: npx skills add https://github.com/temple-slope/dotfiles --skill gws-modelarmor-sanitize-response-temple-slope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sanitize a model's output through a predefined Model Armor template to block unsafe content and enforce policy-compliant responses.

Core Features & Use Cases

  • Scrub model outputs to remove risky content using a template.
  • Apply consistently across deployment environments to ensure safety and compliance.
  • Use Case: Before presenting model responses to end users in customer support, sanitize the reply with a template to remove sensitive information.

Quick Start

Invoke gws modelarmor +sanitize-response with your template to sanitize a model response.

Frequently Asked Questions about gws-modelarmor-sanitize-response

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sanitize model output for unsafe content before presenting it to users?

You sanitize model output by running it through a predefined Model Armor template that blocks risky content and enforces policy-compliant responses. This removes sensitive information before end users see the reply.

What is a Model Armor template used for in enterprise workflows?

A Model Armor template is used to scrub model outputs and generated prompts, ensuring they meet enterprise safety guidelines. It consistently enforces policy compliance across deployment environments before content reaches outbound channels.

How do I apply a safe template to model responses using gws?

To apply a safe template, invoke the gws modelarmor sanitize-response command and pass a valid template resource name via the --template flag to process the model response securely.

Do I need a specific template resource name to block sensitive information in generated prompts?

Yes, you need a valid template resource name provided through the --template flag. The gws tool uses this template resource name to identify the specific security guidelines for sanitizing the generated prompts.

Can I use Model Armor sanitization across different deployment environments?

Yes, you can apply Model Armor sanitization consistently across different deployment environments. This ensures safety and compliance standards are met for outbound content scenarios throughout all enterprise workflows.

What happens if I do not provide a valid template resource name for sanitization?

Without a valid template resource name provided via the --template flag, the gws tool cannot apply the security guidelines needed to sanitize the model output. The process requires this template to enforce policy-compliant responses.