Google Cloud Discovery Engine V1 Client - Class ModelArmorConfig (1.17.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ModelArmorConfig.

Configuration for customer defined Model Armor templates to be used for sanitizing user prompts and LLM responses.

Generated from protobuf message google.cloud.discoveryengine.v1.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ Project \ CustomerProvidedConfig \ NotebooklmConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ user_prompt_template string

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.

↳ response_template string

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.

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.

Returns
Type Description
string

setUserPromptTemplate

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.

Parameter
Name Description
var string
Returns
Type Description
$this

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.

Returns
Type Description
string

setResponseTemplate

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.

Parameter
Name Description
var string
Returns
Type Description
$this