Table of Contents

Class WebSearch

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

Standard web search for grounding and related configurations. Only text results are returned.

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

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a WebSearch object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

WebSearch

The deserialized WebSearch object, or null if deserialization fails.