AdaptiveDialogBot 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 AdaptiveDialogBot 類別的新執行個體。
public AdaptiveDialogBot (string adaptiveDialogId, string languageGeneratorId, Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer resourceExplorer, Microsoft.Bot.Builder.ConversationState conversationState, Microsoft.Bot.Builder.UserState userState, Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryBase skillConversationIdFactoryBase, Microsoft.Bot.Builder.Dialogs.Adaptive.LanguagePolicy languagePolicy, Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication botFrameworkAuthentication, Microsoft.Bot.Builder.IBotTelemetryClient telemetryClient, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Dialogs.Memory.Scopes.MemoryScope> scopes = default, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Dialogs.Memory.IPathResolver> pathResolvers = default, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Dialogs.Dialog> dialogs = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialogBot : string * string * Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer * Microsoft.Bot.Builder.ConversationState * Microsoft.Bot.Builder.UserState * Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryBase * Microsoft.Bot.Builder.Dialogs.Adaptive.LanguagePolicy * Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication * Microsoft.Bot.Builder.IBotTelemetryClient * seq<Microsoft.Bot.Builder.Dialogs.Memory.Scopes.MemoryScope> * seq<Microsoft.Bot.Builder.Dialogs.Memory.IPathResolver> * seq<Microsoft.Bot.Builder.Dialogs.Dialog> * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialogBot
Public Sub New (adaptiveDialogId As String, languageGeneratorId As String, resourceExplorer As ResourceExplorer, conversationState As ConversationState, userState As UserState, skillConversationIdFactoryBase As SkillConversationIdFactoryBase, languagePolicy As LanguagePolicy, botFrameworkAuthentication As BotFrameworkAuthentication, telemetryClient As IBotTelemetryClient, Optional scopes As IEnumerable(Of MemoryScope) = Nothing, Optional pathResolvers As IEnumerable(Of IPathResolver) = Nothing, Optional dialogs As IEnumerable(Of Dialog) = Nothing, Optional logger As ILogger = Nothing)
參數
- adaptiveDialogId
- String
要從 載入之 AdaptiveDialog 的識別碼 ResourceExplorer 。
- languageGeneratorId
- String
要從 載入之 LanguageGenerator 的識別碼 ResourceExplorer 。
- resourceExplorer
- ResourceExplorer
要從中載入 的 Dialog Bot 建立器 ResourceExplorer 。
- conversationState
- ConversationState
實作 ConversationState 。
- skillConversationIdFactoryBase
- SkillConversationIdFactoryBase
- languagePolicy
- LanguagePolicy
LanguagePolicy要使用的 。
- botFrameworkAuthentication
- BotFrameworkAuthentication
BotFrameworkAuthentication,用來取得用戶端以呼叫 Bot Builder Skills。
- telemetryClient
- IBotTelemetryClient
IBotTelemetryClient,用來記錄 Bot 遙測事件。
- scopes
- IEnumerable<MemoryScope>
延伸記憶體系統的自訂 MemoryScope 實作。
- pathResolvers
- IEnumerable<IPathResolver>
將新的解析程式路徑快捷方式新增至記憶體範圍的自訂 IPathResolver 。
- dialogs
- IEnumerable<Dialog>
將新增至根 DialogSet 的自訂 Dialog 。