Class BedrockAi21Jurassic2ChatOptions.Builder
java.lang.Object
org.springframework.ai.bedrock.jurassic2.BedrockAi21Jurassic2ChatOptions.Builder
- Enclosing class:
- BedrockAi21Jurassic2ChatOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
countPenaltyOptions
(BedrockAi21Jurassic2ChatOptions.Penalty countPenalty) frequencyPenaltyOptions
(BedrockAi21Jurassic2ChatOptions.Penalty frequencyPenalty) numResults
(Integer numResults) presencePenaltyOptions
(BedrockAi21Jurassic2ChatOptions.Penalty presencePenalty) stopSequences
(List<String> stopSequences) temperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.withFrequencyPenaltyOptions
(BedrockAi21Jurassic2ChatOptions.Penalty frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.usefrequencyPenaltyOptions(Penalty)
instead.withMaxTokens
(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead.withMinTokens
(Integer minTokens) Deprecated, for removal: This API element is subject to removal in a future version.useminTokens(Integer)
instead.withNumResults
(Integer numResults) Deprecated, for removal: This API element is subject to removal in a future version.usenumResults(Integer)
instead.withPresencePenaltyOptions
(BedrockAi21Jurassic2ChatOptions.Penalty presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenaltyOptions(Penalty)
instead.withPrompt
(String prompt) Deprecated, for removal: This API element is subject to removal in a future version.useprompt(String)
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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prompt
-
numResults
-
maxTokens
-
minTokens
-
temperature
-
topP
-
stopSequences
-
topK
-
frequencyPenaltyOptions
public BedrockAi21Jurassic2ChatOptions.Builder frequencyPenaltyOptions(BedrockAi21Jurassic2ChatOptions.Penalty frequencyPenalty) -
presencePenaltyOptions
public BedrockAi21Jurassic2ChatOptions.Builder presencePenaltyOptions(BedrockAi21Jurassic2ChatOptions.Penalty presencePenalty) -
countPenaltyOptions
public BedrockAi21Jurassic2ChatOptions.Builder countPenaltyOptions(BedrockAi21Jurassic2ChatOptions.Penalty countPenalty) -
withPrompt
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockAi21Jurassic2ChatOptions.Builder withPrompt(String prompt) Deprecated, for removal: This API element is subject to removal in a future version.useprompt(String)
instead. -
withNumResults
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockAi21Jurassic2ChatOptions.Builder withNumResults(Integer numResults) Deprecated, for removal: This API element is subject to removal in a future version.usenumResults(Integer)
instead. -
withMaxTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockAi21Jurassic2ChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withMinTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockAi21Jurassic2ChatOptions.Builder withMinTokens(Integer minTokens) Deprecated, for removal: This API element is subject to removal in a future version.useminTokens(Integer)
instead. -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockAi21Jurassic2ChatOptions.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 BedrockAi21Jurassic2ChatOptions.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 BedrockAi21Jurassic2ChatOptions.Builder withStopSequences(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead. -
withTopK
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockAi21Jurassic2ChatOptions.Builder withTopK(Integer topKReturn) Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead. -
withFrequencyPenaltyOptions
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockAi21Jurassic2ChatOptions.Builder withFrequencyPenaltyOptions(BedrockAi21Jurassic2ChatOptions.Penalty frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.usefrequencyPenaltyOptions(Penalty)
instead. -
withPresencePenaltyOptions
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockAi21Jurassic2ChatOptions.Builder withPresencePenaltyOptions(BedrockAi21Jurassic2ChatOptions.Penalty presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.usepresencePenaltyOptions(Penalty)
instead. -
withCountPenaltyOptions
@Deprecated(forRemoval=true, since="1.0.0-M5") public BedrockAi21Jurassic2ChatOptions.Builder withCountPenaltyOptions(BedrockAi21Jurassic2ChatOptions.Penalty countPenalty) Deprecated, for removal: This API element is subject to removal in a future version.usecountPenaltyOptions(Penalty)
instead. -
build
-
countPenaltyOptions(Penalty)
instead.