policyScope property

String? policyScope
getter/setter pair

Defines when to apply the policy check during the conversation.

If set to POLICY_SCOPE_UNSPECIFIED, the policy will be applied to the user input. When applying the policy to the agent response, additional latency will be introduced before the agent can respond.

Required. Possible string values are:

  • "POLICY_SCOPE_UNSPECIFIED" : Policy scope is not specified.
  • "USER_QUERY" : Policy check is triggered on user input.
  • "AGENT_RESPONSE" : 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" : Policy check is triggered on both user input and agent response. Applying this policy scope will introduce additional latency before the agent can respond.

Implementation

core.String? policyScope;