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 {
    index: number;
    type: "file_citation";
    end_index?: number;
    file_citation?: OpenAIClient.Beta.Threads.Messages.FileCitationDeltaAnnotation.FileCitation;
    start_index?: number;
    text?: string;
}

Properties

index: number

The index of the annotation in the text content part.

type: "file_citation"

Always file_citation.

end_index?: number
start_index?: number
text?: string

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