Package org.springframework.ai.zhipuai
Class ZhiPuAiChatOptions
java.lang.Object
org.springframework.ai.zhipuai.ZhiPuAiChatOptions
- All Implemented Interfaces:
org.springframework.ai.chat.prompt.ChatOptions,org.springframework.ai.model.ModelOptions,org.springframework.ai.model.tool.ToolCallingChatOptions
public class ZhiPuAiChatOptions
extends Object
implements org.springframework.ai.model.tool.ToolCallingChatOptions
ZhiPuAiChatOptions represents the options for the ZhiPuAiChat model.
- Since:
- 1.0.0 M1
- Author:
- Geng Rong, Thomas Vitale, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.springframework.ai.model.tool.ToolCallingChatOptions
DEFAULT_TOOL_EXECUTION_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ZhiPuAiChatOptions.Builderbuilder()copy()booleanstatic ZhiPuAiChatOptionsfromOptions(ZhiPuAiChatOptions fromOptions) getModel()getStop()List<org.springframework.ai.tool.ToolCallback>getTools()getTopK()getTopP()getUser()inthashCode()org.springframework.ai.model.tool.ToolCallingChatOptionsmerge(org.springframework.ai.chat.prompt.ChatOptions options) voidsetDoSample(Boolean doSample) voidsetInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled) voidsetMaxTokens(Integer maxTokens) voidvoidsetRequestId(String requestId) voidvoidsetStopSequences(List<String> stopSequences) voidsetTemperature(Double temperature) voidsetToolCallbacks(List<org.springframework.ai.tool.ToolCallback> toolCallbacks) voidsetToolChoice(String toolChoice) voidsetToolContext(Map<String, Object> toolContext) voidsetToolNames(Set<String> toolNames) voidsetTools(List<ZhiPuAiApi.FunctionTool> tools) voidvoid
-
Constructor Details
-
ZhiPuAiChatOptions
public ZhiPuAiChatOptions()
-
-
Method Details
-
builder
-
fromOptions
-
getModel
- Specified by:
getModelin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setModel
-
getMaxTokens
- Specified by:
getMaxTokensin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setMaxTokens
-
getStopSequences
- Specified by:
getStopSequencesin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setStopSequences
-
getStop
-
setStop
-
getTemperature
- Specified by:
getTemperaturein interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTemperature
-
getTopP
- Specified by:
getTopPin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTopP
-
getTools
-
setTools
-
getToolChoice
-
setToolChoice
-
getUser
-
setUser
-
getRequestId
-
setRequestId
-
getDoSample
-
setDoSample
-
getFrequencyPenalty
- Specified by:
getFrequencyPenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getPresencePenalty
- Specified by:
getPresencePenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getTopK
- Specified by:
getTopKin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
getToolCallbacks
- Specified by:
getToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolCallbacks
- Specified by:
setToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getToolNames
- Specified by:
getToolNamesin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolNames
- Specified by:
setToolNamesin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getInternalToolExecutionEnabled
- Specified by:
getInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setInternalToolExecutionEnabled
- Specified by:
setInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getToolContext
- Specified by:
getToolContextin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolContext
- Specified by:
setToolContextin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
hashCode
public int hashCode() -
equals
-
copy
- Specified by:
copyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
merge
public org.springframework.ai.model.tool.ToolCallingChatOptions merge(org.springframework.ai.chat.prompt.ChatOptions options)
-