Class ResponsesComputerTool
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesTool
com.azure.ai.openai.responses.models.ResponsesComputerTool
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesTool>
The ResponsesComputerTool model.
-
Constructor Summary
ConstructorsConstructorDescriptionResponsesComputerTool(int displayWidth, int displayHeight, ResponsesComputerToolEnvironment environment) Creates an instance of ResponsesComputerTool class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsesComputerToolfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesComputerTool from the JsonReader.intGet the displayHeight property: The display_height property.intGet the displayWidth property: The display_width property.Get the environment property: The environment property.getType()Get the type property: The type property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods 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
-
ResponsesComputerTool
public ResponsesComputerTool(int displayWidth, int displayHeight, ResponsesComputerToolEnvironment environment) Creates an instance of ResponsesComputerTool class.- Parameters:
displayWidth- the displayWidth value to set.displayHeight- the displayHeight value to set.environment- the environment value to set.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesTool- Returns:
- the type value.
-
getDisplayWidth
public int getDisplayWidth()Get the displayWidth property: The display_width property.- Returns:
- the displayWidth value.
-
getDisplayHeight
public int getDisplayHeight()Get the displayHeight property: The display_height property.- Returns:
- the displayHeight value.
-
getEnvironment
Get the environment property: The environment property.- Returns:
- the environment value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesTool>- Overrides:
toJsonin classResponsesTool- Throws:
IOException
-
fromJson
public static ResponsesComputerTool fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesComputerTool from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesComputerTool 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 ResponsesComputerTool.
-