Package com.google.genai.types
Class DynamicRetrievalConfig
-
- All Implemented Interfaces:
public abstract class DynamicRetrievalConfig extends JsonSerializable
Describes the options to customize dynamic retrieval.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classDynamicRetrievalConfig.BuilderBuilder for DynamicRetrievalConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description DynamicRetrievalConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<Float>dynamicThreshold()Optional. abstract Optional<DynamicRetrievalConfigMode>mode()The mode of the predictor to be used in dynamic retrieval. static DynamicRetrievalConfig.Builderbuilder()Instantiates a builder for DynamicRetrievalConfig. abstract DynamicRetrievalConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static DynamicRetrievalConfigfromJson(String jsonString)Deserializes a JSON string to a DynamicRetrievalConfig 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
-
dynamicThreshold
abstract Optional<Float> dynamicThreshold()
Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.
-
mode
abstract Optional<DynamicRetrievalConfigMode> mode()
The mode of the predictor to be used in dynamic retrieval.
-
builder
static DynamicRetrievalConfig.Builder builder()
Instantiates a builder for DynamicRetrievalConfig.
-
toBuilder
abstract DynamicRetrievalConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static DynamicRetrievalConfig fromJson(String jsonString)
Deserializes a JSON string to a DynamicRetrievalConfig object.
-
-
-
-