@Generated(value="software.amazon.awssdk:codegen") public final class UserTurnResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UserTurnResult.Builder,UserTurnResult>
Contains the results for the user turn by the test execution.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UserTurnResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
UserTurnOutputSpecification |
actualOutput()
Contains information about the actual output for the user turn.
|
static UserTurnResult.Builder |
builder() |
ConversationLevelResultDetail |
conversationLevelResult()
Contains information about the results related to the conversation associated with the user turn.
|
TestResultMatchStatus |
endToEndResult()
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
|
String |
endToEndResultAsString()
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ExecutionErrorDetails |
errorDetails()
Returns the value of the ErrorDetails property for this object.
|
UserTurnOutputSpecification |
expectedOutput()
Contains information about the expected output for the user turn.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
UserTurnInputSpecification |
input()
Contains information about the user messages in the turn in the input.
|
TestResultMatchStatus |
intentMatchResult()
Specifies whether the expected and actual intents match or not.
|
String |
intentMatchResultAsString()
Specifies whether the expected and actual intents match or not.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UserTurnResult.Builder> |
serializableBuilderClass() |
TestResultMatchStatus |
slotMatchResult()
Specifies whether the expected and actual slots match or not.
|
String |
slotMatchResultAsString()
Specifies whether the expected and actual slots match or not.
|
TestResultMatchStatus |
speechTranscriptionResult()
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in
execution.
|
String |
speechTranscriptionResultAsString()
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in
execution.
|
UserTurnResult.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final UserTurnInputSpecification input()
Contains information about the user messages in the turn in the input.
public final UserTurnOutputSpecification expectedOutput()
Contains information about the expected output for the user turn.
public final UserTurnOutputSpecification actualOutput()
Contains information about the actual output for the user turn.
public final ExecutionErrorDetails errorDetails()
public final TestResultMatchStatus endToEndResult()
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
If the service returns an enum value that is not available in the current SDK version, endToEndResult
will return TestResultMatchStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from endToEndResultAsString().
TestResultMatchStatuspublic final String endToEndResultAsString()
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
If the service returns an enum value that is not available in the current SDK version, endToEndResult
will return TestResultMatchStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from endToEndResultAsString().
TestResultMatchStatuspublic final TestResultMatchStatus intentMatchResult()
Specifies whether the expected and actual intents match or not.
If the service returns an enum value that is not available in the current SDK version, intentMatchResult
will return TestResultMatchStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from intentMatchResultAsString().
TestResultMatchStatuspublic final String intentMatchResultAsString()
Specifies whether the expected and actual intents match or not.
If the service returns an enum value that is not available in the current SDK version, intentMatchResult
will return TestResultMatchStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from intentMatchResultAsString().
TestResultMatchStatuspublic final TestResultMatchStatus slotMatchResult()
Specifies whether the expected and actual slots match or not.
If the service returns an enum value that is not available in the current SDK version, slotMatchResult
will return TestResultMatchStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from slotMatchResultAsString().
TestResultMatchStatuspublic final String slotMatchResultAsString()
Specifies whether the expected and actual slots match or not.
If the service returns an enum value that is not available in the current SDK version, slotMatchResult
will return TestResultMatchStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from slotMatchResultAsString().
TestResultMatchStatuspublic final TestResultMatchStatus speechTranscriptionResult()
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
If the service returns an enum value that is not available in the current SDK version,
speechTranscriptionResult will return TestResultMatchStatus.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from speechTranscriptionResultAsString().
TestResultMatchStatuspublic final String speechTranscriptionResultAsString()
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
If the service returns an enum value that is not available in the current SDK version,
speechTranscriptionResult will return TestResultMatchStatus.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from speechTranscriptionResultAsString().
TestResultMatchStatuspublic final ConversationLevelResultDetail conversationLevelResult()
Contains information about the results related to the conversation associated with the user turn.
public UserTurnResult.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UserTurnResult.Builder,UserTurnResult>public static UserTurnResult.Builder builder()
public static Class<? extends UserTurnResult.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.