DialogManager 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This class will be deprecated in the next version of the Bot Framework SDK.
執行對話框系統的類別。
[System.Obsolete("This class will be deprecated in the next version of the Bot Framework SDK.")]
public class DialogManager
[<System.Obsolete("This class will be deprecated in the next version of the Bot Framework SDK.")>]
type DialogManager = class
Public Class DialogManager
- 繼承
-
DialogManager
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| DialogManager(Dialog, String) |
已淘汰.
初始化 DialogManager 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| ConversationState |
已淘汰.
取得或設定 ConversationState。 |
| Dialogs |
已淘汰.
取得或設定您想要呼叫的全域對話。 |
| ExpireAfter |
已淘汰.
取得或設定(可選的)毫秒數,讓機器人狀態過期。 |
| InitialTurnState |
已淘汰.
取得 InitialTurnState 集合,以在每個回合複製到 TurnState。 |
| RootDialog |
已淘汰.
取得或設定根對話來啟動對話。 |
| StateConfiguration |
已淘汰.
取得或設定 DialogStateManagerConfiguration。 |
| UserState |
已淘汰.
取得或設定 UserState。 |
方法
| 名稱 | Description |
|---|---|
| OnTurnAsync(ITurnContext, CancellationToken) |
已淘汰.
在 ITurnContext 的內容中執行對話框系統。 |
擴充方法
| 名稱 | Description |
|---|---|
| UseLanguageGeneration(DialogManager, LanguageGenerator) |
已淘汰.
將 ILanguageGenerator 註冊為預設的語言產生器。 |
| UseLanguageGeneration(DialogManager, String) |
已淘汰.
將預設的 LG 檔案註冊為語言產生。 |
| UseLanguagePolicy(DialogManager, LanguagePolicy) |
已淘汰.
將語言原則註冊為默認原則。 |
| UseResourceExplorer(DialogManager, ResourceExplorer) |
已淘汰.
登錄 ResourceExplorer,並可選擇註冊更多類型。 |
| UseTelemetry(DialogManager, IBotTelemetryClient) |
已淘汰.
將 IBotTelemetryClient 註冊為預設語言產生器。 |