共用方式為


OnQnAMatch 類別

定義

當 QnAMatch 的意圖已由 QnAMatchRecognizer 發出時觸發的動作。

public class OnQnAMatch : Microsoft.Bot.Builder.Dialogs.Adaptive.Conditions.OnIntent
type OnQnAMatch = class
    inherit OnIntent
Public Class OnQnAMatch
Inherits OnIntent
繼承

備註

當 QnAMakerRecognizer 傳回 QnAMatch 意圖時,就會執行此觸發程序。 實體 @answer 將會有 QnAMaker 答案。

建構函式

OnQnAMatch(List<Dialog>, String, String, Int32)

初始化 OnQnAMatch 類別的新執行個體。

欄位

Kind

類別識別碼。

屬性

Actions

取得或設定符合規則條件約束時要新增至計畫的動作。

(繼承來源 OnCondition)
ActionScope

取得動作範圍。

(繼承來源 OnCondition)
Condition

取得或設定需要符合的條件,才能在選擇性) (執行動作。

(繼承來源 OnCondition)
Entities

取得或設定必須辨識此規則才能觸發的實體。

(繼承來源 OnIntent)
Event

取得或設定要引發的事件。

(繼承來源 OnDialogEvent)
Id

取得或設定這個條件的唯一識別碼值。

(繼承來源 OnCondition)
Intent

取得或設定要比對的意圖。

(繼承來源 OnIntent)
Priority

取得或設定規則優先順序運算式,其中 0 是最高,且忽略小於 0。

(繼承來源 OnCondition)
RunOnce

取得或設定值,指出規則是否應該只針對每一組唯一的記憶體路徑執行一次。

(繼承來源 OnCondition)
Source

取得來源。

(繼承來源 OnCondition)

方法

AddExternalCondition(Expression)

將外部條件新增至 OnCondition。

(繼承來源 OnCondition)
AddExternalCondition(String)

將外部條件新增至 OnCondition。

(繼承來源 OnCondition)
CreateExpression()

建立此條件的運算式。

(繼承來源 OnIntent)
CurrentPriority(ActionContext)

計算優先順序運算式的目前值,並傳回它。

(繼承來源 OnCondition)
ExecuteAsync(ActionContext)

呼叫以執行規則動作的方法。

(繼承來源 OnCondition)
GetDependencies()

列舉子對話相依性,以便將它們新增至容器對話方塊集。

(繼承來源 OnCondition)
GetExpression()

取得此條件的快取運算式。

(繼承來源 OnCondition)
GetIdentity()

取得此規則動作的身分識別。

(繼承來源 OnIntent)
OnCreateChangeList(ActionContext, Object)

建立變更清單時呼叫。

(繼承來源 OnIntent)
RegisterSourceLocation(String, Int32)

註冊來源位置。

(繼承來源 OnCondition)

適用於