A file citation annotation.

interface FileCitation {
    document_uri?: string;
    end_index?: number;
    file_name?: string;
    source?: string;
    start_index?: number;
    type: "file_citation";
}

Properties

document_uri?: string

The URI of the file.

end_index?: number

End of the attributed segment, exclusive.

file_name?: string

The name of the file.

source?: string

Source attributed for a portion of the text.

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.

type: "file_citation"