Interface: OpenAIFileSearchTool
@providerprotocol/ai / openai / OpenAIFileSearchTool
Interface: OpenAIFileSearchTool
Section titled “Interface: OpenAIFileSearchTool”Defined in: src/providers/openai/types.ts:1176
File search tool for Responses API Enables the model to search through uploaded files
Properties
Section titled “Properties”file_search?
Section titled “file_search?”
optionalfile_search:object
Defined in: src/providers/openai/types.ts:1179
File search configuration
filters?
Section titled “filters?”
optionalfilters:Record<string,unknown>
Filters to apply
max_num_results?
Section titled “max_num_results?”
optionalmax_num_results:number
Maximum number of results to return
ranking_options?
Section titled “ranking_options?”
optionalranking_options:object
Ranking options for search results
ranking_options.ranker?
Section titled “ranking_options.ranker?”
optionalranker:"auto"|"default_2024_08_21"
Ranker to use
ranking_options.score_threshold?
Section titled “ranking_options.score_threshold?”
optionalscore_threshold:number
Score threshold (0-1)
vector_store_ids
Section titled “vector_store_ids”vector_store_ids:
string[]
Vector store IDs to search
type:
"file_search"
Defined in: src/providers/openai/types.ts:1177