Table of Contents

Class UrlContextMetadata

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

Metadata returned when the model uses the url_context tool to get information from a user-provided URL.

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

Properties

UrlMetadata

Output only. A list of URL metadata, with one entry for each URL retrieved by the tool.

[JsonPropertyName("urlMetadata")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<UrlMetadata>? UrlMetadata { get; set; }

Property Value

List<UrlMetadata>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a UrlContextMetadata object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

UrlContextMetadata

The deserialized UrlContextMetadata object, or null if deserialization fails.