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()
functionCallbacks
(List<FunctionCallback> functionCallbacks) model
(MistralAiApi.ChatModel chatModel) proxyToolCalls
(Boolean proxyToolCalls) randomSeed
(Integer randomSeed) responseFormat
(MistralAiApi.ChatCompletionRequest.ResponseFormat responseFormat) safePrompt
(Boolean safePrompt) temperature
(Double temperature) toolContext
(Map<String, Object> toolContext) tools
(List<MistralAiApi.FunctionTool> tools) withFunction
(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead.withFunctions
(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead.withMaxTokens
(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.withModel
(MistralAiApi.ChatModel chatModel) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(MistralAiApi.ChatModel)
instead.withProxyToolCalls
(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(Boolean)
instead.withRandomSeed
(Integer randomSeed) Deprecated, for removal: This API element is subject to removal in a future version.userandomSeed(Integer)
instead.withResponseFormat
(MistralAiApi.ChatCompletionRequest.ResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.useresponseFormat(ResponseFormat)
instead.withSafePrompt
(Boolean safePrompt) Deprecated, for removal: This API element is subject to removal in a future version.usesafePrompt(Boolean)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usestop(List)
instead.withTemperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetoolChoice(ToolChoice)
instead.withToolContext
(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead.withTools
(List<MistralAiApi.FunctionTool> tools) Deprecated, for removal: This API element is subject to removal in a future version.usetools(List)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
-
model
-
maxTokens
-
safePrompt
-
randomSeed
-
stop
-
temperature
-
topP
-
responseFormat
public MistralAiChatOptions.Builder responseFormat(MistralAiApi.ChatCompletionRequest.ResponseFormat responseFormat) -
tools
-
toolChoice
public MistralAiChatOptions.Builder toolChoice(MistralAiApi.ChatCompletionRequest.ToolChoice toolChoice) -
functionCallbacks
-
functions
-
function
-
proxyToolCalls
-
toolContext
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withModel(MistralAiApi.ChatModel chatModel) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(MistralAiApi.ChatModel)
instead. -
withMaxTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withSafePrompt
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withSafePrompt(Boolean safePrompt) Deprecated, for removal: This API element is subject to removal in a future version.usesafePrompt(Boolean)
instead. -
withRandomSeed
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withRandomSeed(Integer randomSeed) Deprecated, for removal: This API element is subject to removal in a future version.userandomSeed(Integer)
instead. -
withStop
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withStop(List<String> stop) Deprecated, for removal: This API element is subject to removal in a future version.usestop(List)
instead. -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withTemperature(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead. -
withTopP
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withResponseFormat
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withResponseFormat(MistralAiApi.ChatCompletionRequest.ResponseFormat responseFormat) Deprecated, for removal: This API element is subject to removal in a future version.useresponseFormat(ResponseFormat)
instead. -
withTools
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withTools(List<MistralAiApi.FunctionTool> tools) Deprecated, for removal: This API element is subject to removal in a future version.usetools(List)
instead. -
withToolChoice
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withToolChoice(MistralAiApi.ChatCompletionRequest.ToolChoice toolChoice) Deprecated, for removal: This API element is subject to removal in a future version.usetoolChoice(ToolChoice)
instead. -
withFunctionCallbacks
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead. -
withFunctions
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withFunctions(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead. -
withFunction
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withFunction(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead. -
withProxyToolCalls
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withProxyToolCalls(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(Boolean)
instead. -
withToolContext
@Deprecated(forRemoval=true, since="1.0.0-M5") public MistralAiChatOptions.Builder withToolContext(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead. -
build
-
function(String)
instead.