A result instance of the file search.

interface Result {
    content?: OpenAIClient.Beta.Threads.Runs.Steps.FileSearchToolCall.FileSearch.Result.Content[];
    file_id: string;
    file_name: string;
    score: number;
}

Properties

The content of the result that was found. The content is only included if requested via the include query parameter.

file_id: string

The ID of the file that result was found in.

file_name: string

The name of the file that result was found in.

score: number

The score of the result. All values must be a floating point number between 0 and 1.