Table of Contents

Class UrlContext

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

Tool to support URL context.

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

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a UrlContext object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

UrlContext

The deserialized UrlContext object, or null if deserialization fails.