Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Per-model configuration. Mutually exclusive with model_mixture and model:
when models is set, both model_mixture and model must be left unset. The
same allowed-model list and at-most-2-models rule as for model_mixture apply.
In addition, each entry may specify a per-model temperature for LLM
sampling. Unlike model_mixture, weights here are relative: only their
ratios matter (the server normalizes them), so callers may use any positive
numbers without having to ensure they sum to 1.0.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#weight ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig.
7650 7651 7652 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7650 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. Model name (e.g. gemini-2.5-flash, gemini-3.1-pro-preview). See
model_mixture for the list of allowed models.
Corresponds to the JSON property name
7638 7639 7640 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7638 def name @name end |
#weight ⇒ Float
Optional. Relative weight for this model in the mixture. Must be a finite,
strictly positive value. Weights across all entries are normalized server-side,
so they need not sum to 1.0. Defaults to 1.0 when unset, which is convenient
when configuring a single model or an even mixture. Some Pro-tier models are
capped at most 50% of the total weight; requests violating that cap are
rejected with INVALID_ARGUMENT.
Corresponds to the JSON property weight
7648 7649 7650 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7648 def weight @weight end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7655 7656 7657 7658 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7655 def update!(**args) @name = args[:name] if args.key?(:name) @weight = args[:weight] if args.key?(:weight) end |