...
1 package qnamakerruntimeapi
2
3
4
5
6
7
8
9 import (
10 "context"
11 "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v4.0/qnamakerruntime"
12 "github.com/Azure/go-autorest/autorest"
13 )
14
15
16 type RuntimeClientAPI interface {
17 GenerateAnswer(ctx context.Context, kbID string, generateAnswerPayload qnamakerruntime.QueryDTO) (result qnamakerruntime.QnASearchResultList, err error)
18 Train(ctx context.Context, kbID string, trainPayload qnamakerruntime.FeedbackRecordsDTO) (result autorest.Response, err error)
19 }
20
21 var _ RuntimeClientAPI = (*qnamakerruntime.RuntimeClient)(nil)
22
View as plain text