Skip to main content
Module

x/openai/resources/beta/threads/runs/mod.ts>FileSearchToolCall.FileSearch.Result

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
namespace FileSearchToolCall.FileSearch.Result
import { FileSearchToolCall } from "https://deno.land/x/openai@v4.61.1/resources/beta/threads/runs/mod.ts";
const { Result } = FileSearchToolCall.FileSearch;
interface FileSearchToolCall.FileSearch.Result
import { type FileSearchToolCall } from "https://deno.land/x/openai@v4.61.1/resources/beta/threads/runs/mod.ts";
const { Result } = FileSearchToolCall.FileSearch;

A result instance of the file search.

Properties

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.

optional
content: Array<Result.Content>

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