Class ResponsesReasoningItem

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

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

    • ResponsesReasoningItem

      public ResponsesReasoningItem(List<ResponsesReasoningItemSummaryElement> summary)
      Creates an instance of ResponsesReasoningItem class.
      Parameters:
      summary - the summary 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

      public ResponsesReasoningItemStatus getStatus()
      Get the status property: The status property.
      Returns:
      the status value.
    • getSummary

      Get the summary property: The summary property.
      Returns:
      the summary 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 ResponsesReasoningItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResponsesReasoningItem from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResponsesReasoningItem 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 ResponsesReasoningItem.