Skip to content

Commit ac65c0a

Browse files
cleop-googlecopybara-github
authored andcommitted
feat: GenAI SDK client(multimodal) - Accept gemini_request_read_config instead of template_config in all functions.
PiperOrigin-RevId: 883166226
1 parent aad9635 commit ac65c0a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/genai/types/common.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,14 @@ export declare interface AgentEngineConfig {
12891289
agentConfigSource?: ReasoningEngineSpecSourceCodeSpecAgentConfigSource;
12901290
}
12911291

1292+
/** 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. */
1293+
export declare interface ModelArmorConfig {
1294+
/** 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}`. */
1295+
promptTemplateName?: string;
1296+
/** 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}`. */
1297+
responseTemplateName?: string;
1298+
}
1299+
12921300
/** A linked resource attached to the application by the user. */
12931301
export declare interface SchemaPromptSpecAppBuilderDataLinkedResource {
12941302
/** A user-friendly name for the data source shown in the UI. */

0 commit comments

Comments
 (0)