public static interface UserTurnResult.Builder extends SdkPojo, CopyableBuilder<UserTurnResult.Builder,UserTurnResult>
| Modifier and Type | Method and Description |
|---|---|
default UserTurnResult.Builder |
actualOutput(Consumer<UserTurnOutputSpecification.Builder> actualOutput)
Contains information about the actual output for the user turn.
|
UserTurnResult.Builder |
actualOutput(UserTurnOutputSpecification actualOutput)
Contains information about the actual output for the user turn.
|
default UserTurnResult.Builder |
conversationLevelResult(Consumer<ConversationLevelResultDetail.Builder> conversationLevelResult)
Contains information about the results related to the conversation associated with the user turn.
|
UserTurnResult.Builder |
conversationLevelResult(ConversationLevelResultDetail conversationLevelResult)
Contains information about the results related to the conversation associated with the user turn.
|
UserTurnResult.Builder |
endToEndResult(String endToEndResult)
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
|
UserTurnResult.Builder |
endToEndResult(TestResultMatchStatus endToEndResult)
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
|
default UserTurnResult.Builder |
errorDetails(Consumer<ExecutionErrorDetails.Builder> errorDetails)
Sets the value of the ErrorDetails property for this object.
|
UserTurnResult.Builder |
errorDetails(ExecutionErrorDetails errorDetails)
Sets the value of the ErrorDetails property for this object.
|
default UserTurnResult.Builder |
expectedOutput(Consumer<UserTurnOutputSpecification.Builder> expectedOutput)
Contains information about the expected output for the user turn.
|
UserTurnResult.Builder |
expectedOutput(UserTurnOutputSpecification expectedOutput)
Contains information about the expected output for the user turn.
|
default UserTurnResult.Builder |
input(Consumer<UserTurnInputSpecification.Builder> input)
Contains information about the user messages in the turn in the input.
|
UserTurnResult.Builder |
input(UserTurnInputSpecification input)
Contains information about the user messages in the turn in the input.
|
UserTurnResult.Builder |
intentMatchResult(String intentMatchResult)
Specifies whether the expected and actual intents match or not.
|
UserTurnResult.Builder |
intentMatchResult(TestResultMatchStatus intentMatchResult)
Specifies whether the expected and actual intents match or not.
|
UserTurnResult.Builder |
slotMatchResult(String slotMatchResult)
Specifies whether the expected and actual slots match or not.
|
UserTurnResult.Builder |
slotMatchResult(TestResultMatchStatus slotMatchResult)
Specifies whether the expected and actual slots match or not.
|
UserTurnResult.Builder |
speechTranscriptionResult(String speechTranscriptionResult)
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in
execution.
|
UserTurnResult.Builder |
speechTranscriptionResult(TestResultMatchStatus speechTranscriptionResult)
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in
execution.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildUserTurnResult.Builder input(UserTurnInputSpecification input)
Contains information about the user messages in the turn in the input.
input - Contains information about the user messages in the turn in the input.default UserTurnResult.Builder input(Consumer<UserTurnInputSpecification.Builder> input)
Contains information about the user messages in the turn in the input.
This is a convenience method that creates an instance of theUserTurnInputSpecification.Builder
avoiding the need to create one manually via UserTurnInputSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to input(UserTurnInputSpecification).
input - a consumer that will call methods on UserTurnInputSpecification.Builderinput(UserTurnInputSpecification)UserTurnResult.Builder expectedOutput(UserTurnOutputSpecification expectedOutput)
Contains information about the expected output for the user turn.
expectedOutput - Contains information about the expected output for the user turn.default UserTurnResult.Builder expectedOutput(Consumer<UserTurnOutputSpecification.Builder> expectedOutput)
Contains information about the expected output for the user turn.
This is a convenience method that creates an instance of theUserTurnOutputSpecification.Builder
avoiding the need to create one manually via UserTurnOutputSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to expectedOutput(UserTurnOutputSpecification).
expectedOutput - a consumer that will call methods on UserTurnOutputSpecification.BuilderexpectedOutput(UserTurnOutputSpecification)UserTurnResult.Builder actualOutput(UserTurnOutputSpecification actualOutput)
Contains information about the actual output for the user turn.
actualOutput - Contains information about the actual output for the user turn.default UserTurnResult.Builder actualOutput(Consumer<UserTurnOutputSpecification.Builder> actualOutput)
Contains information about the actual output for the user turn.
This is a convenience method that creates an instance of theUserTurnOutputSpecification.Builder
avoiding the need to create one manually via UserTurnOutputSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to actualOutput(UserTurnOutputSpecification).
actualOutput - a consumer that will call methods on UserTurnOutputSpecification.BuilderactualOutput(UserTurnOutputSpecification)UserTurnResult.Builder errorDetails(ExecutionErrorDetails errorDetails)
errorDetails - The new value for the ErrorDetails property for this object.default UserTurnResult.Builder errorDetails(Consumer<ExecutionErrorDetails.Builder> errorDetails)
ExecutionErrorDetails.Builder avoiding
the need to create one manually via ExecutionErrorDetails.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to errorDetails(ExecutionErrorDetails).
errorDetails - a consumer that will call methods on ExecutionErrorDetails.BuildererrorDetails(ExecutionErrorDetails)UserTurnResult.Builder endToEndResult(String endToEndResult)
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
endToEndResult - Specifies whether the expected and actual outputs match or not, or if there is an error in execution.TestResultMatchStatus,
TestResultMatchStatusUserTurnResult.Builder endToEndResult(TestResultMatchStatus endToEndResult)
Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
endToEndResult - Specifies whether the expected and actual outputs match or not, or if there is an error in execution.TestResultMatchStatus,
TestResultMatchStatusUserTurnResult.Builder intentMatchResult(String intentMatchResult)
Specifies whether the expected and actual intents match or not.
intentMatchResult - Specifies whether the expected and actual intents match or not.TestResultMatchStatus,
TestResultMatchStatusUserTurnResult.Builder intentMatchResult(TestResultMatchStatus intentMatchResult)
Specifies whether the expected and actual intents match or not.
intentMatchResult - Specifies whether the expected and actual intents match or not.TestResultMatchStatus,
TestResultMatchStatusUserTurnResult.Builder slotMatchResult(String slotMatchResult)
Specifies whether the expected and actual slots match or not.
slotMatchResult - Specifies whether the expected and actual slots match or not.TestResultMatchStatus,
TestResultMatchStatusUserTurnResult.Builder slotMatchResult(TestResultMatchStatus slotMatchResult)
Specifies whether the expected and actual slots match or not.
slotMatchResult - Specifies whether the expected and actual slots match or not.TestResultMatchStatus,
TestResultMatchStatusUserTurnResult.Builder speechTranscriptionResult(String speechTranscriptionResult)
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
speechTranscriptionResult - Specifies whether the expected and actual speech transcriptions match or not, or if there is an error
in execution.TestResultMatchStatus,
TestResultMatchStatusUserTurnResult.Builder speechTranscriptionResult(TestResultMatchStatus speechTranscriptionResult)
Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
speechTranscriptionResult - Specifies whether the expected and actual speech transcriptions match or not, or if there is an error
in execution.TestResultMatchStatus,
TestResultMatchStatusUserTurnResult.Builder conversationLevelResult(ConversationLevelResultDetail conversationLevelResult)
Contains information about the results related to the conversation associated with the user turn.
conversationLevelResult - Contains information about the results related to the conversation associated with the user turn.default UserTurnResult.Builder conversationLevelResult(Consumer<ConversationLevelResultDetail.Builder> conversationLevelResult)
Contains information about the results related to the conversation associated with the user turn.
This is a convenience method that creates an instance of theConversationLevelResultDetail.Builder
avoiding the need to create one manually via ConversationLevelResultDetail.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to conversationLevelResult(ConversationLevelResultDetail).
conversationLevelResult - a consumer that will call methods on ConversationLevelResultDetail.BuilderconversationLevelResult(ConversationLevelResultDetail)Copyright © 2023. All rights reserved.