Package org.springframework.ai.moonshot
Class MoonshotChatOptions.Builder
java.lang.Object
org.springframework.ai.moonshot.MoonshotChatOptions.Builder
- Enclosing class:
- MoonshotChatOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
frequencyPenalty
(Double frequencyPenalty) functionCallbacks
(List<FunctionCallback> functionCallbacks) presencePenalty
(Double presencePenalty) proxyToolCalls
(Boolean proxyToolCalls) temperature
(Double temperature) toolChoice
(String toolChoice) toolContext
(Map<String, Object> toolContext) tools
(List<MoonshotApi.FunctionTool> tools) withFrequencyPenalty
(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.withFunction
(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead.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.Deprecated, for removal: This API element is subject to removal in a future version.useN(Integer)
instead.withPresencePenalty
(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenalty(Double)
instead.withProxyToolCalls
(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(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.withToolChoice
(String toolChoice) Deprecated, for removal: This API element is subject to removal in a future version.usetoolChoice(String)
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<MoonshotApi.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.Deprecated, for removal: This API element is subject to removal in a future version.useuser(String)
instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
-
maxTokens
-
temperature
-
topP
-
N
-
presencePenalty
-
frequencyPenalty
-
stop
-
user
-
tools
-
toolChoice
-
functionCallbacks
-
functions
-
function
-
proxyToolCalls
-
toolContext
-
withFunctions
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.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 MoonshotChatOptions.Builder withFunction(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead. -
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withMaxTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.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 MoonshotChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withN
Deprecated, for removal: This API element is subject to removal in a future version.useN(Integer)
instead. -
withPresencePenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.Builder withPresencePenalty(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenalty(Double)
instead. -
withFrequencyPenalty
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.Builder withFrequencyPenalty(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.usefrequencyPenalty(Double)
instead. -
withStop
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.Builder withStop(List<String> stop) Deprecated, for removal: This API element is subject to removal in a future version.usestop(List)
instead. -
withUser
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.Builder withUser(String user) Deprecated, for removal: This API element is subject to removal in a future version.useuser(String)
instead. -
withTools
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.Builder withTools(List<MoonshotApi.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 MoonshotChatOptions.Builder withToolChoice(String toolChoice) Deprecated, for removal: This API element is subject to removal in a future version.usetoolChoice(String)
instead. -
withFunctionCallbacks
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.Builder withFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead. -
withProxyToolCalls
@Deprecated(forRemoval=true, since="1.0.0-M5") public MoonshotChatOptions.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 MoonshotChatOptions.Builder withToolContext(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead. -
build
-
frequencyPenalty(Double)
instead.