Interface StartExperimentRunRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchOmniRequest.Builder,CopyableBuilder<StartExperimentRunRequest.Builder,,StartExperimentRunRequest> SdkBuilder<StartExperimentRunRequest.Builder,,StartExperimentRunRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartExperimentRunRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Idempotency token for safe retries.control(Consumer<ControlSource.Builder> control) An optional control to compare the run with.control(ControlSource control) An optional control to compare the run with.dataset(Consumer<ExperimentRunDataset.Builder> dataset) The dataset to run, with source AGENTCORE, an id and a published version.dataset(ExperimentRunDataset dataset) The dataset to run, with source AGENTCORE, an id and a published version.description(String description) An optional description of the run, up to 1024 characters with no control characters.evaluators(Collection<ExperimentEvaluator> evaluators) The evaluators to score the run with, from 1 to 10 for a hosted run.evaluators(Consumer<ExperimentEvaluator.Builder>... evaluators) The evaluators to score the run with, from 1 to 10 for a hosted run.evaluators(ExperimentEvaluator... evaluators) The evaluators to score the run with, from 1 to 10 for a hosted run.experimentId(String experimentId) The ID of the experiment to start the run in.Additional details about what the run tested, beyond the target and dataset versions.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.rule(Consumer<ExperimentRule.Builder> rule) An optional rule.rule(ExperimentRule rule) An optional rule.target(Consumer<TargetConfig.Builder> target) The version of the experiment's target to run.target(TargetConfig target) The version of the experiment's target to run.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniRequest.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
-
experimentId
The ID of the experiment to start the run in.
- Parameters:
experimentId- The ID of the experiment to start the run in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Idempotency token for safe retries. Repeated requests with the same token return the original run instead of starting another.
- Parameters:
clientToken- Idempotency token for safe retries. Repeated requests with the same token return the original run instead of starting another.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
An optional rule. When present, the run gets a verdict when it ends.
- Parameters:
rule- An optional rule. When present, the run gets a verdict when it ends.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
An optional rule. When present, the run gets a verdict when it ends.
This is a convenience method that creates an instance of theExperimentRule.Builderavoiding the need to create one manually viaExperimentRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(ExperimentRule).- Parameters:
rule- a consumer that will call methods onExperimentRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluators
The evaluators to score the run with, from 1 to 10 for a hosted run. The run's rule can reference only these evaluators.
- Parameters:
evaluators- The evaluators to score the run with, from 1 to 10 for a hosted run. The run's rule can reference only these evaluators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
The evaluators to score the run with, from 1 to 10 for a hosted run. The run's rule can reference only these evaluators.
- Parameters:
evaluators- The evaluators to score the run with, from 1 to 10 for a hosted run. The run's rule can reference only these evaluators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
The evaluators to score the run with, from 1 to 10 for a hosted run. The run's rule can reference only these evaluators.
This is a convenience method that creates an instance of theExperimentEvaluator.Builderavoiding the need to create one manually viaExperimentEvaluator.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluators(List<ExperimentEvaluator>).- Parameters:
evaluators- a consumer that will call methods onExperimentEvaluator.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
target
The version of the experiment's target to run. Hosted runs support only agentCoreRuntime.
- Parameters:
target- The version of the experiment's target to run. Hosted runs support only agentCoreRuntime.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The version of the experiment's target to run. Hosted runs support only agentCoreRuntime.
This is a convenience method that creates an instance of theTargetConfig.Builderavoiding the need to create one manually viaTargetConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totarget(TargetConfig).- Parameters:
target- a consumer that will call methods onTargetConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataset
The dataset to run, with source AGENTCORE, an id and a published version. Fails with FIELD_REQUIRED without a version, and the version cannot be DRAFT. Omit caseCount and contentHash.
- Parameters:
dataset- The dataset to run, with source AGENTCORE, an id and a published version. Fails with FIELD_REQUIRED without a version, and the version cannot be DRAFT. Omit caseCount and contentHash.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataset
The dataset to run, with source AGENTCORE, an id and a published version. Fails with FIELD_REQUIRED without a version, and the version cannot be DRAFT. Omit caseCount and contentHash.
This is a convenience method that creates an instance of theExperimentRunDataset.Builderavoiding the need to create one manually viaExperimentRunDataset.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataset(ExperimentRunDataset).- Parameters:
dataset- a consumer that will call methods onExperimentRunDataset.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
control
An optional control to compare the run with. A target control starts a second run on the same dataset alongside this one, which uses a second AgentCore batch evaluation and counts toward the experiment's run quota. Required by rules that use vsControl or paired metrics (RULE_CONTROL_REQUIRED).
- Parameters:
control- An optional control to compare the run with. A target control starts a second run on the same dataset alongside this one, which uses a second AgentCore batch evaluation and counts toward the experiment's run quota. Required by rules that use vsControl or paired metrics (RULE_CONTROL_REQUIRED).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
control
An optional control to compare the run with. A target control starts a second run on the same dataset alongside this one, which uses a second AgentCore batch evaluation and counts toward the experiment's run quota. Required by rules that use vsControl or paired metrics (RULE_CONTROL_REQUIRED).
This is a convenience method that creates an instance of theControlSource.Builderavoiding the need to create one manually viaControlSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontrol(ControlSource).- Parameters:
control- a consumer that will call methods onControlSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Additional details about what the run tested, beyond the target and dataset versions.
- Parameters:
metadata- Additional details about what the run tested, beyond the target and dataset versions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
An optional description of the run, up to 1024 characters with no control characters. Cannot be changed after the run starts.
- Parameters:
description- An optional description of the run, up to 1024 characters with no control characters. Cannot be changed after the run starts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
StartExperimentRunRequest.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
StartExperimentRunRequest.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.
-