Package com.google.genai.types
Class GroundingChunkWeb
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GroundingChunkWeb. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroundingChunkWeb.Builderbuilder()Instantiates a builder for GroundingChunkWeb.domain()The domain of the web page that contains the evidence.static GroundingChunkWebDeserializes a JSON string to a GroundingChunkWeb object.title()The title of the web page that contains the evidence.abstract GroundingChunkWeb.BuilderCreates a builder with the same values as this instance.uri()The URI of the web page that contains the evidence.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
GroundingChunkWeb
public GroundingChunkWeb()
-
-
Method Details
-
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. -
title
The title of the web page that contains the evidence. -
uri
The URI of the web page that contains the evidence. -
builder
Instantiates a builder for GroundingChunkWeb. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GroundingChunkWeb object.
-