Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ModelInteraction
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ModelInteraction
- 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
Overview
Interaction for generating the completion using models.
Instance Attribute Summary collapse
-
#generation_config ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1GenerationConfig
Configuration parameters for model interactions.
-
#model ⇒ String
The name of the
Modelused for generating the completion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1ModelInteraction
constructor
A new instance of GenaiVertexV1beta1ModelInteraction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenaiVertexV1beta1ModelInteraction
Returns a new instance of GenaiVertexV1beta1ModelInteraction.
3753 3754 3755 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3753 def initialize(**args) update!(**args) end |
Instance Attribute Details
#generation_config ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1GenerationConfig
Configuration parameters for model interactions.
Corresponds to the JSON property generation_config
3746 3747 3748 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3746 def generation_config @generation_config end |
#model ⇒ String
The name of the Model used for generating the completion.
Corresponds to the JSON property model
3751 3752 3753 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3751 def model @model end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3758 3759 3760 3761 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3758 def update!(**args) @generation_config = args[:generation_config] if args.key?(:generation_config) @model = args[:model] if args.key?(:model) end |