GroundingMetadata

@Serializable
data class GroundingMetadata(val imageSearchQueries: List<String> = emptyList(), val groundingChunks: List<GroundingChunk>? = null, val groundingSupports: List<GroundingSupport>? = null, val webSearchQueries: List<String>? = null, val searchEntryPoint: SearchEntryPoint? = null, val retrievalMetadata: RetrievalMetadata? = null)

Metadata returned to client when grounding is enabled.

Constructors

Link copied to clipboard
constructor(imageSearchQueries: List<String> = emptyList(), groundingChunks: List<GroundingChunk>? = null, groundingSupports: List<GroundingSupport>? = null, webSearchQueries: List<String>? = null, searchEntryPoint: SearchEntryPoint? = null, retrievalMetadata: RetrievalMetadata? = null)

Properties

Link copied to clipboard

The cited source chunks that ground the response.

Link copied to clipboard

Maps response segments to the grounding chunks that support them.

Link copied to clipboard
Link copied to clipboard

Metadata about the retrieval step.

Link copied to clipboard

The Google Search entry point for rendering search suggestions.

Link copied to clipboard

The web search queries used to retrieve grounding sources.