Class FileSearchTool.RankingOptions.Builder
-
- All Implemented Interfaces:
public final class FileSearchTool.RankingOptions.Builder
A builder for RankingOptions.
-
-
Method Summary
-
-
Method Detail
-
ranker
final FileSearchTool.RankingOptions.Builder ranker(FileSearchTool.RankingOptions.Ranker ranker)
The ranker to use for the file search.
-
ranker
final FileSearchTool.RankingOptions.Builder ranker(JsonField<FileSearchTool.RankingOptions.Ranker> ranker)
Sets Builder.ranker to an arbitrary JSON value.
You should usually call Builder.ranker with a well-typed Ranker value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scoreThreshold
final FileSearchTool.RankingOptions.Builder scoreThreshold(Double scoreThreshold)
The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.
-
scoreThreshold
final FileSearchTool.RankingOptions.Builder scoreThreshold(JsonField<Double> scoreThreshold)
Sets Builder.scoreThreshold to an arbitrary JSON value.
You should usually call Builder.scoreThreshold with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final FileSearchTool.RankingOptions.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileSearchTool.RankingOptions.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileSearchTool.RankingOptions.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileSearchTool.RankingOptions.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileSearchTool.RankingOptions.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileSearchTool.RankingOptions build()
Returns an immutable instance of RankingOptions.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-