Class ResponsesFileSearchCallItem

java.lang.Object
com.azure.ai.openai.responses.models.ResponsesItem
com.azure.ai.openai.responses.models.ResponsesFileSearchCallItem
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesItem>

public final class ResponsesFileSearchCallItem extends ResponsesItem
The ResponsesFileSearchCallItem model.
  • Constructor Details

    • ResponsesFileSearchCallItem

      public ResponsesFileSearchCallItem(List<String> queries, List<ResponsesFileSearchCallItemResult> results)
      Creates an instance of ResponsesFileSearchCallItem class.
      Parameters:
      queries - the queries value to set.
      results - the results value to set.
  • Method Details

    • getType

      public ResponsesItemType getType()
      Get the type property: The type property.
      Overrides:
      getType in class ResponsesItem
      Returns:
      the type value.
    • getStatus

      Get the status property: The status property.
      Returns:
      the status value.
    • getQueries

      public List<String> getQueries()
      Get the queries property: The queries property.
      Returns:
      the queries value.
    • getResults

      Get the results property: The results property.
      Returns:
      the results value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResponsesItem>
      Overrides:
      toJson in class ResponsesItem
      Throws:
      IOException
    • fromJson

      public static ResponsesFileSearchCallItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResponsesFileSearchCallItem from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResponsesFileSearchCallItem if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ResponsesFileSearchCallItem.