Interface CreateEvaluatorRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreControlRequest.Builder,Buildable,CopyableBuilder<CreateEvaluatorRequest.Builder,,CreateEvaluatorRequest> SdkBuilder<CreateEvaluatorRequest.Builder,,CreateEvaluatorRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateEvaluatorRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.description(String description) The description of the evaluator that explains its purpose and evaluation criteria.default CreateEvaluatorRequest.BuilderevaluatorConfig(Consumer<EvaluatorConfig.Builder> evaluatorConfig) The configuration for the evaluator, including LLM-as-a-Judge settings with instructions, rating scale, and model configuration.evaluatorConfig(EvaluatorConfig evaluatorConfig) The configuration for the evaluator, including LLM-as-a-Judge settings with instructions, rating scale, and model configuration.evaluatorName(String evaluatorName) The name of the evaluator.The evaluation level that determines the scope of evaluation.level(EvaluatorLevel level) The evaluation level that determines the scope of evaluation.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlRequest.Builder
buildMethods 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
-
clientToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluatorName
The name of the evaluator. Must be unique within your account.
- Parameters:
evaluatorName- The name of the evaluator. Must be unique within your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the evaluator that explains its purpose and evaluation criteria.
- Parameters:
description- The description of the evaluator that explains its purpose and evaluation criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluatorConfig
The configuration for the evaluator, including LLM-as-a-Judge settings with instructions, rating scale, and model configuration.
- Parameters:
evaluatorConfig- The configuration for the evaluator, including LLM-as-a-Judge settings with instructions, rating scale, and model configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluatorConfig
default CreateEvaluatorRequest.Builder evaluatorConfig(Consumer<EvaluatorConfig.Builder> evaluatorConfig) The configuration for the evaluator, including LLM-as-a-Judge settings with instructions, rating scale, and model configuration.
This is a convenience method that creates an instance of theEvaluatorConfig.Builderavoiding the need to create one manually viaEvaluatorConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluatorConfig(EvaluatorConfig).- Parameters:
evaluatorConfig- a consumer that will call methods onEvaluatorConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
level
The evaluation level that determines the scope of evaluation. Valid values are
TOOL_CALLfor individual tool invocations,TRACEfor single request-response interactions, orSESSIONfor entire conversation sessions.- Parameters:
level- The evaluation level that determines the scope of evaluation. Valid values areTOOL_CALLfor individual tool invocations,TRACEfor single request-response interactions, orSESSIONfor entire conversation sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
level
The evaluation level that determines the scope of evaluation. Valid values are
TOOL_CALLfor individual tool invocations,TRACEfor single request-response interactions, orSESSIONfor entire conversation sessions.- Parameters:
level- The evaluation level that determines the scope of evaluation. Valid values areTOOL_CALLfor individual tool invocations,TRACEfor single request-response interactions, orSESSIONfor entire conversation sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateEvaluatorRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateEvaluatorRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-