Interface ModelArmorConfig

Configuration for Model Armor integrations of prompt and responses. This data type is not supported in Gemini API.

interface ModelArmorConfig {
    promptTemplateName?: string;
    responseTemplateName?: string;
}

Properties

promptTemplateName?: string

Optional. The name of the Model Armor template to use for prompt sanitization.

responseTemplateName?: string

Optional. The name of the Model Armor template to use for response sanitization.