Segment

data class Segment(val startIndex: Int? = null, val endIndex: Int? = null, val partIndex: Int? = null, val text: String? = null)

A contiguous segment of the response content that a GroundingSupport refers to.

Constructors

Link copied to clipboard
constructor(startIndex: Int? = null, endIndex: Int? = null, partIndex: Int? = null, text: String? = null)

Properties

Link copied to clipboard

The end index (in bytes, exclusive) of the segment within the part.

Link copied to clipboard

The index of the part the segment belongs to.

Link copied to clipboard

The start index (in bytes) of the segment within the part.

Link copied to clipboard
val text: String?

The text of the segment.