Google Cloud Ces V1 Client - Class PolicyScope (0.2.0)

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 \ LlmPolicy

Methods

static::name

Parameter
Name
Description
value
mixed

static::value

Parameter
Name
Description
name
mixed

Constants

POLICY_SCOPE_UNSPECIFIED

  Value: 0 
 

Policy scope is not specified.

Generated from protobuf enum POLICY_SCOPE_UNSPECIFIED = 0;

USER_QUERY

  Value: 1 
 

Policy check is triggered on user input.

Generated from protobuf enum USER_QUERY = 1;

AGENT_RESPONSE

  Value: 2 
 

Policy 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: 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.

Generated from protobuf enum USER_QUERY_AND_AGENT_RESPONSE = 3;

Create a Mobile Website
View Site in Mobile | Classic
Share by: