Google Cloud Model Armor V1 Client - Class PiAndJailbreakFilterSettings (0.2.0)

Reference documentation and code samples for the Google Cloud Model Armor V1 Client class PiAndJailbreakFilterSettings.

Prompt injection and Jailbreak Filter settings.

Generated from protobuf message google.cloud.modelarmor.v1.PiAndJailbreakFilterSettings

Namespace

Google \ Cloud \ ModelArmor \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ filter_enforcement
int

Optional. Tells whether Prompt injection and Jailbreak filter is enabled or disabled.

↳ confidence_level
int

Optional. Confidence level for this filter. Confidence level is used to determine the threshold for the filter. If detection confidence is equal to or greater than the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled.

getFilterEnforcement

Optional. Tells whether Prompt injection and Jailbreak filter is enabled or disabled.

Returns
Type
Description
int

setFilterEnforcement

Optional. Tells whether Prompt injection and Jailbreak filter is enabled or disabled.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getConfidenceLevel

Optional. Confidence level for this filter.

Confidence level is used to determine the threshold for the filter. If detection confidence is equal to or greater than the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled.

Returns
Type
Description
int

setConfidenceLevel

Optional. Confidence level for this filter.

Confidence level is used to determine the threshold for the filter. If detection confidence is equal to or greater than the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled.

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: