OpenAI::FileSearchTool
Inherits JSON::Serializable < Reference < Object
A tool that searches for relevant content from uploaded files. Learn more about the file search tool.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : FileSearchToolType = FileSearchToolType::FileSearch, vector_store_ids : Array(String) = [] of String, max_num_results : Int64 | Nil = nil, ranking_options : RankingOptions | Nil = nil, filters : FileSearchToolFilters | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
filters
Sourcefilters=(filters : FileSearchToolFilters | Nil)
Sourcemax_num_results
The maximum number of results to return. This number should be between 1 and 50 inclusive.
The maximum number of results to return. This number should be between 1 and 50 inclusive.
type_value=(type_value : FileSearchToolType)
The type of the file search tool. Always file_search.