Package org.springframework.ai.anthropic
Class AnthropicChatOptions
java.lang.Object
org.springframework.ai.anthropic.AnthropicChatOptions
- All Implemented Interfaces:
ChatOptions,FunctionCallingOptions,ModelOptions,ToolCallingChatOptions
The options to be used when sending a chat request to the Anthropic API.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Thomas Vitale, Alexandros Pappas
-
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 AnthropicChatOptions.Builderbuilder()copy()static AnthropicChatOptionsfromOptions(AnthropicChatOptions fromOptions) Deprecated.Deprecated.getModel()Deprecated.getTopK()getTopP()voidsetFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated.voidsetFunctions(Set<String> functionNames) Deprecated.voidsetInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled) voidsetMaxTokens(Integer maxTokens) voidvoidvoidsetProxyToolCalls(Boolean proxyToolCalls) Deprecated.voidsetStopSequences(List<String> stopSequences) voidsetTemperature(Double temperature) voidsetToolCallbacks(List<FunctionCallback> toolCallbacks) voidsetToolContext(Map<String, Object> toolContext) voidsetToolNames(Set<String> toolNames) voidvoid
-
Constructor Details
-
AnthropicChatOptions
public AnthropicChatOptions()
-
-
Method Details
-
builder
-
fromOptions
-
getModel
- Specified by:
getModelin interfaceChatOptions
-
setModel
-
getMaxTokens
- Specified by:
getMaxTokensin interfaceChatOptions
-
setMaxTokens
-
getMetadata
-
setMetadata
-
getStopSequences
- Specified by:
getStopSequencesin interfaceChatOptions
-
setStopSequences
-
getTemperature
- Specified by:
getTemperaturein interfaceChatOptions
-
setTemperature
-
getTopP
- Specified by:
getTopPin interfaceChatOptions
-
setTopP
-
getTopK
- Specified by:
getTopKin interfaceChatOptions
-
setTopK
-
getToolCallbacks
- Specified by:
getToolCallbacksin interfaceToolCallingChatOptions
-
setToolCallbacks
- Specified by:
setToolCallbacksin interfaceToolCallingChatOptions
-
getToolNames
- Specified by:
getToolNamesin interfaceToolCallingChatOptions
-
setToolNames
- Specified by:
setToolNamesin interfaceToolCallingChatOptions
-
isInternalToolExecutionEnabled
- Specified by:
isInternalToolExecutionEnabledin interfaceToolCallingChatOptions
-
setInternalToolExecutionEnabled
- Specified by:
setInternalToolExecutionEnabledin interfaceToolCallingChatOptions
-
getFunctionCallbacks
Deprecated.- Specified by:
getFunctionCallbacksin interfaceFunctionCallingOptions
-
setFunctionCallbacks
Deprecated.- Specified by:
setFunctionCallbacksin interfaceFunctionCallingOptions
-
getFunctions
Deprecated.- Specified by:
getFunctionsin interfaceFunctionCallingOptions
-
setFunctions
Deprecated.- Specified by:
setFunctionsin interfaceFunctionCallingOptions
-
getFrequencyPenalty
- Specified by:
getFrequencyPenaltyin interfaceChatOptions
-
getPresencePenalty
- Specified by:
getPresencePenaltyin interfaceChatOptions
-
getProxyToolCalls
Deprecated.- Specified by:
getProxyToolCallsin interfaceFunctionCallingOptions
-
setProxyToolCalls
Deprecated.- Specified by:
setProxyToolCallsin interfaceFunctionCallingOptions
-
getToolContext
- Specified by:
getToolContextin interfaceFunctionCallingOptions
-
setToolContext
- Specified by:
setToolContextin interfaceFunctionCallingOptions
-
copy
- Specified by:
copyin interfaceChatOptions
-