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.ToolBuilder
builder()
protected boolean
boolean
The function definition.getType()
The type of the tool.int
hashCode()
void
setFunction
(Function function) The function definition.void
The type of the tool.toString()
-
Constructor Details
-
Tool
public Tool() -
Tool
Creates a newTool
instance.- 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
-