Package org.springframework.ai.moonshot
Class MoonshotChatOptions.Builder
java.lang.Object
org.springframework.ai.moonshot.MoonshotChatOptions.Builder
- Enclosing class:
- MoonshotChatOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withFrequencyPenalty
(Double frequencyPenalty) withFunction
(String functionName) withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) withFunctions
(Set<String> functionNames) withMaxTokens
(Integer maxTokens) withPresencePenalty
(Double presencePenalty) withProxyToolCalls
(Boolean proxyToolCalls) withTemperature
(Double temperature) withToolChoice
(String toolChoice) withToolContext
(Map<String, Object> toolContext) withTools
(List<MoonshotApi.FunctionTool> tools)
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
withModel
-
withMaxTokens
-
withTemperature
-
withTopP
-
withN
-
withPresencePenalty
-
withFrequencyPenalty
-
withStop
-
withUser
-
withTools
-
withToolChoice
-
withFunctionCallbacks
-
withFunctions
-
withFunction
-
withProxyToolCalls
-
withToolContext
-
build
-