QnACardBuilder.GetQnADefaultResponse 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.
Get Card for Default QnA Maker scenario.
public static Microsoft.Bot.Schema.IMessageActivity GetQnADefaultResponse (Microsoft.Bot.Builder.AI.QnA.QueryResult result, AdaptiveExpressions.Properties.BoolExpression displayPreciseAnswerOnly, AdaptiveExpressions.Properties.BoolExpression useTeamsAdaptiveCard = default);
static member GetQnADefaultResponse : Microsoft.Bot.Builder.AI.QnA.QueryResult * AdaptiveExpressions.Properties.BoolExpression * AdaptiveExpressions.Properties.BoolExpression -> Microsoft.Bot.Schema.IMessageActivity
Public Shared Function GetQnADefaultResponse (result As QueryResult, displayPreciseAnswerOnly As BoolExpression, Optional useTeamsAdaptiveCard As BoolExpression = Nothing) As IMessageActivity
Parameters
- result
- QueryResult
Result to be dispalyed as prompts.
- displayPreciseAnswerOnly
- BoolExpression
Choice to render precise answer.
- useTeamsAdaptiveCard
- BoolExpression
Choose whether to use a Teams-formatted Adaptive card.
Returns
IMessageActivity.