Enum Guardrail.LlmPolicy.PolicyScope (0.1.0)

public enum Guardrail.LlmPolicy.PolicyScope extends Enum<Guardrail.LlmPolicy.PolicyScope> implements ProtocolMessageEnum

Defines when to apply the policy check during the conversation.

Protobuf enum google.cloud.ces.v1.Guardrail.LlmPolicy.PolicyScope

Implements

ProtocolMessageEnum

Static 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 = 2;

AGENT_RESPONSE_VALUE

Policy check is triggered on agent response. Applying this policy scope will introduce additional latency before the agent can respond.

AGENT_RESPONSE = 2;

POLICY_SCOPE_UNSPECIFIED

Policy scope is not specified.

POLICY_SCOPE_UNSPECIFIED = 0;

POLICY_SCOPE_UNSPECIFIED_VALUE

Policy scope is not specified.

POLICY_SCOPE_UNSPECIFIED = 0;

UNRECOGNIZED
USER_QUERY

Policy check is triggered on user input.

USER_QUERY = 1;

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 = 3;

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_AND_AGENT_RESPONSE = 3;

USER_QUERY_VALUE

Policy check is triggered on user input.

USER_QUERY = 1;

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()