Class ResponsesFileSearchToolRankingOptions
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesFileSearchToolRankingOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesFileSearchToolRankingOptions>
public final class ResponsesFileSearchToolRankingOptions
extends Object
implements com.azure.json.JsonSerializable<ResponsesFileSearchToolRankingOptions>
The ResponsesFileSearchToolRankingOptions model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResponsesFileSearchToolRankingOptions class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesFileSearchToolRankingOptions from the JsonReader.Get the ranker property: The ranker property.Get the scoreThreshold property: The score_threshold property.Set the ranker property: The ranker property.setScoreThreshold(Double scoreThreshold) Set the scoreThreshold property: The score_threshold property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResponsesFileSearchToolRankingOptions
public ResponsesFileSearchToolRankingOptions()Creates an instance of ResponsesFileSearchToolRankingOptions class.
-
-
Method Details
-
getRanker
Get the ranker property: The ranker property.- Returns:
- the ranker value.
-
setRanker
public ResponsesFileSearchToolRankingOptions setRanker(ResponsesFileSearchToolRankingOptionsRanker ranker) Set the ranker property: The ranker property.- Parameters:
ranker- the ranker value to set.- Returns:
- the ResponsesFileSearchToolRankingOptions object itself.
-
getScoreThreshold
Get the scoreThreshold property: The score_threshold property.- Returns:
- the scoreThreshold value.
-
setScoreThreshold
Set the scoreThreshold property: The score_threshold property.- Parameters:
scoreThreshold- the scoreThreshold value to set.- Returns:
- the ResponsesFileSearchToolRankingOptions object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesFileSearchToolRankingOptions>- Throws:
IOException
-
fromJson
public static ResponsesFileSearchToolRankingOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesFileSearchToolRankingOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesFileSearchToolRankingOptions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ResponsesFileSearchToolRankingOptions.
-