Class MistralAiApi.FunctionTool
java.lang.Object
org.springframework.ai.mistralai.api.MistralAiApi.FunctionTool
- Enclosing class:
- MistralAiApi
Represents a tool the model may call. Currently, only functions are supported as a
tool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Function definition.static enum
Create a tool of type 'function' and the given function definition. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a tool of type 'function' and the given function definition. -
Method Summary
-
Constructor Details
-
FunctionTool
public FunctionTool() -
FunctionTool
Create a tool of type 'function' and the given function definition.- Parameters:
function
- function definition.
-
FunctionTool
public FunctionTool(MistralAiApi.FunctionTool.Type type, MistralAiApi.FunctionTool.Function function)
-
-
Method Details
-
getType
-
getFunction
-
setType
-
setFunction
-