Segment

@Serializable
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
val endIndex: Int? = null

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

Link copied to clipboard
val partIndex: Int? = null

The index of the part the segment belongs to.

Link copied to clipboard
val startIndex: Int? = null

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

Link copied to clipboard
val text: String? = null

The text of the segment.