Class RequiredFunctionToolCall
java.lang.Object
com.azure.ai.agents.persistent.models.RequiredToolCall
com.azure.ai.agents.persistent.models.RequiredFunctionToolCall
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RequiredToolCall>
A representation of a requested call to a function tool, needed by the model to continue evaluation of a run.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequiredFunctionToolCallfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RequiredFunctionToolCall from the JsonReader.Get the function property: Detailed information about the function to be executed by the tool that includes name and arguments.getType()Get the type property: The object type for the required tool call.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.ai.agents.persistent.models.RequiredToolCall
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
-
Method Details
-
getType
Get the type property: The object type for the required tool call.- Overrides:
getTypein classRequiredToolCall- Returns:
- the type value.
-
getFunction
Get the function property: Detailed information about the function to be executed by the tool that includes name and arguments.- Returns:
- the function value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RequiredToolCall>- Overrides:
toJsonin classRequiredToolCall- Throws:
IOException
-
fromJson
public static RequiredFunctionToolCall fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RequiredFunctionToolCall from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RequiredFunctionToolCall 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 RequiredFunctionToolCall.
-