Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1 API module Google::Cloud::Ces::V1::Guardrail::LlmPolicy::PolicyScope.
Defines when to apply the policy check during the conversation.
Constants
POLICY_SCOPE_UNSPECIFIED
value: 0
Policy scope is not specified.
USER_QUERY
value: 1
Policy check is triggered on user input.
AGENT_RESPONSE
value: 2
Policy check is triggered on agent response. Applying this policy
scope will introduce additional latency before the agent can respond.
USER_QUERY_AND_AGENT_RESPONSE
value: 3
Policy check is triggered on both user input and agent response.
Applying this policy scope will introduce additional latency before
the agent can respond.