Class GroundingChunkWeb

  • All Implemented Interfaces:

    
    public abstract class GroundingChunkWeb
    extends JsonSerializable
                        

    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 Classes 
      Modifier and Type Class Description
      public abstract class GroundingChunkWeb.Builder

      Builder for GroundingChunkWeb.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<String> domain() The domain of the web page that contains the evidence.
      abstract Optional<String> title() The title of the web page that contains the evidence.
      abstract Optional<String> uri() The URI of the web page that contains the evidence.
      static GroundingChunkWeb.Builder builder() Instantiates a builder for GroundingChunkWeb.
      abstract GroundingChunkWeb.Builder toBuilder() Creates a builder with the same values as this instance.
      static GroundingChunkWeb fromJson(String jsonString) Deserializes a JSON string to a GroundingChunkWeb object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait