Class ResponsesFunctionTool
java.lang.Object
com.azure.ai.openai.responses.models.ResponsesTool
com.azure.ai.openai.responses.models.ResponsesFunctionTool
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesTool>
The ResponsesFunctionTool model.
-
Constructor Summary
ConstructorsConstructorDescriptionResponsesFunctionTool(String name, String description, com.azure.core.util.BinaryData parameters, boolean strict) Creates an instance of ResponsesFunctionTool class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsesFunctionToolfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResponsesFunctionTool from the JsonReader.Get the description property: The description property.getName()Get the name property: The name property.com.azure.core.util.BinaryDataGet the parameters property: The parameters property.getType()Get the type property: The type property.booleanisStrict()Get the strict property: The strict 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
-
ResponsesFunctionTool
public ResponsesFunctionTool(String name, String description, com.azure.core.util.BinaryData parameters, boolean strict) Creates an instance of ResponsesFunctionTool class.- Parameters:
name- the name value to set.description- the description value to set.parameters- the parameters value to set.strict- the strict value to set.
-
-
Method Details
-
getType
Get the type property: The type property.- Overrides:
getTypein classResponsesTool- Returns:
- the type value.
-
getName
Get the name property: The name property.- Returns:
- the name value.
-
getDescription
Get the description property: The description property.- Returns:
- the description value.
-
getParameters
public com.azure.core.util.BinaryData getParameters()Get the parameters property: The parameters property.- Returns:
- the parameters value.
-
isStrict
public boolean isStrict()Get the strict property: The strict property.- Returns:
- the strict value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResponsesTool>- Overrides:
toJsonin classResponsesTool- Throws:
IOException
-
fromJson
public static ResponsesFunctionTool fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResponsesFunctionTool from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResponsesFunctionTool 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 ResponsesFunctionTool.
-