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 newFunctionCall
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The arguments to call the function with, represented as a JSON string.getName()
The name of the function to call.int
hashCode()
void
setArguments
(String arguments) The arguments to call the function with, represented as a JSON string.void
The name of the function to call.toString()
-
Constructor Details
-
FunctionCall
public FunctionCall() -
FunctionCall
Creates a newFunctionCall
instance.- 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
-