From 77badbb5897b9104942b4634ecc59d3d3034c18a Mon Sep 17 00:00:00 2001 From: Christian Leopoldseder Date: Fri, 13 Mar 2026 07:59:26 -0700 Subject: [PATCH] feat: GenAI SDK client(multimodal) - Accept `gemini_request_read_config` instead of `template_config` in all functions. FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/googleapis/nodejs-vertexai/pull/570 from googleapis:release-please--branches--main--components--vertexai 5a9cb2bf0f978093c20a43d7f98c118a7be00279 PiperOrigin-RevId: 883166226 --- src/genai/types/common.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/genai/types/common.ts b/src/genai/types/common.ts index 8bc5cc07..87b9ac8b 100644 --- a/src/genai/types/common.ts +++ b/src/genai/types/common.ts @@ -1289,6 +1289,14 @@ export declare interface AgentEngineConfig { agentConfigSource?: ReasoningEngineSpecSourceCodeSpecAgentConfigSource; } +/** Configuration for Model Armor. Model Armor is a Google Cloud service that provides safety and security filtering for prompts and responses. It helps protect your AI applications from risks such as harmful content, sensitive data leakage, and prompt injection attacks. */ +export declare interface ModelArmorConfig { + /** Optional. The resource name of the Model Armor template to use for prompt screening. A Model Armor template is a set of customized filters and thresholds that define how Model Armor screens content. If specified, Model Armor will use this template to check the user's prompt for safety and security risks before it is sent to the model. The name must be in the format `projects/{project}/locations/{location}/templates/{template}`. */ + promptTemplateName?: string; + /** Optional. The resource name of the Model Armor template to use for response screening. A Model Armor template is a set of customized filters and thresholds that define how Model Armor screens content. If specified, Model Armor will use this template to check the model's response for safety and security risks before it is returned to the user. The name must be in the format `projects/{project}/locations/{location}/templates/{template}`. */ + responseTemplateName?: string; +} + /** A linked resource attached to the application by the user. */ export declare interface SchemaPromptSpecAppBuilderDataLinkedResource { /** A user-friendly name for the data source shown in the UI. */