Interface SessionMetadataShape.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SessionMetadataShape.Builder,,SessionMetadataShape> SdkBuilder<SessionMetadataShape.Builder,,SessionMetadataShape> SdkPojo
- Enclosing class:
SessionMetadataShape
@Mutable
@NotThreadSafe
public static interface SessionMetadataShape.Builder
extends SdkPojo, CopyableBuilder<SessionMetadataShape.Builder,SessionMetadataShape>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SessionMetadataShape.BuildergroundTruth(Consumer<GroundTruthSource.Builder> groundTruth) The ground truth data for this session, including expected responses and assertions.groundTruth(GroundTruthSource groundTruth) The ground truth data for this session, including expected responses and assertions.Additional key-value metadata associated with this session.The unique identifier of the session this metadata applies to.testScenarioId(String testScenarioId) An optional test scenario identifier for categorizing and tracking evaluation results.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
-
sessionId
The unique identifier of the session this metadata applies to.
- Parameters:
sessionId- The unique identifier of the session this metadata applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testScenarioId
An optional test scenario identifier for categorizing and tracking evaluation results.
- Parameters:
testScenarioId- An optional test scenario identifier for categorizing and tracking evaluation results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groundTruth
The ground truth data for this session, including expected responses and assertions.
- Parameters:
groundTruth- The ground truth data for this session, including expected responses and assertions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groundTruth
The ground truth data for this session, including expected responses and assertions.
This is a convenience method that creates an instance of theGroundTruthSource.Builderavoiding the need to create one manually viaGroundTruthSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togroundTruth(GroundTruthSource).- Parameters:
groundTruth- a consumer that will call methods onGroundTruthSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Additional key-value metadata associated with this session.
- Parameters:
metadata- Additional key-value metadata associated with this session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-