Interface AgentTurnResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AgentTurnResult.Builder,,AgentTurnResult> SdkBuilder<AgentTurnResult.Builder,,AgentTurnResult> SdkPojo
- Enclosing class:
AgentTurnResult
@Mutable
@NotThreadSafe
public static interface AgentTurnResult.Builder
extends SdkPojo, CopyableBuilder<AgentTurnResult.Builder,AgentTurnResult>
-
Method Summary
Modifier and TypeMethodDescriptionactualAgentPrompt(String actualAgentPrompt) The actual agent prompt for the agent turn in a test set execution.actualElicitedSlot(String actualElicitedSlot) The actual elicited slot for the agent turn in a test set execution.actualIntent(String actualIntent) The actual intent for the agent turn in a test set execution.default AgentTurnResult.BuildererrorDetails(Consumer<ExecutionErrorDetails.Builder> errorDetails) Sets the value of the ErrorDetails property for this object.errorDetails(ExecutionErrorDetails errorDetails) Sets the value of the ErrorDetails property for this object.expectedAgentPrompt(String expectedAgentPrompt) The expected agent prompt for the agent turn in a test set execution.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
-
expectedAgentPrompt
The expected agent prompt for the agent turn in a test set execution.
- Parameters:
expectedAgentPrompt- The expected agent prompt for the agent turn in a test set execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actualAgentPrompt
The actual agent prompt for the agent turn in a test set execution.
- Parameters:
actualAgentPrompt- The actual agent prompt for the agent turn in a test set execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
Sets the value of the ErrorDetails property for this object.- Parameters:
errorDetails- The new value for the ErrorDetails property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorDetails
Sets the value of the ErrorDetails property for this object. This is a convenience method that creates an instance of theExecutionErrorDetails.Builderavoiding the need to create one manually viaExecutionErrorDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrorDetails(ExecutionErrorDetails).- Parameters:
errorDetails- a consumer that will call methods onExecutionErrorDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actualElicitedSlot
The actual elicited slot for the agent turn in a test set execution.
- Parameters:
actualElicitedSlot- The actual elicited slot for the agent turn in a test set execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actualIntent
The actual intent for the agent turn in a test set execution.
- Parameters:
actualIntent- The actual intent for the agent turn in a test set execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-