Interface AgentTurnResult.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AgentTurnResult.Builder,AgentTurnResult>,SdkBuilder<AgentTurnResult.Builder,AgentTurnResult>,SdkPojo
- Enclosing class:
- AgentTurnResult
public static interface AgentTurnResult.Builder extends SdkPojo, CopyableBuilder<AgentTurnResult.Builder,AgentTurnResult>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AgentTurnResult.BuilderactualAgentPrompt(String actualAgentPrompt)The actual agent prompt for the agent turn in a test set execution.AgentTurnResult.BuilderactualElicitedSlot(String actualElicitedSlot)The actual elicited slot for the agent turn in a test set execution.AgentTurnResult.BuilderactualIntent(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.AgentTurnResult.BuildererrorDetails(ExecutionErrorDetails errorDetails)Sets the value of the ErrorDetails property for this object.AgentTurnResult.BuilderexpectedAgentPrompt(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
expectedAgentPrompt
AgentTurnResult.Builder expectedAgentPrompt(String 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
AgentTurnResult.Builder actualAgentPrompt(String 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
AgentTurnResult.Builder errorDetails(ExecutionErrorDetails 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
default AgentTurnResult.Builder errorDetails(Consumer<ExecutionErrorDetails.Builder> 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:
errorDetails(ExecutionErrorDetails)
-
actualElicitedSlot
AgentTurnResult.Builder actualElicitedSlot(String 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
AgentTurnResult.Builder actualIntent(String 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.
-
-