...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v4.0/qnamakerruntime/qnamakerruntimeapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v4.0/qnamakerruntime/qnamakerruntimeapi

     1  package qnamakerruntimeapi
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     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  // RuntimeClientAPI contains the set of methods on the RuntimeClient type.
    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