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.



5505
5506
5507
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5505

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

Instance Attribute Details

#indexFixnum

Corresponds to the JSON property index

Returns:

  • (Fixnum)


5493
5494
5495
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5493

def index
  @index
end

#step_usageGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionUsage

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



5498
5499
5500
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5498

def step_usage
  @step_usage
end

#usageGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionUsage

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



5503
5504
5505
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5503

def usage
  @usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5510
5511
5512
5513
5514
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5510

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