RuntimeExtensions.GenerateAnswerAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultList> GenerateAnswerAsync (this Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.IRuntime operations, string kbId, Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QueryDTO generateAnswerPayload, System.Threading.CancellationToken cancellationToken = default);
static member GenerateAnswerAsync : Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.IRuntime * 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 IRuntime, kbId As String, generateAnswerPayload As QueryDTO, Optional cancellationToken As CancellationToken = Nothing) As Task(Of QnASearchResultList)
Parameters
- operations
- IRuntime
- kbId
- String
- generateAnswerPayload
- QueryDTO
- cancellationToken
- CancellationToken
Returns
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET