Class ResponsesComputerCallItem
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesItem
com.azure.ai.openai.responses.models.ResponsesComputerCallItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesItem>
A tool call to a computer use tool. See the
[computer use guide](/docs/guides/tools-computer-use) for more information.
-
Constructor Summary
ConstructorsConstructorDescriptionResponsesComputerCallItem(String callId, ResponsesComputerCallItemAction action, List<ResponsesComputerCallItemSafetyCheck> pendingSafetyChecks) Creates an instance of ResponsesComputerCallItem class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsesComputerCallItemfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesComputerCallItem from the JsonReader.Get the action property: The action property.Get the callId property: An identifier used when responding to the tool call with output.Get the pendingSafetyChecks property: The pending safety checks for the computer call.Get the status property: The status of the item.getType()Get the type property: The type property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.ai.openai.responses.models.ResponsesItem
getIdMethods 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
-
ResponsesComputerCallItem
public ResponsesComputerCallItem(String callId, ResponsesComputerCallItemAction action, List<ResponsesComputerCallItemSafetyCheck> pendingSafetyChecks) Creates an instance of ResponsesComputerCallItem class.- Parameters:
callId- the callId value to set.action- the action value to set.pendingSafetyChecks- the pendingSafetyChecks value to set.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesItem- Returns:
- the type value.
-
getCallId
Get the callId property: An identifier used when responding to the tool call with output.- Returns:
- the callId value.
-
getAction
Get the action property: The action property.- Returns:
- the action value.
-
getPendingSafetyChecks
Get the pendingSafetyChecks property: The pending safety checks for the computer call.- Returns:
- the pendingSafetyChecks value.
-
getStatus
Get the status property: The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.- Returns:
- the status value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesItem>- Overrides:
toJsonin classResponsesItem- Throws:
IOException
-
fromJson
public static ResponsesComputerCallItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesComputerCallItem from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesComputerCallItem 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 ResponsesComputerCallItem.
-