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