Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1StreamMetadata

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

Returns a new instance of GenaiVertexV1beta1StreamMetadata.



4565
4566
4567
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4565

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

Instance Attribute Details

#usageGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionUsage

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



4563
4564
4565
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4563

def usage
  @usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4570
4571
4572
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4570

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