A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.

interface FileCitationDeltaAnnotation {
    end_index?: number;
    file_citation?: OpenAIClient.Beta.Threads.Messages.FileCitationDeltaAnnotation.FileCitation;
    index: number;
    start_index?: number;
    text?: string;
    type: "file_citation";
}

Properties

end_index?: number
index: number

The index of the annotation in the text content part.

start_index?: number
text?: string

The text in the message content that needs to be replaced.

type: "file_citation"

Always file_citation.