FunctionCall Class
- java.
lang. Object - com.
azure. ai. openai. models. FunctionCall
- com.
Implements
public final class FunctionCall
implements JsonSerializable<FunctionCall>
The name and arguments of a function that should be called, as generated by the model.
Constructor Summary
Constructor | Description |
---|---|
FunctionCall(String name, String arguments) |
Creates an instance of Function |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Function |
fromJson(JsonReader jsonReader)
Reads an instance of Function |
String |
getArguments()
Get the arguments property: The arguments to call the function with, as generated by the model in JSON format. |
String |
getName()
Get the name property: The name of the function to call. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
FunctionCall
public FunctionCall(String name, String arguments)
Creates an instance of FunctionCall class.
Parameters:
Method Details
fromJson
public static FunctionCall fromJson(JsonReader jsonReader)
Reads an instance of FunctionCall from the JsonReader.
Parameters:
Returns:
Throws:
getArguments
public String getArguments()
Get the arguments property: The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
Returns:
getName
public String getName()
Get the name property: The name of the function to call.
Returns: