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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET