Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
The influential term that could potentially block the response.
Instance Attribute Summary collapse
-
#begin_offset ⇒ Fixnum
The beginning offset of the influential term.
-
#confidence ⇒ Float
The confidence score of the influential term.
-
#source ⇒ String
The source of the influential term, prompt or response.
-
#term ⇒ String
The influential term.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm
constructor
A new instance of CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm
Returns a new instance of CloudAiNlLlmProtoServiceSafetyRatingInfluentialTerm.
1209 1210 1211 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1209 def initialize(**args) update!(**args) end |
Instance Attribute Details
#begin_offset ⇒ Fixnum
The beginning offset of the influential term.
Corresponds to the JSON property beginOffset
1192 1193 1194 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1192 def begin_offset @begin_offset end |
#confidence ⇒ Float
The confidence score of the influential term.
Corresponds to the JSON property confidence
1197 1198 1199 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1197 def confidence @confidence end |
#source ⇒ String
The source of the influential term, prompt or response.
Corresponds to the JSON property source
1202 1203 1204 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1202 def source @source end |
#term ⇒ String
The influential term.
Corresponds to the JSON property term
1207 1208 1209 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1207 def term @term end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1214 1215 1216 1217 1218 1219 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1214 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 |