Reference documentation and code samples for the Google Cloud Ces V1 Client class PolicyScope.
Defines when to apply the policy check during the conversation.
Protobuf type google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope
Namespace
Google \ Cloud \ Ces \ V1 \ Guardrail \ LlmPolicyMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
POLICY_SCOPE_UNSPECIFIED
Value: 0Policy scope is not specified.
Generated from protobuf enum POLICY_SCOPE_UNSPECIFIED = 0;
USER_QUERY
Value: 1Policy check is triggered on user input.
Generated from protobuf enum USER_QUERY = 1;
AGENT_RESPONSE
Value: 2Policy check is triggered on agent response. Applying this policy scope will introduce additional latency before the agent can respond.
Generated from protobuf enum AGENT_RESPONSE = 2;
USER_QUERY_AND_AGENT_RESPONSE
Value: 3Policy check is triggered on both user input and agent response.
Applying this policy scope will introduce additional latency before the agent can respond.
Generated from protobuf enum USER_QUERY_AND_AGENT_RESPONSE = 3;