Table of Contents

Class RetrievalConfig

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

Retrieval config.

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

Properties

LanguageCode

The language code of the user.

[JsonPropertyName("languageCode")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? LanguageCode { get; set; }

Property Value

string

LatLng

The location of the user.

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

Property Value

LatLng

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a RetrievalConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

RetrievalConfig

The deserialized RetrievalConfig object, or null if deserialization fails.