Class BedrockCohereChatOptions.Builder
java.lang.Object
org.springframework.ai.bedrock.cohere.BedrockCohereChatOptions.Builder
- Enclosing class:
- BedrockCohereChatOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
numGenerations
(Integer numGenerations) returnLikelihoods
(CohereChatBedrockApi.CohereChatRequest.ReturnLikelihoods returnLikelihoods) stopSequences
(List<String> stopSequences) temperature
(Double temperature) 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.withNumGenerations
(Integer numGenerations) Deprecated, for removal: This API element is subject to removal in a future version.usenumGenerations(Integer)
instead.withReturnLikelihoods
(CohereChatBedrockApi.CohereChatRequest.ReturnLikelihoods returnLikelihoods) Deprecated, for removal: This API element is subject to removal in a future version.usereturnLikelihoods(ReturnLikelihoods)
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.Deprecated, for removal: This API element is subject to removal in a future version.usetruncate(Truncate)
instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
temperature
-
topP
-
topK
-
maxTokens
-
stopSequences
-
returnLikelihoods
public BedrockCohereChatOptions.Builder returnLikelihoods(CohereChatBedrockApi.CohereChatRequest.ReturnLikelihoods returnLikelihoods) -
numGenerations
-
logitBias
public BedrockCohereChatOptions.Builder logitBias(CohereChatBedrockApi.CohereChatRequest.LogitBias logitBias) -
truncate
public BedrockCohereChatOptions.Builder truncate(CohereChatBedrockApi.CohereChatRequest.Truncate truncate) -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockCohereChatOptions.Builder withTemperature(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead. -
withTopP
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockCohereChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withTopK
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockCohereChatOptions.Builder withTopK(Integer topK) Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead. -
withMaxTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockCohereChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withStopSequences
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockCohereChatOptions.Builder withStopSequences(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead. -
withReturnLikelihoods
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockCohereChatOptions.Builder withReturnLikelihoods(CohereChatBedrockApi.CohereChatRequest.ReturnLikelihoods returnLikelihoods) Deprecated, for removal: This API element is subject to removal in a future version.usereturnLikelihoods(ReturnLikelihoods)
instead. -
withNumGenerations
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockCohereChatOptions.Builder withNumGenerations(Integer numGenerations) Deprecated, for removal: This API element is subject to removal in a future version.usenumGenerations(Integer)
instead. -
withLogitBias
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockCohereChatOptions.Builder withLogitBias(CohereChatBedrockApi.CohereChatRequest.LogitBias logitBias) Deprecated, for removal: This API element is subject to removal in a future version.uselogitBias(LogitBias)
instead. -
withTruncate
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockCohereChatOptions.Builder withTruncate(CohereChatBedrockApi.CohereChatRequest.Truncate truncate) Deprecated, for removal: This API element is subject to removal in a future version.usetruncate(Truncate)
instead. -
build
-
logitBias(LogitBias)
instead.