Class: Google::Apis::AiplatformV1::LearningGenaiRootCodeyTruncatorMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootCodeyTruncatorMetadata

Returns a new instance of LearningGenaiRootCodeyTruncatorMetadata.



31074
31075
31076
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31074

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

Instance Attribute Details

#cutoff_indexFixnum

Index of the current sample that trims off truncated text. Corresponds to the JSON property cutoffIndex

Returns:

  • (Fixnum)


31067
31068
31069
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31067

def cutoff_index
  @cutoff_index
end

#truncated_textString

Text that was truncated at a specific checkpoint. Corresponds to the JSON property truncatedText

Returns:

  • (String)


31072
31073
31074
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31072

def truncated_text
  @truncated_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31079
31080
31081
31082
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31079

def update!(**args)
  @cutoff_index = args[:cutoff_index] if args.key?(:cutoff_index)
  @truncated_text = args[:truncated_text] if args.key?(:truncated_text)
end