語言

AdaptiveDialogBot 建構函式

定義

初始化 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

從 的 ID AdaptiveDialog 來載入。ResourceExplorer

languageGeneratorId
String

從 的 ID LanguageGenerator 來載入。ResourceExplorer

resourceExplorer
ResourceExplorer

機器人建造ResourceExplorer器來載入。Dialog

conversationState
ConversationState

一個 ConversationState 實作。

userState
UserState

一個 UserState 實作。

skillConversationIdFactoryBase
SkillConversationIdFactoryBase

一個 SkillConversationIdFactoryBase 實作。

languagePolicy
LanguagePolicy

LanguagePolicy A,用來使用。

botFrameworkAuthentication
BotFrameworkAuthentication

過去,我 BotFrameworkAuthentication 會為 Bot Builder Skills 提供客戶電話。

telemetryClient
IBotTelemetryClient

IBotTelemetryClient以前會記錄機器人遙測事件。

scopes
IEnumerable<MemoryScope>

MemoryScope自訂實作來擴充記憶體系統。

pathResolvers
IEnumerable<IPathResolver>

自訂 IPathResolver 新增解析器路徑捷徑到記憶體範圍。

dialogs
IEnumerable<Dialog>

Dialog自訂的設定會被加入根對話集。

logger
ILogger

一個 ILogger 例子。

適用於