Class UserTurnResult

    • Method Detail

      • input

        public final UserTurnInputSpecification input()

        Contains information about the user messages in the turn in the input.

        Returns:
        Contains information about the user messages in the turn in the input.
      • expectedOutput

        public final UserTurnOutputSpecification expectedOutput()

        Contains information about the expected output for the user turn.

        Returns:
        Contains information about the expected output for the user turn.
      • actualOutput

        public final UserTurnOutputSpecification actualOutput()

        Contains information about the actual output for the user turn.

        Returns:
        Contains information about the actual output for the user turn.
      • errorDetails

        public final ExecutionErrorDetails errorDetails()
        Returns the value of the ErrorDetails property for this object.
        Returns:
        The value of the ErrorDetails property for this object.
      • endToEndResult

        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().

        Returns:
        Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
        See Also:
        TestResultMatchStatus
      • endToEndResultAsString

        public 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().

        Returns:
        Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
        See Also:
        TestResultMatchStatus
      • intentMatchResultAsString

        public 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().

        Returns:
        Specifies whether the expected and actual intents match or not.
        See Also:
        TestResultMatchStatus
      • slotMatchResultAsString

        public 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().

        Returns:
        Specifies whether the expected and actual slots match or not.
        See Also:
        TestResultMatchStatus
      • speechTranscriptionResult

        public 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().

        Returns:
        Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
        See Also:
        TestResultMatchStatus
      • speechTranscriptionResultAsString

        public 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().

        Returns:
        Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
        See Also:
        TestResultMatchStatus
      • conversationLevelResult

        public final ConversationLevelResultDetail conversationLevelResult()

        Contains information about the results related to the conversation associated with the user turn.

        Returns:
        Contains information about the results related to the conversation associated with the user turn.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)