Class ResponsesComputerCallOutputItem

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

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

    • ResponsesComputerCallOutputItem

      public ResponsesComputerCallOutputItem(String callId, List<ResponsesComputerCallItemSafetyCheck> acknowledgedSafetyChecks, ResponsesComputerCallOutputItemOutput output)
      Creates an instance of ResponsesComputerCallOutputItem class.
      Parameters:
      callId - the callId value to set.
      acknowledgedSafetyChecks - the acknowledgedSafetyChecks value to set.
      output - the output 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.
    • getCallId

      public String getCallId()
      Get the callId property: The ID of the computer tool call that produced the output.
      Returns:
      the callId value.
    • getAcknowledgedSafetyChecks

      public List<ResponsesComputerCallItemSafetyCheck> getAcknowledgedSafetyChecks()
      Get the acknowledgedSafetyChecks property: The safety checks reported by the API that have been acknowledged by the developer.
      Returns:
      the acknowledgedSafetyChecks value.
    • getOutput

      Get the output property: The output property.
      Returns:
      the output value.
    • getStatus

      Get the status property: The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.
      Returns:
      the status 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 ResponsesComputerCallOutputItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResponsesComputerCallOutputItem from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResponsesComputerCallOutputItem 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 ResponsesComputerCallOutputItem.