GroundingSupport
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct GroundingSupport : Sendable, Equatable, HashableProvides information about how a specific segment of the model’s response is supported by the retrieved grounding chunks.
-
Specifies the segment of the model’s response content that this grounding support pertains to.
Declaration
Swift
public let segment: Segment -
A list of indices that refer to specific
GroundingChunkstructs within thegroundingChunksarray. These referenced chunks are the sources that support the claim made in the associatedsegmentof the response. For example, an array[1, 3, 4]means thatgroundingChunks[1],groundingChunks[3],groundingChunks[4]are the retrieved content supporting this part of the response.Declaration
Swift
public let groundingChunkIndices: [Int]