Table of Contents

Class ModelSelectionConfig

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Config for model selection.

public record ModelSelectionConfig : IEquatable<ModelSelectionConfig>
Inheritance
ModelSelectionConfig
Implements
Inherited Members

Properties

FeatureSelectionPreference

Options for feature selection preference.

[JsonPropertyName("featureSelectionPreference")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public FeatureSelectionPreference? FeatureSelectionPreference { get; set; }

Property Value

FeatureSelectionPreference?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ModelSelectionConfig object.

public static ModelSelectionConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ModelSelectionConfig

The deserialized ModelSelectionConfig object, or null if deserialization fails.