Class MiniMaxApi.FunctionTool
java.lang.Object
org.springframework.ai.minimax.api.MiniMaxApi.FunctionTool
- Enclosing class:
- MiniMaxApi
Represents a tool the model may call. Currently, only functions are supported as a tool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFunction definition.static enumCreate a tool of type 'function' and the given function definition. -
Constructor Summary
ConstructorsConstructorDescriptionFunctionTool(MiniMaxApi.FunctionTool.Function function) Create a tool of type 'function' and the given function definition.FunctionTool(MiniMaxApi.FunctionTool.Type type, MiniMaxApi.FunctionTool.Function function) Create a tool of type 'function' and the given function definition. -
Method Summary
Modifier and TypeMethodDescriptiongetType()voidsetFunction(MiniMaxApi.FunctionTool.Function function) voidstatic MiniMaxApi.FunctionTool
-
Constructor Details
-
FunctionTool
public FunctionTool() -
FunctionTool
Create a tool of type 'function' and the given function definition.- Parameters:
type- the tool typefunction- function definition
-
FunctionTool
Create a tool of type 'function' and the given function definition.- Parameters:
function- function definition.
-
-
Method Details
-
getType
-
getFunction
-
setType
-
setFunction
-
webSearchFunctionTool
-