Citation information for model-generated content.

interface Annotation {
    end_index?: number;
    source?: string;
    start_index?: number;
}

Properties

end_index?: number

End of the attributed segment, exclusive.

source?: string

Source attributed for a portion of the text. Could be a URL, title, or other identifier.

start_index?: number

Start of segment of the response that is attributed to this source.

Index indicates the start of the segment, measured in bytes.