Interface AutomatedEvaluationCustomMetricConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AutomatedEvaluationCustomMetricConfig.Builder,,AutomatedEvaluationCustomMetricConfig> SdkBuilder<AutomatedEvaluationCustomMetricConfig.Builder,,AutomatedEvaluationCustomMetricConfig> SdkPojo
- Enclosing class:
AutomatedEvaluationCustomMetricConfig
-
Method Summary
Modifier and TypeMethodDescriptioncustomMetrics(Collection<AutomatedEvaluationCustomMetricSource> customMetrics) Defines a list of custom metrics to be used in an Amazon Bedrock evaluation job.customMetrics(Consumer<AutomatedEvaluationCustomMetricSource.Builder>... customMetrics) Defines a list of custom metrics to be used in an Amazon Bedrock evaluation job.customMetrics(AutomatedEvaluationCustomMetricSource... customMetrics) Defines a list of custom metrics to be used in an Amazon Bedrock evaluation job.evaluatorModelConfig(Consumer<CustomMetricEvaluatorModelConfig.Builder> evaluatorModelConfig) Configuration of the evaluator model you want to use to evaluate custom metrics in an Amazon Bedrock evaluation job.evaluatorModelConfig(CustomMetricEvaluatorModelConfig evaluatorModelConfig) Configuration of the evaluator model you want to use to evaluate custom metrics in an Amazon Bedrock evaluation job.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
customMetrics
AutomatedEvaluationCustomMetricConfig.Builder customMetrics(Collection<AutomatedEvaluationCustomMetricSource> customMetrics) Defines a list of custom metrics to be used in an Amazon Bedrock evaluation job.
- Parameters:
customMetrics- Defines a list of custom metrics to be used in an Amazon Bedrock evaluation job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customMetrics
AutomatedEvaluationCustomMetricConfig.Builder customMetrics(AutomatedEvaluationCustomMetricSource... customMetrics) Defines a list of custom metrics to be used in an Amazon Bedrock evaluation job.
- Parameters:
customMetrics- Defines a list of custom metrics to be used in an Amazon Bedrock evaluation job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customMetrics
AutomatedEvaluationCustomMetricConfig.Builder customMetrics(Consumer<AutomatedEvaluationCustomMetricSource.Builder>... customMetrics) Defines a list of custom metrics to be used in an Amazon Bedrock evaluation job.
This is a convenience method that creates an instance of theAutomatedEvaluationCustomMetricSource.Builderavoiding the need to create one manually viaAutomatedEvaluationCustomMetricSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomMetrics(List<AutomatedEvaluationCustomMetricSource>).- Parameters:
customMetrics- a consumer that will call methods onAutomatedEvaluationCustomMetricSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluatorModelConfig
AutomatedEvaluationCustomMetricConfig.Builder evaluatorModelConfig(CustomMetricEvaluatorModelConfig evaluatorModelConfig) Configuration of the evaluator model you want to use to evaluate custom metrics in an Amazon Bedrock evaluation job.
- Parameters:
evaluatorModelConfig- Configuration of the evaluator model you want to use to evaluate custom metrics in an Amazon Bedrock evaluation job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluatorModelConfig
default AutomatedEvaluationCustomMetricConfig.Builder evaluatorModelConfig(Consumer<CustomMetricEvaluatorModelConfig.Builder> evaluatorModelConfig) Configuration of the evaluator model you want to use to evaluate custom metrics in an Amazon Bedrock evaluation job.
This is a convenience method that creates an instance of theCustomMetricEvaluatorModelConfig.Builderavoiding the need to create one manually viaCustomMetricEvaluatorModelConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluatorModelConfig(CustomMetricEvaluatorModelConfig).- Parameters:
evaluatorModelConfig- a consumer that will call methods onCustomMetricEvaluatorModelConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-