Interface GroundingMetadata

Metadata returned to client when grounding is enabled.

interface GroundingMetadata {
    googleMapsWidgetContextToken?: string;
    groundingChunks?: GroundingChunk[];
    groundingSupports?: GroundingSupport[];
    retrievalMetadata?: RetrievalMetadata;
    retrievalQueries?: string[];
    searchEntryPoint?: SearchEntryPoint;
    webSearchQueries?: string[];
}

Properties

googleMapsWidgetContextToken?: string

Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding.

groundingChunks?: GroundingChunk[]

List of supporting references retrieved from specified grounding source.

groundingSupports?: GroundingSupport[]

Optional. List of grounding support.

retrievalMetadata?: RetrievalMetadata

Optional. Output only. Retrieval metadata.

retrievalQueries?: string[]

Optional. Queries executed by the retrieval tools.

searchEntryPoint?: SearchEntryPoint

Optional. Google search entry for the following-up web searches.

webSearchQueries?: string[]

Optional. Web search queries for the following-up web search.