TrainUtils Class

  • java.lang.Object
    • com.microsoft.bot.ai.qna.utils.TrainUtils

public class TrainUtils

Helper class for train API.

Constructor Summary

Constructor Description
TrainUtils(QnAMakerEndpoint withEndpoint)

Initializes a new instance of the TrainUtils class.

Method Summary

Modifier and Type Method and Description
java.util.concurrent.CompletableFuture<java.lang.Void> callTrain(FeedbackRecords feedbackRecords)

Train API to provide feedback.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

TrainUtils

public TrainUtils(QnAMakerEndpoint withEndpoint)

Initializes a new instance of the TrainUtils class.

Parameters:

withEndpoint - QnA Maker endpoint details.

Method Details

callTrain

public CompletableFuture callTrain(FeedbackRecords feedbackRecords)

Train API to provide feedback.

Parameters:

feedbackRecords - Feedback record list.

Returns:

A Task representing the asynchronous operation.

Throws:

java.io.IOException - IOException

Applies to