Reference documentation and code samples for the Google Cloud Ces V1 Client class ModelSafety.
Model safety settings overrides. When this is set, it will override the default settings and trigger the guardrail if the response is considered unsafe.
Generated from protobuf message google.cloud.ces.v1.Guardrail.ModelSafety
Namespace
Google \ Cloud \ Ces \ V1 \ GuardrailMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ safety_settings |
array<ModelSafety\SafetySetting>
Required. List of safety settings. |
getSafetySettings
Required. List of safety settings.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setSafetySettings
Required. List of safety settings.
| Parameter | |
|---|---|
| Name | Description |
var |
array<ModelSafety\SafetySetting>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|