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 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

      Set the ranker property: The ranker property.
      Parameters:
      ranker - the ranker value to set.
      Returns:
      the ResponsesFileSearchToolRankingOptions object itself.
    • getScoreThreshold

      public Double getScoreThreshold()
      Get the scoreThreshold property: The score_threshold property.
      Returns:
      the scoreThreshold value.
    • setScoreThreshold

      public ResponsesFileSearchToolRankingOptions setScoreThreshold(Double scoreThreshold)
      Set the scoreThreshold property: The score_threshold property.
      Parameters:
      scoreThreshold - the scoreThreshold value to set.
      Returns:
      the ResponsesFileSearchToolRankingOptions object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.