AdaptiveDialogBot Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the AdaptiveDialogBot class.
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)
Parameters
- adaptiveDialogId
- String
The id of the AdaptiveDialog to load from the ResourceExplorer.
- languageGeneratorId
- String
The id of the LanguageGenerator to load from the ResourceExplorer.
- resourceExplorer
- ResourceExplorer
The Bot Builder ResourceExplorer to load the Dialog from.
- conversationState
- ConversationState
A ConversationState implementation.
- skillConversationIdFactoryBase
- SkillConversationIdFactoryBase
A SkillConversationIdFactoryBase implementation.
- languagePolicy
- LanguagePolicy
A LanguagePolicy to use.
- botFrameworkAuthentication
- BotFrameworkAuthentication
A BotFrameworkAuthentication used to obtain a client for making calls to Bot Builder Skills.
- telemetryClient
- IBotTelemetryClient
A IBotTelemetryClient used to log bot telemetry events.
- scopes
- IEnumerable<MemoryScope>
Custom MemoryScope implementations that extend the memory system.
- pathResolvers
- IEnumerable<IPathResolver>
Custom IPathResolver that add new resolvers path shortcuts to memory scopes.
- dialogs
- IEnumerable<Dialog>
Custom Dialog that will be added to the root DialogSet.