Class FileSearchTool.FileSearch.Builder
-
- All Implemented Interfaces:
public final class FileSearchTool.FileSearch.Builder
-
-
Constructor Summary
Constructors Constructor Description FileSearchTool.FileSearch.Builder()
-
Method Summary
-
-
Method Detail
-
maxNumResults
final FileSearchTool.FileSearch.Builder maxNumResults(Long maxNumResults)
The maximum number of results the file search tool should output. The default is 20 for
gpt-4*
models and 5 forgpt-3.5-turbo
. This number should be between 1 and 50 inclusive.Note that the file search tool may output fewer than
max_num_results
results. See the file search tool documentation for more information.
-
maxNumResults
final FileSearchTool.FileSearch.Builder maxNumResults(JsonField<Long> maxNumResults)
The maximum number of results the file search tool should output. The default is 20 for
gpt-4*
models and 5 forgpt-3.5-turbo
. This number should be between 1 and 50 inclusive.Note that the file search tool may output fewer than
max_num_results
results. See the file search tool documentation for more information.
-
rankingOptions
final FileSearchTool.FileSearch.Builder rankingOptions(FileSearchTool.FileSearch.RankingOptions rankingOptions)
The ranking options for the file search. If not specified, the file search tool will use the
auto
ranker and a score_threshold of 0.See the file search tool documentation for more information.
-
rankingOptions
final FileSearchTool.FileSearch.Builder rankingOptions(JsonField<FileSearchTool.FileSearch.RankingOptions> rankingOptions)
The ranking options for the file search. If not specified, the file search tool will use the
auto
ranker and a score_threshold of 0.See the file search tool documentation for more information.
-
additionalProperties
final FileSearchTool.FileSearch.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileSearchTool.FileSearch.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileSearchTool.FileSearch.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileSearchTool.FileSearch.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileSearchTool.FileSearch.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileSearchTool.FileSearch build()
-
-
-
-