Class: Google::Apis::AiplatformV1::LearningGenaiRootCodeyTruncatorMetadata
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::LearningGenaiRootCodeyTruncatorMetadata
- 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
Metadata describing what was truncated at each checkpoint.
Instance Attribute Summary collapse
-
#cutoff_index ⇒ Fixnum
Index of the current sample that trims off truncated text.
-
#truncated_text ⇒ String
Text that was truncated at a specific checkpoint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootCodeyTruncatorMetadata
constructor
A new instance of LearningGenaiRootCodeyTruncatorMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootCodeyTruncatorMetadata
Returns a new instance of LearningGenaiRootCodeyTruncatorMetadata.
30865 30866 30867 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30865 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cutoff_index ⇒ Fixnum
Index of the current sample that trims off truncated text.
Corresponds to the JSON property cutoffIndex
30858 30859 30860 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30858 def cutoff_index @cutoff_index end |
#truncated_text ⇒ String
Text that was truncated at a specific checkpoint.
Corresponds to the JSON property truncatedText
30863 30864 30865 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30863 def truncated_text @truncated_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
30870 30871 30872 30873 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30870 def update!(**args) @cutoff_index = args[:cutoff_index] if args.key?(:cutoff_index) @truncated_text = args[:truncated_text] if args.key?(:truncated_text) end |