Class UrlContextMetadata
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a UrlContextMetadata object.
public static UrlContextMetadata? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- UrlContextMetadata
The deserialized UrlContextMetadata object, or null if deserialization fails.