Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpecModelSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Answer Generation Model specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpecModelSpec

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpecModelSpec.



678
679
680
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 678

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

Instance Attribute Details

#model_versionString

Model version. If not set, it will use the default stable model. Allowed values are: stable, preview. Corresponds to the JSON property modelVersion

Returns:

  • (String)


676
677
678
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 676

def model_version
  @model_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



683
684
685
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 683

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