Class Anthropic3ChatOptions.Builder
java.lang.Object
org.springframework.ai.bedrock.anthropic3.Anthropic3ChatOptions.Builder
- Enclosing class:
- Anthropic3ChatOptions
Builder for
Anthropic3ChatOptions
.-
Method Summary
Modifier and TypeMethodDescriptionanthropicVersion
(String anthropicVersion) Set the version of the generative to use.build()
Build theAnthropic3ChatOptions
.Set the maximum number of tokens.stopSequences
(List<String> stopSequences) Set the stop sequences.temperature
(Double temperature) Set the temperature.Set the top k.Set the top p.withAnthropicVersion
(String anthropicVersion) Deprecated, for removal: This API element is subject to removal in a future version.withMaxTokens
(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead.withStopSequences
(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead.withTemperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead.
-
Method Details
-
temperature
Set the temperature.- Parameters:
temperature
- the temperature- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
maxTokens
Set the maximum number of tokens.- Parameters:
maxTokens
- the maximum number of tokens- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
topK
Set the top k.- Parameters:
topK
- the top k- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
topP
Set the top p.- Parameters:
topP
- the top p- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
stopSequences
Set the stop sequences.- Parameters:
stopSequences
- the stop sequences- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
anthropicVersion
Set the version of the generative to use.- Parameters:
anthropicVersion
- the version of the generative to use- Returns:
- this
Anthropic3ChatOptions.Builder
instance
-
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public Anthropic3ChatOptions.Builder withTemperature(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead. -
withMaxTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public Anthropic3ChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withTopK
@Deprecated(forRemoval=true, since="1.0.0-M5") public Anthropic3ChatOptions.Builder withTopK(Integer topK) Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead. -
withTopP
@Deprecated(forRemoval=true, since="1.0.0-M5") public Anthropic3ChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withStopSequences
@Deprecated(forRemoval=true, since="1.0.0-M5") public Anthropic3ChatOptions.Builder withStopSequences(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead. -
withAnthropicVersion
@Deprecated(forRemoval=true, since="1.0.0-M5") public Anthropic3ChatOptions.Builder withAnthropicVersion(String anthropicVersion) Deprecated, for removal: This API element is subject to removal in a future version.useanthropicVersion(String)
instead. -
build
Build theAnthropic3ChatOptions
.- Returns:
- the
Anthropic3ChatOptions
-
anthropicVersion(String)
instead.