GroundingSupport

@Serializable
data class GroundingSupport(val segment: Segment? = null, val groundingChunkIndices: List<Int>? = null, val confidenceScores: List<Float>? = null)

Maps a Segment of the response to the grounding chunks that support it.

Constructors

Link copied to clipboard
constructor(segment: Segment? = null, groundingChunkIndices: List<Int>? = null, confidenceScores: List<Float>? = null)

Properties

Link copied to clipboard

Confidence scores (0-1) for the supporting chunks, parallel to groundingChunkIndices.

Link copied to clipboard

Indices into GroundingMetadata.groundingChunks for the chunks supporting this segment.

Link copied to clipboard
val segment: Segment? = null

The segment of content this support applies to.