Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/resources/beta/threads/messages.ts>FileCitationAnnotation

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace FileCitationAnnotation
import { FileCitationAnnotation } from "https://deno.land/x/openai@v4.38.5/resources/beta/threads/messages.ts";
interface FileCitationAnnotation
import { type FileCitationAnnotation } from "https://deno.land/x/openai@v4.38.5/resources/beta/threads/messages.ts";

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.

Properties

end_index: number
start_index: number
text: string

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

type: "file_citation"

Always file_citation.