Class CfnPromptVersion.PromptModelInferenceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPromptVersion.PromptModelInferenceConfigurationProperty>
- Enclosing interface:
CfnPromptVersion.PromptModelInferenceConfigurationProperty
@Stability(Stable)
public static final class CfnPromptVersion.PromptModelInferenceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPromptVersion.PromptModelInferenceConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.stopSequences
(List<String> stopSequences) temperature
(Number temperature) Sets the value ofCfnPromptVersion.PromptModelInferenceConfigurationProperty.getTopP()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxTokens
@Stability(Stable) public CfnPromptVersion.PromptModelInferenceConfigurationProperty.Builder maxTokens(Number maxTokens) - Parameters:
maxTokens
- The maximum number of tokens to return in the response.- Returns:
this
-
stopSequences
@Stability(Stable) public CfnPromptVersion.PromptModelInferenceConfigurationProperty.Builder stopSequences(List<String> stopSequences) - Parameters:
stopSequences
- A list of strings that define sequences after which the model will stop generating.- Returns:
this
-
temperature
@Stability(Stable) public CfnPromptVersion.PromptModelInferenceConfigurationProperty.Builder temperature(Number temperature) - Parameters:
temperature
- Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs.- Returns:
this
-
topP
@Stability(Stable) public CfnPromptVersion.PromptModelInferenceConfigurationProperty.Builder topP(Number topP) Sets the value ofCfnPromptVersion.PromptModelInferenceConfigurationProperty.getTopP()
- Parameters:
topP
- The percentage of most-likely candidates that the model considers for the next token.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPromptVersion.PromptModelInferenceConfigurationProperty>
- Returns:
- a new instance of
CfnPromptVersion.PromptModelInferenceConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-