Class CfnEvaluator.InferenceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnEvaluator.InferenceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEvaluator.InferenceConfigurationProperty>
- Enclosing interface:
CfnEvaluator.InferenceConfigurationProperty
@Stability(Stable)
public static final class CfnEvaluator.InferenceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEvaluator.InferenceConfigurationProperty>
A builder for
CfnEvaluator.InferenceConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEvaluator.InferenceConfigurationProperty.getMaxTokens()temperature(Number temperature) Sets the value ofCfnEvaluator.InferenceConfigurationProperty.getTemperature()Sets the value ofCfnEvaluator.InferenceConfigurationProperty.getTopP()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxTokens
@Stability(Stable) public CfnEvaluator.InferenceConfigurationProperty.Builder maxTokens(Number maxTokens) Sets the value ofCfnEvaluator.InferenceConfigurationProperty.getMaxTokens()- Parameters:
maxTokens- The maximum number of tokens to generate in the model response.- Returns:
this
-
temperature
@Stability(Stable) public CfnEvaluator.InferenceConfigurationProperty.Builder temperature(Number temperature) Sets the value ofCfnEvaluator.InferenceConfigurationProperty.getTemperature()- Parameters:
temperature- The temperature value that controls randomness in the model's responses.- Returns:
this
-
topP
Sets the value ofCfnEvaluator.InferenceConfigurationProperty.getTopP()- Parameters:
topP- The top-p sampling parameter that controls the diversity of the model's responses.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEvaluator.InferenceConfigurationProperty>- Returns:
- a new instance of
CfnEvaluator.InferenceConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-