Package com.google.genai.types
Class RetrievalMetadata.Builder
-
- All Implemented Interfaces:
public abstract class RetrievalMetadata.BuilderBuilder for RetrievalMetadata.
-
-
Constructor Summary
Constructors Constructor Description RetrievalMetadata.Builder()
-
Method Summary
Modifier and Type Method Description abstract RetrievalMetadata.BuildergoogleSearchDynamicRetrievalScore(Float googleSearchDynamicRetrievalScore)Setter for googleSearchDynamicRetrievalScore. RetrievalMetadata.BuilderclearGoogleSearchDynamicRetrievalScore()Clears the value of googleSearchDynamicRetrievalScore field. abstract RetrievalMetadatabuild()-
-
Method Detail
-
googleSearchDynamicRetrievalScore
abstract RetrievalMetadata.Builder googleSearchDynamicRetrievalScore(Float googleSearchDynamicRetrievalScore)
Setter for googleSearchDynamicRetrievalScore.
googleSearchDynamicRetrievalScore: Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger Google search.
-
clearGoogleSearchDynamicRetrievalScore
@CanIgnoreReturnValue() RetrievalMetadata.Builder clearGoogleSearchDynamicRetrievalScore()
Clears the value of googleSearchDynamicRetrievalScore field.
-
build
abstract RetrievalMetadata build()
-
-
-
-