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
要从 加载的 的 ResourceExplorerIDAdaptiveDialog。
- languageGeneratorId
- String
要从 加载的 的 ResourceExplorerIDLanguageGenerator。
- resourceExplorer
- ResourceExplorer
要从中加载 的 Dialog Bot BuilderResourceExplorer。
- conversationState
- ConversationState
实现 ConversationState 。
- skillConversationIdFactoryBase
- SkillConversationIdFactoryBase
- languagePolicy
- LanguagePolicy
要使用的 LanguagePolicy 。
- botFrameworkAuthentication
- BotFrameworkAuthentication
一个 BotFrameworkAuthentication ,用于获取客户端以调用 Bot Builder Skills。
- telemetryClient
- IBotTelemetryClient
IBotTelemetryClient用于记录机器人遥测事件的 。
- scopes
- IEnumerable<MemoryScope>
扩展内存系统的自定义 MemoryScope 实现。
- pathResolvers
- IEnumerable<IPathResolver>
用于向内存范围添加新的解析程序路径快捷方式的自定义 IPathResolver 。
- dialogs
- IEnumerable<Dialog>
将添加到根 DialogSet 的自定义 Dialog 。