Package org.springframework.ai.zhipuai
Class ZhiPuAiChatOptions.Builder
java.lang.Object
org.springframework.ai.zhipuai.ZhiPuAiChatOptions.Builder
- Enclosing class:
- ZhiPuAiChatOptions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
functionCallbacks
(List<FunctionCallback> functionCallbacks) proxyToolCalls
(Boolean proxyToolCalls) temperature
(Double temperature) toolChoice
(String toolChoice) toolContext
(Map<String, Object> toolContext) tools
(List<ZhiPuAiApi.FunctionTool> tools) withDoSample
(Boolean doSample) 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.withProxyToolCalls
(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(Boolean)
instead.withRequestId
(String requestId) Deprecated, for removal: This API element is subject to removal in a future version.userequestId(String)
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<ZhiPuAiApi.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.
-
Field Details
-
options
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
model
-
maxTokens
-
stop
-
temperature
-
topP
-
tools
-
toolChoice
-
user
-
requestId
-
doSample
-
functionCallbacks
-
functions
-
function
-
proxyToolCalls
-
toolContext
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public ZhiPuAiChatOptions.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 ZhiPuAiChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withStop
@Deprecated(forRemoval=true, since="1.0.0-M5") public ZhiPuAiChatOptions.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 ZhiPuAiChatOptions.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 ZhiPuAiChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withTools
@Deprecated(forRemoval=true, since="1.0.0-M5") public ZhiPuAiChatOptions.Builder withTools(List<ZhiPuAiApi.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 ZhiPuAiChatOptions.Builder withToolChoice(String toolChoice) Deprecated, for removal: This API element is subject to removal in a future version.usetoolChoice(String)
instead. -
withUser
@Deprecated(forRemoval=true, since="1.0.0-M5") public ZhiPuAiChatOptions.Builder withUser(String user) Deprecated, for removal: This API element is subject to removal in a future version.useuser(String)
instead. -
withRequestId
@Deprecated(forRemoval=true, since="1.0.0-M5") public ZhiPuAiChatOptions.Builder withRequestId(String requestId) Deprecated, for removal: This API element is subject to removal in a future version.userequestId(String)
instead. -
withDoSample
@Deprecated(forRemoval=true, since="1.0.0-M5") public ZhiPuAiChatOptions.Builder withDoSample(Boolean doSample) Deprecated, for removal: This API element is subject to removal in a future version.usedoSample(Boolean)
instead. -
withFunctionCallbacks
@Deprecated(forRemoval=true, since="1.0.0-M5") public ZhiPuAiChatOptions.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 ZhiPuAiChatOptions.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 ZhiPuAiChatOptions.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 ZhiPuAiChatOptions.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 ZhiPuAiChatOptions.Builder withToolContext(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead. -
build
-
doSample(Boolean)
instead.