Class FunctionCall
java.lang.Object
nl.dannyj.mistral.models.completion.tool.FunctionCall
Represents the function call requested by the model, including the function name and its arguments as a JSON string.
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionCall(String name, String arguments) Creates a newFunctionCallinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe arguments to call the function with, represented as a JSON string.getName()The name of the function to call.inthashCode()voidsetArguments(String arguments) The arguments to call the function with, represented as a JSON string.voidThe name of the function to call.toString()
-
Constructor Details
-
FunctionCall
public FunctionCall() -
FunctionCall
Creates a newFunctionCallinstance.- Parameters:
name- The function name.arguments- The function arguments as a JSON string.
-
-
Method Details
-
getName
The name of the function to call. Cannot be blank.- Returns:
- The function name.
-
getArguments
The arguments to call the function with, represented as a JSON string.- Returns:
- The function arguments JSON string.
-
setName
The name of the function to call. Cannot be blank.- Parameters:
name- The function name.
-
setArguments
The arguments to call the function with, represented as a JSON string.- Parameters:
arguments- The function arguments as a JSON string.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-