AdaptiveDialogBot Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe 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)
Paramètres
- adaptiveDialogId
- String
L’id de pour AdaptiveDialog charger à partir du ResourceExplorer.
- languageGeneratorId
- String
L’id de pour LanguageGenerator charger à partir du ResourceExplorer.
- resourceExplorer
- ResourceExplorer
Le Bot Builder ResourceExplorer pour charger le Dialog from.
- conversationState
- ConversationState
Une ConversationState mise en œuvre.
- skillConversationIdFactoryBase
- SkillConversationIdFactoryBase
Une SkillConversationIdFactoryBase mise en œuvre.
- languagePolicy
- LanguagePolicy
A LanguagePolicy à utiliser.
- botFrameworkAuthentication
- BotFrameworkAuthentication
A BotFrameworkAuthentication obtenait un client pour passer des appels vers Bot Builder Skills.
- telemetryClient
- IBotTelemetryClient
A avait l’habitude d’enregistrer IBotTelemetryClient les événements de télémétrie des bots.
- scopes
- IEnumerable<MemoryScope>
Des implémentations personnalisées MemoryScope qui étendent le système de mémoire.
- pathResolvers
- IEnumerable<IPathResolver>
Des données personnalisées IPathResolver qui ajoutent de nouveaux raccourcis de chemin pour résoudre les champs mémoire.
- dialogs
- IEnumerable<Dialog>
Personnalisé Dialog qui sera ajouté au DialogSet racine.