public enum Guardrail.LlmPolicy.PolicyScope extends Enum<Guardrail.LlmPolicy.PolicyScope> implements ProtocolMessageEnumDefines when to apply the policy check during the conversation.
Protobuf enum google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope
Implements
ProtocolMessageEnumStatic Fields |
|
|---|---|
| Name | Description |
AGENT_RESPONSE |
Policy check is triggered on agent response. Applying this policy scope will introduce additional latency before the agent can respond. |
AGENT_RESPONSE_VALUE |
Policy check is triggered on agent response. Applying this policy scope will introduce additional latency before the agent can respond. |
POLICY_SCOPE_UNSPECIFIED |
Policy scope is not specified. |
POLICY_SCOPE_UNSPECIFIED_VALUE |
Policy scope is not specified. |
UNRECOGNIZED |
|
USER_QUERY |
Policy check is triggered on user input. |
USER_QUERY_AND_AGENT_RESPONSE |
Policy check is triggered on both user input and agent response. Applying this policy scope will introduce additional latency before the agent can respond. |
USER_QUERY_AND_AGENT_RESPONSE_VALUE |
Policy check is triggered on both user input and agent response. Applying this policy scope will introduce additional latency before the agent can respond. |
USER_QUERY_VALUE |
Policy check is triggered on user input. |
Static Methods |
|
|---|---|
| Name | Description |
forNumber(int value) |
|
getDescriptor() |
|
internalGetValueMap() |
|
valueOf(Descriptors.EnumValueDescriptor desc) |
|
valueOf(int value) |
Deprecated. Use #forNumber(int) instead. |
valueOf(String name) |
|
values() |
|
Methods |
|
|---|---|
| Name | Description |
getDescriptorForType() |
|
getNumber() |
|
getValueDescriptor() |
|