Interface Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfigOrBuilder (0.90.0)

public static interface Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getResponseTemplate()

public abstract String getResponseTemplate()

Optional. The resource name of the Model Armor Template for sanitizing LLM responses. Format: projects/{project}/locations/{location}/templates/{template_id} If not specified, no sanitization will be applied to the LLM response.

string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The responseTemplate.

getResponseTemplateBytes()

public abstract ByteString getResponseTemplateBytes()

Optional. The resource name of the Model Armor Template for sanitizing LLM responses. Format: projects/{project}/locations/{location}/templates/{template_id} If not specified, no sanitization will be applied to the LLM response.

string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for responseTemplate.

getUserPromptTemplate()

public abstract String getUserPromptTemplate()

Optional. The resource name of the Model Armor Template for sanitizing user prompts. Format: projects/{project}/locations/{location}/templates/{template_id} If not specified, no sanitization will be applied to the user prompt.

string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The userPromptTemplate.

getUserPromptTemplateBytes()

public abstract ByteString getUserPromptTemplateBytes()

Optional. The resource name of the Model Armor Template for sanitizing user prompts. Format: projects/{project}/locations/{location}/templates/{template_id} If not specified, no sanitization will be applied to the user prompt.

string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for userPromptTemplate.