Class GroundingChunkWeb
A Web chunk is a piece of evidence that comes from a web page. It contains the URI of the
web page, the title of the page, and the domain of the page. This is used to provide the user
with a link to the source of the information.
public record GroundingChunkWeb : IEquatable<GroundingChunkWeb>
- Inheritance
-
GroundingChunkWeb
- Implements
- Inherited Members
Properties
Domain
The domain of the web page that contains the evidence. This can be used to filter out low-quality sources. This field is not supported in Gemini API.
[JsonPropertyName("domain")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Domain { get; set; }
Property Value
Title
The title of the web page that contains the evidence.
[JsonPropertyName("title")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Title { get; set; }
Property Value
Uri
The URI of the web page that contains the evidence.
[JsonPropertyName("uri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Uri { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a GroundingChunkWeb object.
public static GroundingChunkWeb? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- GroundingChunkWeb
The deserialized GroundingChunkWeb object, or null if deserialization fails.