Package org.springframework.ai.mistralai
Class MistralAiChatOptions.Builder
java.lang.Object
org.springframework.ai.mistralai.MistralAiChatOptions.Builder
- Enclosing class:
- MistralAiChatOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withFunction
(String functionName) withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) withFunctions
(Set<String> functionNames) withMaxTokens
(Integer maxTokens) withModel
(MistralAiApi.ChatModel chatModel) withProxyToolCalls
(Boolean proxyToolCalls) withRandomSeed
(Integer randomSeed) withResponseFormat
(MistralAiApi.ChatCompletionRequest.ResponseFormat responseFormat) withSafePrompt
(Boolean safePrompt) withTemperature
(Double temperature) withToolContext
(Map<String, Object> toolContext) withTools
(List<MistralAiApi.FunctionTool> tools)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withModel
-
withModel
-
withMaxTokens
-
withSafePrompt
-
withRandomSeed
-
withStop
-
withTemperature
-
withTopP
-
withResponseFormat
public MistralAiChatOptions.Builder withResponseFormat(MistralAiApi.ChatCompletionRequest.ResponseFormat responseFormat) -
withTools
-
withToolChoice
public MistralAiChatOptions.Builder withToolChoice(MistralAiApi.ChatCompletionRequest.ToolChoice toolChoice) -
withFunctionCallbacks
-
withFunctions
-
withFunction
-
withProxyToolCalls
-
withToolContext
-
build
-