Class: Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

The influential term that could potentially block the response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm

Returns a new instance of CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm.



1247
1248
1249
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1247

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#begin_offsetFixnum

The beginning offset of the influential term. Corresponds to the JSON property beginOffset

Returns:

  • (Fixnum)


1230
1231
1232
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1230

def begin_offset
  @begin_offset
end

#confidenceFloat

The confidence score of the influential term. Corresponds to the JSON property confidence

Returns:

  • (Float)


1235
1236
1237
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1235

def confidence
  @confidence
end

#sourceString

The source of the influential term, prompt or response. Corresponds to the JSON property source

Returns:

  • (String)


1240
1241
1242
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1240

def source
  @source
end

#termString

The influential term. Corresponds to the JSON property term

Returns:

  • (String)


1245
1246
1247
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1245

def term
  @term
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1252
1253
1254
1255
1256
1257
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1252

def update!(**args)
  @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
  @confidence = args[:confidence] if args.key?(:confidence)
  @source = args[:source] if args.key?(:source)
  @term = args[:term] if args.key?(:term)
end