Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm
- 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) ⇒ CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm
constructor
A new instance of CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm
Returns a new instance of CloudAiNlLlmProtoServiceRaiSignalInfluentialTerm.
1116 1117 1118 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1116 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
1099 1100 1101 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1099 def begin_offset @begin_offset end |
#confidence ⇒ Float
The confidence score of the influential term.
Corresponds to the JSON property confidence
1104 1105 1106 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1104 def confidence @confidence end |
#source ⇒ String
The source of the influential term, prompt or response.
Corresponds to the JSON property source
1109 1110 1111 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1109 def source @source end |
#term ⇒ String
The influential term.
Corresponds to the JSON property term
1114 1115 1116 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1114 def term @term end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1121 1122 1123 1124 1125 1126 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1121 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 |