Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata

Returns a new instance of LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata.



31733
31734
31735
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31733

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

Instance Attribute Details

#computed_input_token_lengthFixnum

The length computed by backends using the formatter & tokenizer specific to the model Corresponds to the JSON property computedInputTokenLength

Returns:

  • (Fixnum)


31726
31727
31728
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31726

def computed_input_token_length
  @computed_input_token_length
end

#model_idString

Corresponds to the JSON property modelId

Returns:

  • (String)


31731
31732
31733
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31731

def model_id
  @model_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31738
31739
31740
31741
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31738

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