Class Anthropic3ChatOptions
java.lang.Object
org.springframework.ai.bedrock.anthropic3.Anthropic3ChatOptions
- All Implemented Interfaces:
ChatOptions
,ModelOptions
Options for the Anthropic 3 chat API.
- Since:
- 1.0.0
- Author:
- Ben Middleton, Thomas Vitale
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a newAnthropic3ChatOptions
.copy()
Get the embedding dimensions.static Anthropic3ChatOptions
fromOptions
(Anthropic3ChatOptions fromOptions) Create a newAnthropic3ChatOptions
from the providedAnthropic3ChatOptions
.Get the version of the generative to use.Get the frequency penalty.Get the maximum number of tokens.getModel()
Get the model.Get the presence penalty.Get the stop sequences.Get the temperature.getTopK()
Get the top k.getTopP()
Get the top p.void
setAnthropicVersion
(String anthropicVersion) Set the version of the generative to use.void
setMaxTokens
(Integer maxTokens) Set the maximum number of tokens.void
setStopSequences
(List<String> stopSequences) Set the stop sequences.void
setTemperature
(Double temperature) Set the temperature.void
Set the top k.void
Set the top p.
-
Method Details
-
builder
Create a newAnthropic3ChatOptions
.- Returns:
- a new
Anthropic3ChatOptions
-
fromOptions
Create a newAnthropic3ChatOptions
from the providedAnthropic3ChatOptions
.- Parameters:
fromOptions
- the options to copy- Returns:
- a new
Anthropic3ChatOptions
-
getTemperature
Get the temperature.- Specified by:
getTemperature
in interfaceChatOptions
- Returns:
- the temperature
-
setTemperature
Set the temperature.- Parameters:
temperature
- the temperature
-
getMaxTokens
Get the maximum number of tokens.- Specified by:
getMaxTokens
in interfaceChatOptions
- Returns:
- the maximum number of tokens
-
setMaxTokens
Set the maximum number of tokens.- Parameters:
maxTokens
- the maximum number of tokens
-
getTopK
Get the top k.- Specified by:
getTopK
in interfaceChatOptions
- Returns:
- the top k
-
setTopK
Set the top k.- Parameters:
topK
- the top k
-
getTopP
Get the top p.- Specified by:
getTopP
in interfaceChatOptions
- Returns:
- the top p
-
setTopP
Set the top p.- Parameters:
topP
- the top p
-
getStopSequences
Get the stop sequences.- Specified by:
getStopSequences
in interfaceChatOptions
- Returns:
- the stop sequences
-
setStopSequences
Set the stop sequences.- Parameters:
stopSequences
- the stop sequences
-
getAnthropicVersion
Get the version of the generative to use.- Returns:
- the version of the generative to use
-
setAnthropicVersion
Set the version of the generative to use.- Parameters:
anthropicVersion
- the version of the generative to use
-
getModel
Get the model.- Specified by:
getModel
in interfaceChatOptions
- Returns:
- the model
-
getFrequencyPenalty
Get the frequency penalty.- Specified by:
getFrequencyPenalty
in interfaceChatOptions
- Returns:
- the frequency penalty
-
getPresencePenalty
Get the presence penalty.- Specified by:
getPresencePenalty
in interfaceChatOptions
- Returns:
- the presence penalty
-
copy
Get the embedding dimensions.- Specified by:
copy
in interfaceChatOptions
- Returns:
- the embedding dimensions
-