Class Tool
java.lang.Object
nl.dannyj.mistral.models.completion.tool.Tool
Represents a tool that the model can call.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Tool.ToolBuilderbuilder()protected booleanbooleanThe function definition.getType()The type of the tool.inthashCode()voidsetFunction(Function function) The function definition.voidThe type of the tool.toString()
-
Constructor Details
-
Tool
public Tool() -
Tool
Creates a newToolinstance.- Parameters:
type- The type of the tool.function- The function definition.
-
-
Method Details
-
builder
-
getType
The type of the tool. Currently, only "function" is supported.- Returns:
- The type of the tool.
-
getFunction
The function definition. Required if type is "function".- Returns:
- The function definition.
-
setType
The type of the tool. Currently, only "function" is supported.- Parameters:
type- The type of the tool.
-
setFunction
The function definition. Required if type is "function".- Parameters:
function- The function definition.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-