Jaa


QnACardBuilder.GetQnADefaultResponse Method

Definition

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.

Applies to