Interface InlineGroundTruth.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InlineGroundTruth.Builder,,InlineGroundTruth> SdkBuilder<InlineGroundTruth.Builder,,InlineGroundTruth> SdkPojo
- Enclosing class:
InlineGroundTruth
-
Method Summary
Modifier and TypeMethodDescriptionassertions(Collection<EvaluationContent> assertions) assertions for evaluation, reuses common model EvaluationContentListassertions(Consumer<EvaluationContent.Builder>... assertions) assertions for evaluation, reuses common model EvaluationContentListassertions(EvaluationContent... assertions) assertions for evaluation, reuses common model EvaluationContentListdefault InlineGroundTruth.BuilderexpectedTrajectory(Consumer<EvaluationExpectedTrajectory.Builder> expectedTrajectory) expectedTrajectory for evaluation, reuses common model EvaluationExpectedTrajectoryexpectedTrajectory(EvaluationExpectedTrajectory expectedTrajectory) expectedTrajectory for evaluation, reuses common model EvaluationExpectedTrajectoryturns(Collection<GroundTruthTurn> turns) A list of per-turn ground truth data, each containing an input prompt and expected response.turns(Consumer<GroundTruthTurn.Builder>... turns) A list of per-turn ground truth data, each containing an input prompt and expected response.turns(GroundTruthTurn... turns) A list of per-turn ground truth data, each containing an input prompt and expected response.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
-
assertions
assertions for evaluation, reuses common model EvaluationContentList
- Parameters:
assertions- assertions for evaluation, reuses common model EvaluationContentList- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assertions
assertions for evaluation, reuses common model EvaluationContentList
- Parameters:
assertions- assertions for evaluation, reuses common model EvaluationContentList- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assertions
assertions for evaluation, reuses common model EvaluationContentList
This is a convenience method that creates an instance of theEvaluationContent.Builderavoiding the need to create one manually viaEvaluationContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassertions(List<EvaluationContent>).- Parameters:
assertions- a consumer that will call methods onEvaluationContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expectedTrajectory
expectedTrajectory for evaluation, reuses common model EvaluationExpectedTrajectory
- Parameters:
expectedTrajectory- expectedTrajectory for evaluation, reuses common model EvaluationExpectedTrajectory- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedTrajectory
default InlineGroundTruth.Builder expectedTrajectory(Consumer<EvaluationExpectedTrajectory.Builder> expectedTrajectory) expectedTrajectory for evaluation, reuses common model EvaluationExpectedTrajectory
This is a convenience method that creates an instance of theEvaluationExpectedTrajectory.Builderavoiding the need to create one manually viaEvaluationExpectedTrajectory.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexpectedTrajectory(EvaluationExpectedTrajectory).- Parameters:
expectedTrajectory- a consumer that will call methods onEvaluationExpectedTrajectory.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
turns
A list of per-turn ground truth data, each containing an input prompt and expected response.
- Parameters:
turns- A list of per-turn ground truth data, each containing an input prompt and expected response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
turns
A list of per-turn ground truth data, each containing an input prompt and expected response.
- Parameters:
turns- A list of per-turn ground truth data, each containing an input prompt and expected response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
turns
A list of per-turn ground truth data, each containing an input prompt and expected response.
This is a convenience method that creates an instance of theGroundTruthTurn.Builderavoiding the need to create one manually viaGroundTruthTurn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toturns(List<GroundTruthTurn>).- Parameters:
turns- a consumer that will call methods onGroundTruthTurn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-