Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LossTaxonomyEntry
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LossTaxonomyEntry
- 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
Defines a specific entry in the loss pattern taxonomy.
Instance Attribute Summary collapse
-
#description ⇒ String
A detailed description of this loss pattern.
-
#l1_category ⇒ String
The primary category of the loss (e.g., "Hallucination", "Tool Calling").
-
#l2_category ⇒ String
The secondary category of the loss (e.g., "Hallucination of Action", " Incorrect Tool Selection").
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1LossTaxonomyEntry
constructor
A new instance of GoogleCloudAiplatformV1beta1LossTaxonomyEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1LossTaxonomyEntry
Returns a new instance of GoogleCloudAiplatformV1beta1LossTaxonomyEntry.
25134 25135 25136 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25134 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
A detailed description of this loss pattern. Example: "The agent verbally
confirms an action without executing the tool."
Corresponds to the JSON property description
25120 25121 25122 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25120 def description @description end |
#l1_category ⇒ String
The primary category of the loss (e.g., "Hallucination", "Tool Calling"). This
field is typically required.
Corresponds to the JSON property l1Category
25126 25127 25128 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25126 def l1_category @l1_category end |
#l2_category ⇒ String
The secondary category of the loss (e.g., "Hallucination of Action", "
Incorrect Tool Selection").
Corresponds to the JSON property l2Category
25132 25133 25134 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25132 def l2_category @l2_category end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25139 25140 25141 25142 25143 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 25139 def update!(**args) @description = args[:description] if args.key?(:description) @l1_category = args[:l1_category] if args.key?(:l1_category) @l2_category = args[:l2_category] if args.key?(:l2_category) end |