KnowledgebaseExtensions.GenerateAnswerAsync(IKnowledgebase, String, QueryDTO, CancellationToken) Method

Definition

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultList> GenerateAnswerAsync (this Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.IKnowledgebase operations, string kbId, Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QueryDTO generateAnswerPayload, System.Threading.CancellationToken cancellationToken = default);
static member GenerateAnswerAsync : Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.IKnowledgebase * string * Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QueryDTO * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultList>
<Extension()>
Public Function GenerateAnswerAsync (operations As IKnowledgebase, kbId As String, generateAnswerPayload As QueryDTO, Optional cancellationToken As CancellationToken = Nothing) As Task(Of QnASearchResultList)

Parameters

operations
IKnowledgebase
kbId
String
generateAnswerPayload
QueryDTO
cancellationToken
CancellationToken

Returns

Task<QnASearchResultList>

Applies to