Table of Contents

Class GoogleSearchRetrieval

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

Tool to retrieve public web data for grounding, powered by Google.

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

Properties

DynamicRetrievalConfig

Specifies the dynamic retrieval configuration for the given source.

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

Property Value

DynamicRetrievalConfig

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GoogleSearchRetrieval object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GoogleSearchRetrieval

The deserialized GoogleSearchRetrieval object, or null if deserialization fails.