GroundingSpec

Grounding specification.

JSON representation
{"includeGroundingSupports":boolean,"filteringLevel":enum (FilteringLevel)}
Fields
includeGroundingSupports

boolean

Optional. Specifies whether to include groundingSupports in the answer. The default value isfalse.

When this field is set totrue, returned answer will havegroundingScore and will contain GroundingSupports for each claim.

filteringLevel

enum (FilteringLevel)

Optional. Specifies whether to enable the filtering based on grounding score and at what level.

FilteringLevel

Level to filter based on answer grounding.

Enums
FILTERING_LEVEL_UNSPECIFIEDDefault is no filter
FILTERING_LEVEL_LOWFilter answers based on a low threshold.
FILTERING_LEVEL_HIGHFilter answers based on a high threshold.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-27 UTC.