Class Anthropic3ChatOptions.Builder
java.lang.Object
org.springframework.ai.bedrock.anthropic3.Anthropic3ChatOptions.Builder
- Enclosing class:
- Anthropic3ChatOptions
Builder for
Anthropic3ChatOptions
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theAnthropic3ChatOptions
.withAnthropicVersion
(String anthropicVersion) Set the version of the generative to use.withMaxTokens
(Integer maxTokens) Set the maximum number of tokens.withStopSequences
(List<String> stopSequences) Set the stop sequences.withTemperature
(Double temperature) Set the temperature.Set the top k.Set the top p.
-
Method Details
-
withTemperature
Set the temperature.- Parameters:
temperature
- the temperature- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
withMaxTokens
Set the maximum number of tokens.- Parameters:
maxTokens
- the maximum number of tokens- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
withTopK
Set the top k.- Parameters:
topK
- the top k- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
withTopP
Set the top p.- Parameters:
topP
- the top p- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
withStopSequences
Set the stop sequences.- Parameters:
stopSequences
- the stop sequences- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
withAnthropicVersion
Set the version of the generative to use.- Parameters:
anthropicVersion
- the version of the generative to use- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
build
Build theAnthropic3ChatOptions
.- Returns:
- the
Anthropic3ChatOptions
-