Package com.google.genai.types
Class GoogleSearchRetrieval
-
- All Implemented Interfaces:
public abstract class GoogleSearchRetrieval extends JsonSerializable
Tool to retrieve public web data for grounding, powered by Google.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classGoogleSearchRetrieval.BuilderBuilder for GoogleSearchRetrieval.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GoogleSearchRetrieval()
-
Method Summary
Modifier and Type Method Description abstract Optional<DynamicRetrievalConfig>dynamicRetrievalConfig()Specifies the dynamic retrieval configuration for the given source. static GoogleSearchRetrieval.Builderbuilder()Instantiates a builder for GoogleSearchRetrieval. abstract GoogleSearchRetrieval.BuildertoBuilder()Creates a builder with the same values as this instance. static GoogleSearchRetrievalfromJson(String jsonString)Deserializes a JSON string to a GoogleSearchRetrieval 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
-
-
Method Detail
-
dynamicRetrievalConfig
abstract Optional<DynamicRetrievalConfig> dynamicRetrievalConfig()
Specifies the dynamic retrieval configuration for the given source.
-
builder
static GoogleSearchRetrieval.Builder builder()
Instantiates a builder for GoogleSearchRetrieval.
-
toBuilder
abstract GoogleSearchRetrieval.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GoogleSearchRetrieval fromJson(String jsonString)
Deserializes a JSON string to a GoogleSearchRetrieval object.
-
-
-
-