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

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

If the assist call was skipped due to a policy violation, this contains the source of the violation.

Protobuf type google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AssistAnswer \ CustomerPolicyEnforcementResult

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

VIOLATION_SOURCE_UNSPECIFIED

Value: 0

Unknown value.

Generated from protobuf enum VIOLATION_SOURCE_UNSPECIFIED = 0;

SYSTEM

Value: 1

Violation found in the system response.

Generated from protobuf enum SYSTEM = 1;

PROMPT

Value: 2

Violation found in the user prompt.

Generated from protobuf enum PROMPT = 2;

ATTACHMENT

Value: 3

Violation found in the user attachment.

Generated from protobuf enum ATTACHMENT = 3;