Interface AgentTurnResult.Builder

  • Method Details

    • 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 the 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).

      Parameters:
      errorDetails - a consumer that will call methods on ExecutionErrorDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.