Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1StepStop

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) ⇒ GenaiVertexV1beta1StepStop

Returns a new instance of GenaiVertexV1beta1StepStop.



5074
5075
5076
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5074

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

Instance Attribute Details

#indexFixnum

Corresponds to the JSON property index

Returns:

  • (Fixnum)


5062
5063
5064
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5062

def index
  @index
end

#step_usageGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionUsage

Statistics on the interaction request's token usage. Corresponds to the JSON property stepUsage



5067
5068
5069
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5067

def step_usage
  @step_usage
end

#usageGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionUsage

Statistics on the interaction request's token usage. Corresponds to the JSON property usage



5072
5073
5074
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5072

def usage
  @usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5079
5080
5081
5082
5083
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5079

def update!(**args)
  @index = args[:index] if args.key?(:index)
  @step_usage = args[:step_usage] if args.key?(:step_usage)
  @usage = args[:usage] if args.key?(:usage)
end