Reference documentation and code samples for the Google Cloud Model Armor V1 Client class SanitizeModelResponseRequest.
Sanitize Model Response request.
Generated from protobuf message google.cloud.modelarmor.v1.SanitizeModelResponseRequest
Namespace
Google \ Cloud \ ModelArmor \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01
↳ model_response_data
↳ user_prompt
string
Optional. User Prompt associated with Model response.
getName
Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01
string
setName
Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01
var
string
$this
getModelResponseData
Required. Model response data to sanitize.
hasModelResponseData
clearModelResponseData
setModelResponseData
Required. Model response data to sanitize.
$this
getUserPrompt
Optional. User Prompt associated with Model response.
string
setUserPrompt
Optional. User Prompt associated with Model response.
var
string
$this